[ARCH-1] Error when creating a new Module layout Created: 05/Jan/08  Updated: 14/Mar/14  Resolved: 07/Jan/08

Status: Closed
Project: Archetypes
Component/s: module
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Giancarlo Berner Assignee: Vivian Steller
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows XP, Maven 2


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
Date of First Response:

 Description   

When using the archetype "maven-archetype-magnolia-module" to create a module folder (as I did successfully with Magnolia 3.0.x), I get the error "Archetype does not exist".

The last log entry before the error is
INFO: artifact info.magnolia:maven-archetype-magnolia-module: checking for updates from id0

After that I get the "build error":
Embedded error: Archetype does not exist.
Unable to determine the release version

I am using the mvn command:
mvn archetype:create -DarchetypeGroupId=info.magnolia \
-DarchetypeArtifactId=maven-archetype-magnolia-module \
-DarchetypeVersion=1.0.0-SNAPSHOT \
-DgroupId=com.foo.bar \
-DartifactId=my-module \
-DremoteRepositories=http://svn.magnolia.info/maven/snapshots

In addition there is another (minor?) error: ResourceManager : unable to find resource 'VM_global_library.vm" in any resource loader



 Comments   
Comment by Vivian Steller [ 05/Jan/08 ]

Try using -DarchetypeVersion=1.0 instead of the 1.0.0-SNAPSHOT version as the snapshot might not be deployed which causes that error.

The ResourceManager issue does not prevent the archetype to work, I think. But I'll re-check if I can fix it.

Comment by Giancarlo Berner [ 05/Jan/08 ]

Using -DarchetypeVersion=1.0 seemed to have just little effect. The new error:
INFO: Downloading: http://svn.magnolia.info/maven/snapshots/info/magnolia/maven-archetype-magnolia-module/1.0/maven-archetype-magnolia-module-1.0.jar

Then the BUILD ERROR message with error:
INFO Error creating from archetype
Embedded error: Archetype does not exist.
Unable to download the artifact from any repository

If it helps, I can attached the cmd trace I get.

Comment by Giancarlo Berner [ 05/Jan/08 ]

The path Maven tries to download the maven-archetype-magnolia-module.jar from seems to still be the old one we have bean using, so with version 1.0.0-SNAPSHOT. I just tried again with version 1.0.0-SNAPSHOT
--> AND IT WORKED!
So the WIKI still is correct! I have no idea why it did not work yesterday. Maybe the connection was blocked or a typo (although I used the exact same command from WIKI...)

Sorry!

Comment by Giancarlo Berner [ 06/Jan/08 ]

Sorry, forgot to close the issue...

Generated at Sun Feb 11 23:22:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.