Hi,

1) Remote the project from the eclipse workspace,
2) delete .project .settings *AND* .classpath,
3) import as maven project.

This is already a java project (by default), you should not have to add the
java nature manually.


On Sun, Dec 16, 2012 at 5:17 PM, guillaume LE LOUËT <
[email protected]> wrote:

> Hi guys. I created a simple project and imported it in eclipse. The
> project is added the java nature. Even if I delete .project and .settings,
> then re-import the project using m2e or update the proejct. If I add the
> java nature, the soruces are not src/main/java but src/ instead, and the
> dependencies I can add are not provided by maven anymore.
>
> project pom.xml :
> <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>test</groupId>
>   <artifactId>test</artifactId>
>   <version>0.0.1-SNAPSHOT</version>
>   <name>test</name>
>   <description>test</description>
> </project>
>
> eclipse
> Version: 4.2.1
> Build id: M20120914-1800
>
> m2e plugin :
> identifier : org.eclipse.m2e.feature.feature.group
> version : 1.2.0.20120903-1050
>
> generated .project :
> <?xml version="1.0" encoding="UTF-8"?>
> <projectDescription>
>     <name>test</name>
>     <comment></comment>
>     <projects>
>     </projects>
>     <buildSpec>
>         <buildCommand>
>             <name>org.eclipse.m2e.core.maven2Builder</name>
>             <arguments>
>             </arguments>
>         </buildCommand>
>     </buildSpec>
>     <natures>
>         <nature>org.eclipse.m2e.core.maven2Nature</nature>
>     </natures>
> </projectDescription>
>
> It actually affect a real project I use, but I prefered to test with
> smaller project. The matter is, I have no clue what to do.
>
> thank you for your replies.
>
> _______________________________________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>


-- 
Adrien Rivard
06 63 08 79 74
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to