|
|
|
|
|
|
|
|
Re: Mars shows source folder multiple times [message #1711433 is a reply to message #1710600] |
Fri, 16 October 2015 03:54 |
Magnus Warker Messages: 16 Registered: October 2012 |
Junior Member |
|
|
Hello,
here are for comparison both views, project explorer and package explorer:
Project Explorer:
Package Explorer:
The package explorer view seems ok. I normally do not use it, but I don't see any duplicate entries in the above screenshot.
Here are the .project and .classpath files:
.project:
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>msw-lib-asi</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
.classpath:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
Please note that the problem also occurrs when I create the project without calling mvn eclipse:eclipse!
Here are the steps to reproduce it:
- Create Maven project (see below). Do nothing more!
- In Eclipse: File -> Import -> Existing Maven Projects
Here is how I create the Maven project:
mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO]
[INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO]
[INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Interactive mode
Define value for property 'groupId': : msw.lib.asi
Define value for property 'artifactId': : msw-lib-asi
Define value for property 'version': 1.0-SNAPSHOT: :
Define value for property 'package': msw.lib.asi: :
Confirm properties configuration:
groupId: msw.lib.asi
artifactId: msw-lib-asi
version: 1.0-SNAPSHOT
package: msw.lib.asi
Y: :
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: msw.lib.asi
[INFO] Parameter: packageName, Value: msw.lib.asi
[INFO] Parameter: package, Value: msw.lib.asi
[INFO] Parameter: artifactId, Value: msw-lib-asi
[INFO] Parameter: basedir, Value: /home/wagner/dvl/prj
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: /home/wagner/dvl/prj/msw-lib-asi
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 40.299 s
[INFO] Finished at: 2015-10-16T05:44:39+02:00
[INFO] Final Memory: 14M/241M
[INFO] ------------------------------------------------------------------------
As a result, the problem occurrs with and without calling mvn eclipse:eclipse. So I don't know if it's useful.
But since I do not do anything except project creation and eclipse import, I don't know what I am doing wrong.
I believe this behavior must be the same for you all...
What can I do?
Thank you
Magnus
-
Attachment: eclipse.png
(Size: 29.44KB, Downloaded 2262 times) -
Attachment: eclipse-2.png
(Size: 16.93KB, Downloaded 2297 times)
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05075 seconds