I am using the following tools:

   - Windows XP sp3
   - Eclipse Galileo 3.5.1 - installed at C:\eclipse with eclipse.ini
   configured to point to my JDK, not JRE.
   - Maven 2.2.1 - installed at C:\apache-maven-2.2.1
   - MySQL - installed at C:\Program Files\MySQL\MySQL Server 5.1
   - JDK 1.6.17 - installed at C:\SDKs
   - JAVA_HOME system environment variable is pointing my JDK installation.
   - PATH system environment variable includes paths to JAVA_HOME,
   MAVEN_HOME, and MYSQL_HOME which all point to their respective
   installations.


When I run the command, *mvn eclipse:eclipse*, I receive the following
error:
C:\workspace\almm>mvn eclipse:eclipse
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building AppFuse Struts 2 Application
[INFO]    task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.sun:tools:jar:1.5.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=com.sun -DartifactId=tools
-Dversion=1.
5.0 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there:

      mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools
-Dversion=1.5.
0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) xxx.xx.xxxx:xxxx:war:1.0-SNAPSHOT
        2) org.apache.struts:struts2-core:jar:2.1.8
        3) com.sun:tools:jar:1.5.0
----------
1 required artifact is missing.

for artifact:
  xxx.xx.xxxx:xxxx:war:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  appfuse-snapshots (
http://oss.sonatype.org/content/repositories/appfuse-snapsh
ots)

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Sun Jan 10 16:52:49 EST 2010
[INFO] Final Memory: 21M/38M
[INFO]
------------------------------------------------------------------------

So I run the command, *mvn install:install-file -DgroupId=com.sun
-DartifactId=tools -Dversion=1.5.0 -Dpackaging=jar
-Dfile=C:\SDKs\lib\tools.jar*, to install the tools.jar and I verify that it
exists in the correct location.  Then I run the command, *mvn
eclipse:eclipse*, again and it still fails with the same error.

I checked a lot of the documentation online and the solutions say to ensure
that Eclipse is being run using a JDK, not a JRE.  I believe I ensured this
with the -vm arguments that I included in my eclipse.ini file.  But this
issue is occuring when I run the *mvn eclipse:eclipse* from the command
prompt.

Any ideas?

Thank you,

Rachel

Reply via email to