我的POM文件中有这个依赖项和工件部署目标配置:
....
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.3-1102-jdbc41</version>
<scope>provided</scope>
</dependency>
....
....
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.0.2.Final</version>
<configuration>
<hostname>127.0.0.1</hostname>
<port>9991</port>
<username>xxxx</username>
<password>xxxx</password>
<name>App.war</name>
</configuration>
<executions>
....
<execution>
<id>deploy-artifact</id>
<phase>install</phase>
<goals>
<goal>deploy-artifact</goal>
</goals>
<configuration>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<name>postgresql-9.3-1102-jdbc41.jar</name>
</configuration>
</execution>
....
</executions>
</plugin>
....但是,如果我运行: mvn通配符:deploy-工件,则会收到以下错误消息:
Failed to execute goal org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:deploy-artifact (default-cli) on project Zeus: deploy-artifact must specify the artifactId -> [Help 1]在执行目标时,似乎没有读取配置部分!我哪里错了?有人能帮我吗?
发布于 2014-10-13 19:40:06
您已经在执行中定义了配置。在执行特定目标时,它使用在插件上定义的配置,而不是定义的任何执行。
您需要将配置移动到基本插件,执行安装阶段,或者创建可以触发的配置文件。
https://stackoverflow.com/questions/26316710
复制相似问题