カスタム アーキタイプを保存する github リポジトリをセットアップしました。次のようなものを使用して、これらのアーキタイプから (別の vm で) 新しいプロジェクトを開始できます。
mvn archetype:generate -Dcatalog=https://raw.github.etc./archetype-catalog.xml
今、私はいくつかのサードパーティのjarファイルを同じリポジトリにリモートで保存し、それらを依存関係としてpom.xmlから参照しようとしています
最初に、jarをローカルにインストールしました
mvn install:install-file ..params..
私が持っているリポジトリ構造は次のようになります:
https://github.com/myappco/myrepo
|
|___releases
| |
(group id)adobe.flex.messaging (ie. adobe/flex/messaging)
common
1.0
(common-1.0.jar)
* trying to make this work
|___snapshots
|
(group id)com.acme.archetypes (ie. com/acme/archetypes)
my-archetype
1.0-SNAPSHOT
* archetype resolved ok
archetype-catalog.xml
私のプロジェクトの設定:
<dependency>
<groupId>adobe.flex.messaging</groupId>
<artifactId>common</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<repositories>
<repository>
<id>orb-snapshots</id>
<url>https://github.com/myappco/myrepo/releases</url>
</repository>
</repositories>
github リポジトリ archetype-catalog.xml から archetype:generate できるので、私は何か愚かなことをしているに違いないと思います。誰が私が台無しにしたかを見ることができますか?
タ