title: maven missing dependency jta-1.0.1b
body: <p>I'm trying to build my java hibernate project with maven.
  But when I try to do this, it looks like there is a dependency not available?</p>
  
  <p>I have this pom.xml now in my project:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;net.viralpatel.hibernate&lt;/groupId&gt;
    &lt;artifactId&gt;HibernateHelloWorldXML&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;HibernateHelloWorldXML&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
        &lt;artifactId&gt;ejb3-persistence&lt;/artifactId&gt;
        &lt;version&gt;1.0.1.GA&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
        &lt;artifactId&gt;hibernate-annotations&lt;/artifactId&gt;
        &lt;version&gt;3.3.1.GA&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;mysql&lt;/groupId&gt;
        &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
        &lt;version&gt;5.1.10&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>When I try to build using mvn then I get this error:</p>
  
  <pre><code>[WARNING] An error occurred during dependency resolution.
      Failed to retrieve javax.transaction:jta-1.0.1B
  Caused by: Failure to find javax.transaction:jta:jar:1.0.1B in http://repo.maven.apache.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
  
  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 -Dversion=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 -Dversion=1.0.1B -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drepository
  Id=[id]
  
  Path to dependency:
          1) net.viralpatel.hibernate:HibernateHelloWorldXML:jar:1.0-SNAPSHOT
          2) org.hibernate:hibernate-annotations:jar:3.3.1.GA
          3) org.hibernate:hibernate:jar:3.2.6.ga
          4) javax.transaction:jta:jar:1.0.1B
  
  
    javax.transaction:jta:jar:1.0.1B
  
  from the specified remote repositories:
    central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false)
  </code></pre>
  
  <p>I searched for this error and found a lot of people that had to change their hibernate-core dependency version in their pom.xml file but it seems like I don't have a hibernate-core, so how can I solve this?</p>