Execution of the *.jar-File after successful building of package possible?

2008-11-09 Thread Ulrich Wolf
Hello,

when I build my project with the goal package I get a *.jar-File, which I
have to execute manually after the compilation  packaging. Is there any way
to automatically execute this file directly after maven has completed this
task? 

[INFO] BUILD SUCCESSFUL = java bla.jar

Thanks in advance!
Best Regards,
Uli


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Execution of the *.jar-File after successful building of package possible?

2008-11-09 Thread Karsten Ohme
Ulrich Wolf schrieb:
 Hello,
 
 when I build my project with the goal package I get a *.jar-File, which I
 have to execute manually after the compilation  packaging. Is there any way
 to automatically execute this file directly after maven has completed this
 task? 
 
 [INFO] BUILD SUCCESSFUL = java bla.jar
 
 Thanks in advance!
 Best Regards,
 Uli
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
use a Maven ant task and run it.

Regards,
Karsten

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Execution of the *.jar-File after successful building of package possible?

2008-11-09 Thread Ulrich Wolf
This plugin did the trick, thank you very much. The documentation is really
strange, but I got it :)

For interested Readers:
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdexec-maven-plugin/artifactId
executions
execution
phasepackage/phase
goals
goalexec/goal
/goals
/execution
/executions
configuration
executablejava/executable
arguments
argument-jar/argument
argumenttarget/${name}.${packaging}/argument
/arguments
/configuration
/plugin

Thank you very much!

Regards,
Uli

-Ursprüngliche Nachricht-
Von: Christian Schulte [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 10. November 2008 00:37
An: Maven Users List
Betreff: Re: Execution of the *.jar-File after successful building of
package possible?

Ulrich Wolf wrote:
 Hello,
 
 when I build my project with the goal package I get a *.jar-File, which
I
 have to execute manually after the compilation  packaging. Is there any
way
 to automatically execute this file directly after maven has completed this
 task? 

The exec-maven-plugin can do this, I think.

http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html

-- 
Christian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Execution of the *.jar-File after successful building of package possible?

2008-11-09 Thread Christian Schulte
Ulrich Wolf wrote:
 Hello,
 
 when I build my project with the goal package I get a *.jar-File, which I
 have to execute manually after the compilation  packaging. Is there any way
 to automatically execute this file directly after maven has completed this
 task? 

The exec-maven-plugin can do this, I think.

http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html

-- 
Christian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]