【发布时间】:2015-01-22 00:17:22
【问题描述】:
当我使用wildfly-maven-plugin 时,我得到了一个奇怪的行为。我认为这是我的错误,但我无法弄清楚问题所在。
我在wildfly-maven-plugin 下定义了一个目标,所以当我使用maven install 时,一切都很好,耳朵将要部署。
我不想自动部署耳朵,所以我删除了executions部分,我使用了mvn wildfly:deploy,但出现错误。如果我不删除此部分,则影响相同。
[ERROR] No plugin found for prefix 'wildfly' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo]
pom.xml
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.0.2.Final</version>
<configuration>
<filename>${project.name}-${parent.artifactId}-${version}.ear</filename>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>redeploy</goal>
</goals>
</execution>
</executions>
</plugin>
-X 命令没有提供任何有用的信息。
【问题讨论】:
标签: maven deployment wildfly