私はいくつかのジップを取得し、内部にある5つのアーティファクト(jar + pom)を展開して展開します。mavenが単一のpomに複数のファイルをデプロイ
それは次のようになります。だから私は5つの成果物のための5つの実行を持っている
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<executions>
<execution>
<id>default-deploy</id>
<phase>none</phase>
</execution>
<execution>
<id>deploy-api-jar</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<file>target/xxx.jar</file>
<pomFile>target/xxx/pom.xml</pomFile>
<sources>target/xxx-sources.jar</sources>
<repositoryId>${nexus-repository-id}</repositoryId>
<url>http://${nexus.deploy.server}/${nexus-repository-path}</url>
</configuration>
</execution>
を。 それは最初のアーティファクトのために動作しますが、それは再びこれをアップロードしようとするため、それは失敗します。
[INFO] Uploading: http://www.zzz.com:8081/nexus/content/repositories/mobile-r/xxx/server/deployall/8.1.17/deployall-8.1.17-dependencies.dot
そしてdepedencies.dot 8.1.17が既に展開されているので、それは400 BadRequest
で失敗します。
各アーティファクト間にdepedencies.dotを試してアップロードしようとしているのはなぜですか?それを無効にすることはできますか?
これらのファイルは、Mavenビルド自体でビルドされているのですか、そうでなければ作成されたファイルですか? – khmarbaise
関連性があります:http://stackoverflow.com/questions/40402597/maven-deploy-file-goal-why-does-the-first-execution-interfere-with-the-secondo-o –