如果我在maven deploy插件中调用两个部署文件执行
<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版本纠正了错误。
问题内容: 我正在尝试使用jaxb- maven插件使用JAXB将多个XSD转换为不同包中的POJO。我已将其设置为使用多个执行块,然后执行第一个执行块,然后出现一条消息:模式或绑定文件中未检测到更改 这是我pom.xml的摘录: 这是我收到的错误消息: 如果我交换执行块,则第一个总是执行,其余两个块得到相同的消息。 关于如何解决这个问题的任何想法? 问题答案: 通过升级到版本1.6进行了修复 和
问题内容: 储存程序 在此存储过程中,我有两个update语句。如果第一次更新成功执行,然后第二次执行。需要进行哪些更改? 问题答案: 在第一个之后,您可以检查受影响的行数。 如果返回的结果是所需的更新数量(可能> 0),则仅触发第二个。 可以通过检查受影响的行数来包围第二个。
fileInput包含一个大约30行的csv文件,我只想访问第二行。 我需要访问第二行而不是第一行(第一行包含列名称)<代码>行[1]给出了
react class组件在componentDidMount中调用初始化接口,有些时候会调用两次,通过断点发现顺序是componentDidMount->componentWillUnmount->componentDidMount,但不能稳定复现,调用的组件是页面的主入口,并非某个组件的子组件,请问有知道这个问题的么?
问题内容: 有一种方法可以配置javascript方法以立即执行该方法,然后使用计时器执行 问题答案: 第一次直接直接调用函数是最简单的: 但是,有充分的理由要避免-尤其是在某些情况下,整个事件负荷可以彼此紧接着立即到达而没有任何延迟。另一个原因是,如果要停止循环,则必须显式调用,这意味着必须记住原始调用返回的句柄。 因此,另一种方法是使用以下方法触发自己的后续调用: 这样可以确保两次调用之间 至
我使用Quartz1.5.2和Spring3.2.1来做调度器任务,在我的应用程序中,我需要在某个时候重新安排任务,但我发现每次重新安排任务时,它都会在第一次执行两次。 下面是我的Quartz+Spring配置文件: 我把它作为一个web应用程序,下面是web.xml的代码: