You need to make sure that your JAVA_HOME environment variable points to the
install directory of a JDK and not a JRE. This should solve your problem.

Mike.

On 25/02/2008, khalid el hayani <[EMAIL PROTECTED]> wrote:
>
> Hi
> i am new in appFuse and i start to read the QuickStart guide but when
> i run mvn to download JARs, Tomcat..
> i get this problem:
>
> [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) com.mycompany.app:myproject:war:1.0-SNAPSHOT
>        2) org.appfuse:appfuse-struts:warpath:2.0.1
>        3) org.apache.struts:struts2-core:jar:2.0.11
>        4) com.sun:tools:jar:1.5.0
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> com.mycompany.app:myproject:war:1.0-SNAPSHOT
>
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> appfuse (http://static.appfuse.org/repository)
>
> so i need your help to resolve this problem
>
>
> ------------------------
> el hayani khalid
> ------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to