8 Replies Latest reply on Jul 24, 2012 3:19 AM by Koen Aers

    forge install-plugin jboss-as-7 failure

    fiorenzo pizza Newbie

      Hi,

       

      i would install jboss-as7 plugin, on Forge, version [ 1.0.5.Final ], this is my error log:

       

      forge install-plugin jboss-as-7

      ***INFO*** Preparing to install plugin: jboss-as-7

      ***INFO*** Checking out plugin source files to [/tmp/forgetemp1310161428579583742/repo] via 'git'

      ***INFO*** Switching to branch/tag [refs/heads/1.0.5.Final]

      ***INFO*** Invoking build with underlying build system.

      [INFO] Scanning for projects...

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

      [INFO] Building Unnamed - org.jboss.as:plugin-jboss-as7:jar:1.0.0-SNAPSHOT

      [INFO]    task-segment: [clean, package]

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

      [INFO] [clean:clean {execution: default-clean}]

      [INFO] [resources:resources {execution: default-resources}]

      [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

      [INFO] Copying 2 resources

      [INFO] [compiler:compile {execution: default-compile}]

      [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!

      [INFO] Compiling 23 source files to /tmp/forgetemp1310161428579583742/repo/target/classes

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

      [ERROR] COMPILATION ERROR :

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

      [ERROR] /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[24,28] package org.jboss.forge.maven does not exist

      [ERROR] /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[25,36] package org.jboss.forge.maven.plugins does not exist

      [ERROR] /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[33,15] cannot find symbol

      symbol: class MavenPluginFacet

      @RequiresFacet(MavenPluginFacet.class)

      [ERROR] /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,8] cannot find symbol

      symbol  : class MavenPluginFacet

      location: class org.jboss.as.forge.AS7Facet

      [ERROR] /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,56] cannot find symbol

      symbol  : class MavenPluginFacet

      location: class org.jboss.as.forge.AS7Facet

      [ERROR] /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[45,34] cannot find symbol

      symbol  : variable MavenPluginBuilder

      location: class org.jboss.as.forge.AS7Facet

      [ERROR] /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,8] cannot find symbol

      symbol  : class MavenPluginFacet

      location: class org.jboss.as.forge.AS7Facet

      [ERROR] /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,56] cannot find symbol

      symbol  : class MavenPluginFacet

      location: class org.jboss.as.forge.AS7Facet

      [INFO] 8 errors

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

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

      [ERROR] BUILD FAILURE

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

      [INFO] Compilation failure

       

       

      /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[24,28] package org.jboss.forge.maven does not exist

      /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[25,36] package org.jboss.forge.maven.plugins does not exist

      /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[33,15] cannot find symbol

      symbol: class MavenPluginFacet

      @RequiresFacet(MavenPluginFacet.class)

      /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,8] cannot find symbol

      symbol  : class MavenPluginFacet

      location: class org.jboss.as.forge.AS7Facet

      /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,56] cannot find symbol

      symbol  : class MavenPluginFacet

      location: class org.jboss.as.forge.AS7Facet

      /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[45,34] cannot find symbol

      symbol  : variable MavenPluginBuilder

      location: class org.jboss.as.forge.AS7Facet

      /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,8] cannot find symbol

      symbol  : class MavenPluginFacet

      location: class org.jboss.as.forge.AS7Facet

      /tmp/forgetemp1310161428579583742/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,56] cannot find symbol

      symbol  : class MavenPluginFacet

      location: class org.jboss.as.forge.AS7Facet

       

       

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

      [INFO] For more information, run Maven with the -e switch

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

      [INFO] Total time: 3 seconds

      [INFO] Finished at: Sun Jul 22 23:41:03 CEST 2012

      [INFO] Final Memory: 45M/439M

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

      Wrote /home/fiorenzo/.forge/httpsrawgithubcomforgepluginrepositorymasterrepositoryyaml.yaml

      ***ERROR*** [forge install-plugin] Build failed.

       

      Some suggestions to install jboss plugin?

       

      thanks in advance

       

      fiorenzo

        • 1. Re: forge install-plugin jboss-as-7 failure
          Koen Aers Master

          Hi Fiorenzo,

           

          I was able to install the plugin correctly on my platform (OSX Lion - Java 1.6.0_33). Can you give us your configuration?

           

          Cheers,

          Koen

          • 2. Re: forge install-plugin jboss-as-7 failure
            fiorenzo pizza Newbie

            Hi Koen,

             

            my platform:

             

            linux: ubuntu 12.04 

            java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.12.04.1)

            OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

             

             

            installed plugins:

            <?xml version="1.0" encoding="UTF-8" standalone="no"?>

            <installed>

              <plugin api-version="1.0.5.Final" name="org.jboss.hibernate.forge.hibernate-tools-plugin" slot="1.0.0-SNAPSHOT-15ebfb0d-1e20-4478-8260-dfc1248ec91c"/>

              <plugin api-version="1.0.5.Final" name="org.jboss.jdf.jdf-plugin" slot="1.0.0-SNAPSHOT-8ee4df65-1ea3-40b1-ae8e-47d7d4aba824"/>

            </installed>

             

             

            bye

             

            fiorenzo

            • 3. Re: forge install-plugin jboss-as-7 failure
              Koen Aers Master

              Hi Fiorenzo,

               

              It might well be a Java version issue. Is it possible to try with a later Java version (e.g. 1.6.0_33)?

               

              Cheers,

              Koen

              • 4. Re: forge install-plugin jboss-as-7 failure
                fiorenzo pizza Newbie

                Hi Koen,

                 

                using Java HotSpot(TM) 64-Bit Server VM

                 

                ***INFO*** The command [java] takes [0] unnamed argument(s), but found [1].

                ***INFO*** Swallowed unknown token [-version] for command [java].

                javax.xml.datatype.DatatypeFactory: __redirected.__DatatypeFactory

                java.runtime.name: Java(TM) SE Runtime Environment

                java.vm.version: 20.8-b03

                javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom: __redirected.__XPathFactory

                java.vm.vendor: Sun Microsystems Inc.

                java.vendor.url: http://java.sun.com/

                java.vm.name: Java HotSpot(TM) 64-Bit Server VM

                java.vm.specification.name: Java Virtual Machine Specification

                java.runtime.version: 1.6.0_33-b04

                java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment

                java.endorsed.dirs: /usr/lib/jvm/jdk1.6.0_33/jre/lib/endorsed

                java.io.tmpdir: /tmp

                java.vm.specification.vendor: Sun Microsystems Inc.

                javax.xml.stream.XMLOutputFactory: __redirected.__XMLOutputFactory

                javax.xml.stream.XMLInputFactory: __redirected.__XMLInputFactory

                javax.xml.parsers.SAXParserFactory: __redirected.__SAXParserFactory

                java.library.path: /usr/lib/jvm/jdk1.6.0_33/jre/lib/amd64/server:/usr/lib/jvm/jdk1.6.0_33/jre/lib/amd64:/usr/lib/jvm/jdk1.6.0_33/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib

                java.specification.name: Java Platform API Specification

                java.class.version: 50.0

                javax.xml.stream.XMLEventFactory: __redirected.__XMLEventFactory

                java.awt.printerjob: sun.print.PSPrinterJob

                javax.xml.transform.TransformerFactory: __redirected.__TransformerFactory

                java.specification.version: 1.6

                java.class.path: /home/fiorenzo/javatools/forge/forge-distribution-1.0.5.Final/jboss-modules.jar

                javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema: __redirected.__SchemaFactory

                java.vm.specification.version: 1.0

                java.home: /usr/lib/jvm/jdk1.6.0_33/jre

                java.specification.vendor: Sun Microsystems Inc.

                java.vm.info: mixed mode

                java.version: 1.6.0_33

                java.ext.dirs: /usr/lib/jvm/jdk1.6.0_33/jre/lib/ext:/usr/java/packages/lib/ext

                javax.xml.parsers.DocumentBuilderFactory: __redirected.__DocumentBuilderFactory

                java.vendor: Sun Microsystems Inc.

                java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi

                 

                 

                same problem:

                 

                [INFO] Compilation failure

                 

                 

                /tmp/forgetemp7105292291406685703/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[24,28] package org.jboss.forge.maven does not exist

                /tmp/forgetemp7105292291406685703/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[25,36] package org.jboss.forge.maven.plugins does not exist

                /tmp/forgetemp7105292291406685703/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[33,15] cannot find symbol

                symbol: class MavenPluginFacet

                @RequiresFacet(MavenPluginFacet.class)

                /tmp/forgetemp7105292291406685703/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,8] cannot find symbol

                symbol  : class MavenPluginFacet

                location: class org.jboss.as.forge.AS7Facet

                /tmp/forgetemp7105292291406685703/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,56] cannot find symbol

                symbol  : class MavenPluginFacet

                location: class org.jboss.as.forge.AS7Facet

                /tmp/forgetemp7105292291406685703/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[45,34] cannot find symbol

                symbol  : variable MavenPluginBuilder

                location: class org.jboss.as.forge.AS7Facet

                /tmp/forgetemp7105292291406685703/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,8] cannot find symbol

                symbol  : class MavenPluginFacet

                location: class org.jboss.as.forge.AS7Facet

                /tmp/forgetemp7105292291406685703/repo/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,56] cannot find symbol

                symbol  : class MavenPluginFacet

                location: class org.jboss.as.forge.AS7Facet

                 

                 

                i will try with older version of openjdk

                 

                Fiorenzo

                • 5. Re: forge install-plugin jboss-as-7 failure
                  Koen Aers Master

                  Hi Fiorenzo,

                   

                  If that didn't help it probably is *not* a Java version issue. Maybe try to nuke your Maven repo? I'm just suggesting as I don't have the issue and I don't have an Ubuntu machine handy.

                   

                  Cheers,

                  Koen

                  • 6. Re: forge install-plugin jboss-as-7 failure
                    Lincoln Baxter III Master

                    Yeah. I think this sounds like there are some bad artifacts in the local Maven repository somehow. Try deleting your ~/.m2/repository/ directory (or moving it aside) and trying again.

                     

                    ~Lincoln

                    • 7. Re: forge install-plugin jboss-as-7 failure
                      fiorenzo pizza Newbie

                      a stupid maven2 version....

                       

                       

                      solved with maven3!

                       

                      fiorenzo

                      • 8. Re: forge install-plugin jboss-as-7 failure
                        Koen Aers Master

                        Ha!

                         

                        I'm glad you solved the problem.

                         

                        Cheers,

                        Koen