7 Replies Latest reply on May 28, 2008 8:14 AM by kabirkhan

    Getting aop 2.0.0.CR10 jars into AS

    kabirkhan

      I am trying to upgrade AS to use AOP 2.0.0.CR10, but the plugin is not recognised.

      [kabir@~/sourcecontrol/thirdparty/legacy/jboss/aop/2.0.0.CR10]
      $mvn org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin:maven-deploy -Durl=file:///Users/kabir/sourcecontrol/thirdparty/maven2/
      [INFO] Scanning for projects...
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] The plugin 'org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin' does not exist or no valid version could be found
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: < 1 second
      [INFO] Finished at: Tue May 27 21:58:18 BST 2008
      [INFO] Final Memory: 1M/2M
      [INFO] ------------------------------------------------------------------------
      


      Why is it not picked up? Also, if it were picked up am I entering the right command? ~/sourcecontrol/thirdparty/legacy/jboss/aop/2.0.0.CR10 is my local checkout of the version I want to add

      [kabir@~/sourcecontrol/thirdparty/legacy/jboss/aop/2.0.0.CR10]
      $ls -al *
      -rw-r--r--@ 1 kabir staff 1591 27 May 21:33 component-info.xml
      
      lib:
      total 5296
      drwxr-xr-x 13 kabir staff 442 27 May 21:32 .
      drwxr-xr-x 7 kabir staff 238 27 May 21:33 ..
      drwxr-xr-x 9 kabir staff 306 27 May 21:35 .svn
      -rw-r--r-- 1 kabir staff 28118 27 May 20:55 jboss-aop-as4-deployer.jar
      -rw-r--r-- 1 kabir staff 42568 27 May 20:55 jboss-aop-deployer-jdk50.jar
      -rw-r--r-- 1 kabir staff 22267 27 May 20:55 jboss-aop-jboss4-jdk50.jar
      -rw-r--r-- 1 kabir staff 192847 27 May 20:55 jboss-aop-jdk50-client.jar
      -rw-r--r-- 1 kabir staff 1256790 27 May 20:55 jboss-aop-jdk50.jar
      -rw-r--r-- 1 kabir staff 909593 27 May 20:55 jboss-aop-src.zip
      -rw-r--r-- 1 kabir staff 102049 27 May 20:55 jboss-standalone-aspect-library-jdk50.jar
      -rw-r--r-- 1 kabir staff 125814 27 May 20:55 jboss-standalone-aspects-src.zip
      -rw-r--r-- 1 kabir staff 6990 27 May 21:27 jrockit-pluggable-instrumentor.jar
      -rw-r--r-- 1 kabir staff 4761 27 May 20:55 pluggable-instrumentor.jar
      
      resources:
      total 16
      drwxr-xr-x 5 kabir staff 170 27 May 21:21 .
      drwxr-xr-x 7 kabir staff 238 27 May 21:33 ..
      drwxr-xr-x 9 kabir staff 306 27 May 21:35 .svn
      -rw-r--r-- 1 kabir staff 2441 27 May 21:21 aspect-deployer-beans.xml
      -rw-r--r-- 1 kabir staff 853 27 May 21:21 jboss-aspect-library-beans.xml
      


        • 1. Re: Getting aop 2.0.0.CR10 jars into AS
          alrubinger

          Should "org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin" be declared somewhere in "org.jboss:jboss-parent"?

          http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/jboss-parent/tags/jboss-parent-4-beta-1/pom.xml

          ..or is this specific to AS?

          S,
          ALR

          • 2. Re: Getting aop 2.0.0.CR10 jars into AS
            pgier

            Kabir, do you have the jboss maven repository configured in your settings.xml?

            http://wiki.jboss.org/wiki/MavenSettings

            • 3. Re: Getting aop 2.0.0.CR10 jars into AS
              pgier

               

              "ALRubinger" wrote:
              Should "org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin" be declared somewhere in "org.jboss:jboss-parent"?

              http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/jboss-parent/tags/jboss-parent-4-beta-1/pom.xml

              ..or is this specific to AS?

              S,
              ALR


              The way the plugin is used is project specific so I don't think it needs to be in the parent.

              • 4. Re: Getting aop 2.0.0.CR10 jars into AS
                kabirkhan

                 

                "pgier" wrote:
                Kabir, do you have the jboss maven repository configured in your settings.xml?

                http://wiki.jboss.org/wiki/MavenSettings


                I think so, it works for everything else? Here's my snapshot server
                 <server>
                 <id>snapshots.jboss.org</id>
                 <username>kabir.khan@jboss.com</username>
                 <password>i@£%@maven</password>
                 </server>
                

                and my profile
                <profile>
                 <id>jboss.repository</id>
                 <activation>
                 <property>
                 <name>!jboss.repository.off</name>
                 </property>
                 </activation>
                 <repositories>
                 <repository>
                 <id>repository.jboss.org</id>
                 <url>http://repository.jboss.org/maven2</url>
                 <releases>
                 <enabled>true</enabled>
                 </releases>
                 <snapshots>
                 <enabled>false</enabled>
                 </snapshots>
                 </repository>
                 <repository>
                 <id>snapshots.jboss.org</id>
                 <url>http://snapshots.jboss.org/maven2</url>
                 <releases>
                 <enabled>false</enabled>
                 </releases>
                 <snapshots>
                 <enabled>true</enabled>
                 </snapshots>
                 </repository>
                 </repositories>
                 <pluginRepositories>
                 <pluginRepository>
                 <id>repository.jboss.org</id>
                 <url>http://repository.jboss.org/maven2</url>
                 <releases>
                 <enabled>true</enabled>
                 </releases>
                 <snapshots>
                 <enabled>false</enabled>
                 </snapshots>
                 </pluginRepository>
                 <pluginRepository>
                 <id>snapshots.jboss.org</id>
                 <url>http://snapshots.jboss.org/maven2</url>
                 <releases>
                 <enabled>false</enabled>
                 </releases>
                 <snapshots>
                 <enabled>true</enabled>
                 </snapshots>
                 </pluginRepository>
                 </pluginRepositories>
                 </profile>
                




                • 5. Re: Getting aop 2.0.0.CR10 jars into AS
                  kabirkhan

                  I tried deleting my local copy of the plugin

                  [kabir@~/.m2/repository/org/jboss/maven/plugins]
                  $rm -r maven-buildmagic-thirdparty-plugin/
                  


                  Following an unsuccessful build
                  [kabir@~/sourcecontrol/thirdparty/legacy/jboss/aop/2.0.0.CR10]
                  $mvn org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin:maven-deploy -Durl=file:///Users/kabir/sourcecontrol/thirdparty/maven2/[INFO] Scanning for projects...
                  [INFO] artifact org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin: checking for updates from central
                  [INFO] ------------------------------------------------------------------------
                  [ERROR] BUILD ERROR
                  [INFO] ------------------------------------------------------------------------
                  [INFO] The plugin 'org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin' does not exist or no valid version could be found
                  [INFO] ------------------------------------------------------------------------
                  [INFO] For more information, run Maven with the -e switch
                  [INFO] ------------------------------------------------------------------------
                  [INFO] Total time: < 1 second
                  [INFO] Finished at: Wed May 28 10:04:42 BST 2008
                  [INFO] Final Memory: 1M/2M
                  [INFO] ------------------------------------------------------------------------
                  


                  I get a maven-metadata-central.xml
                  [kabir@~/.m2/repository/org/jboss/maven/plugins]
                  $ls maven-buildmagic-thirdparty-plugin/
                  maven-metadata-central.xml
                  [kabir@~/.m2/repository/org/jboss/maven/plugins]
                  $more maven-buildmagic-thirdparty-plugin/maven-metadata-central.xml
                  <?xml version="1.0" encoding="UTF-8"?><metadata>
                   <groupId>org.jboss.maven.plugins</groupId>
                   <artifactId>maven-buildmagic-thirdparty-plugin</artifactId>
                  </metadata>
                  


                  Apart from that nothing is downloaded

                  • 6. Re: Getting aop 2.0.0.CR10 jars into AS
                    kabirkhan

                    With Paul's help, we found that if the plugin is not downloaded yet, and mvn is run from a directory with no pom.xml, it ignores any repositories specified in settings.xml! Once the plugin is downloaded it should be possible to run it from anywhere.

                    • 7. Re: Getting aop 2.0.0.CR10 jars into AS
                      kabirkhan

                      It fails if I just specify the plugin

                      kabir@~/sourcecontrol/thirdparty/legacy/jboss/aop/2.0.0.CR10]
                      $mvn org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin:maven-deploy -Durl=file:///Users/kabir/sourcecontrol/thirdparty/maven2/
                      [INFO] Scanning for projects...
                      [INFO] ------------------------------------------------------------------------
                      [ERROR] BUILD ERROR
                      [INFO] ------------------------------------------------------------------------
                      [INFO] The plugin 'org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin' does not exist or no valid version could be found
                      [INFO] ------------------------------------------------------------------------
                      [INFO] For more information, run Maven with the -e switch
                      [INFO] ------------------------------------------------------------------------
                      [INFO] Total time: < 1 second
                      [INFO] Finished at: Wed May 28 13:12:27 BST 2008
                      [INFO] Final Memory: 1M/2M
                      [INFO] ------------------------------------------------------------------------
                      


                      but works if I specify the version number for the plugin
                      [kabir@~/sourcecontrol/thirdparty/legacy/jboss/aop/2.0.0.CR10]
                      $mvn org.jboss.maven.plugins:maven-buildmagic-thirdparty-plugin:2.0:maven-deploy -Durl=file:///Users/kabir/sourcecontrol/thirdparty/maven2/
                      ...
                      [INFO] BUILD SUCCESSFUL
                      [INFO] ------------------------------------------------------------------------
                      [INFO] Total time: 2 seconds
                      [INFO] Finished at: Wed May 28 13:12:39 BST 2008
                      [INFO] Final Memory: 2M/4M
                      [INFO] ------------------------------------------------------------------------