You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by Manoj Khangaonkar <kh...@gmail.com> on 2009/07/08 07:43:57 UTC

build error in sample spring-hibernate

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

Re: build error in sample spring-hibernate

Posted by Maarten Bosteels <mb...@gmail.com>.
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html

regards,
Maarten

On Wed, Jul 8, 2009 at 7:43 AM, Manoj Khangaonkar <kh...@gmail.com>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
>

Re: build error in sample spring-hibernate

Posted by Les Hazlewood <lh...@apache.org>.
+1

This is what I've done on other projects and it has worked as expected.

On Wed, Jul 8, 2009 at 12:11 PM, Craig L Russell <Cr...@sun.com>wrote:

> 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:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
>
>

Re: build error in sample spring-hibernate

Posted by Craig L Russell <Cr...@Sun.COM>.
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:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!