sar projects conflict with maven-eclipse-plugin
-----------------------------------------------
Key: MECLIPSE-102
URL: http://jira.codehaus.org/browse/MECLIPSE-102
Project: Maven 2.x Eclipse Plugin
Type: Bug
Versions: 2.3, 2.1, 2.2
Environment: debian-linux
java -version:
java version "1.4.2_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode)
mvn -v: Maven version: 2.0.5-SNAPSHOT
Reporter: Andrzej Polanowski
im working with sar project :
{{<plugin>}}
{{<groupId>org.codehaus.mojo</groupId>}}
{{<artifactId>jboss-sar-maven-plugin</artifactId>}}
{{<version>2.0-SNAPSHOT</version>}}
{{<extensions>true</extensions>}}
{{</plugin>}}
and in pom.xml i have declaration:
{{<packaging>sar</packaging>}}
But when i have packaging=sar, then eclipse plugin doesn't create correct
eclipse java project files.
console log looks OK, but...
- i have only one file: .project (and it's very poor, without java nature),
- .calsspath is missing :(
{color:red}
This bug i see only in versions from 2.1 to 2.3-SNAPSHOT.
Version 2.0 looks OK.
{color}
For now i have 2 options: using 2.0 or changing package from sar to jar for
mvn eclipse:ecilpse command and i don't like both :)
incorrect final effect in 2.1, 2.2, 2.3-SNAPSHOT:
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.3-SNAPSHOT:clean
org.apache.maven.plugins:maven-eclipse-plugin:2.3-SNAPSHOT:eclipse
correct in 2.0:
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.0:eclipse
org.apache.maven.plugins:maven-eclipse-plugin:2.0:eclipse
console log:
[INFO] Scanning for projects...
[INFO]
----------------------------------------------------------------------------
[INFO] Building register-server
[INFO] task-segment:
[org.apache.maven.plugins:maven-eclipse-plugin:2.3-SNAPSHOT:clean,
org.apache.maven.plugins:maven-eclipse-plugin:2.3-SNAPSHOT:eclipse]
[INFO]
----------------------------------------------------------------------------
[INFO] [eclipse:clean]
[INFO] Deleting .project file...
[INFO] Deleting .classpath file...
[INFO] Deleting .wtpmodules file...
[INFO] Deleting .component file...
[INFO] Deleting org.eclipse.wst.common.project.facet.core.xml file...
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse]
[INFO] Wrote Eclipse project for "register-server" to
/home/mol-iso/EOGROUP2/register-server.[INFO]
Sources for some artifacts are not available.
Please run the same goal with the -DdownloadSources=true parameter in
order to check remote repositories for sources.
List of artifacts without a source archive:
o jboss:jboss-j2ee:3.2.3
......
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Thu Apr 27 12:08:55 CEST 2006
[INFO] Final Memory: 4M/7M
[INFO] ------------------------------------------------------------------------
.project file created with maven-eclipse-plugin:2.3-SNAPSHOT:
<projectDescription>
<name>register-server</name>
<comment>register-server</comment>
<projects/>
<buildSpec/>
<natures/>
</projectDescription>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira