title: Java Maven Issue
body: <p>This is my pom.xml </p>
  
  <pre><code>`&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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;org.javaee7.batch&lt;/groupId&gt;
     &lt;artifactId&gt;batch-samples&lt;/artifactId&gt;
     &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
     &lt;packaging&gt;war&lt;/packaging&gt;
     &lt;name&gt;Batch Applications for the Java Platform (JSR-352) Example&lt;/name&gt;
     &lt;description&gt;Batch Applications for the Java Platform (JSR-352) Example&lt;/description&gt;
     &lt;url&gt;http://jboss.org/jbossas&lt;/url&gt;
     &lt;licenses&gt;
        &lt;license&gt;
           &lt;name&gt;Apache License, Version 2.0&lt;/name&gt;
           &lt;distribution&gt;repo&lt;/distribution&gt;
           &lt;url&gt;http://www.apache.org/licenses/LICENSE-2.0.html&lt;/url&gt;
        &lt;/license&gt; 
     &lt;/licenses&gt;
     &lt;properties&gt;
        &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
        &lt;version.jboss.maven.plugin&gt;7.4.Final&lt;/version.jboss.maven.plugin&gt;
        &lt;version.jboss.spec.javaee.6.0&gt;3.0.2.Final&lt;/version.jboss.spec.javaee.6.0&gt;
        &lt;version.war.plugin&gt;2.1.1&lt;/version.war.plugin&gt;
        &lt;version.compiler.plugin&gt;2.3.1&lt;/version.compiler.plugin&gt;
        &lt;!-- maven-compiler-plugin --&gt;
        &lt;maven.compiler.target&gt;1.7&lt;/maven.compiler.target&gt;
        &lt;maven.compiler.source&gt;1.7&lt;/maven.compiler.source&gt;
        &lt;version.jboss.bom&gt;1.0.4.Final&lt;/version.jboss.bom&gt;
     &lt;/properties&gt;
     &lt;dependencyManagement&gt;
        &lt;dependencies&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt;
              &lt;artifactId&gt;jboss-javaee-7.0&lt;/artifactId&gt;
              &lt;version&gt;1.0.0.Beta2&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.bom&lt;/groupId&gt;
              &lt;artifactId&gt;jboss-javaee-6.0-with-hibernate&lt;/artifactId&gt;
              &lt;version&gt;${version.jboss.bom}&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
           &lt;/dependency&gt;
        &lt;/dependencies&gt;
     &lt;/dependencyManagement&gt;
     &lt;dependencies&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
           &lt;artifactId&gt;hibernate-jpa-2.0-api&lt;/artifactId&gt;
           &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
           &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
           &lt;scope&gt;provided&lt;/scope&gt;
           &lt;exclusions&gt;
              &lt;exclusion&gt;
                 &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                 &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;/exclusion&gt;
           &lt;/exclusions&gt;
        &lt;/dependency&gt;
        &lt;!-- Import the Batch API which is included in WildFly 8 --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.jboss.spec.javax.batch&lt;/groupId&gt;
           &lt;artifactId&gt;jboss-batch-api_1.0_spec&lt;/artifactId&gt;
           &lt;version&gt;1.0.0.Final&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- Import the CDI API --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;javax.enterprise&lt;/groupId&gt;
           &lt;artifactId&gt;cdi-api&lt;/artifactId&gt;
           &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
        &lt;!-- Import the Common Annotations API (JSR-250) --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.jboss.spec.javax.annotation&lt;/groupId&gt;
           &lt;artifactId&gt;jboss-annotations-api_1.1_spec&lt;/artifactId&gt;
           &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
        &lt;!-- Import the Servlet API --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.jboss.spec.javax.servlet&lt;/groupId&gt;
           &lt;artifactId&gt;jboss-servlet-api_3.0_spec&lt;/artifactId&gt;
           &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
     &lt;/dependencies&gt;
     &lt;build&gt;
        &lt;!-- Set the name of the war, used as the context root when the app is deployed --&gt;
        &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
        &lt;plugins&gt;
           &lt;plugin&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;${version.war.plugin}&lt;/version&gt;
              &lt;configuration&gt;
                 &lt;!-- Java EE 6 doesn't require web.xml, Maven needs to catch up! --&gt;
                 &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
              &lt;/configuration&gt;
           &lt;/plugin&gt;
           &lt;!-- JBoss AS plugin to deploy war --&gt;
           &lt;plugin&gt;
              &lt;groupId&gt;org.jboss.as.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;jboss-as-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;${version.jboss.maven.plugin}&lt;/version&gt;
           &lt;/plugin&gt;
           &lt;!-- Compiler plugin enforces Java 1.6 compatibility and activates 
                  annotation processors --&gt;
           &lt;plugin&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;${version.compiler.plugin}&lt;/version&gt;
              &lt;configuration&gt;
                 &lt;source&gt;${maven.compiler.source}&lt;/source&gt;
                 &lt;target&gt;${maven.compiler.target}&lt;/target&gt;
              &lt;/configuration&gt;
           &lt;/plugin&gt;
        &lt;/plugins&gt;
     &lt;/build&gt;
  &lt;/project&gt;`
  </code></pre>
  
  <p>In eclipse I am getting below errors : 
  1) </p>
  
  <pre><code>`Project build error: Non-resolvable import POM: Failure to transfer org.jboss.spec:jboss-javaee-7.0:pom:1.0.0.Beta2 from 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. Original error: Could not transfer artifact org.jboss.spec:jboss-javaee-7.0:pom:1.0.0.Beta2 from/to central (http:// repo.maven.apache.org/maven2): null to http://repo.maven.apache.org/maven2/org/jboss/spec/jboss-javaee-7.0/1.0.0.Beta2/jboss-javaee-7.0-1.0.0.Beta2.pom`
  </code></pre>
  
  <p>Same type of error I am getting for <code>jboss-javaee-6.0-with-hibernate</code></p>
  
  <p>2) I am also getting <code>Project build error: 'dependencies.dependency.version' for org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar is missing.</code></p>
  
  <p>3) Project build error: 'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing.</p>
  
  <p>4) Project build error: 'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing.</p>
  
  <p>5) Project build error: 'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is missing.</p>
  
  <p>6) Project build error: 'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing.</p>
  
  <p>7) </p>
  
  <pre><code>`Multiple annotations found at this line:
      - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (execution: 
       default-compile, phase: compile)
      - CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:2.3.1 or one of its dependencies 
       could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.1: ArtifactResolutionException: 
       Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.1 from 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. Original error: Could not transfer 
       artifact org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.1 from/to central (http://repo.maven.apache.org/maven2): null to http://
       repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.3.1/maven-compiler-plugin-2.3.1.pom
      - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.1:testCompile (execution: 
       default-testCompile, phase: test-compile)`
  </code></pre>
  
  <p>Please suggest.</p>
  
  <p>Complete Error:</p>
  
  <pre><code>`[INFO] Scanning for projects...
  Downloading: http://repo.maven.apache.org/maven2/org/jboss/spec/jboss-javaee-7.0
  /1.0.0.Beta2/jboss-javaee-7.0-1.0.0.Beta2.pom
  Downloading: http://repo.maven.apache.org/maven2/org/jboss/bom/jboss-javaee-6.0-
  with-hibernate/1.0.4.Final/jboss-javaee-6.0-with-hibernate-1.0.4.Final.pom
  [ERROR] The build could not read 1 project -&gt; [Help 1]
  [ERROR]
  [ERROR]   The project org.javaee7.batch:batch-samples:1.0-SNAPSHOT (D:\Projects\
  SID\POC\chunk-csv-database\chunk-csv-database\pom.xml) has 7 errors
  [ERROR]     Non-resolvable import POM: Could not transfer artifact org.jboss.spe
  c:jboss-javaee-7.0:pom:1.0.0.Beta2 from/to central (http://repo.maven.apache.org
  /maven2): repo.maven.apache.org @ line 31, column 22: Unknown host repo.maven.ap
  ache.org -&gt; [Help 2]
  [ERROR]     Non-resolvable import POM: Could not transfer artifact org.jboss.bom
  :jboss-javaee-6.0-with-hibernate:pom:1.0.4.Final from/to central (http://repo.ma
  ven.apache.org/maven2): repo.maven.apache.org @ line 38, column 22: Unknown host
   repo.maven.apache.org -&gt; [Help 2]
  [ERROR]     'dependencies.dependency.version' for org.hibernate.javax.persistenc
  e:hibernate-jpa-2.0-api:jar is missing. @ line 48, column 19
  [ERROR]     'dependencies.dependency.version' for org.hibernate:hibernate-valida
  tor:jar is missing. @ line 53, column 19
  [ERROR]     'dependencies.dependency.version' for javax.enterprise:cdi-api:jar i
  s missing. @ line 71, column 19
  [ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.annotatio
  n:jboss-annotations-api_1.1_spec:jar is missing. @ line 77, column 19
  [ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.servlet:j
  boss-servlet-api_3.0_spec:jar is missing. @ line 83, column 19
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
  ch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please rea
  d the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildin
  gException
  [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableMo
  delException`
  </code></pre>