"Unable to resolve artifact" problem

2 messages Options
Embed this post
Permalink
Eric Martin

"Unable to resolve artifact" problem

Reply Threaded More More options
Print post
Permalink
Hello,

I have been able to run a few of the appfuse-light projects, but I am having problem with the Struts2 one. I downloaded appfuse-light-all-1.8-beta.zip and ran "ant new". In my new project folder, I ran mvn eclipse:eclipse and modified files to use MySQL. When I run anything from ant, I get the following:

=======================================================

Buildfile: C:\JavaProjects\Struts2\build.xml
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: required artifacts missing:
[artifact:dependencies]   com.sun:tools:jar:1.5.0
[artifact:dependencies]
[artifact:dependencies] for the artifact:
[artifact:dependencies]   org.appfuse:Struts2:war:1.8-beta
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   java.net (http://download.java.net/maven/2),
[artifact:dependencies]   central (http://repo1.maven.org/maven2)
[artifact:dependencies]
[artifact:dependencies]

BUILD FAILED
C:\JavaProjects\Struts2\build.xml:31: Unable to resolve artifact: required artifacts missing:
  com.sun:tools:jar:1.5.0

for the artifact:
  org.appfuse:Struts2:war:1.8-beta

from the specified remote repositories:
  java.net (http://download.java.net/maven/2),
  central (http://repo1.maven.org/maven2)

Total time: 953 milliseconds

=======================================================

I've read some similar issues, but can't seem to get it working. Any help would be appreciated.

Thanks,
Eric
mraible

Re: "Unable to resolve artifact" problem

Reply Threaded More More options
Print post
Permalink
This happens when your JAVA_HOME is pointing to a JRE instead of a JDK.

Matt


On 8/2/07, emartin24 <[hidden email]> wrote:

>
> Hello,
>
> I have been able to run a few of the appfuse-light projects, but I am having
> problem with the Struts2 one. I downloaded appfuse-light-all-1.8-beta.zip
> and ran "ant new". In my new project folder, I ran mvn eclipse:eclipse and
> modified files to use MySQL. When I run anything from ant, I get the
> following:
>
> =======================================================
>
> Buildfile: C:\JavaProjects\Struts2\build.xml
> [artifact:dependencies] An error has occurred while processing the Maven
> artifact tasks.
> [artifact:dependencies]  Diagnosis:
> [artifact:dependencies]
> [artifact:dependencies] Unable to resolve artifact: required artifacts
> missing:
> [artifact:dependencies]   com.sun:tools:jar:1.5.0
> [artifact:dependencies]
> [artifact:dependencies] for the artifact:
> [artifact:dependencies]   org.appfuse:Struts2:war:1.8-beta
> [artifact:dependencies]
> [artifact:dependencies] from the specified remote repositories:
> [artifact:dependencies]   java.net (http://download.java.net/maven/2),
> [artifact:dependencies]   central (http://repo1.maven.org/maven2)
> [artifact:dependencies]
> [artifact:dependencies]
>
> BUILD FAILED
> C:\JavaProjects\Struts2\build.xml:31: Unable to resolve artifact: required
> artifacts missing:
>   com.sun:tools:jar:1.5.0
>
> for the artifact:
>   org.appfuse:Struts2:war:1.8-beta
>
> from the specified remote repositories:
>   java.net (http://download.java.net/maven/2),
>   central (http://repo1.maven.org/maven2)
>
> Total time: 953 milliseconds
>
> =======================================================
>
> I've read some similar issues, but can't seem to get it working. Any help
> would be appreciated.
>
> Thanks,
> Eric
> --
> View this message in context:
> http://www.nabble.com/%22Unable-to-resolve-artifact%22-problem-tf4209291s2369.html#a11974014
> Sent from the Equinox Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]