Open jonatan-kazmierczak opened 11 years ago
Code cannot be build.
Environment info:
OS: Debian Wheezy, 3.2.0-3-amd64 Java: OpenJDK Runtime Environment (IcedTea7 2.1.3) (7u3-2.1.3-1) OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) Maven: Apache Maven 2.2.1 (rdebian-8)
Scenario 1) from withing JBoss Forge: forge install-plugin jboss-as-7
Scenario 2) from command line: git clone git://github.com/forge/plugin-jboss-as.git cd plugin-jboss-as/ mvn clean package
Result: [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] Deleting file set: /mnt/data/work/other/plugin-jboss-as/target (included: [**], excluded: []) [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 /mnt/data/work/other/plugin-jboss-as/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[24,28] error: package org.jboss.forge.maven does not exist [ERROR] /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[25,36] error: package org.jboss.forge.maven.plugins does not exist [ERROR] /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[33,15] error: cannot find symbol [ERROR] class MavenPluginFacet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,8] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,56] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[45,34] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,8] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,56] error: cannot find symbol [INFO] 8 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[24,28] error: package org.jboss.forge.maven does not exist /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[25,36] error: package org.jboss.forge.maven.plugins does not exist /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[33,15] error: cannot find symbol class MavenPluginFacet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,8] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,56] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[45,34] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,8] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,56] error: cannot find symbol
[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] Deleting file set: /mnt/data/work/other/plugin-jboss-as/target (included: [**], excluded: []) [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 /mnt/data/work/other/plugin-jboss-as/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[24,28] error: package org.jboss.forge.maven does not exist [ERROR] /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[25,36] error: package org.jboss.forge.maven.plugins does not exist [ERROR] /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[33,15] error: cannot find symbol [ERROR] class MavenPluginFacet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,8] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,56] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[45,34] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,8] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,56] error: cannot find symbol [INFO] 8 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[24,28] error: package org.jboss.forge.maven does not exist /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[25,36] error: package org.jboss.forge.maven.plugins does not exist /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[33,15] error: cannot find symbol class MavenPluginFacet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,8] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,56] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[45,34] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,8] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,56] error: cannot find symbol
Cause of problem: Lack of dependency on forge-maven-api
Solution: Adding missing dependency in pom.xml:
Solution again (with missed tags in pom.xml):
<dependency> <groupId>org.jboss.forge</groupId> <artifactId>forge-maven-api</artifactId> <scope>provided</scope> </dependency>
Code cannot be build.
Environment info:
OS: Debian Wheezy, 3.2.0-3-amd64 Java: OpenJDK Runtime Environment (IcedTea7 2.1.3) (7u3-2.1.3-1) OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode) Maven: Apache Maven 2.2.1 (rdebian-8)
Scenario 1) from withing JBoss Forge: forge install-plugin jboss-as-7
Scenario 2) from command line: git clone git://github.com/forge/plugin-jboss-as.git cd plugin-jboss-as/ mvn clean package
Result:
[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] Deleting file set: /mnt/data/work/other/plugin-jboss-as/target (included: [**], excluded: []) [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 /mnt/data/work/other/plugin-jboss-as/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[24,28] error: package org.jboss.forge.maven does not exist [ERROR] /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[25,36] error: package org.jboss.forge.maven.plugins does not exist [ERROR] /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[33,15] error: cannot find symbol [ERROR] class MavenPluginFacet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,8] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,56] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[45,34] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,8] error: cannot find symbol [ERROR] class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,56] error: cannot find symbol [INFO] 8 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[24,28] error: package org.jboss.forge.maven does not exist /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[25,36] error: package org.jboss.forge.maven.plugins does not exist /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[33,15] error: cannot find symbol class MavenPluginFacet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,8] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[43,56] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[45,34] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,8] error: cannot find symbol class AS7Facet /mnt/data/work/other/plugin-jboss-as/src/main/java/org/jboss/as/forge/AS7Facet.java:[52,56] error: cannot find symbol
Cause of problem: Lack of dependency on forge-maven-api
Solution: Adding missing dependency in pom.xml: