[jboss-dev] Another mvn release issue

Ales Justin ales.justin at gmail.com
Thu May 20 06:03:29 EDT 2010


Ah, found it -- weird this ever worked.
It was actually a bug in our pom.

classloading-vfs had this

  <parent>
    <groupId>org.jboss.cl</groupId>
    <artifactId>jboss-cl</artifactId>
    <version>2.0.9-SNAPSHOT</version>
    <relativePath>../build</relativePath> <----- UPS!!
  </parent>

On May 20, 2010, at 11:46 AM, Ales Justin wrote:

> While I'm "mvn release:prepare" I get another weird mvn issue.
> 
> It fails to find the artifact I just built; 
> * jboss-cl is made from classloader <-- classloading <-- classloading-vfs
> 
> [INFO] [INFO] Building JBoss ClassLoading VFS
> [INFO] [INFO]    task-segment: [clean, verify]
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] [clean:clean {execution: default-clean}]
> [INFO] [INFO] Deleting file set: /Users/alesj/projects/branches/mc/classloading/Branch_2_0/classloading-vfs/target (included: [**], excluded: [])
> [INFO] [INFO] [enforcer:enforce {execution: enforce-plugin-versions}]
> [INFO] Downloading: https://repository.jboss.org/nexus/content/groups/developer/org/jboss/cl/jboss-cl/2.0.9.GA/jboss-cl-2.0.9.GA.pom
> [INFO] [INFO] Unable to find resource 'org.jboss.cl:jboss-cl:pom:2.0.9.GA' in repository jboss-releases (http://repository.jboss.org/maven2)
> [INFO] Downloading: https://repository.jboss.org/nexus/content/groups/developer/org/jboss/cl/jboss-cl/2.0.9.GA/jboss-cl-2.0.9.GA.pom
> [INFO] [INFO] Unable to find resource 'org.jboss.cl:jboss-cl:pom:2.0.9.GA' in repository central (http://central)
> [INFO] Downloading: https://repository.jboss.org/nexus/content/groups/developer/org/jboss/cl/jboss-cl/2.0.9.GA/jboss-cl-2.0.9.GA.pom
> [INFO] [INFO] Unable to find resource 'org.jboss.cl:jboss-cl:pom:2.0.9.GA' in repository repository.jboss.org (http://repository.jboss.org/maven2/)
> [INFO] Downloading: https://repository.jboss.org/nexus/content/groups/developer/org/jboss/cl/jboss-cl/2.0.9.GA/jboss-cl-2.0.9.GA.pom
> [INFO] [INFO] Unable to find resource 'org.jboss.cl:jboss-cl:pom:2.0.9.GA' in repository apiviz.release (http://apiviz.googlecode.com/svn/site/repo/mvn/release)
> [INFO] [WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequirePluginVersions failed with message:
> [INFO] Unable to download the artifact from any repository
> [INFO] 
> [INFO]   org.jboss.cl:jboss-cl:pom:2.0.9.GA
> [INFO] 
> [INFO] from the specified remote repositories:
> [INFO]   jboss-developer-repository-group (https://repository.jboss.org/nexus/content/groups/developer)
> [INFO] 
> [INFO] 
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [ERROR] BUILD ERROR
> [INFO] [INFO] ------------------------------------------------------------------------
> [INFO] [INFO] Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
> 
> 
> 
> From "mvn dependency:tree"
> 
> Missing:
> ----------
> 1) org.jboss.cl:jboss-classloader:jar:2.0.9.GA
> 
>  Try downloading the file manually from the project website.
> 
>  Then, install it using the command: 
>      mvn install:install-file -DgroupId=org.jboss.cl -DartifactId=jboss-classloader -Dversion=2.0.9.GA -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.cl -DartifactId=jboss-classloader -Dversion=2.0.9.GA -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> 
>  Path to dependency: 
>  	1) org.jboss.cl:jboss-classloading:jar:2.0.9.GA
>  	2) org.jboss.cl:jboss-classloader:jar:2.0.9.GA
> 
> 
> This used to work.
> Any other-than-manual-release workaround or know fix?
> 
> -Ales
> 





More information about the jboss-development mailing list