Raymond Feng wrote:
Can you try the following?
mvn eclipse:clean
mvn -Peclipse -U
Thanks,
Raymond
Sure.
Here is a sample:
C:\Tuscany_2_B\java\sca\modules\implementation-spring-xml>mvn -Peclipse -U
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Tuscany SCA Implementation Spring XML Model
[INFO] task-segment:
[org.apache.tuscany.maven.plugins:maven-bundle-plugin:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing bundle:eclipse
[INFO] No goals needed for project - skipping
[INFO] [bundle:eclipse]
[INFO] Using Eclipse Workspace: C:\Tuscany_2_B\java\sca
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Program
Files\Java\jre1.6.0_07
[INFO] Adding default classpath container:
org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5
[INFO] snapshot org.apache.tuscany.sca:tuscany-assembly-xml:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-assembly:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-policy:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-extensibility:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-interface:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-definitions:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-monitor:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-contribution:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-contribution-xml:2.0-SNAPSHOT: checking for updates
from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-contribution-namespace:2.0-SNAPSHOT: checking for
updates from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-core-spi:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-sca-api:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-contribution-java:2.0-SNAPSHOT: checking for updates
from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-implementation-java:2.0-SNAPSHOT: checking for
updates from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-interface-java:2.0-SNAPSHOT: checking for updates
from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-implementation-spring:2.0-SNAPSHOT: checking for
updates from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-implementation-java-runtime:2.0-SNAPSHOT: checking
for updates from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-implementation-java-xml:2.0-SNAPSHOT: checking for
updates from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-interface-java-xml:2.0-SNAPSHOT: checking for updates
from apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-databinding:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-xsd:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] snapshot org.apache.tuscany.sca:tuscany-core:2.0-SNAPSHOT: checking for updates from
apache.snapshots
[INFO] File C:\Tuscany_2_B\java\sca\modules\implementation-spring-xml\.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 "tuscany-implementation-spring-xml" to
C:\Tuscany_2_B\java\sca\modules\implementation-spring-xml.
[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 junit:junit:4.5
o org.codehaus.woodstox:wstx-asl:3.2.4
Javadoc for some artifacts is not available.
Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote
repositories for javadoc.
List of artifacts without a javadoc archive:
o junit:junit:4.5
o org.codehaus.woodstox:wstx-asl:3.2.4
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Thu Apr 23 08:26:02 BST 2009
[INFO] Final Memory: 10M/254M
[INFO] ------------------------------------------------------------------------
C:\Tuscany_2_B\java\sca\modules\implementation-spring-xml>
-------------------------------------------------------------
So, the plugin is making a decision based on this, it appears:
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C:\Program
Files\Java\jre1.6.0_07
How it comes to this conclusion would be interesting to know. My JRE runs Eclipse and runs all my
Tuscany applications quite happily. But the "solution" of dumping in some random VM instead is worse
than the problem!! This piece of code in the plugin should be revisited.
I suspect that there is some new/changed code in this area since this problem first appeared for me
yesterday. Whatever the code is, it would be best to remove it until this issue has been corrected.
Yours, Mike.