Hi all,

I have a maven EAR application within RAD in which I used the
Maven-eclipse-plugin version 2.5.1 to integrate with the IDE and run on WAS
6.1 .
I recently upgraded the plugin from 2.5.1 to 2.6 and after issuing an
"eclipse:eclipse" command on the project, the project's facets disappear,
some errors are generated stating the following:
*
Project facet EAR 1.4 is not supported by target runtime WebSphere
Application Server v5.1 Express stub.
Project facet WebSphere Web (Co-existence) 6.1 is not supported by target
runtime WebSphere Application Server v5.1 Express stub.
Project facet WebSphere Web (Extended) 6.1 is not supported by target
runtime WebSphere Application Server v5.1 Express stub.

*Please* *see  below the output of the before and after execution of the
eclipse-eclipse command on the newer version 2.6 followed by the trial with
the older version 2.5.1

* *The execution of the "eclipse:eclipse" command produces this output in
the console:

Working Directory: C:\WS\DEMO\app-ear
> mvn eclipse:eclipse -DdownloadSources=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]
------------------------------------------------------------------------
[INFO] Building <version>2.5.1</version>-ear
[INFO]    task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] [ear:generate-application-xml]
[INFO] Generating application.xml
[INFO] [eclipse:eclipse]
[INFO] Adding support for WTP version 1.5.
[INFO] Using Eclipse Workspace: C:\WS\DEMO
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\jdk
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\runtimes\base_v51_stub\java\jre
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\runtimes\base_v51_stub\java\jre
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\runtimes\base_v6_stub\java\jre
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\runtimes\base_v61\java\jre
[INFO] no substring wtp server match.
[INFO] Using as WTP server : WebSphere Application Server v5.1 Express stub
[INFO] Adding default classpath container:
org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Not writing settings - defaults suffice
[INFO] File C:\WS\DEMO\app-ear\.project already exists.
       Additional settings will be preserved, run mvn eclipse:clean if you
want old settings to be removed.
[INFO] Wrote Eclipse project for "app-ear" to C:\WS\DEMO\app-ear.
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Apr 06 15:15:46 CDT 2009
[INFO] Final Memory: 10M/19M
[INFO]
------------------------------------------------------------------------


When running the command with the 2.5.1. specified, here is the output:

Working Directory: C:\WS\DEMO\app-ear
> mvn eclipse:eclipse -DdownloadSources=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]
------------------------------------------------------------------------
[INFO] Building app-ear
[INFO]    task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] [ear:generate-application-xml]
[INFO] Generating application.xml
[INFO] [eclipse:eclipse]
[INFO] Adding support for WTP version 1.5.
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner:
org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Using source status cache:
C:\WS\DEMO\app-ear\target\mvn-eclipse-cache.properties
[INFO] Not writing settings - defaults suffice
[INFO] File C:\WS\DEMO\app-ear\.project already exists.
       Additional settings will be preserved, run mvn eclipse:clean if you
want old settings to be removed.
[INFO] Wrote Eclipse project for "app-ear" to C:\WS\DEMO\app-ear.
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Apr 06 15:16:23 CDT 2009
[INFO] Final Memory: 8M/16M
[INFO]
------------------------------------------------------------------------


Is this is a known issue or am I doing something wrong ? This is what I have
to in my pom to fix the issue:

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-eclipse-plugin</artifactId>
                <version>2.5.1</version>    <!-- REMOVING THIS breaks
eclipse -->
                <configuration>
                     <wtpversion>1.5</wtpversion>
                 </configuration>
 </plugin>


Thanks much

Reply via email to