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
  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

    Trying to run a Maven package. Unable to find resource 'org.eclipse.m2e:lifecycle-mapping:pom:1.0.0'

    Stack Overflow | 3 years ago | J. K.
    org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build project for plugin 'org.eclipse.m2e:lifecycle-mapping': POM 'org.eclipse.m2e:lifecycle-mapping' not found in repository: Unable to download the artifact from any repository org.eclipse.m2e:lifecycle-mapping:pom:1.0.0 from the specified remote repositories: central (http://repo1.maven.org/maven2) for project org.eclipse.m2e:lifecycle-mapping
  6. 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

    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