We should probably change the dependency to the Geronimo version:

        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-jta_1.1_spec</artifactId>
        </dependency>

Craig
On Jul 7, 2009, at 10:43 PM, Manoj Khangaonkar wrote:

Hi,

I am seeing this build error in code extracted from svn yesterday.

seems like the spring-hibernate sample has a dependency on
javax.transaction.jta.jar which is
missing from the repository. Can someone upload it ? Do I need to open a
JIRA issue ?



[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Shiro :: Samples :: Spring-Hibernate
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
Downloading:
http://repo1.maven.org/maven2/javax/transaction/jta/1.0.1B/jta-1.0.
1B.jar
[INFO] Unable to find resource 'javax.transaction:jta:jar:1.0.1B' in
repository
central (http://repo1.maven.org/maven2)
[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)
org.apache.shiro.samples:samples-sprhib:war:1.0-incubating-SNAPSHOT
       2) org.hibernate:hibernate:jar:3.2.6.ga
       3) javax.transaction:jta:jar:1.0.1B
----------
1 required artifact is missing.
for artifact:
 org.apache.shiro.samples:samples-sprhib:war:1.0-incubating-SNAPSHOT
from the specified remote repositories:
 apache.snapshots (http://repository.apache.org/snapshots),
 central (http://repo1.maven.org/maven2)

Manoj

Craig L Russell
Architect, Sun Java Enterprise System http://db.apache.org/jdo
408 276-5638 mailto:[email protected]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to