org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Unable to create new repository: codehaus-snapshots

Sonatype JIRA | Juven Xu | 8 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

    while importing a repo which id is conflicted with existing nexus repo id, I am able to select "merge" in UI and then merge the 2 repos but when I don't select the "merge", I got the following exception: {noformat} jvm 1 | 2009-04-22 20:17:57 ERROR - o.s.n.p.m.a.Artifac~:default - Failed to import repository 'codehaus-snapshots': Unable to create new repository: codehaus-snapshots jvm 1 | org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Unable to create new repository: codehaus-snapshots jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:525) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepository(DefaultArtifactoryMigrator.java:439) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepositories(DefaultArtifactoryMigrator.java:378) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:207) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27) jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) jvm 1 | at java.lang.Thread.run(Thread.java:619) jvm 1 | Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid! jvm 1 | Validation errors follows: jvm 1 | o id - The Repository ID 'codehaus-snapshots' conflicts with an existing Repository ID jvm 1 | jvm 1 | Validation warnings follows: jvm 1 | o id - Repository with ID='codehaus-snapshots' has no name, defaulted to it's ID. jvm 1 | jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepository(DefaultNexusConfiguration.java:776) jvm 1 | at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepository(DefaultNexusConfiguration.java:789) jvm 1 | at org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:495) jvm 1 | at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:521) jvm 1 | ... 13 more {noformat} the user should be warned that, if not merge, the repo would be abandoned, and no exception should arise.

    Sonatype JIRA | 8 years ago | Juven Xu
    org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Unable to create new repository: codehaus-snapshots
  2. 0

    This is happening in the lastest release: 2009-08-04 08:08:55 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: codehaus-snapshots 2009-08-04 08:08:55 ERROR [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Failed to import repository 'codehaus-snapshots': Unable to create new repository: codehaus-snapshots org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Unable to create new repository: codehaus-snapshots at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:533) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepository(DefaultArtifactoryMigrator.java:448) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepositories(DefaultArtifactoryMigrator.java:387) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:210) at org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27) at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139) at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.sonatype.nexus.configuration.validator.InvalidConfigurationException: Configuration is invalid! Validation errors follows: o id - The Repository ID 'codehaus-snapshots' conflicts with an existing Repository ID Validation warnings follows: o id - Repository with ID='codehaus-snapshots' has no name, defaulted to it's ID. at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepository(DefaultNexusConfiguration.java:777) at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepository(DefaultNexusConfiguration.java:790) at org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:496) at org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:529) ... 13 more 2009-08-04 08:08:55 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Importing repository: ext-releases 2009-08-04 08:08:55 INFO [pool-1-thread-1] - o.s.n.p.m.a.Artifac~:default - Copying cached artifacts to: ext-relea

    Sonatype JIRA | 8 years ago | Marvin Herman Froeder
    org.sonatype.nexus.plugin.migration.artifactory.MigrationException: Unable to create new repository: codehaus-snapshots

    Root Cause Analysis

    1. org.sonatype.nexus.configuration.validator.InvalidConfigurationException

      Configuration is invalid! Validation errors follows: o id - The Repository ID 'codehaus-snapshots' conflicts with an existing Repository ID Validation warnings follows: o id - Repository with ID='codehaus-snapshots' has no name, defaulted to it's ID.

      at org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepository()
    2. ${project.groupId}:${project.artifactId}
      DefaultNexus.createRepository
      1. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.validateRepository(DefaultNexusConfiguration.java:776)
      2. org.sonatype.nexus.configuration.application.DefaultNexusConfiguration.createRepository(DefaultNexusConfiguration.java:789)
      3. org.sonatype.nexus.DefaultNexus.createRepository(DefaultNexus.java:495)
      3 frames
    3. org.sonatype.nexus
      ArtifactoryMigrationTask.doRun
      1. org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.createRepository(DefaultArtifactoryMigrator.java:521)
      2. org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepository(DefaultArtifactoryMigrator.java:439)
      3. org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.importRepositories(DefaultArtifactoryMigrator.java:378)
      4. org.sonatype.nexus.plugin.migration.artifactory.DefaultArtifactoryMigrator.migrate(DefaultArtifactoryMigrator.java:207)
      5. org.sonatype.nexus.plugin.migration.artifactory.task.ArtifactoryMigrationTask.doRun(ArtifactoryMigrationTask.java:27)
      5 frames
    4. ${project.groupId}:${project.artifactId}
      AbstractNexusTask.call
      1. org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
      1 frame
    5. ${project.groupId}:${project.artifactId}
      DefaultScheduledTask.call
      1. org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      7. java.lang.Thread.run(Thread.java:619)
      7 frames