[
https://issues.jboss.org/browse/FORGE-137?page=com.atlassian.jira.plugin....
]
Kevin Sapper commented on FORGE-137:
------------------------------------
Hey Lincoln,
here is an example on how I thought to implement this issue for *mvn compile -Pexplode*
{code:xml}
<profile>
<id>explode</id>
<build>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webappDirectory>${exploded.dir}</webappDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
<executions>
<!-- execute goal war:explode with prepare-package phase -->
<execution>
<id>explode</id>
<phase>compile</phase>
<goals>
<goal>exploded</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Manual mode -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>copy-as-deployment-descriptors</id>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<touch file="${exploded.dir}.dodeploy" />
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
{code}
Though this works it gets really ant like messy if you plan to implement this for all
deploy and explode goals.
Another approach I thought of is to use the the jboss as7 maven plugin. But as they only
support deploying this isn't really a complete solution. This also leave the question
open on how he implementation for Glassfish will look like?
What do you think?
//Kevin
Add explode and deploy goals to pom.xml during scaffold generation
------------------------------------------------------------------
Key: FORGE-137
URL:
https://issues.jboss.org/browse/FORGE-137
Project: Forge
Issue Type: Enhancement
Components: Forge Build, Maven Integration
Environment: JBoss 7, JBoss 6, Glassfish 3.1
Reporter: Kevin Sapper
Hi Guys,
One of the most compelling features about seam-gen is that after you've build the
projects scaffold deploying and exploding to an application server just goes by calling an
ant target. It really would be nice to have such a goal in the projects pom.xml after
creating the scaffold and boilerplate code. Adding that functionality yourself really
takes an awful lot of time. Especially with glassfish 3.1 I failed to accomplish that
task.
Best regards//Kevin
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira