0

私は今週末、Nexus ガイドに取り組んでおり、ローカルの nexus インストールにスナップショットを発行できるように、すべての設定が完了しています。

m2eclipse にスナップショットを表示させ、それを [依存関係の追加] 検索パネルのオプションとして提供する方法がわかりません。それ、どうやったら出来るの?ありがとう!

何らかの用途がある場合、私の settings.xml は次のとおりです。

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <localRepository />
    <interactiveMode />
    <usePluginRegistry />
    <offline />
    <pluginGroups />
    <servers>
        <server>
            <id>localSnap</id>
            <username>deployment</username>
            <password>*****</password>
        </server>
    </servers>
    <mirrors>
        <mirror>
            <!--This sends everything else to /public -->
            <id>nexus</id>
            <mirrorOf>*</mirrorOf>
            <url>http://localhost:8080/nexus/content/groups/public</url>
        </mirror>
    </mirrors>
    <profiles>
        <profile>
            <id>nexus</id>
            <!--Enable snapshots for the built in central repo to direct -->
            <!--all requests to nexus via the mirror -->
            <repositories>
                <repository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
            <pluginRepositories>
                <pluginRepository>
                    <id>central</id>
                    <url>http://central</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </pluginRepository>
            </pluginRepositories>
        </profile>
    </profiles>
    <activeProfiles>
        <!--make the profile active all the time -->
        <activeProfile>nexus</activeProfile>
    </activeProfiles>

</settings>
4

1 に答える 1

3

私は今答えを持っています。インデックスを公開するには nexus を設定する必要があります。http://www.sonatype.com/people/2009/09/nexus-scheduled-tasks ...m2eclipse などのクライアントのインデックスを公開するスケジュール タスクを設定します。ただし、nexus のスケジュールされたタスク セクションに WAITING ステータスが表示されるまで待つ必要があります。Eclipseの再起動後、動作する必要があります。よろしく、ヤクブ

ところで:プロキシされたリポジトリには「リモートインデックスのダウンロード-true」が必要であり、ネクサスはリモートインデックスを検索できる必要があります...しかし、私はあなたがそれを知っていると思いました

于 2010-06-12T21:44:38.750 に答える