Nexus Won ' t Обслуживать SNAPSHOT из общедоступной группы по умолчанию

По какой-то причине я не могу заставить Nexus обслуживать мои артефакты SNAPSHOT через общедоступную группу по умолчанию. Я прочитал соответствующую часть руководства Nexus и поискал в Google, но ничего из того, что я делаю, похоже, не работает.

Я реализовал кое-что из раздела 4.2. ( Настройка Maven для использования одной группы Nexus ) в руководстве, поэтому мой файл settings.xml выглядит так:



  
    
      nexus
      *
      http://my-server/nexus/content/groups/public
    
  

  
    
      nexus
      
        true
      
      
        
          central
          http://central
          
            true
          
          
            true
          
        
      
      
        
          central
          http://central
          
            true
          
          
            true
          
        
      
    
  


Все работало нормально, пока я не начал собирать материал на чистой машине (т.е. t построил любой из проектов SNAPSHOT на), и он не загружал необходимые зависимости SNAPSHOT. Maven дает мне следующее:

[INFO] Scanning for projects...
[INFO]       
[INFO] ------------------------------------------------------------------------
[INFO] Building MyCo Actions Base Classes 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://my-sever/nexus/content/groups/public/com/myco/testing/1.0.0-SNAPSHOT/maven-metadata.xml
Downloading: http://my-sever/nexus/content/groups/public/com/myco/testing/1.0.0-SNAPSHOT/maven-metadata.xml
Downloading: http://my-sever/nexus/content/groups/public/com/myco/testing/1.0.0-SNAPSHOT/testing-1.0.0-SNAPSHOT.pom
[WARNING] The POM for com.myco:testing:jar:1.0.0-SNAPSHOT is missing, no dependency information available
Downloading: http://my-sever/nexus/content/groups/public/com/myco/testing/1.0.0-SNAPSHOT/testing-1.0.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.023s
[INFO] Finished at: Tue Mar 08 15:55:23 GMT 2011
[INFO] Final Memory: 99M/480M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project actions-base: Could not resolve dependencies for project com.myco:actions-base:jar:1.0.0-SNAPSHOT: Could not find artifact com.myco:testing:jar:1.0.0-SNAPSHOT in nexus (http://my-sever/nexus/content/groups/public) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Проблема в том, что testing-1.0.0-SNAPSHOT.jar не существует, но существует test-1.0.0-20110301.182820-1.jar. Как мне заставить Nexus правильно разрешить SNAPSHOT и предоставить мне мой JAR ...?

15
задан Cœur 14 June 2018 в 11:52
поделиться