gpt4 book ai didi

java - Maven 部署文件目标 : Why does the first execution interfere with the second one?

转载 作者:行者123 更新时间:2023-11-30 10:36:54 25 4
gpt4 key购买 nike

如果我在 maven-deploy-plugin 中调用两个部署文件执行

<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<executions>

<execution>
<id>deploy-ejb-impl</id>
<goals>
<goal>deploy-file</goal>
</goals>
<phase>deploy</phase>
<configuration>
<file>${implJarFile}</file>
<pomFile>${implPomFile}</pomFile>
<url>${project.distributionManagementArtifactRepository.url}</url>
<repositoryId>${project.distributionManagementArtifactRepository.id}</repositoryId>
<javadoc>${project.build.directory}/${project.build.finalName}-hund.jar</javadoc>
</configuration>
</execution>
<execution>
<id>default-deploy</id>
<phase>none</phase>
</execution>
<execution>
<id>deploy-ejb-client</id>
<goals>
<goal>deploy-file</goal>
</goals>
<phase>deploy</phase>
<configuration>
<file>${clientJarFile}</file>
<pomFile>${clientPomFile}</pomFile>
<url>${project.distributionManagementArtifactRepository.url}</url>
<repositoryId>${project.distributionManagementArtifactRepository.id}</repositoryId>
<sources>${project.build.directory}/${project.build.finalName}-hund.jar</sources>
</configuration>
</execution>
</executions>

然后第一次执行的javadoc的上传也在第二次执行中执行(寻找basis-vs-bo-20.0.2-20161103.130940-25-javadoc.jar):

[INFO] 
[INFO] --- maven-deploy-plugin:2.8.2:deploy-file (deploy-ejb-impl) @ basis-vs-bo ---
[INFO] Downloading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml (1001 B at 15.5 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/basis-vs-bo-20.0.2-20161103.130940-25.jar
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/basis-vs-bo-20.0.2-20161103.130940-25.jar (160 KB at 3386.2 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/basis-vs-bo-20.0.2-20161103.130940-25.pom
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/basis-vs-bo-20.0.2-20161103.130940-25.pom (5 KB at 282.4 KB/sec)
[INFO] Downloading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/maven-metadata.xml
[INFO] Downloaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/maven-metadata.xml (372 B at 11.7 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml (1001 B at 65.2 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/maven-metadata.xml
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/maven-metadata.xml (372 B at 24.2 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/basis-vs-bo-20.0.2-20161103.130940-25-javadoc.jar
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/basis-vs-bo-20.0.2-20161103.130940-25-javadoc.jar (77 KB at 5117.8 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml (2 KB at 74.3 KB/sec)
[INFO]
[INFO] --- maven-deploy-plugin:2.8.2:deploy-file (deploy-ejb-client) @ basis-vs-bo ---
[INFO] Downloading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/maven-metadata.xml (1008 B at 30.8 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/basis-vs-bo-client-20.0.2-20161103.130941-14.jar
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/basis-vs-bo-client-20.0.2-20161103.130941-14.jar (24 KB at 1451.9 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/basis-vs-bo-client-20.0.2-20161103.130941-14.pom
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/basis-vs-bo-client-20.0.2-20161103.130941-14.pom (4 KB at 201.1 KB/sec)
[INFO] Downloading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/maven-metadata.xml
[INFO] Downloaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/maven-metadata.xml (379 B at 11.9 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/maven-metadata.xml
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/maven-metadata.xml (1008 B at 65.6 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/maven-metadata.xml
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/maven-metadata.xml (379 B at 24.7 KB/sec)
[INFO] Downloading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml (2 KB at 37.1 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/basis-vs-bo-20.0.2-20161103.130940-25-javadoc.jar
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/basis-vs-bo-20.0.2-20161103.130940-25-javadoc.jar (77 KB at 5117.8 KB/sec)
[INFO] Downloading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/maven-metadata.xml
[INFO] Downloaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/maven-metadata.xml (372 B at 11.7 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/20.0.2-SNAPSHOT/maven-metadata.xml (2 KB at 79.2 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/maven-metadata.xml
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo/maven-metadata.xml (372 B at 24.2 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/basis-vs-bo-client-20.0.2-20161103.130941-14-sources.jar
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/basis-vs-bo-client-20.0.2-20161103.130941-14-sources.jar (77 KB at 4797.9 KB/sec)
[INFO] Uploading: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/maven-metadata.xml
[INFO] Uploaded: http://ik-repo1:8084/nexus/content/repositories/consnapshots/de/continentale/vs/basis-vs-bo-client/20.0.2-SNAPSHOT/maven-metadata.xml (1008 B at 61.5 KB/sec)
[INFO] ------------------------------------------------------------------------

为什么参数javadoc导致第二次执行再次上传同一个文件?

最佳答案

正如 Tunaki 在评论中所说,部署插件的版本 3.0.0-SNAPSHOT 更正了错误。

关于java - Maven 部署文件目标 : Why does the first execution interfere with the second one?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40402597/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com