0

プロジェクトにソースを追加しようとしています。以下のレポを手動で追加し、雰囲気のスナップショットを含めました。

<repositories>
    <!-- Added to get the Atmosphere 1.1.0-SNAPSHOT, can be removed when 1.1.0 is released -->
    <repository>
        <id>oss.sonatype.org-snapshot</id>
        <url>http://oss.sonatype.org/content/repositories/snapshots</url>
        <releases><enabled>false</enabled></releases>
        <snapshots><enabled>true</enabled></snapshots>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>org.atmosphere</groupId>
        <artifactId>atmosphere-runtime</artifactId>
        <version>1.1.0-SNAPSHOT</version>
        <exclusions>
            <exclusion>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
</dependencies>

here.jarからダウンロードしましたが、プロジェクト構造の「ライブラリ」セクションに追加すると、ソースとして追加されず、クラスの下に追加されます。

クラスのインターフェースを表示するときのデバッグで、エディターの上部にあるクイック「ソースを添付...」オプションを使用して、無駄に .jar に移動しました。

4

1 に答える 1

0

そのMavenリポジトリにはそのライブラリのソースがないため、Mavenはソースを見つけられません(ライブラリのスナップショットでは非常に一般的だと思います)。jar の 1 つをダウンロードしましたが、それらにはクラス ファイルしか含まれていないので、jar を手動でアタッチしてもソースを表示するにはどうすればよいのでしょうか。

于 2013-05-01T07:53:16.597 に答える