新しいMavenプロジェクトウィザードを使用してアーキタイプを使用して、Eclipseで新しいMavenプロジェクトを作成したいとします。 「Select a Archetype」ステップでは、Nexus Indexer
、Internal
およびDefault Local
から3つのカタログを選択できます。私はこれらのカタログの内容がどこから来るべきか理解していません。 「設定」ボタンをクリックすると、すべて灰色で表示され、変更できません。m2eclipseを使用したアーキタイプ選択
カタログには、Internal
カタログのみがリストされています。これらのアーキタイプはどこから来ていますか?グループ/成果物がそこにないので、私のローカルのMavenリポジトリからではありません(また、リポジトリのアーキタイプもリストされていません)。
Nexus Indexer
のリストが空白なのはなぜですか? Nexusのインデックスを更新する必要がある記事を読みましたが、これを行う方法はありません。これは、リポジトリー索引(毎日更新される予定です)とは異なります。
ご覧のとおり、カタログビジネス全体と、Maven、m2eclipse、Nexusがどのように連携しているのか、少し混乱しています。どんな説明も大歓迎です!
マイセットアップ:
- のEclipse:ヘリオスサービスリリース2(IDのビルド:20110218から0911)を
- のApache Mavenの3.0.3
- m2eclipse:0.12.1.20110112-1712は、(使用するように設定外部Mavenのインストール)
- Sonatypeネクサス™オープンソース版、バージョン:1.9.0.2
私の地元のMavenのsettings.xmlは次のようになります。
<settings>
<mirrors>
<mirror>
<!--This sends everything else to /public -->
<id>nexus</id>
<mirrorOf>*</mirrorOf>
<url>http://myserver: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>
<servers>
<server>
<id>my-snapshots</id>
<username>user</username>
<password>password</password>
</server>
<server>
<id>my-releases</id>
<username>user</username>
<password>password</password>
</server>
</servers>
</settings>
うーん、私は私がTapestryプロジェクトを作成する際に問題が発生したときにその答えを見たいのですが、それはリストに載せるべきですが、そうではなく、どうやって修正するのか分かりません。 –