0
如果我有artifactId,groupId和版本如何配置pom.xml,maven会从nexus存储库下载test.war文件。 我认为这应该在使用maven从nexus下载war文件
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
.....
</plugin>
在执行块发生。 我已经尝试过这一点,但没有运气:
<execution>
<phase>package</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<artifactId>mytest</artifactId>
<groupId>com.mytest</groupId>
<version>${version}</version>
<type>war</type>
<destFileName>mytest-${version}.war</destFileName>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
可能的重复[从快照存储库下载WAR并使用mvn部署到本地JBoss](http://stackoverflow.com/questions/8293741/download-war-from-snapshot-repository-and-deploy-to- local-jboss-using-mvn) –
我试过了,但没有奏效! –
然后请张贴您实际尝试过的内容,以便我们缩小故障排除范围,还有一些关于此副本(其他插件/程序涉及的目标是什么?)的更多详细信息将有助于 –