Hi,

If you use Juno with the corresponding m2e , you *MUST NOT* use
eclipse:eclipse.
if you already have remove the .project .classpath and  .settings first,

Then import the project as existing maven project.

 (in eclipse, File > import > Existing maven projects > select the project
folder ...)

Also it is generaly not a good idea to use mvn install (prefer mvn
package), especially if you intend to use with m2e/eclipse.

If you have errors after the import, you may have a look at
http://wiki.eclipse.org/M2E_plugin_execution_not_covered .


On Fri, Apr 5, 2013 at 1:56 PM, Hossein Miri <hm...@me.com> wrote:

> Thank you . .
>
> I did the first two things, by moving to the folder that contains the
> pom.xml file
> and then running the following two commands in the Terminal:
>
>  mvn clean install
>  mvn eclipse:eclipse
>
> What do you mean by your last sentence?
>
> and then import maven project from eclipse.
>
>
> Do you mean in the Eclipse Juno IDE?
>
> When I go to Eclipse , Help , Install New Software and look at What is
> already installed
> it shows that m2e - Maven Integration for Eclipse is already installed.
>
> Is that what you mean?
> Hossein
>
>
>
> hi Hossein, first, go to the folder project, where is pom.xml and execute
> mvn clean install, that sentences clean, compile and deploy the project
> into repository. Second, execute mvn eclipse:eclipse
> and then import maven project from eclipse.
>
> Let us know how about was.
>
> regards
>
> Alonso Isidoro Roman.
>
>
>
>
> Hi everyone,
>>
>> I have a folder that contains some Java code, written specifically for
>> Linux.
>> There is a pom.xml file and two folders called: src and build
>>
>> I have installed Eclipse Juno on my Mac (10.7.5) and I understand
>> it already has Maven included. On the Linux machine, the code is
>> executed by entering mvn package at the command line.
>>
>> But after this stage, it doesn't run on my Mac, because some of the
>> commands are specific to Linux (I am told). How do I import the
>> whole project into Maven on my Mac? I mean where do I copy
>> the folders and pom file?
>>
>> p.s. I am only just beginning to learn Java programming using the
>>       Eclipse IDE and my installation details are in the image
>> attached...
>>
>> Thank you,
>>  H
>>
>
>
>
>
>
>
>


-- 
Adrien Rivard

Reply via email to