HI,

I am following an example from the following link, but got error and
using maven building the project.
http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html
I  have downloaded jta-1.1-classes.jar and used maven install it in
the repository.

Output from build process:
....
....
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) javax.transaction:jta:jar:1.0.1B

  Try downloading the file manually from:
      http://java.sun.com/products/jta

  Then, install it using the command:
      mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta -Dve
rsion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file

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

      mvn deploy:deploy-file -DgroupId=javax.transaction -DartifactId=jta -Dvers
ion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) quickstart:quickstart:war:0.1-SNAPSHOT
        2) javax.transaction:jta:jar:1.0.1B

2) 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) quickstart:quickstart:war:0.1-SNAPSHOT
        2) org.apache.struts:struts2-core:jar:2.0.6
        3) com.sun:tools:jar:1.5.0

----------
2 required artifacts are missing.

for artifact:
  quickstart:quickstart:war:0.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 minutes 39 seconds
[INFO] Finished at: Wed Aug 13 01:03:31 EST 2008
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------

D:\DEV\quickstart>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to