我已将jboss maven插件配置如下,并且工作正常。
我的问题是maven如何在运行时知道jboss部署位置,因为maven正在Jboss服务器中部署应用程序?我还没有配置jboss部署位置,那么它是如何完成的?
插件的配置如下......
<build>
<finalName>Demo1</finalName>
<defaultGoal>clean install jboss-as:redeploy</defaultGoal>
<plugins>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.1.1.Final</version>
<configuration>
<hostname>localhost</hostname>
<username>rchappidi</username>
<password>password</password>
<force>true</force>
<port>9999</port>
<name>Demo1.war</name>
</configuration>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
答案 0 :(得分:0)
您确定此配置是否有效并且可以执行您想要执行的操作吗?
阅读插件文档,看起来您必须将targetDir
设置为您希望部署应用程序的目标目录。引用文档,
targetDir :要部署的应用程序的目标目录 位于。
Type: java.io.File Required: No User Property: jboss-as.deployment.targetDir Default: ${project.build.directory}/