Page 1 of 1

Getting Error while Running site as Maven Install

Posted: Fri Oct 26, 2012 3:41 pm
by gourav.vaidya
Below is the Error which i am getting while Running the demo site.
Any help appreciated .

thanks in advance

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] ecommerce
[INFO] core
[INFO] admin
[INFO] site
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ecommerce 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ ecommerce-website ---
[INFO] Installing /Users/gourav/eclipse-workspace 2/DemoSite/pom.xml to /Users/gourav/.m2/repository/com/mycompany/ecommerce-website/1.0/ecommerce-website-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building core 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 19 resources
[INFO]
[INFO] --- javarebel-maven-plugin:1.0.5:generate (generate-rebel-xml) @ core ---
[INFO] Processing com.mycompany:core with packaging jar
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ core ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/gourav/eclipse-workspace 2/DemoSite/core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ core ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ core ---
[INFO] Surefire report directory: /Users/gourav/eclipse-workspace 2/DemoSite/core/target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ core ---
[INFO] Building jar: /Users/gourav/eclipse-workspace 2/DemoSite/core/target/core-1.0.jar
[INFO] META-INF/maven/com.mycompany/core/pom.xml already added, skipping
[INFO] META-INF/maven/com.mycompany/core/pom.properties already added, skipping
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ core ---
[INFO] Installing /Users/gourav/eclipse-workspace 2/DemoSite/core/target/core-1.0.jar to /Users/gourav/.m2/repository/com/mycompany/core/1.0/core-1.0.jar
[INFO] Installing /Users/gourav/eclipse-workspace 2/DemoSite/core/pom.xml to /Users/gourav/.m2/repository/com/mycompany/core/1.0/core-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building admin 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:timestamp-property (timestamp-property) @ admin ---
[WARNING] Using platform locale (en_US actually) to format date/time, i.e. build is platform dependent!
[INFO] Setting property 'clientBuildDate' to '2012-10-26 20:30:27'.
[INFO]
[INFO] --- keytool-maven-plugin:1.2:clean (clean) @ admin ---
[INFO] Keystore file '/Users/gourav/eclipse-workspace 2/DemoSite/admin/target/admin/WEB-INF/blc-example.keystore' deleted successfully.
[INFO]
[INFO] --- keytool-maven-plugin:1.2:genkey (genkey) @ admin ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ admin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] Copying 1 resource
[INFO]
[INFO] --- javarebel-maven-plugin:1.0.5:generate (generate-rebel-xml) @ admin ---
[INFO] Processing com.mycompany:admin with packaging war
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ admin ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ admin ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/gourav/eclipse-workspace 2/DemoSite/admin/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ admin ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ admin ---
[INFO] Surefire report directory: /Users/gourav/eclipse-workspace 2/DemoSite/admin/target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------

[code]Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ admin ---
[ERROR] Failed to read module XML file sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@5eb10190
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ecommerce ......................................... SUCCESS [0.803s]
[INFO] core .............................................. SUCCESS [6.941s]
[INFO] admin ............................................. FAILURE [4.490s]
[INFO] site .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.974s
[INFO] Finished at: Sat Oct 27 02:00:30 GMT+05:30 2012
[INFO] Final Memory: 12M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.4.0:compile (default) on project admin: Failed to read module XML file sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@5eb10190: invalid LOC header (bad signature) -> [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/disp ... nException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :admin

Re: Getting Error while Running site as Maven Install

Posted: Tue Oct 30, 2012 12:47 pm
by phillipuniverse
Looks like something is corrupted in your maven install? Perhaps try to removing the gwt-maven-plugin artifact from your .m2 directory

Re: Getting Error while Running site as Maven Install

Posted: Sun Nov 18, 2012 3:37 am
by sikandul
Hi,

You can try replace your repo with new one in maven settings.xml. This worked for me

Ex:
<localRepository>
C:\Siva\coc\m2_repo
</localRepository>

Re: Getting Error while Running site as Maven Install

Posted: Sun Nov 18, 2012 9:47 pm
by chico1198@yahoo.com
You can also simply delete the repo - or any part of it - and it will be repopulated.