lapots / breed-platform

0 stars 0 forks source link

Building fine #1

Open khmarbaise opened 7 years ago

khmarbaise commented 7 years ago

I have cloned the repo and done this: mvn clean

~/ws-git-so/breed-platform (master)$ mvn clean
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] breed-platform
[INFO] json-dynamic-parser
[INFO] console-input-lib
[INFO] application
[INFO] guice-annotation
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building breed-platform 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ breed-platform ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building json-dynamic-parser 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ json-dynamic-parser ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building console-input-lib 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ console-input-lib ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building application 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ application ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building guice-annotation 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ guice-annotation ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] breed-platform ..................................... SUCCESS [  0.197 s]
[INFO] json-dynamic-parser ................................ SUCCESS [  0.029 s]
[INFO] console-input-lib .................................. SUCCESS [  0.003 s]
[INFO] application ........................................ SUCCESS [  0.004 s]
[INFO] guice-annotation ................................... SUCCESS [  0.037 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.746 s
[INFO] Finished at: 2017-08-19T22:56:02+02:00
[INFO] Final Memory: 18M/491M
[INFO] ------------------------------------------------------------------------

Furthermore doing mvn package the result looks like this:

~/ws-git-so/breed-platform (master)$ mvn package
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] breed-platform
[INFO] json-dynamic-parser
[INFO] console-input-lib
[INFO] application
[INFO] guice-annotation
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building breed-platform 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building json-dynamic-parser 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://localhost:8081/nexus/content/groups/public/com/owlike/genson/1.4/genson-1.4.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/com/owlike/genson/1.4/genson-1.4.pom (6.8 kB at 24 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/owlike/genson-parent/1.4/genson-parent-1.4.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/com/owlike/genson-parent/1.4/genson-parent-1.4.pom (4.9 kB at 63 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/projectlombok/lombok/1.16.16/lombok-1.16.16.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/org/projectlombok/lombok/1.16.16/lombok-1.16.16.pom (1.6 kB at 21 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/owlike/genson/1.4/genson-1.4.jar
Downloading: http://localhost:8081/nexus/content/groups/public/org/projectlombok/lombok/1.16.16/lombok-1.16.16.jar
Downloaded: http://localhost:8081/nexus/content/groups/public/com/owlike/genson/1.4/genson-1.4.jar (386 kB at 832 kB/s)
Downloaded: http://localhost:8081/nexus/content/groups/public/org/projectlombok/lombok/1.16.16/lombok-1.16.16.jar (1.4 MB at 1.1 MB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ json-dynamic-parser ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ json-dynamic-parser ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 20 source files to /Users/kama/ws-git-so/breed-platform/json-dynamic-parser/target/classes
[INFO] /Users/kama/ws-git-so/breed-platform/json-dynamic-parser/src/main/java/com/lapots/breed/platform/json/JsonParserRunner.java: Some input files use unchecked or unsafe operations.
[INFO] /Users/kama/ws-git-so/breed-platform/json-dynamic-parser/src/main/java/com/lapots/breed/platform/json/JsonParserRunner.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ json-dynamic-parser ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/kama/ws-git-so/breed-platform/json-dynamic-parser/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ json-dynamic-parser ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ json-dynamic-parser ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ json-dynamic-parser ---
[INFO] Building jar: /Users/kama/ws-git-so/breed-platform/json-dynamic-parser/target/json-dynamic-parser-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building console-input-lib 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://localhost:8081/nexus/content/groups/public/org/beanshell/bsh/2.0b5/bsh-2.0b5.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/org/beanshell/bsh/2.0b5/bsh-2.0b5.pom (1.1 kB at 14 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar
Downloaded: http://localhost:8081/nexus/content/groups/public/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar (384 kB at 1.2 MB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ console-input-lib ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ console-input-lib ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 14 source files to /Users/kama/ws-git-so/breed-platform/console-input-lib/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ console-input-lib ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/kama/ws-git-so/breed-platform/console-input-lib/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ console-input-lib ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ console-input-lib ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ console-input-lib ---
[INFO] Building jar: /Users/kama/ws-git-so/breed-platform/console-input-lib/target/console-input-lib-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building application 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://localhost:8081/nexus/content/groups/public/com/google/inject/guice/4.1.0/guice-4.1.0.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/com/google/inject/guice/4.1.0/guice-4.1.0.pom (11 kB at 483 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/google/inject/guice-parent/4.1.0/guice-parent-4.1.0.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/com/google/inject/guice-parent/4.1.0/guice-parent-4.1.0.pom (16 kB at 867 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/hibernate/hibernate-core/5.2.10.Final/hibernate-core-5.2.10.Final.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/org/hibernate/hibernate-core/5.2.10.Final/hibernate-core-5.2.10.Final.pom (3.5 kB at 20 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.pom (9.8 kB at 546 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/jboss/spec/javax/transaction/jboss-transaction-api_1.2_spec/1.0.1.Final/jboss-transaction-api_1.2_spec-1.0.1.Final.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/org/jboss/spec/javax/transaction/jboss-transaction-api_1.2_spec/1.0.1.Final/jboss-transaction-api_1.2_spec-1.0.1.Final.pom (5.0 kB at 33 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/jboss/jboss-parent/20/jboss-parent-20.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/org/jboss/jboss-parent/20/jboss-parent-20.pom (34 kB at 139 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final.pom (5.7 kB at 48 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/jboss/jboss-parent/12/jboss-parent-12.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/org/jboss/jboss-parent/12/jboss-parent-12.pom (32 kB at 2.0 MB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/fasterxml/classmate/1.3.0/classmate-1.3.0.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/com/fasterxml/classmate/1.3.0/classmate-1.3.0.pom (5.7 kB at 301 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final.pom (1.9 kB at 119 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/h2database/h2/1.4.196/h2-1.4.196.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/com/h2database/h2/1.4.196/h2-1.4.196.pom (960 B at 7.7 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/mchange/c3p0/0.9.5.2/c3p0-0.9.5.2.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/com/mchange/c3p0/0.9.5.2/c3p0-0.9.5.2.pom (1.5 kB at 66 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/mchange/mchange-commons-java/0.2.11/mchange-commons-java-0.2.11.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/com/mchange/mchange-commons-java/0.2.11/mchange-commons-java-0.2.11.pom (3.3 kB at 193 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/google/inject/guice/4.1.0/guice-4.1.0.jar
Downloading: http://localhost:8081/nexus/content/groups/public/org/hibernate/hibernate-core/5.2.10.Final/hibernate-core-5.2.10.Final.jar
Downloading: http://localhost:8081/nexus/content/groups/public/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar
Downloading: http://localhost:8081/nexus/content/groups/public/org/jboss/spec/javax/transaction/jboss-transaction-api_1.2_spec/1.0.1.Final/jboss-transaction-api_1.2_spec-1.0.1.Final.jar
Downloading: http://localhost:8081/nexus/content/groups/public/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final.jar
Downloaded: http://localhost:8081/nexus/content/groups/public/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar (751 kB at 12 MB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/fasterxml/classmate/1.3.0/classmate-1.3.0.jar
Downloaded: http://localhost:8081/nexus/content/groups/public/com/fasterxml/classmate/1.3.0/classmate-1.3.0.jar (64 kB at 763 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final.jar
Downloaded: http://localhost:8081/nexus/content/groups/public/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final.jar (75 kB at 691 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/h2database/h2/1.4.196/h2-1.4.196.jar
Downloaded: http://localhost:8081/nexus/content/groups/public/org/jboss/spec/javax/transaction/jboss-transaction-api_1.2_spec/1.0.1.Final/jboss-transaction-api_1.2_spec-1.0.1.Final.jar (28 kB at 196 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/mchange/c3p0/0.9.5.2/c3p0-0.9.5.2.jar
Downloaded: http://localhost:8081/nexus/content/groups/public/com/mchange/c3p0/0.9.5.2/c3p0-0.9.5.2.jar (498 kB at 2.8 MB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/mchange/mchange-commons-java/0.2.11/mchange-commons-java-0.2.11.jar
Downloaded: http://localhost:8081/nexus/content/groups/public/com/mchange/mchange-commons-java/0.2.11/mchange-commons-java-0.2.11.jar (606 kB at 2.6 MB/s)
Downloaded: http://localhost:8081/nexus/content/groups/public/com/google/inject/guice/4.1.0/guice-4.1.0.jar (674 kB at 951 kB/s)
Downloaded: http://localhost:8081/nexus/content/groups/public/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final.jar (187 kB at 244 kB/s)
Downloaded: http://localhost:8081/nexus/content/groups/public/com/h2database/h2/1.4.196/h2-1.4.196.jar (1.8 MB at 773 kB/s)
Downloaded: http://localhost:8081/nexus/content/groups/public/org/hibernate/hibernate-core/5.2.10.Final/hibernate-core-5.2.10.Final.jar (6.6 MB at 1.1 MB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ application ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ application ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 21 source files to /Users/kama/ws-git-so/breed-platform/application/target/classes
[INFO] /Users/kama/ws-git-so/breed-platform/application/src/main/java/com/lapots/breed/platform/core/repository/GenderRepository.java: Some input files use unchecked or unsafe operations.
[INFO] /Users/kama/ws-git-so/breed-platform/application/src/main/java/com/lapots/breed/platform/core/repository/GenderRepository.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ application ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/kama/ws-git-so/breed-platform/application/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ application ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ application ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ application ---
[INFO] Building jar: /Users/kama/ws-git-so/breed-platform/application/target/application-0.0.1-SNAPSHOT.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building guice-annotation 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://localhost:8081/nexus/content/groups/public/com/squareup/javapoet/1.9.0/javapoet-1.9.0.pom
Downloaded: http://localhost:8081/nexus/content/groups/public/com/squareup/javapoet/1.9.0/javapoet-1.9.0.pom (4.4 kB at 55 kB/s)
Downloading: http://localhost:8081/nexus/content/groups/public/com/squareup/javapoet/1.9.0/javapoet-1.9.0.jar
Downloaded: http://localhost:8081/nexus/content/groups/public/com/squareup/javapoet/1.9.0/javapoet-1.9.0.jar (93 kB at 736 kB/s)
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ guice-annotation ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ guice-annotation ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 7 source files to /Users/kama/ws-git-so/breed-platform/guice-annotation/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider com.lapots.breed.platform.guice.annotation.GuiceInjectProcessor not found
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] breed-platform ..................................... SUCCESS [  0.002 s]
[INFO] json-dynamic-parser ................................ SUCCESS [  3.989 s]
[INFO] console-input-lib .................................. SUCCESS [  0.759 s]
[INFO] application ........................................ SUCCESS [  7.629 s]
[INFO] guice-annotation ................................... FAILURE [  0.262 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.975 s
[INFO] Finished at: 2017-08-19T22:59:50+02:00
[INFO] Final Memory: 27M/544M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project guice-annotation: Compilation failure
[ERROR] Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider com.lapots.breed.platform.guice.annotation.GuiceInjectProcessor not found
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :guice-annotation
lapots commented 7 years ago

As I mentioned in comment project guice-annotation cannot be build for now (you might as well exclude it from root pom.xml)

    <modules>
        <module>application</module>
        <!--<module>guice-annotation</module>-->
        <module>console-input-lib</module>
        <module>json-dynamic-parser</module>
    </modules>

I don't use it for the application project.