[ARCH-55] Archetype catalog unreachable Created: 14/Feb/17 Updated: 16/Apr/18 |
|
| Status: | Open |
| Project: | Archetypes |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Ondrej Chytil | Assignee: | Robert Šiška |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Documentation update required: |
Yes
|
||||||||
| Date of First Response: | |||||||||
| Description |
$ mvn archetype:generate -DarchetypeCatalog=https://nexus.magnolia-cms.com/content/groups/public/ [INFO] Scanning for projects... Downloading: https://nexus.magnolia-cms.com/content/groups/staff/org/apache/maven/plugins/maven-metadata.xml Downloading: https://nexus.magnolia-cms.com/content/groups/staff/org/codehaus/mojo/maven-metadata.xml Downloading: https://nexus.magnolia-cms.com/content/groups/staff/org/sonatype/plugins/maven-metadata.xml Downloaded: https://nexus.magnolia-cms.com/content/groups/staff/org/sonatype/plugins/maven-metadata.xml (5 KB at 1.0 KB/sec) Downloaded: https://nexus.magnolia-cms.com/content/groups/staff/org/apache/maven/plugins/maven-metadata.xml (14 KB at 2.9 KB/sec) Downloaded: https://nexus.magnolia-cms.com/content/groups/staff/org/codehaus/mojo/maven-metadata.xml (24 KB at 4.6 KB/sec) Downloading: https://nexus.magnolia-cms.com/content/groups/staff/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml Downloaded: https://nexus.magnolia-cms.com/content/groups/staff/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml (927 B at 1.8 KB/sec) [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> maven-archetype-plugin:3.0.0:generate (default-cli) > generate-sources @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:3.0.0:generate (default-cli) < generate-sources @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:3.0.0:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] No catalog defined. Using 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: Also https://nexus.magnolia-cms.com/content/groups/public/archetype-catalog.xml seems to be updated constantly. |
| Comments |
| Comment by Robert Šiška [ 10/Apr/18 ] |
Source: http://maven.apache.org/archetype/maven-archetype-plugin/archetype-repository.html Options are adding the repository into settings.xml or forcing usage of older version of the plugin:
One can substitue the older command with filters (mind the colon on the end, btw): |
| Comment by Mikaël Geljić [ 10/Apr/18 ] |
|
Didn't we already decide for the latter back then? Judging from Module QuickStart page history, we started documenting explicit usage of the old archetype plugin version. -mvn archetype:generate +mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate Was it also that the 1st is not an option because it gives you all archetypes possibly found in all repos (not only the magnolia ones)? |
| Comment by Robert Šiška [ 10/Apr/18 ] |
|
We probably did. I'm just going through all open tickets and closing them. I guess Documentation update label shouldn't be added, then...
That's true. Though, you can use filtering instead to get the same results (see the edited comment above). |
| Comment by Mikaël Geljić [ 10/Apr/18 ] |
|
|
| Comment by Robert Šiška [ 11/Apr/18 ] |
|
I'd vouch for updating the documentation for new version, maybe with a mention of version-locked command too. |