Hello,
i tried to build the jasper server from source. I've checked the source code ( lastReviewed-trunk) from subversion.
I always get an an compilation error. I don't know why. I've tried to delete the maven repository.
[java] [INFO] ------------------------------------------------------------- [java] [ERROR] COMPILATION ERROR : [java] [INFO] ------------------------------------------------------------- [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-cli/7.2.0.Alpha1-redhat-4/jboss-as-cli-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-controller-client/7.2.0.Alpha1-redhat-4/jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-protocol/7.2.0.Alpha1-redhat-4/jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-build-config/7.2.0.Alpha1-redhat-4/jboss-as-build-config-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-controller/7.2.0.Alpha1-redhat-4/jboss-as-controller-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [INFO] 5 errors [java] [INFO] ------------------------------------------------------------- [java] [INFO] ------------------------------------------------------------------------ [java] [INFO] Reactor Summary: [java] [INFO] [java] [INFO] Jasper Server ...................................... SUCCESS [ 5.861 s] [java] [INFO] Jasper Server API .................................. SUCCESS [ 0.006 s] [java] [INFO] Jasper Server API - Common ......................... FAILURE [04:40 min] [java] [INFO] Jasper Server API - Metadata Interfaces ............ SKIPPED [java] [INFO] Jasper Server API - Engine ......................... SKIPPED [java] [INFO] Jasper Server API - externalAuth ................... SKIPPED [java] [INFO] Jasper Server API Implementations - All ............ SKIPPED [java] [INFO] Jasper Server API Implementations - Common ......... SKIPPED [java] [INFO] JasperServer Core Utilities ........................ SKIPPED [java] [INFO] Jasper Server API Implementations - Metadata ....... SKIPPED [java] [INFO] Jasper Server API impl - externalAuth .............. SKIPPED [java] [INFO] Jasper Server API Implementations - Engine ......... SKIPPED [java] [INFO] Jasper Server Hibernate Mappings ................... SKIPPED [java] [INFO] Jasper Server Common WebServices ................... SKIPPED [java] [INFO] JasperServer Data Transfer Objects ................. SKIPPED [java] [INFO] JasperServer Jar for Webapp ........................ SKIPPED [java] [INFO] JasperServer Export Import Tool .................... SKIPPED [java] [INFO] JasperServer Search ................................ SKIPPED [java] [INFO] JasperServer remote services ....................... SKIPPED [java] [INFO] JasperServer JAX-RS services ....................... SKIPPED [java] [INFO] JasperServer server Jar for WebServices ............ SKIPPED [java] [INFO] Jasper Server API .................................. SKIPPED [java] [INFO] Jasperserver Connectors ............................ SKIPPED [java] [INFO] Hadoop Hive Connector .............................. SKIPPED [java] [INFO] Cassandra Native Java Connector .................... SKIPPED [java] [INFO] JasperServer server Jar for REST services .......... SKIPPED [java] [INFO] MongoDB Datasource ................................. SKIPPED [java] [INFO] JasperServer WAR ................................... SKIPPED [java] [INFO] JasperServer Export Import Tool .................... SKIPPED [java] [INFO] Jasper Server Integration Tests .................... SKIPPED [java] [INFO] JasperServer Utilities ............................. SKIPPED [java] [INFO] ------------------------------------------------------------------------ [java] [INFO] BUILD FAILURE [java] [INFO] ------------------------------------------------------------------------ [java] [INFO] Total time: 04:47 min [java] [INFO] Finished at: 2015-05-02T11:25:40+02:00 [java] [INFO] Final Memory: 24M/146M [java] [INFO] ------------------------------------------------------------------------ [java] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jasperserver-api-common: Compilation failure: Compilation failure: [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-cli/7.2.0.Alpha1-redhat-4/jboss-as-cli-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-controller-client/7.2.0.Alpha1-redhat-4/jboss-as-controller-client-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-protocol/7.2.0.Alpha1-redhat-4/jboss-as-protocol-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-build-config/7.2.0.Alpha1-redhat-4/jboss-as-build-config-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [ERROR] error: error reading /Users/gerald/.m2/repository/org/jboss/as/jboss-as-controller/7.2.0.Alpha1-redhat-4/jboss-as-controller-7.2.0.Alpha1-redhat-4.jar; error in opening zip file [java] [ERROR] -> [Help 1] [java] [ERROR] [java] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [java] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [java] [ERROR] [java] [ERROR] For more information about the errors and possible solutions, please read the following articles: [java] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [java] [ERROR] [java] [ERROR] After correcting the problems, you can resume the build with the command [java] [ERROR] mvn <goals> -rf :jasperserver-api-common
How to fix that error?
2 Answers:
Posted on May 5, 2015 at 5:46am
iceey,
When I built jasperserver from source, i noticed that several of the dependencies did not exist in my local maven repo. Make sure you are using the maven repo that comes with the jasperserver source download.
in the default_master.properties files there is a property called...
# Repo path (extra dependencies repository path)
repo-path - make sure this points to the repository that comes with the source
- Josh
Can you attach your default_master.properties file?