You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paul Libbrecht <pa...@activemath.org> on 2003/07/02 11:46:59 UTC

Running maven from Ant ?

Hi List,


Running maven is still pretty slow for me as I have to launch the 
command-line everytime. It would be nifty to be able to run maven within 
an ant task, I could then simply input this within the jEdit Ant-runner, 
running in the same VM, which, when equipped with a rich enough 
classpath, is running real real quick!

Any hope ?
Any Maven integration within some IDEs ?

Thanks.

Paul


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Running maven from Ant ?

Posted by Paul Libbrecht <pa...@activemath.org>.
Indeed, it may help,

But have you attempted without forking ?
Some of the parameters of your script seem to be really needing it...

On this case is where I would see real advantages in the speed of  
running...

And I do believe, it should be a requirement that maven has a plug to  
do so at some point. (I have to agree I never found it easy to do it in  
ant).

Paul

On Mercredi, juil 2, 2003, at 12:07 Europe/Paris, Martin Skopp wrote:

> On Wed, 2003-07-02 at 11:46, Paul Libbrecht wrote:
>> Running maven is still pretty slow for me as I have to launch the
>> command-line everytime. It would be nifty to be able to run maven  
>> within
>> an ant task, I could then simply input this within the jEdit  
>> Ant-runner,
>> running in the same VM, which, when equipped with a rich enough
>> classpath, is running real real quick!
>
> I extracted the following from the maven.bat/maven startup script.
> It's a sniplet for ant, possibly it helps
>
> --- SNIP ---
> <java classpath="${env.MAVEN_HOME}/lib/forehead-1.0-beta-4.jar"
> 	classname="com.werken.forehead.Forehead"
> 	maxmemory="256m"
> 	failonerror="true"
> 	fork="true"
> 	>
> 	<arg value="java:compile" />
> 	<arg value="your_other_second_goal_here" />
> 	<sysproperty key="javax.xml.parsers.SAXParserFactory"
> value="org.apache.xerces.jaxp.SAXParserFactoryImpl" />
> 	<sysproperty key="javax.xml.parsers.DocumentBuilderFactory"
> value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
> 	<sysproperty key="java.endorsed.dirs"
> value="=${env.JAVA_HOME}/lib/ 
> endorsed${path.separator}${env.MAVEN_HOME}/lib/endorsed" />
> 	<sysproperty key="forehead.conf.file"
> value="${env.MAVEN_HOME}/bin/forehead.conf" />
> 	<sysproperty key="tools.jar" value="${env.JAVA_HOME}/lib/tools.jar" />
> 	<sysproperty key="maven.home" value="${env.MAVEN_HOME}" />
> </java>
> --- SNIP ---
>
>> Any hope ?
>> Any Maven integration within some IDEs ?
>
> There's http://sourceforge.net/projects/mevenide but it looks  
> stalled...
> Is that projetc dead, Dion?
>
> cheers,
> -- 
> Martin Skopp
> Riege Software International GmbH
> Support: mailto:maint@riege.com, Information: http://www.riege.com
>
> This email is intended to be viewed with a nonproportional font.
> Public Key on http://www.keyserver.net, Key-ID: 3D4027B5
> Fingerprint: 1970 C78D 9A1D 99FA 5CE4  5C0D 29E6 6A95 3D40 27B5
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Running maven from Ant ?

Posted by di...@multitask.com.au.
Martin Skopp <sk...@riege.de> wrote on 02/07/2003 08:07:42 PM:

> > Any hope ?
> > Any Maven integration within some IDEs ?
> 
> There's http://sourceforge.net/projects/mevenide but it looks stalled...
> Is that projetc dead, Dion?
Nope, it's not dead.....

> 
> cheers,
> -- 
> Martin Skopp
> Riege Software International GmbH
> Support: mailto:maint@riege.com, Information: http://www.riege.com

--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/
Work:      http://www.multitask.com.au



Re: Running maven from Ant ?

Posted by Martin Skopp <sk...@riege.de>.
On Wed, 2003-07-02 at 11:46, Paul Libbrecht wrote:
> Running maven is still pretty slow for me as I have to launch the 
> command-line everytime. It would be nifty to be able to run maven within 
> an ant task, I could then simply input this within the jEdit Ant-runner, 
> running in the same VM, which, when equipped with a rich enough 
> classpath, is running real real quick!

I extracted the following from the maven.bat/maven startup script.
It's a sniplet for ant, possibly it helps

--- SNIP ---
<java classpath="${env.MAVEN_HOME}/lib/forehead-1.0-beta-4.jar"
	classname="com.werken.forehead.Forehead"
	maxmemory="256m"
	failonerror="true"
	fork="true"
	>
	<arg value="java:compile" />
	<arg value="your_other_second_goal_here" />
	<sysproperty key="javax.xml.parsers.SAXParserFactory"
value="org.apache.xerces.jaxp.SAXParserFactoryImpl" />
	<sysproperty key="javax.xml.parsers.DocumentBuilderFactory"
value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
	<sysproperty key="java.endorsed.dirs"
value="=${env.JAVA_HOME}/lib/endorsed${path.separator}${env.MAVEN_HOME}/lib/endorsed" />
	<sysproperty key="forehead.conf.file"
value="${env.MAVEN_HOME}/bin/forehead.conf" />
	<sysproperty key="tools.jar" value="${env.JAVA_HOME}/lib/tools.jar" />
	<sysproperty key="maven.home" value="${env.MAVEN_HOME}" />
</java>
--- SNIP ---

> Any hope ?
> Any Maven integration within some IDEs ?

There's http://sourceforge.net/projects/mevenide but it looks stalled...
Is that projetc dead, Dion?

cheers,
-- 
Martin Skopp
Riege Software International GmbH
Support: mailto:maint@riege.com, Information: http://www.riege.com
 
This email is intended to be viewed with a nonproportional font.
Public Key on http://www.keyserver.net, Key-ID: 3D4027B5
Fingerprint: 1970 C78D 9A1D 99FA 5CE4  5C0D 29E6 6A95 3D40 27B5



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org