title: Maven build failure : could not transfer metadata
body: <p>I'm trying to run maven clean install but i got these errors and warnings </p>
  
  <pre><code>[WARNING] Could not transfer metadata org.codehaus.mojo:cobertura-maven-plugin/maven-metadata.xml from/to maven-repository.dev.java.net (http://download.java.net/maven/1): Cannot access http://download.java.net/maven/1 with type legacy using the available connector factories: BasicRepositoryConnectorFactory
  [WARNING] The POM for javax.transaction:jta:jar:1.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for com.sun.xml.bind:jaxb-impl:jar:2.1.7 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for org.springframework:spring-support:jar:2.0.8 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for javax.activation:activation:jar:1.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for javax.mail:mail:jar:1.4.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for net.sourceforge.jexcelapi:jxl:jar:2.6.10 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for net.sf.jasperreports:jasperreports:jar:3.7.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for org.codehaus.groovy:groovy-all:jar:1.6.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for com.lowagie:itext:jar:2.1.7 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for org.apache.poi:poi:jar:3.1-FINAL is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  [WARNING] The POM for javax.servlet:jsp-api:jar:2.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
  --
  [WARNING] /D:/projet/perWeb/per/perTools/src/main/java/ma/archostechnology/swk/report/PDFReportingService.java: Some input files use unchecked or unsafe operations.
  [WARNING] /D:/projet/perWeb/per/perTools/src/main/java/ma/archostechnology/swk/report/PDFReportingService.java: Recompile with -Xlint:unchecked for details.
  [INFO] 2 warnings 
  [INFO] -------------------------------------------------------------
  [INFO] -------------------------------------------------------------
  [ERROR] COMPILATION ERROR : 
  [INFO] -------------------------------------------------------------
  [ERROR] error reading D:\Fa\repository\javax\transaction\jta\1.1\jta-1.1.jar; error in opening zip file
  [ERROR] error reading D:\Fa\repository\com\sun\xml\bind\jaxb-impl\2.1.7\jaxb-impl-2.1.7.jar; error in opening zip file
  [ERROR] error reading D:\Faa\repository\org\springframework\spring-support\2.0.8\spring-support-2.0.8.jar; error in opening zip file
  [ERROR] error reading    D:\Fa\repository\javax\activation\activation\1.1\activation-1.1.jar; error in opening zip file
  [ERROR] error reading D:\Fa\repository\javax\mail\mail\1.4.1\mail-1.4.1.jar; error in opening zip file
  </code></pre>
  
  <p>here is my pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;project&gt;
      &lt;parent&gt;
          &lt;artifactId&gt;per&lt;/artifactId&gt;
          &lt;groupId&gt;ma.archostechnology&lt;/groupId&gt;
          &lt;version&gt;2.0&lt;/version&gt;
      &lt;/parent&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;ma.archostechnology&lt;/groupId&gt;
      &lt;artifactId&gt;perTools&lt;/artifactId&gt;
      &lt;name&gt;Projet PER Tools&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.transaction&lt;/groupId&gt;
              &lt;artifactId&gt;jta&lt;/artifactId&gt;
              &lt;version&gt;1.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
              &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
              &lt;version&gt;2.1.7&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-support&lt;/artifactId&gt;
              &lt;version&gt;2.0.8&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.activation&lt;/groupId&gt;
              &lt;artifactId&gt;activation&lt;/artifactId&gt;
              &lt;version&gt;1.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.mail&lt;/groupId&gt;
              &lt;artifactId&gt;mail&lt;/artifactId&gt;
              &lt;version&gt;1.4.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sourceforge.jexcelapi&lt;/groupId&gt;
              &lt;artifactId&gt;jxl&lt;/artifactId&gt;
              &lt;version&gt;2.6.10&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.sf.jasperreports&lt;/groupId&gt;
              &lt;artifactId&gt;jasperreports&lt;/artifactId&gt;
              &lt;version&gt;3.7.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.groovy&lt;/groupId&gt;
              &lt;artifactId&gt;groovy-all&lt;/artifactId&gt;
              &lt;version&gt;1.6.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.lowagie&lt;/groupId&gt;
              &lt;artifactId&gt;itext&lt;/artifactId&gt;
              &lt;version&gt;2.1.7&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.poi&lt;/groupId&gt;
              &lt;artifactId&gt;poi&lt;/artifactId&gt;
              &lt;version&gt;3.1-FINAL&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
              &lt;artifactId&gt;jsp-api&lt;/artifactId&gt;
              &lt;version&gt;2.0&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.8.1&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-dbcp&lt;/groupId&gt;
              &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
              &lt;version&gt;1.2.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-pool&lt;/groupId&gt;
              &lt;artifactId&gt;commons-pool&lt;/artifactId&gt;
              &lt;version&gt;1.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-fileupload&lt;/groupId&gt;
              &lt;artifactId&gt;commons-fileupload&lt;/artifactId&gt;
              &lt;version&gt;1.2.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-io&lt;/groupId&gt;
              &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
              &lt;version&gt;1.3.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-vfs&lt;/groupId&gt;
              &lt;artifactId&gt;commons-vfs&lt;/artifactId&gt;
              &lt;version&gt;1.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;commons-lang&lt;/groupId&gt;
              &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
              &lt;version&gt;2.5&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;net.objectlab.kit&lt;/groupId&gt;
              &lt;artifactId&gt;datecalc-common&lt;/artifactId&gt;
              &lt;version&gt;1.2.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;net.objectlab.kit&lt;/groupId&gt;
              &lt;artifactId&gt;datecalc-jdk&lt;/artifactId&gt;
              &lt;version&gt;1.2.0&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
             &lt;groupId&gt;com.ibm.icu&lt;/groupId&gt;
             &lt;artifactId&gt;icu4j&lt;/artifactId&gt;
             &lt;version&gt;51.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
              &lt;name&gt;Java.net Maven 2 Repository&lt;/name&gt;
              &lt;url&gt;http://download.java.net/maven/2&lt;/url&gt;
              &lt;layout&gt;default&lt;/layout&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;maven-repository.dev.java.net&lt;/id&gt;
              &lt;name&gt;Java.net Maven 1 Repository (legacy)&lt;/name&gt;
              &lt;url&gt;http://download.java.net/maven/1&lt;/url&gt;
              &lt;layout&gt;legacy&lt;/layout&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;jfrog-plugins&lt;/id&gt;
              &lt;name&gt;jfrog-plugins-dist&lt;/name&gt;
              &lt;url&gt;
                  http://www.jfrog.org/artifactory/plugins-releases@repo
              &lt;/url&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;localrepository&lt;/id&gt;
              &lt;name&gt;localrepository&lt;/name&gt;
              &lt;url&gt;D:\FatimaZahra\repository&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
      &lt;pluginRepositories&gt;
          &lt;pluginRepository&gt;
              &lt;id&gt;maven2-repository.dev.java.net&lt;/id&gt;
              &lt;url&gt;http://download.java.net/maven/2&lt;/url&gt;
          &lt;/pluginRepository&gt;
          &lt;pluginRepository&gt;
              &lt;id&gt;maven-repository.dev.java.net&lt;/id&gt;
              &lt;url&gt;http://download.java.net/maven/1&lt;/url&gt;
              &lt;layout&gt;legacy&lt;/layout&gt;
          &lt;/pluginRepository&gt;
      &lt;/pluginRepositories&gt;
      &lt;build&gt;
          &lt;defaultGoal&gt;install&lt;/defaultGoal&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;inherited&gt;true&lt;/inherited&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.5&lt;/source&gt;
                      &lt;target&gt;1.5&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  
  &lt;/project&gt;
  </code></pre>
  
  <p>When i run the mvn -X compile i got this</p>
  
  <pre><code>[DEBUG] Resolving plugin version for org.codehaus.mojo:cobertura-maven-plugin
  [DEBUG] Could not find metadata org.codehaus.mojo:cobertura-maven-plugin/maven-metadata.xml in local (D:\FatimaZahra\repository)
  [DEBUG] Failure to find org.codehaus.mojo:cobertura-maven-plugin/maven-metadata.xml in http://download.java.net/maven/2 was cached in the local repository, resolution will not be reattempted until the update interval of maven2-repository.dev.java.net has elapsed or updates are forced
  [DEBUG] Skipped remote request for org.codehaus.mojo:cobertura-maven-plugin/maven-metadata.xml, locally cached metadata up-to-date.
  [DEBUG] Writing tracking file D:\FatimaZahra\repository\org\codehaus\mojo\cobertura-maven-plugin\resolver-status.properties
  [WARNING] Could not transfer metadata org.codehaus.mojo:cobertura-maven-plugin/maven-metadata.xml from/to maven-repository.dev.java.net (http://download.java.net/maven/1): Cannot access http://download.java.net/maven/1 with type legacy using the available connector factories: BasicRepositoryConnectorFactory
  org.eclipse.aether.transfer.MetadataTransferException: Could not transfer metadata org.codehaus.mojo:cobertura-maven-plugin/maven-metadata.xml from/to maven-repository.dev.java.net (http://download.java.net/maven/1): Cannot access http://download.java.net/maven/1 with type legacy using the available connector factories: BasicRepositoryConnectorFactory
      at org.eclipse.aether.internal.impl.DefaultMetadataResolver$ResolveTask.run(DefaultMetadataResolver.java:632)
      at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
      at org.eclipse.aether.internal.impl.DefaultMetadataResolver$1.execute(DefaultMetadataResolver.java:527)
      at org.eclipse.aether.internal.impl.DefaultMetadataResolver.resolve(DefaultMetadataResolver.java:382)
      at org.eclipse.aether.internal.impl.DefaultMetadataResolver.resolveMetadata(DefaultMetadataResolver.java:205)
      at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveMetadata(DefaultRepositorySystem.java:309)
      at org.apache.maven.plugin.version.internal.DefaultPluginVersionResolver.resolveFromRepository(DefaultPluginVersionResolver.java:133)
      at org.apache.maven.plugin.version.internal.DefaultPluginVersionResolver.resolve(DefaultPluginVersionResolver.java:96)
      at org.apache.maven.lifecycle.internal.LifecyclePluginResolver.resolveMissingPluginVersions(LifecyclePluginResolver.java:89)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:125)
      at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:145)
      at org.apache.maven.lifecycle.internal.builder.BuilderCommon.resolveBuildPlan(BuilderCommon.java:96)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:109)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Cannot access http://download.java.net/maven/1 with type legacy using the available connector factories: BasicRepositoryConnectorFactory
      at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:174)
      at org.eclipse.aether.internal.impl.DefaultMetadataResolver$ResolveTask.run(DefaultMetadataResolver.java:603)
      ... 29 more
  Caused by: org.eclipse.aether.transfer.NoRepositoryConnectorException: Cannot access http://download.java.net/maven/1 with type legacy using the available layout factories: Maven2RepositoryLayoutFactory
      at org.eclipse.aether.connector.basic.BasicRepositoryConnector.&lt;init&gt;(BasicRepositoryConnector.java:111)
      at org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory.newInstance(BasicRepositoryConnectorFactory.java:180)
      at org.eclipse.aether.internal.impl.DefaultRepositoryConnectorProvider.newRepositoryConnector(DefaultRepositoryConnectorProvider.java:113)
      ... 30 more
  Caused by: org.eclipse.aether.transfer.NoRepositoryLayoutException: Cannot access http://download.java.net/maven/1 with type legacy using the available layout factories: Maven2RepositoryLayoutFactory
      at org.eclipse.aether.internal.impl.DefaultRepositoryLayoutProvider.newRepositoryLayout(DefaultRepositoryLayoutProvider.java:142)
      at org.eclipse.aether.connector.basic.BasicRepositoryConnector.&lt;init&gt;(BasicRepositoryConnector.java:107)
      ... 32 more
  Caused by: org.eclipse.aether.transfer.NoRepositoryLayoutException: Unsupported repository layout legacy
      at org.eclipse.aether.internal.impl.Maven2RepositoryLayoutFactory.newInstance(Maven2RepositoryLayoutFactory.java:64)
      at org.eclipse.aether.internal.impl.DefaultRepositoryLayoutProvider.newRepositoryLayout(DefaultRepositoryLayoutProvider.java:111)
      ... 33 more
  </code></pre>
  
  <p>I've already tried to delete the repository and i'm not using any proxy.
  Is there anything i'm missing? Could you help me please</p>