Hi Tom/Beve,
I've been trying to automate some ESB tests with Maven.
Questions:
- There seems to be two Maven plugins which package .esb files (jboss-maven-plugin and
jboss-packaging-maven-plugin). Which one is the "official"?
- How do you guys automate deploy and undeploy by JMX? I've been trying with the
following pom, but without sucess. Harddeploy works, but just copy the package to /deploy
directory.
pom.xml
<plugin>
| <groupId>org.codehaus.mojo</groupId>
| <artifactId>jboss-maven-plugin</artifactId>
| <version>1.3.1</version>
| <executions>
| <execution>
| <id>undeploy</id>
| <phase>clean</phase>
| <goals>
| <goal>undeploy</goal>
| </goals>
| </execution>
| <execution>
| <id>harddeploy</id>
| <phase>package</phase>
| <goals>
| <goal>harddeploy</goal>
| </goals>
| </execution>
| </executions>
| <configuration>
| <jbossHome>${user.home}/java/jboss-4.2.0.GA</jbossHome>
| <serverName>default</serverName>
| <hostName>localhost</hostName>
| <port>8080</port>
| <deployUrlPath>
|
<![CDATA[/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=deploy&argType=java.net.URL&arg0=]]>
| </deployUrlPath>
| <undeployUrlPath>
|
<![CDATA[/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=undeploy&argType=java.net.URL&arg0=]]>
| </undeployUrlPath>
|
<fileName>${project.build.directory}/${project.build.finalName}.esb</fileName>
| </configuration>
| </plugin>
terminal
[asalvati@localhost EntradaNotas]$ mvn -e jboss:undeploy
| + Error stacktraces are turned on.
| [INFO] Scanning for projects...
| [INFO] Searching repository for plugin with prefix: 'jboss'.
| [INFO] ------------------------------------------------------------------------
| [INFO] Building EntradaNotas
| [INFO] task-segment: [jboss:undeploy]
| [INFO] ------------------------------------------------------------------------
| [INFO] [jboss:undeploy]
| [INFO] Undeploying
/home/asalvati/java/workspace/EntradaNotas/target/EntradaNotas-1.0-SNAPSHOT.esb from
JBoss.
| [INFO] No server specified for authentication - using defaults
| [INFO] ------------------------------------------------------------------------
| [INFO] BUILD SUCCESSFUL
| [INFO] ------------------------------------------------------------------------
| [INFO] Total time: < 1 second
| [INFO] Finished at: Wed Apr 30 17:58:46 GMT-05:00 2008
| [INFO] Final Memory: 4M/53M
| [INFO] ------------------------------------------------------------------------
| [asalvati@localhost EntradaNotas]$
|
|
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148015#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...