org.apache.maven.project.ProjectBuildingException: POM 'axis2.rampart:axis2-security' not found in repository: Unable to download the artifact from any repository axis2.rampart:axis2-security:pom:1.1 from the specified remote repositories: snapshots (http://gsbede02:8085/archiva/repository/snapshots/), central (http://repo1.maven.org/maven2/)

JFrog JIRA | manuel aldana | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    if using *central* as repository id in settings.xml to configure a different repository dep-analyzer still uses http://repo1.maven.org/maven2/ as central one. {code} org.apache.maven.project.ProjectBuildingException: POM 'axis2.rampart:axis2-security' not found in repository: Unable to download the artifact from any repository axis2.rampart:axis2-security:pom:1.1 from the specified remote repositories: snapshots (http://gsbede02:8085/archiva/repository/snapshots/), central (http://repo1.maven.org/maven2/) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:528) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:228) at org.apache.maven.embedder.MavenEmbedder.buildFromRepository(MavenEmbedder.java:269) at org.jfrog.maven.viewer.dao.DefaultMavenProjectDao.getMavenProject(DefaultMavenProjectDao.java:138) at org.jfrog.maven.viewer.domain.ArtifactFactory.createArtifact(ArtifactFactory.java:157) {code} snippet of settings.xml: {code:xml} ... <profiles> <profile> <id>archiva</id> <repositories> <repository> <id>central</id> <name>Archiva Managed Internal Repository</name> <url>http://gsbede02:8085/archiva/repository/internal/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>snapshots</id> <name>Archiva Managed Snapshot Repository</name> <url>http://gsbede02:8085/archiva/repository/snapshots/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories> ... <activeProfiles> <activeProfile>archiva</activeProfile> </activeProfiles> </settings> {code} because it recognizes declared repository id *snapshots*, it does not seem to ignore the profile in general. on command line (maven 2.0.8) resolving to declared central-repository goes fine.

    JFrog JIRA | 9 years ago | manuel aldana
    org.apache.maven.project.ProjectBuildingException: POM 'axis2.rampart:axis2-security' not found in repository: Unable to download the artifact from any repository axis2.rampart:axis2-security:pom:1.1 from the specified remote repositories: snapshots (http://gsbede02:8085/archiva/repository/snapshots/), central (http://repo1.maven.org/maven2/)
  2. 0

    if using *central* as repository id in settings.xml to configure a different repository dep-analyzer still uses http://repo1.maven.org/maven2/ as central one. {code} org.apache.maven.project.ProjectBuildingException: POM 'axis2.rampart:axis2-security' not found in repository: Unable to download the artifact from any repository axis2.rampart:axis2-security:pom:1.1 from the specified remote repositories: snapshots (http://gsbede02:8085/archiva/repository/snapshots/), central (http://repo1.maven.org/maven2/) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:528) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:228) at org.apache.maven.embedder.MavenEmbedder.buildFromRepository(MavenEmbedder.java:269) at org.jfrog.maven.viewer.dao.DefaultMavenProjectDao.getMavenProject(DefaultMavenProjectDao.java:138) at org.jfrog.maven.viewer.domain.ArtifactFactory.createArtifact(ArtifactFactory.java:157) {code} snippet of settings.xml: {code:xml} ... <profiles> <profile> <id>archiva</id> <repositories> <repository> <id>central</id> <name>Archiva Managed Internal Repository</name> <url>http://gsbede02:8085/archiva/repository/internal/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <repository> <id>snapshots</id> <name>Archiva Managed Snapshot Repository</name> <url>http://gsbede02:8085/archiva/repository/snapshots/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories> ... <activeProfiles> <activeProfile>archiva</activeProfile> </activeProfiles> </settings> {code} because it recognizes declared repository id *snapshots*, it does not seem to ignore the profile in general. on command line (maven 2.0.8) resolving to declared central-repository goes fine.

    JFrog JIRA | 9 years ago | manuel aldana
    org.apache.maven.project.ProjectBuildingException: POM 'axis2.rampart:axis2-security' not found in repository: Unable to download the artifact from any repository axis2.rampart:axis2-security:pom:1.1 from the specified remote repositories: snapshots (http://gsbede02:8085/archiva/repository/snapshots/), central (http://repo1.maven.org/maven2/)
  3. 0

    Documentation Outdated.

    Google Groups | 10 years ago | Mark1900
    org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin 'org.apache.felix.plugins:maven-osgi-plugin': POM 'org.apache.felix.plugins:maven-osgi-plugin' not found in repository: Unable to download the artifact from any repository org.apache.felix.plugins:maven-osgi-plugin:pom:0.8.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    maven site reports artifactnotfoundexception

    Stack Overflow | 3 years ago | Michael
    org.apache.maven.project.ProjectBuildingException: Error resolving project artifact: Failure to find org.drools:drools-karaf-itest:pom:6.0.1.Final in http://my.server.de:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced for project org.drools:drools-karaf-itest:pom:6.0.1.Final
  6. 0

    Unable to find resource 'org.apache.maven.plugins:maven-dependency-plugin:pom:2.0' in repository central (http://repo1.maven.org/maven2)

    Stack Overflow | 4 years ago | Raj
    org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin 'org.apache.maven.plugins:maven-dependency-plugin': POM 'org.apache.maven.plugins:maven-dependency-plugin' not found in repository: Unable to download the artifact from any repository org.apache.maven.plugins:maven-dependency-plugin:pom:2.0 from the specified remote repositories: central (http://repo1.maven.org/maven2), Sonatype (https://oss.sonatype.org/content/repositories/springsource-releases), JBoss (https://repository.jboss.org/nexus/content/repositories), Java.net (http://download.java.net/maven/2/) for project org.apache.maven.plugins:maven-dependency-plugin

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.maven.project.ProjectBuildingException

      POM 'axis2.rampart:axis2-security' not found in repository: Unable to download the artifact from any repository axis2.rampart:axis2-security:pom:1.1 from the specified remote repositories: snapshots (http://gsbede02:8085/archiva/repository/snapshots/), central (http://repo1.maven.org/maven2/)

      at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository()
    2. Maven
      DefaultMavenProjectBuilder.buildFromRepository
      1. org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:528)
      2. org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:228)
      2 frames
    3. org.apache.maven
      MavenEmbedder.buildFromRepository
      1. org.apache.maven.embedder.MavenEmbedder.buildFromRepository(MavenEmbedder.java:269)
      1 frame
    4. org.jfrog.maven
      ArtifactFactory.createArtifact
      1. org.jfrog.maven.viewer.dao.DefaultMavenProjectDao.getMavenProject(DefaultMavenProjectDao.java:138)
      2. org.jfrog.maven.viewer.domain.ArtifactFactory.createArtifact(ArtifactFactory.java:157)
      2 frames