Архетип-каталог - в удаленном каталоге архетип не найден.По умолчанию для внутреннего каталога - PullRequest
0 голосов
/ 21 декабря 2018

Я определил пару архетипных проектов и выпустил их в наш удаленный репозиторий Artifactory.Я также создал archetype-catalog.xml и развернул его в нашем удаленном репозитории через API Artifactory.

Однако при выполнении «mvn -X archetype: generate -DarchetypeCatalog = remote» возвращается следующий журнал:

[INFO] Generating project in Interactive mode
[DEBUG] Searching for remote catalog: 
https://our.artifactory.com/artifactory/libs-release-local/archetype- 
catalog.xml
[WARNING] No archetype found in remote catalog. Defaulting to internal 
catalog
[INFO] No archetype defined. Using maven-archetype-quickstart 
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: internal -> org.apache.maven.archetypes:maven-archetype-archetype (An 
archetype which contains a sample archetype.)
2: internal -> org.apache.maven.archetypes:maven-archetype-j2ee-simple (An 
archetype which contains a simplifed sample J2EE application.)
3: internal -> org.apache.maven.archetypes:maven-archetype-plugin (An 
archetype which contains a sample Maven plugin.)
4: internal -> org.apache.maven.archetypes:maven-archetype-plugin-site (An 
archetype which contains a sample Maven plugin site.
  This archetype can be layered upon an existing Maven plugin project.)
5: internal -> org.apache.maven.archetypes:maven-archetype-portlet (An 
archetype which contains a sample JSR-268 Portlet.)
6: internal -> org.apache.maven.archetypes:maven-archetype-profiles ()
7: internal -> org.apache.maven.archetypes:maven-archetype-quickstart (An 
archetype which contains a sample Maven project.)
8: internal -> org.apache.maven.archetypes:maven-archetype-site (An 
archetype which contains a sample Maven site which demonstrates
  some of the supported document types like APT, XDoc, and FML and 
demonstrates how
  to i18n your site. This archetype can be layered upon an existing Maven 
  project.)
9: internal -> org.apache.maven.archetypes:maven-archetype-site-simple (An 
archetype which contains a sample Maven site.)
10: internal -> org.apache.maven.archetypes:maven-archetype-webapp (An 
archetype which contains a sample Maven Webapp project.)
Choose a number or apply filter (format: [groupId:]artifactId, case 
sensitive contains): 7:

Теперь, хотя файл каталога присутствует и кажется, что mavenискать в удаленном каталоге, он не может определить архетипы и по умолчанию внутренний каталог.Это хорошо работает на моем местном хотя.

...