Inkimar / dina-mediaserver

GNU General Public License v3.0
0 stars 2 forks source link

'mvn clean compile' fails #1

Open gnewton opened 9 years ago

gnewton commented 9 years ago

$ mvn clean compile [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] MediaserverApp [INFO] DomainService [INFO] MediaserverApp-ejb [INFO] MediaserverRestUtil [INFO] MediaServerResteasy [INFO] MediaServerRestful [INFO] SimpleTaxonMock-Client [INFO] SimpleTaxonMock-Server [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building MediaserverApp 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MediaserverApp --- [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building DomainService 2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ DomainService --- [INFO] Deleting /home/newtong/work/dina-mediaserver/DomainService/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ DomainService --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/newtong/work/dina-mediaserver/DomainService/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ DomainService --- [INFO] Compiling 27 source files to /home/newtong/work/dina-mediaserver/DomainService/target/classes [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building MediaserverApp-ejb 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MediaserverApp-ejb --- [INFO] Deleting /home/newtong/work/dina-mediaserver/MediaserverApp-ejb/target [INFO] [INFO] --- maven-dependency-plugin:2.1:copy (default) @ MediaserverApp-ejb --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ MediaserverApp-ejb --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MediaserverApp-ejb --- [INFO] Compiling 5 source files to /home/newtong/work/dina-mediaserver/MediaserverApp-ejb/target/classes [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building MediaserverRestUtil 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ RestfulUtil --- [INFO] Deleting /home/newtong/work/dina-mediaserver/RestfulUtil/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ RestfulUtil --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ RestfulUtil --- [INFO] Compiling 4 source files to /home/newtong/work/dina-mediaserver/RestfulUtil/target/classes [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building MediaServerResteasy 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MediaServerResteasy --- [INFO] Deleting /home/newtong/work/dina-mediaserver/MediaServerResteasy/target [INFO] [INFO] --- maven-dependency-plugin:2.1:copy (default) @ MediaServerResteasy --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ MediaServerResteasy --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MediaServerResteasy --- [INFO] Compiling 21 source files to /home/newtong/work/dina-mediaserver/MediaServerResteasy/target/classes [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building MediaServerRestful 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ MediaServerRestful --- [INFO] Deleting /home/newtong/work/dina-mediaserver/MediaServerRestful/target [INFO] [INFO] --- maven-dependency-plugin:2.1:copy (default) @ MediaServerRestful --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ MediaServerRestful --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MediaServerRestful --- [INFO] Compiling 3 source files to /home/newtong/work/dina-mediaserver/MediaServerRestful/target/classes [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building SimpleTaxonMock-Client 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2 [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ WebMockTaxon --- [INFO] Deleting /home/newtong/work/dina-mediaserver/SimpleTaxonMockClient/target [INFO] [INFO] --- maven-dependency-plugin:2.6:copy (default) @ WebMockTaxon --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ WebMockTaxon --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ WebMockTaxon --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 3 source files to /home/newtong/work/dina-mediaserver/SimpleTaxonMockClient/target/classes [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building SimpleTaxonMock-Server 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ SimpleTaxonMock --- [INFO] Deleting /home/newtong/work/dina-mediaserver/SimpleTaxonMockServer/target [INFO] [INFO] --- maven-dependency-plugin:2.1:copy (default) @ SimpleTaxonMock --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ SimpleTaxonMock --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- liquibase-maven-plugin:2.0.1:update (default) @ SimpleTaxonMock --- [INFO] ------------------------------------------------------------------------ [INFO] Parsing Liquibase Properties File [INFO] File: src/main/dbschema/liquibase.properties [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] MediaserverApp .................................... SUCCESS [0.125s] [INFO] DomainService ..................................... SUCCESS [0.971s] [INFO] MediaserverApp-ejb ................................ SUCCESS [0.762s] [INFO] MediaserverRestUtil ............................... SUCCESS [0.320s] [INFO] MediaServerResteasy ............................... SUCCESS [0.697s] [INFO] MediaServerRestful ................................ SUCCESS [0.320s] [INFO] SimpleTaxonMock-Client ............................ SUCCESS [0.984s] [INFO] SimpleTaxonMock-Server ............................ FAILURE [0.316s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.624s [INFO] Finished at: Thu Dec 04 15:16:29 EST 2014 [INFO] Final Memory: 46M/430M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:2.0.1:update (default) on project SimpleTaxonMock: Error setting up or running Liquibase: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure [ERROR] [ERROR] The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. Connection refused [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/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :SimpleTaxonMock $

gnewton commented 9 years ago

'mvn compile' should only be compiling the .java files: it should not be interacting with external DB (creating schemas, populating DBs, etc).

Inkimar commented 9 years ago

Hello Glen,

The project is trying to populate a database in the 'external demo' using Liquibase, that database has to be created ( no automation yet )

The requirments for setting up the 2 databases are in the document requirement-databases.md

For the future, 2 steps : So that one can build the code ( 1.1 and 2.1 ) and populate the databases ( 1.2 and 2.2 )

I will create 2 parent-pom-projects.

  1. The mediaserver 1.1 The mediaserver java ( mvn clean install ) 1.2 The mediaserver - database ( mvn clean install )
  2. A demo-application 2.1 The demo-application- java ( mvn clean install ) 2.2 The demo-application- database ( mvn clean install )
gnewton commented 9 years ago

HI Inkimar,

I understand. But 'mvn compile' should not be doing any populating of databases, etc: just compiling. 'mvn compile' - when completed successfully - tells me that all the Java files compile. That is all it should be doing.

Thanks, Glen