gpe-mw-training / advanced-process-development-labs-etc

3 stars 9 forks source link

Error running mvn clean install #2

Closed juhoffma closed 7 years ago

juhoffma commented 7 years ago

Trying to follow the lab instructions, I run into the following error.

[jboss@bpms lab]$ git clone https://github.com/gpe-mw-training/advanced-process-development-labs-etc.git
Cloning into 'advanced-process-development-labs-etc'...
remote: Counting objects: 325, done.
remote: Total 325 (delta 0), reused 0 (delta 0), pack-reused 325
Receiving objects: 100% (325/325), 145.07 KiB | 0 bytes/s, done.
Resolving deltas: 100% (105/105), done.
[jboss@bpms lab]$ cd advanced-process-development-labs-etc/
[jboss@bpms advanced-process-development-labs-etc]$ mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Acme :: Special Trips Agency Web Services
[INFO] Acme :: Special Trips Agency Web Services :: Data Model
[INFO] Acme :: Special Trips Agency Web Services :: Flight Service
[INFO] Acme :: Special Trips Agency Web Services :: Hotel Service
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Acme :: Special Trips Agency Web Services 1.0
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
Downloading: http://maven.repository.redhat.com/techpreview/all/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml (924 B at 3.0 KB/sec)
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml (2 KB at 1.9 KB/sec)
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-compiler-plugin/maven-metadata.xml (2 KB at 1.8 KB/sec)
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-compiler-plugin/3.6.1/maven-compiler-plugin-3.6.1.pom
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-compiler-plugin/3.6.1/maven-compiler-plugin-3.6.1.pom (11 KB at 30.6 KB/sec)
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-plugins/30/maven-plugins-30.pom
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-plugins/30/maven-plugins-30.pom (10 KB at 24.3 KB/sec)
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/maven-parent/30/maven-parent-30.pom
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/maven-parent/30/maven-parent-30.pom (41 KB at 102.4 KB/sec)
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/apache/18/apache-18.pom
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/apache/18/apache-18.pom (16 KB at 38.8 KB/sec)
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-compiler-plugin/3.6.1/maven-compiler-plugin-3.6.1.jar
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-compiler-plugin/3.6.1/maven-compiler-plugin-3.6.1.jar (58 KB at 157.7 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ parent ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ parent ---
[INFO] Installing /home/jboss/lab/advanced-process-development-labs-etc/pom.xml to /home/jboss/.m2/repository/org/acme/special-trips-agency-ws/parent/1.0/parent-1.0.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Acme :: Special Trips Agency Web Services :: Data Model 1.0
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ data-model ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ data-model ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/jboss/lab/advanced-process-development-labs-etc/data-model/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ data-model ---
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/com/google/google/1/google-1.pom
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/com/google/google/1/google-1.pom (0 B at 0.0 KB/sec)
[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 /home/jboss/lab/advanced-process-development-labs-etc/data-model/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ data-model ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/jboss/lab/advanced-process-development-labs-etc/data-model/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ data-model ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ data-model ---
[INFO] No tests to run.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ data-model ---
[INFO] Building jar: /home/jboss/lab/advanced-process-development-labs-etc/data-model/target/data-model-1.0.jar
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ data-model ---
[INFO] Installing /home/jboss/lab/advanced-process-development-labs-etc/data-model/target/data-model-1.0.jar to /home/jboss/.m2/repository/org/acme/special-trips-agency-ws/data-model/1.0/data-model-1.0.jar
[INFO] Installing /home/jboss/lab/advanced-process-development-labs-etc/data-model/pom.xml to /home/jboss/.m2/repository/org/acme/special-trips-agency-ws/data-model/1.0/data-model-1.0.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Acme :: Special Trips Agency Web Services :: Flight Service 1.0
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.pom
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.pom (7 KB at 17.9 KB/sec)
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.jar
Downloaded: http://repository.jboss.org/nexus/content/groups/public-jboss/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.jar (77 KB at 214.6 KB/sec)
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.pom
Downloading: http://maven.repository.redhat.com/techpreview/all/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.pom
Downloading: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.pom
Downloaded: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.pom (3 KB at 164.1 KB/sec)
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/slf4j/slf4j-parent/1.7.5/slf4j-parent-1.7.5.pom
Downloading: http://maven.repository.redhat.com/techpreview/all/org/slf4j/slf4j-parent/1.7.5/slf4j-parent-1.7.5.pom
Downloading: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.7.5/slf4j-parent-1.7.5.pom
Downloaded: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-parent/1.7.5/slf4j-parent-1.7.5.pom (12 KB at 480.3 KB/sec)
Downloading: http://repository.jboss.org/nexus/content/groups/public-jboss/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
Downloading: http://maven.repository.redhat.com/techpreview/all/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
Downloading: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar
Downloaded: https://repo.maven.apache.org/maven2/org/slf4j/slf4j-api/1.7.5/slf4j-api-1.7.5.jar (26 KB at 1157.8 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ flight-service ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ flight-service ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ flight-service ---
[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 5 source files to /home/jboss/lab/advanced-process-development-labs-etc/flight-service/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[59,32] method bookFlight(org.acme.specialtripsagency.flightservice.Booking) is already defined in class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[44,9] cannot find symbol
  symbol:   variable log
  location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[54,17] cannot find symbol
  symbol:   variable log
  location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[61,25] cannot find symbol
  symbol:   class AcmeFlightServiceFault
  location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[61,60] cannot find symbol
  symbol:   class AcmeFlightServiceFault
  location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[79,17] cannot find symbol
  symbol:   variable log
  location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[INFO] 6 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Acme :: Special Trips Agency Web Services .......... SUCCESS [  3.071 s]
[INFO] Acme :: Special Trips Agency Web Services :: Data Model SUCCESS [  1.542 s]
[INFO] Acme :: Special Trips Agency Web Services :: Flight Service FAILURE [  2.417 s]
[INFO] Acme :: Special Trips Agency Web Services :: Hotel Service SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.138 s
[INFO] Finished at: 2017-03-07T01:22:22-05:00
[INFO] Final Memory: 18M/170M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project flight-service: Compilation failure: Compilation failure:
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[59,32] method bookFlight(org.acme.specialtripsagency.flightservice.Booking) is already defined in class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[44,9] cannot find symbol
[ERROR] symbol:   variable log
[ERROR] location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[54,17] cannot find symbol
[ERROR] symbol:   variable log
[ERROR] location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[61,25] cannot find symbol
[ERROR] symbol:   class AcmeFlightServiceFault
[ERROR] location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[61,60] cannot find symbol
[ERROR] symbol:   class AcmeFlightServiceFault
[ERROR] location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[ERROR] /home/jboss/lab/advanced-process-development-labs-etc/flight-service/src/main/java/org/acme/specialtripsagency/flightservice/impl/AcmeFlightServiceImpl.java:[79,17] cannot find symbol
[ERROR] symbol:   variable log
[ERROR] location: class org.acme.specialtripsagency.flightservice.impl.AcmeFlightServiceImpl
[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 :flight-service
[jboss@bpms advanced-process-development-labs-etc]$
btison commented 7 years ago

This should be fixed. I forcefully reverted the last merge. You will probably have to make a new clone. Not very nice, but I prefer to keep a clean history on this project.