I want to trying maven-jboss-plugi开发者_如何学JAVAn but I don't know what is this,and I want to deploy the war use the jboss-maven-plugin or maven-jboss-plugin?How to use?
Maven-JBoss-plugin is deprecated.
Use jboss-maven-plugin
as per the example here
Maybe you can use the maven-cargo-plugin ?
For AS7, one can use the plugin provided by JBOSS itself.
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.4.Final</version>
</plugin>
One of the features I liked was the add-resource-goal.
It lets you add resources like datasource and JMS to your JBOSS server from your project's pom.xml.
Find more details here and here (deploy example).
精彩评论