Reputation:
In the run configurations, when we make the goals like => clean install jboss:hard-deploy
, it works with jboss 4 and 5 but not with 6 and 7 !!
Do you have any idea
Upvotes: 0
Views: 4253
Reputation: 900
Have this in your POM file:-
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>{your jboss version}</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<hostname>localhost</hostname>
<username>{your username}</username>
<password>{your passwprd}</password>
<jbossHome>{jboss home}</jbossHome>
<fileName>{path to war}</fileName>
</configuration>
</execution>
</executions>
</plugin>
Create a maven run configuration for your project in eclipse for
jboss-as:deploy
.
Run the configuration.
Upvotes: 2