I think your problem is related to a bug in the pom:

http://www.ibiblio.org/maven2/org/apache/maven/archetype/maven-archetype/1.0-alpha-4/maven-archetype-1.0-alpha-4.pom
All dependencies are listed as:
     <dependency>
       <groupId> </groupId>
       <artifactId> </artifactId>
       <version>${project.version}</version>
     </dependency>

Unless I'm mistaken, ${project.version} is *not* valid in a released pom.

This should probably be filed as a JIRA bug in component MVN. Probably
once this is fixed, your issue will also be resolved.

Wayne

On 5/10/06, Alex Shneyderman <[EMAIL PROTECTED]> wrote:
hmm,

I created an archetype following directions at
http://maven.apache.org/guides/mini/guide-creating-archetypes.html

this is waht I get when I run the archetype:create

$ mvn archetype:create -DarchetypeGroupId=com.opensymphony     -DarchetypeArtif
actId=webwork-app     -DarchetypeVersion=0.1     -DgroupId=my.group     -Dartif
actId=appid     -Dversion=0.1
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Maven Default Project
[INFO]    task-segment: [archetype:create] (aggregator-style)
[INFO] -------------------------------------------------------------------------
---
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch
etype-creator/0.1/maven-archetype-creator-0.1.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch
etype-core/0.1/maven-archetype-core-0.1.pom
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch
etype-creator/0.1/maven-archetype-creator-0.1.jar
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-arch
etype-core/0.1/maven-archetype-core-0.1.jar
[WARNING] Unable to get resource from repository central (http://repo1.maven.org
/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.maven.archetype:maven-archetype-creator:jar:0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.maven.archetype -DartifactId
=maven-archetype-creator \
          -Dversion=0.1 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alph
a-4
        2) org.apache.maven.archetype:maven-archetype-creator:jar:0.1

2) org.apache.maven.archetype:maven-archetype-core:jar:0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.apache.maven.archetype -DartifactId
=maven-archetype-core \
          -Dversion=0.1 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
        1) org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alph
a-4
        2) org.apache.maven.archetype:maven-archetype-core:jar:0.1

----------
2 required artifacts are missing.

for artifact:
  org.apache.maven.plugins:maven-archetype-plugin:maven-plugin:1.0-alpha-4

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://svn.apache.org/maven-snapshot-repository)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Wed May 10 09:54:17 PDT 2006
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------

Anyone knows what is wrong here?

Thanks,
Alex.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to