2017-01-03 10 views
0

私は、Apache Archivaを設定し、そこにファイルをいくつか追加しました:MavenでApache Archivaを使用するには?

enter image description here

enter image description here

すべてがよさそうだ、私は思います。

私は、プロファイルを含めるように私のsettings.xmlファイルを更新しています

enter image description here

私はその後、私のpom.xmlファイルに上記の依存関係を追加:

enter image description here

私はそれを再構築してからバムに保存してください!

enter image description here

、この世界では良いですが、そのすべての愛のために誰かが私が正しくやっていないよ何を私に伝えることができますしてください?

エラーメッセージは、実際に読み取ります

enter image description here

変更スナップショットに "真" とスクリーンショットを追加します。 ApacheのArchivaとMav​​enとの間の接続を作成

enter image description here

+0

リストされた依存関係とエラーは、関連していません。また、あなたのリポジトリにあなたの成果物のためのSNAPSHOTを保存しようとしている場合、yout settings.xmlで '' ''は 'true'になるはずです。 – nullpointer

+0

@nullpointerは、現在のエラーメッセージでスクリーンショットを追加しました。どんな助力も大いに感謝しています。 –

+0

スナップショットでtrueを使用してみてください。また、 'mvn clean install'を実行し、エラースクリーンショットの代わりに質問に関連する失敗ログを投稿することもできます。 – nullpointer

答えて

2

は難しい強打しました。

私は結局、スタック上の別のポストを見つけました。これは、これを理解するのに非常に助かりました。私の人生にとって、私は適切な信用を与えるために再び見つけることはできないようです。私が最終的に再びそれを見つけるなら、あなたはその甘い甘いカルマを得ることができるように投稿します。私はこれが最も効率的なレイアウトではないかもしれないが、それが最終的に働いていることを理解し

<?xml version="1.0" encoding="UTF-8"?> 

<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"> 

<proxies> 
    <proxy> 
     <id>optional</id> 
     <active>true</active> 
     <protocol>http</protocol> 
     <host>myproxyserver.name.org</host> 
     <port>8080</port> 
     <nonProxyHosts>localhost|myserver</nonProxyHosts> 
    </proxy> 
</proxies> 

<servers> 
    <server> 
     <id>my.snapshots</id> 
    </server> 
</servers> 

<mirrors> 
    <mirror> 
     <id>Central</id> 
     <url>http://repo.maven.apache.org/maven2</url> 
     <mirrorOf>my.snapshots</mirrorOf> 
    </mirror> 
    <mirror> 
     <id>archiva.default</id> 
     <mirrorOf>Central</mirrorOf> 
     <url>http://myserver:8080/repository/internal/</url> 
    </mirror> 
    <mirror> 
     <id>my.snapshots</id> 
     <mirrorOf>Central</mirrorOf> 
     <url>http://myserver:8080/repository/snapshots</url> 
    </mirror> 
</mirrors> 

<profiles> 
    <profile> 
     <id>internal</id> 
     <activation> 
      <activeByDefault>true</activeByDefault> 
     </activation> 
     <repositories> 
      <repository> 
       <id>archiva.internal</id> 
       <name>Archiva Managed Internal Repository</name> 
       <url>http://myserver:8080/repository/internal/</url> 
       <releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releases> 
       <snapshots><enabled>false</enabled></snapshots> 
      </repository> 
      <repository> 
       <id>archiva.snapshots</id> 
       <name>Archiva Managed Internal Repository</name> 
       <url>http://myserver:8080/repository/snapshots/</url> 
       <releases><enabled>false</enabled></releases> 
       <snapshots><enabled>true</enabled><updatePolicy>always</updatePolicy></snapshots> 
      </repository> 
     </repositories> 
    </profile> 
</profiles> 

<activeProfiles> 
    <activeProfile>internal</activeProfile> 
</activeProfiles> 

は、ここに私のsettings.xmlファイルです。誰かがこれをより簡潔にするための推奨事項がある場合は、チャイムインしてください。

+0

投稿は何ですか? –

+0

@MauricePerry、ごめんなさい、あなたの質問を理解できません。何を聞いていますか? –

+0

投稿した投稿は –

関連する問題