You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ojak <oj...@acl-wireless.com> on 2007/01/10 11:57:26 UTC

Compiling maven project from eclipse project

Hi
    I want to know how a maven project is compiled using eclipse
 
Thanks
Ojak



Re: Compiling maven project from eclipse project

Posted by Thierry Lach <th...@gmail.com>.
You can execute the maven command line inside of eclipse if you have the
maven plugin installed.  Right click on pom.xml and select the "Run As" menu
option, then select "Maven build".  The results appear in a standard eclipse
console.  IMNSHO much handier than switching between different windows.

On 1/10/07, Adrian M. <ad...@nerdshack.com> wrote:
>
> I think you should use the mvn on command line.
> It's nice to use the maven plugin in eclipse, but building on cmd is
> much nicer
>
> Ojak schrieb:
> > Hi
> >     I want to know how a maven project is compiled using eclipse
> >
> > Thanks
> > Ojak
> >
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Compiling maven project from eclipse project

Posted by hg...@Teleplan.no.
I agree that the command line is the better option, but running tasks
from Eclipse is possible as well. If you're using the plugin, be sure to
"Update Source Folders" as well, from the maven plugin menu, then
Eclipse will see the correct dependencies as well.
You might want to configure the target directories for the Eclipse
builds also, default is to build to ${project.loc}/bin, and might not be
what you want.

-hg

-----Original Message-----
From: Adrian M. [mailto:adrian_@nerdshack.com] 
Sent: 10. januar 2007 12:13
To: Maven Users List
Subject: Re: Compiling maven project from eclipse project

I think you should use the mvn on command line.
It's nice to use the maven plugin in eclipse, but building on cmd is 
much nicer

Ojak schrieb:
> Hi
>     I want to know how a maven project is compiled using eclipse
>  
> Thanks
> Ojak
>
>
>
>   



---------------------------------------------------------------------
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: Compiling maven project from eclipse project

Posted by "Adrian M." <ad...@nerdshack.com>.
I think you should use the mvn on command line.
It's nice to use the maven plugin in eclipse, but building on cmd is 
much nicer

Ojak schrieb:
> Hi
>     I want to know how a maven project is compiled using eclipse
>  
> Thanks
> Ojak
>
>
>
>   



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


Re: Compiling maven project from eclipse project

Posted by Gaute Lote <ga...@gmail.com>.
 I think you can add the maven-eclipse-plugin to you pom to make it work.
I got this from a friend some months ago so I wouldn't always need to enable
aspectj in eclipse everytime
I ran mvn eclipse.

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<outputDirectory>target/ajdtclasses</outputDirectory>
<projectnatures>
<projectnature>org.eclipse.ajdt.ui.ajnature</projectnature>
<projectnature>org.eclipse.jdt.core.javanature</projectnature>
</projectnatures>
<buildcommands>
<buildcommand>org.eclipse.ajdt.core.ajbuilder</buildcommand>
</buildcommands>
</configuration>
</plugin>

Gaute

On 1/10/07, Trent Nelson <tn...@onresolve.com> wrote:
>
>
> > Hello,
> >  you have to use m2 plugin for eclipse and make sure that your eclipse
> > project is maven enabled.
> > check plugin here  http://m2eclipse.codehaus.org/
> >
> > once installed, have you project imported in your workspace, you
> should
> > right-click on them and choose Maven2-->enable
>
> Is there any way to get 'mvn eclipse:eclipse' to automatically add the
> Maven2 plugin nature to the generated .project file?  It gets a bit
> tiresome having to continually re-enable the Maven2 plugin for each
> project, especially if you need to 'mvn eclipse:clean' often.
>
>         Trent.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Compiling maven project from eclipse project

Posted by Trent Nelson <tn...@onresolve.com>.
> Hello,
>  you have to use m2 plugin for eclipse and make sure that your eclipse
> project is maven enabled.
> check plugin here  http://m2eclipse.codehaus.org/
> 
> once installed, have you project imported in your workspace, you
should
> right-click on them and choose Maven2-->enable

Is there any way to get 'mvn eclipse:eclipse' to automatically add the
Maven2 plugin nature to the generated .project file?  It gets a bit
tiresome having to continually re-enable the Maven2 plugin for each
project, especially if you need to 'mvn eclipse:clean' often.

	Trent.

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


Re: Compiling maven project from eclipse project

Posted by Marco Mistroni <mm...@gmail.com>.
Hello,
 you have to use m2 plugin for eclipse and make sure that your eclipse
project is maven enabled.
check plugin here  http://m2eclipse.codehaus.org/

once installed, have you project imported in your workspace, you should
right-click on them and choose Maven2-->enable

hth
 marco


On 1/10/07, Ojak <oj...@acl-wireless.com> wrote:
>
> Hi
>     I want to know how a maven project is compiled using eclipse
>
> Thanks
> Ojak
>
>
>
>