You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "John E. Conlon" <jc...@verticon.com> on 2005/10/21 17:37:39 UTC

[Maven 2] Can't use archetypeArtifactId=maven-archetype-site

Thinking of moving my company's dev env from Ant to M2 so I while
working with the 'getting started guide' I encountered a problem with at
the 
How do I create documentation?
step.

I can't get the archetype:create working and I have tried variations on
the following: 


mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app3
-DarchetypeGroupId=org.apache.maven.archetypes
-DarchetypeArtifactId=maven-archetype-site

with fresh directories, projects, etc.

Here is the error that I get:

[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
determine the release version
  org.apache.maven.archetypes:maven-archetype-site:RELEASE:jar
 
 
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:528)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:214)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to determine the release version
  org.apache.maven.archetypes:maven-archetype-site:RELEASE:jar
 
 
        at
org.apache.maven.artifact.transform.ReleaseArtifactTransformation.transformForResolve(ReleaseArtifactTransformation.java:50)
        at
org.apache.maven.artifact.transform.DefaultArtifactTransformationManager.transformForResolve(DefaultArtifactTransformationManager.java:40)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:104)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:63)
        at
org.apache.maven.archetype.DefaultArchetype.createArchetype(DefaultArchetype.java:98)
        at
org.apache.maven.plugin.archetype.MavenArchetypeMojo.execute(MavenArchetypeMojo.java:144)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
        ... 16 more

--------------------------------

thanks for any help,

John




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [Maven 2] Can't use archetypeArtifactId=maven-archetype-site

Posted by Wendy Smoak <ws...@apache.org>.
From: "Jorg Heymans" <jh...@domek.be>

> - If you look at the plugin docs [1], you'll see that m2 defaults to
> version "RELEASE" for all archetypes.
>
> - Now maven complains that it can't find this version, so your best bet
> is to go and have a look on the repository itself [2] to see what
> versions are available there for this particular archetype. You will see
> there that only 1.0-alpha-2 is available.
>
> Solution : add -DarchetypeVersion=1.0-alpha-2 to your commandline.

That's a workaround. :)  The metadata that would allow the archetype plugin 
to figure out what version to use is missing from the repository.  I opened 
an issue to get it added:
http://jira.codehaus.org/browse/MNG-1284

-- 
Wendy 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [Maven 2] Can't use archetypeArtifactId=maven-archetype-site

Posted by Jorg Heymans <jh...@domek.be>.
John E. Conlon wrote:

> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app3
> -DarchetypeGroupId=org.apache.maven.archetypes
> -DarchetypeArtifactId=maven-archetype-site
> 
> with fresh directories, projects, etc.
> 
> Here is the error that I get:
> 
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to
> determine the release version
>   org.apache.maven.archetypes:maven-archetype-site:RELEASE:jar

                                         ^^^^^^^^^^^^^^^^^^^^^^^^

- If you look at the plugin docs [1], you'll see that m2 defaults to
version "RELEASE" for all archetypes.

- Now maven complains that it can't find this version, so your best bet
is to go and have a look on the repository itself [2] to see what
versions are available there for this particular archetype. You will see
there that only 1.0-alpha-2 is available.

Solution : add -DarchetypeVersion=1.0-alpha-2 to your commandline.

HTH
Jorg

[1]
http://maven.apache.org/maven2/plugins/maven-archetype-plugin/create-mojo.html
[2]
http://www.ibiblio.org/maven2/org/apache/maven/archetypes/maven-archetype-site/


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org