Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] m2e does not produce correct .project.

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.

Back to the top