Meaningless Drivel is fun!*
The moose likes Ant, Maven and Other Build Tools and the fly likes error while running maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "error while running maven" Watch "error while running maven" New topic
Author

error while running maven

shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
hi,

i am getting following error while using mvn compile exec:java command

Failure to find javax.transaction:jta:jar:1.0.1B in http://repo1.maven.org/maven2 was cached in the local
repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced


my pom.xml is as follows




i am using maven version 3.0.3

thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

That error usually means that only some of the information for that artifact appears in your local repository. You can usually overcome that by either removing the artifact's directory from your local repository, or by running mvn with the -U parameter.

Another possibility is that the remote repository does not contain the full artifact information (it might have the pom or other metadata files, but not the jar itself). I looked a Maven Central and for version 1.0.1B, there is no JAR file, only a POM. There is a 1.1 version that does have a JAR. You will have to find out which of your dependencies is pulling in the 1.0.1B version, pass the -X option to mvn to get that information. Once you know that, there are several ways to proceed: switch to a different version of that dependency (usually the best course of action), or configure the dependency to ignore the JTA sub-depenendency.


JBoss In Action
shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43
Peter Johnson wrote:That error usually means that only some of the information for that artifact appears in your local repository. You can usually overcome that by either removing the artifact's directory from your local repository, or by running mvn with the -U parameter.

Another possibility is that the remote repository does not contain the full artifact information (it might have the pom or other metadata files, but not the jar itself). I looked a Maven Central and for version 1.0.1B, there is no JAR file, only a POM. There is a 1.1 version that does have a JAR. You will have to find out which of your dependencies is pulling in the 1.0.1B version, pass the -X option to mvn to get that information. Once you know that, there are several ways to proceed: switch to a different version of that dependency (usually the best course of action), or configure the dependency to ignore the JTA sub-depenendency.


i included below repository in my pom.xml,now it works fine



cheers
Hantsy Bai
Greenhorn

Joined: Oct 25, 2011
Posts: 4

jta 1.0.1B is not available in the public maven repository.

Download it from Oracle website and install it manually.



Or use the java.net repository above.
 
 
subject: error while running maven