Tuesday, 24 April 2012

Maven: Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts/metadata: No connector available to access repository snapshots

Running maven the access to your local repository is inaccessible. Somehow it can't be accesses by Maven to copy the artifacts.

Verify that you have file: protocol defined on repository path on maven/conf/setting.xml file:


<profiles>
  <profile>
    <id>init</id>
    <activation>
<activeByDefault>true</activeByDefault>
</activation>
    <properties>
      <scm.url>scm:svn:https://xxx.xxx.com/svn/xxx/trunk</scm.url>
      <repository.releases.url>file:~/.m2/repository</repository.releases.url>
      <repository.snapshots.url>file:~/.m2/repository</repository.snapshots.url>
    </properties>
    <repositories>
      <!--repository>
        <id>central</id>
        <url>http://central</url>
       </repository-->
      <repository>
        <id>releases</id>
        <url>${repository.releases.url}</url>
       </repository>
      <repository>
        <id>snapshots</id>
        <url>${repository.snapshots.url}</url>
       </repository>
    </repositories>
    <pluginRepositories>
      <!--pluginRepository>
        <id>central</id>
        <url>http://central</url>
       </pluginRepository-->
      <pluginRepository>
        <id>eviware</id>
        <url>http://www.eviware.com/repository/maven2/</url>
       </pluginRepository>
    </pluginRepositories>
  </profile>

No comments:

Post a Comment