I did this using antrun, and putting it in a profile. Note that it
always packages your app first, before running, when attached in this
way.
>mvn -Dimagemap=true package
<profiles>
<profile>
<id>run-imagemap-profile</id>
<activation>
<property>
<name>imagemap</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>run-imagemap-tester</id>
<phase>package</phase>
<configuration>
<tasks>
<java
classname="ca.perceptions.gym.view.components.imageMap.ImageMap"
fork="true" failonerror="true" maxmemory="128m">
<classpath
refid="maven.runtime.classpath"/>
</java>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
On 2-Feb-06, at 1:15 PM, Darryl L. Pierce wrote:
I would like to be able to run an application from the commandline
using
Maven. The ideal thing would be for Maven to create the command line,
especially the classpath, given that it knows my dependencies. Is
such a
thing possible and, if so, how? Thanks.
--
Darryl L. Pierce <[EMAIL PROTECTED]>
Homepage: http://mcpierce.multiply.com/
"McVeigh's lawyer got him the death penalty, which, quite frankly,
I could have done." - Jon Stewart
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Julian Wood <[EMAIL PROTECTED]>
Programmer/Analyst
University of Calgary
http://commons.ucalgary.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]