1
我有这种依赖关系,在我的POM文件神器部署目标配置:Wildfly Maven插件错误:部署神器必须指定的artifactId
....
<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 wildfly:部署神器我recive此错误消息:
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]
似乎在执行目标时的配置部分不读!我错在哪里?有人可以帮助我吗?
好的!感谢詹姆斯! – orion91 2014-10-14 12:41:01