6 Replies Latest reply on Mar 5, 2012 10:13 PM by tejones

    Building Branch 3.x and javax.activation:activation:1.0.2 dependency

    bwallis42

      I have followed the instructions to get the source from git, set the branch to 3.x and then try a build. I get an error on a dependency in modeshape-jbossas-subsystem, the dependency is java.activation:activation:1.0.2.  It seems to be a problem in the maven central repository that is referencing the activation jar download using a java.sun.com url that no longer works (thanks oracle!)

       

      But I could be wrong about that, I always get lost trying to chase up dependencies.

       

      I'm building on a mac:

       

      % mvn -version

      Apache Maven 3.0.3 (r1075438; 2011-03-01 04:31:09+1100)

      Maven home: /usr/share/maven

      Java version: 1.6.0_29, vendor: Apple Inc.

      Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

      Default locale: en_AU, platform encoding: MacRoman

      OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac"

       

      I got it to work by finding a copy of the pom and jar and puting them into my .m2/repository directory in the appropriate place (javax/activation/activation/1.0.2)

       

      This is the error I got:

       

      {noformat}

      [INFO] ------------------------------------------------------------------------

      [INFO] Building ModeShape Subsystem Deployment for JBoss AS 3.0-SNAPSHOT

      [INFO] ------------------------------------------------------------------------

      Downloading: http://repository.jboss.org/nexus/content/groups/public/javax/activation/activation/1.0.2/activation-1.0.2.jar

      Downloading: http://repo1.maven.org/maven2/javax/activation/activation/1.0.2/activation-1.0.2.jar

      [INFO] ------------------------------------------------------------------------

      [INFO] Reactor Summary:

      [INFO]

      [INFO] ModeShape Subsystem Deployment for JBoss AS ....... FAILURE [7.533s]

      [INFO] ModeShape JBoss Deployment Components ............. SKIPPED

      [INFO] ModeShape Demo of Sequencing Files ................ SKIPPED

      [INFO] ModeShape Demo of Embedding Repository ............ SKIPPED

      [INFO] ModeShape Demos ................................... SKIPPED

      [INFO] ModeShape ......................................... SKIPPED

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 9.984s

      [INFO] Finished at: Mon Feb 27 15:12:04 EST 2012

      [INFO] Final Memory: 17M/81M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal on project modeshape-jbossas-subsystem: Could not resolve dependencies for project org.modeshape:modeshape-jbossas-subsystem:jar:3.0-SNAPSHOT: Could not find artifact javax.activation:activation:jar:1.0.2 in jboss-public-repository-group (http://repository.jboss.org/nexus/content/groups/public/) -> [Help 1]

      {noformat}