[jboss-user] [JBoss Seam] - seam-gen setup and maven

atao do-not-reply at jboss.com
Sat Sep 22 14:11:33 EDT 2007


I just updated seam from cvs and tried to created a new project.

When I run "seam setup" I get:
anonymous wrote : 
  | Buildfile: C:\DEV\projects\eclipse\workspace\seam-cvs\seam-gen\build.xml
  | 
  | init:
  | [artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/${version}.${patchlevel}/jboss-seam-gen-${version}.${
  | patchlevel}.pom
  | [artifact:dependencies] [WARNING] POM for 'org.jboss.seam:jboss-seam-gen:pom:${version}.${patchlevel}:compile' is invali
  | d. It will be ignored for artifact resolution. Reason: The POM expression: ${version} could not be evaluated. Reason: Ex
  | pression value '${version}.${patchlevel}' references itself in 'org.jboss.seam:jboss-seam-gen:pom:${version}.${patchleve
  | l}'. for project org.jboss.seam:jboss-seam-gen at Artifact [org.jboss.seam:jboss-seam-gen:pom:${version}.${patchlevel}:c
  | ompile]
  | [artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/${version}.${patchlevel}/jboss-seam-gen-${version}.${
  | patchlevel}.jar
  | [artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
  | [artifact:dependencies]  Diagnosis:
  | [artifact:dependencies]
  | [artifact:dependencies] Unable to resolve artifact: Missing:
  | [artifact:dependencies] ----------
  | [artifact:dependencies] 1) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | [artifact:dependencies]
  | [artifact:dependencies]   Try downloading the file manually from the project website.
  | [artifact:dependencies]
  | [artifact:dependencies]   Then, install it using the command:
  | [artifact:dependencies]       mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
  | [artifact:dependencies]           -Dversion=${version}.${patchlevel} -Dpackaging=jar -Dfile=/path/to/file
  | [artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there:       mvn deploy:d
  | eploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
  | [artifact:dependencies]           -Dversion=${version}.${patchlevel} -Dpackaging=jar -Dfile=/path/to/file \
  | [artifact:dependencies]            -Durl=[url] -DrepositoryId=[id]
  | [artifact:dependencies]
  | [artifact:dependencies]   Path to dependency:
  | [artifact:dependencies]         1) unspecified:unspecified:jar:0.0
  | [artifact:dependencies]         2) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | [artifact:dependencies]
  | [artifact:dependencies] ----------
  | [artifact:dependencies] 1 required artifact is missing.
  | [artifact:dependencies]
  | [artifact:dependencies] for artifact:
  | [artifact:dependencies]   unspecified:unspecified:jar:0.0
  | [artifact:dependencies]
  | [artifact:dependencies] from the specified remote repositories:
  | [artifact:dependencies]   central (http://repo1.maven.org/maven2)
  | [artifact:dependencies]
  | [artifact:dependencies]
  | 
  | BUILD FAILED
  | C:\DEV\projects\eclipse\workspace\seam-cvs\seam-gen\build.xml:25: Unable to resolve artifact: Missing:
  | ----------
  | 1) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | 
  |   Try downloading the file manually from the project website.
  | 
  |   Then, install it using the command:
  |       mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
  |           -Dversion=${version}.${patchlevel} -Dpackaging=jar -Dfile=/path/to/file
  | Alternatively, if you host your own repository you can deploy the file there:       mvn deploy:deploy-file -DgroupId=org
  | .jboss.seam -DartifactId=jboss-seam-gen \
  |           -Dversion=${version}.${patchlevel} -Dpackaging=jar -Dfile=/path/to/file \
  |            -Durl=[url] -DrepositoryId=[id]
  | 
  |   Path to dependency:
  |         1) unspecified:unspecified:jar:0.0
  |         2) org.jboss.seam:jboss-seam-gen:jar:${version}.${patchlevel}
  | 
  | ----------
  | 1 required artifact is missing.
  | 
  | for artifact:
  |   unspecified:unspecified:jar:0.0
  | 
  | from the specified remote repositories:
  |   central (http://repo1.maven.org/maven2)
  | 
  | 
  | Total time: 2 seconds
  | 
  | 

I don't know Maven. It seams that version and patchlevel should be initialized.

Am'I right? If so, where this must be done?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087554#4087554

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087554



More information about the jboss-user mailing list