5 Replies Latest reply on May 28, 2008 3:58 AM by Ales Justin

    Cannot do a release of MC

    Ales Justin Master

      I'm trying to get out Microcontainer 2.0.0.Beta14.
      But I get this:

      C:\projects\microcontainer\kernel>mvn release:prepare -DdryRun=true
      [INFO] Scanning for projects...
      [INFO] Reactor build order:
      [INFO] JBoss Microcontainer Build
      [INFO] JBoss Microcontainer Dependency
      [INFO] JBoss Microcontainer Kernel
      [INFO] JBoss Microcontainer AOP MC INT
      [INFO] JBoss Microcontainer Spring Int
      [INFO] JBoss Microcontainer Guice Int
      [INFO] JBoss Microcontainer Aggregator
      [INFO] Searching repository for plugin with prefix: 'release'.
      WAGON_VERSION: 1.0-beta-2
      [INFO] ------------------------------------------------------------------------
      [INFO] Building JBoss Microcontainer Aggregator
      [INFO] task-segment: [release:prepare] (aggregator-style)
      [INFO] ------------------------------------------------------------------------
      [INFO] [release:prepare]
      [INFO] Verifying that there are no local modifications...
      [INFO] Executing: svn --non-interactive status
      [INFO] Working directory: C:\projects\microcontainer\kernel
      [INFO] Checking dependencies and plugins for snapshots ...
      What is the release version for "JBoss Microcontainer Aggregator"? (org.jboss.microcontainer:jboss-microcontainer-aggregator) 2.0.0: : 2.0.0.Beta14
      What is SCM release tag or label for "JBoss Microcontainer Aggregator"? (org.jboss.microcontainer:jboss-microcontainer-aggregator) jboss-microcontainer-aggregator-2.0.0.Beta14: : 2.0.0.Beta14
      What is the new development version for "JBoss Microcontainer Aggregator"? (org.jboss.microcontainer:jboss-microcontainer-aggregator) 2.0.1-SNAPSHOT: : 2.0.0-SNAPSHOT
      [INFO] Transforming 'JBoss Microcontainer Build'...
      [INFO] Updating jboss-aop-mc-int to 2.0.0.Beta14
      [INFO] Ignoring artifact version update for expression: ${project.version}
      [INFO] Updating jboss-dependency to 2.0.0.Beta14
      [INFO] Ignoring artifact version update for expression: ${project.version}
      [INFO] Updating jboss-kernel to 2.0.0.Beta14
      [INFO] Ignoring artifact version update for expression: ${project.version}
      [INFO] Updating jboss-kernel to 2.0.0.Beta14
      [INFO] Ignoring artifact version update for expression: ${project.version}
      [INFO] Updating jboss-spring-int to 2.0.0.Beta14
      [INFO] Ignoring artifact version update for expression: ${project.version}
      [INFO] Updating jboss-guice-int to 2.0.0.Beta14
      [INFO] Ignoring artifact version update for expression: ${project.version}
      [INFO] Transforming 'JBoss Microcontainer Dependency'...
      [INFO] Transforming 'JBoss Microcontainer Kernel'...
      [INFO] Updating jboss-dependency to 2.0.0.Beta14
      [INFO] Transforming 'JBoss Microcontainer AOP MC INT'...
      [INFO] Updating jboss-kernel to 2.0.0.Beta14
      [INFO] Updating jboss-kernel to 2.0.0.Beta14
      [INFO] Transforming 'JBoss Microcontainer Spring Int'...
      [INFO] Updating jboss-kernel to 2.0.0.Beta14
      [INFO] Transforming 'JBoss Microcontainer Guice Int'...
      [INFO] Updating jboss-kernel to 2.0.0.Beta14
      [INFO] Transforming 'JBoss Microcontainer Aggregator'...
      [INFO] Generating release POMs...
      [INFO] Generating release POM for 'JBoss Microcontainer Build'...
      [INFO] Generating release POM for 'JBoss Microcontainer Dependency'...
      [INFO] Generating release POM for 'JBoss Microcontainer Kernel'...
      [INFO] Generating release POM for 'JBoss Microcontainer AOP MC INT'...
      [INFO] Generating release POM for 'JBoss Microcontainer Spring Int'...
      [INFO] Generating release POM for 'JBoss Microcontainer Guice Int'...
      [INFO] Generating release POM for 'JBoss Microcontainer Aggregator'...
      [INFO] Full run would be adding [C:\projects\microcontainer\kernel\build\release-pom.xml, C:\projects\microcontainer\kernel\dependency\release-pom.xml, C:\projects\microcontainer\kernel\kernel\release-pom.xml, C:\projects\microcontainer\kernel\aop-mc
      -int\release-pom.xml, C:\projects\microcontainer\kernel\spring-int\release-pom.xml, C:\projects\microcontainer\kernel\guice-int\release-pom.xml, C:\projects\microcontainer\kernel\release-pom.xml]
      [INFO] Executing preparation goals - since this is simulation mode it is running against the original project, not the rewritten ones
      [INFO] Executing goals 'clean verify'...
      [INFO] Executing: mvn clean verify --no-plugin-updates -Prelease -P jboss.repository,local-properties
      [INFO] Scanning for projects...
       [INFO] NOTE: Using release-pom: C:\projects\microcontainer\kernel\release-pom.xml in reactor build.
       [INFO] NOTE: Using release-pom: C:\projects\microcontainer\kernel\build\release-pom.xml in reactor build.
       [INFO] NOTE: Using release-pom: C:\projects\microcontainer\kernel\dependency\release-pom.xml in reactor build.
       [INFO] NOTE: Using release-pom: C:\projects\microcontainer\kernel\kernel\release-pom.xml in reactor build.
       [INFO] NOTE: Using release-pom: C:\projects\microcontainer\kernel\aop-mc-int\release-pom.xml in reactor build.
       [INFO] NOTE: Using release-pom: C:\projects\microcontainer\kernel\spring-int\release-pom.xml in reactor build.
       [INFO] NOTE: Using release-pom: C:\projects\microcontainer\kernel\guice-int\release-pom.xml in reactor build.
       [INFO] Reactor build order:
       [INFO] JBoss Microcontainer Build
       [INFO] JBoss Microcontainer Dependency
       [INFO] JBoss Microcontainer Kernel
       [INFO] JBoss Microcontainer AOP MC INT
       [INFO] JBoss Microcontainer Spring Int
       [INFO] JBoss Microcontainer Guice Int
       [INFO] JBoss Microcontainer Aggregator
       [INFO] ------------------------------------------------------------------------
       [INFO] Building JBoss Microcontainer Build
       [INFO] task-segment: [clean, verify]
       [INFO] ------------------------------------------------------------------------
       [INFO] [clean:clean]
       [INFO] [site:attach-descriptor]
       [INFO] ------------------------------------------------------------------------
       [INFO] Building JBoss Microcontainer Dependency
       [INFO] task-segment: [clean, verify]
       [INFO] ------------------------------------------------------------------------
       [INFO] [clean:clean]
       Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2.SP1/maven-compiler-plugin-2.0.2.SP1.pom
       [INFO] [resources:resources]
       [INFO] Using default encoding to copy filtered resources.
       [INFO] [compiler:compile]
       [INFO] Compiling 35 source files to C:\projects\microcontainer\kernel\dependency\target\classes
       [INFO] ------------------------------------------------------------------------
       [ERROR] BUILD FAILURE
       [INFO] ------------------------------------------------------------------------
       [INFO] Compilation failure
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\CallbackItem.java:[33,29] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public interface CallbackItem<T>
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\AbstractControllerContextActions.java:[40,14] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       private Map<ControllerState, ControllerContextAction> actions;
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\ErrorHandlingMode.java:[31,1] annotations are not supported in -source 1.3
       (try -source 1.5 to enable annotations)
       @JBossXmlEnum(ignoreCase=true)
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\ErrorHandlingMode.java:[32,7] 'class' or 'interface' expected
      
       no more tokens - could not parse error message: C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\ErrorHandlingMode.java:49: 'class' or 'interface' expected
       ^
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\action\SimpleControllerContextAction.java:[32,51] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public abstract class SimpleControllerContextAction<T extends ControllerContext> extends AccessControllerContextAction<T, T>
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\helpers\UnmodifiableControllerContext.java:[67,13] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public Set<Object> getAliases()
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\Cardinality.java:[83,25] for-each loops are not supported in -source 1.3
       (try -source 1.5 to enable for-each loops)
       for (Cardinality c : values)
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\AbstractController.java:[70,15] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       private List<ControllerState> states = new CopyOnWriteArrayList<ControllerState>();
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\AbstractController.java:[152,42] for-each loops are not supported in -source 1.3
       (try -source 1.5 to enable for-each loops)
       for (AbstractController child : children)
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\ControllerState.java:[72,21] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       private static Map<String, ControllerState> values = new HashMap<String, ControllerState>();
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\OwnerCallbackItem.java:[37,39] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public abstract class OwnerCallbackItem<T, C> extends AbstractCallbackItem<T>
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\AttributeCallbackItem.java:[34,34] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public class AttributeCallbackItem<T> extends OwnerCallbackItem<T, AttributeDispatchContext>
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\action\AccessControllerContextAction.java:[40,51] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public abstract class AccessControllerContextAction<S extends ControllerContext, T extends ControllerContext> implements ControllerContextAction
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\ControllerContext.java:[48,6] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       Set<Object> getAliases();
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\ControllerStateModel.java:[32,54] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public interface ControllerStateModel extends Iterable<ControllerState>
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\helpers\UnmodifiableDependencyInfo.java:[51,13] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public Set<DependencyItem> getIDependOn(Class<?> type)
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\AbstractCallbackItem.java:[37,42] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public abstract class AbstractCallbackItem<T> extends JBossObject implements CallbackItem<T>
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\SingleCallbackItem.java:[35,31] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       public class SingleCallbackItem<T> extends OwnerCallbackItem<T, InvokeDispatchContext>
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\spi\Controller.java:[112,6] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       Set<ControllerContext> getNotInstalled();
      
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\AbstractDependencyInfo.java:[50,14] generics are not supported in -source 1.3
       (try -source 1.5 to enable generics)
       private Set<DependencyItem> iDependOn = new CopyOnWriteArraySet<DependencyItem>();
      [INFO] ------------------------------------------------------------------------
       [ERROR] BUILD ERROR
      
      [INFO] ------------------------------------------------------------------------
       C:\projects\microcontainer\kernel\dependency\src\main\org\jboss\dependency\plugins\A[INFO] Maven execution failed, exit code: '1'
      
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 26 seconds
      [INFO] Finished at: Fri May 02 11:53:58 CEST 2008
      [INFO] Final Memory: 7M/12M
      [INFO] ------------------------------------------------------------------------
      
      C:\projects\microcontainer\kernel>


      Bringing me back to this thread:
      - http://www.jboss.com/index.html?module=bb&op=viewtopic&t=133403
      I don't see how was I able to release it before (as stated in this thread) - what changed.

      This is preventing me from releasing Classloading and Deployers. :-(

        • 1. Re: Cannot do a release of MC
          Ales Justin Master

          I did try going back to jboss-parent 3, but then I get this error:

           [INFO] Building JBoss Microcontainer AOP MC INT
           [INFO] task-segment: [clean, verify]
           [INFO] ------------------------------------------------------------------------
           [INFO] [clean:clean]
           [INFO] [resources:resources]
           [INFO] Using default encoding to copy filtered resources.
           [INFO] [compiler:compile]
           [INFO] Compiling 99 source files to C:\projects\microcontainer\kernel\aop-mc-int\target\classes
           [WARNING] C:\projects\microcontainer\kernel\aop-mc-int\src\main\org\jboss\aop\microcontainer\integration\AOPDependencyBuilder.java:[89,42] [deprecation] getType() in org.jboss.reflect.spi.TypeInfo has been deprecated
          
           [WARNING] C:\projects\microcontainer\kernel\aop-mc-int\src\main\org\jboss\aop\microcontainer\integration\AOPConstructorJoinpoint.java:[85,56] [deprecation] getType() in org.jboss.reflect.spi.TypeInfo has been deprecated
          
           [WARNING] C:\projects\microcontainer\kernel\aop-mc-int\src\main\org\jboss\aop\microcontainer\lazy\JBossAOPLazyInitializer.java:[58,56] [deprecation] getType() in org.jboss.reflect.spi.TypeInfo has been deprecated
          
           [INFO] [resources:testResources]
           [INFO] Using default encoding to copy filtered resources.
           Downloading: http://snapshots.jboss.org/maven2/org/jboss/microcontainer/jboss-kernel/2.0.0.Beta14/jboss-kernel-2.0.0.Beta14-tests.jar
           Downloading: http://repository.jboss.org/maven2/org/jboss/microcontainer/jboss-kernel/2.0.0.Beta14/jboss-kernel-2.0.0.Beta14-tests.jar
           Downloading: http://repository.jboss.org/maven2/org/jboss/microcontainer/jboss-kernel/2.0.0.Beta14/jboss-kernel-2.0.0.Beta14-tests.jar
           Downloading: http://repo1.maven.org/maven2/org/jboss/microcontainer/jboss-kernel/2.0.0.Beta14/jboss-kernel-2.0.0.Beta14-tests.jar
           [INFO] ------------------------------------------------------------------------
           [ERROR] BUILD ERROR
           [INFO] ------------------------------------------------------------------------
           [INFO] Failed to resolve artifact.
          
           Missing:
           ----------
           1) org.jboss.microcontainer:jboss-kernel:test-jar:tests:2.0.0.Beta14
          
           Try downloading the file manually from the project website.
          
           Then, install it using the command:
           mvn install:install-file -DgroupId=org.jboss.microcontainer -DartifactId=jboss-kernel -Dversion=2.0.0.Beta14 -Dclassifier=tests -Dpackaging=test-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.microcontainer -DartifactId=jboss-kernel -Dversion=2.0.0.Beta14 -Dclassifier=tests -Dpackaging=test-jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
          
           Path to dependency:
           1) org.jboss.microcontainer:jboss-aop-mc-int:jar:2.0.0.Beta14
           2) org.jboss.microcontainer:jboss-kernel:test-jar:tests:2.0.0.Beta14
          
           ----------
           1 required artifact is missing.
          
           for artifact:
           org.jboss.microcontainer:jboss-aop-mc-int:jar:2.0.0.Beta14
          
           from the specified remote repositories:
           central (http://repo1.maven.org/maven2),
           jboss-snapshots (http://snapshots.jboss.org/maven2),
           repository.jboss.org (http://repository.jboss.org/maven2),
           snapshots.jboss.org (http://snapshots.jboss.org/maven2),
           jboss (http://repository.jboss.org/maven2)
          
          
           [INFO] ------------------------------------------------------------------------
           [INFO] For more information, run Maven with the -e switch
           [INFO] ------------------------------------------------------------------------
           [INFO] Total time: 57 seconds
           [INFO] Finished at: Fri May 02 13:22:19 CEST 2008
           [INFO] Final Memory: 16M/56M
           [INFO] ------------------------------------------------------------------------
           [INFO] ------------------------------------------------------------------------
          [ERROR] BUILD ERROR


          • 2. Re: Cannot do a release of MC
            Ales Justin Master

            I was able to make it work on jboss-parent 4-beta-2, but having generateReleasePoms == false.

            • 3. Re: Cannot do a release of MC
              Ales Justin Master

               

              "alesj" wrote:
              I was able to make it work on jboss-parent 4-beta-2, but having generateReleasePoms == false.

              Paul, any update on this?
              Since the new release period is coming soon ...

              • 4. Re: Cannot do a release of MC
                Paul Gier Master

                Sorry, no progress on this yet. You'll have to keep the release pom generation off for the near future.

                Using maven 2.0.9, the plugins are all tied to specific versions (part of what generateReleasePoms does), so you should release with that version of maven if possible.

                • 5. Re: Cannot do a release of MC
                  Ales Justin Master

                   

                  "pgier" wrote:
                  Sorry, no progress on this yet. You'll have to keep the release pom generation off for the near future.

                  OK, let me know when you're done.
                  Just make sure this is before we do 2.0.0.GA. ;-)

                  "pgier" wrote:

                  Using maven 2.0.9, the plugins are all tied to specific versions (part of what generateReleasePoms does), so you should release with that version of maven if possible.

                  I don't get this one. :-(