Error while mvn -P cargo.run

319 views
Skip to first unread message

shreykh...@gmail.com

unread,
Dec 20, 2013, 7:44:13 AM12/20/13
to hippo-c...@googlegroups.com
 
Hello All,
 
I am trying to clean build a new hippo project and faced this issue when doing mvn -P cargo.run . Dont know what is causing this. Can some one please help ?
 
 
[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.1.3:run

(cargo-run) on project myhippoproject: Execution cargo-run of goal org.codehaus.

cargo:cargo-maven2-plugin:1.1.3:run failed: Error while expanding C:\Users\25693

2\.m2\repository\org\codehaus\cargo\cargo-container-archives\apache-tomcat-6.0.3

7.tar.gz: Not in GZIP format -> [Help 1]
 
Thanks ,
Shrey Khandelwal

Jeroen Reijn

unread,
Dec 20, 2013, 7:49:18 AM12/20/13
to hippo-c...@googlegroups.com
Hi,

it seems that your tar.gz file is currupt. Could you check if you can manually open or extract the file located at 

C:\Users\256932\.m2\repository\org\codehaus\cargo\cargo-container-archives\apache-tomcat-6.0.37.tar.gz

If so please delete the existing file and try again :-)

Jeroen


--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
Most Hippo developers are active here and/or follow the Stackoverflow [hippo-cms] tag.
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jeroen Reijn
Solution Architect
Hippo

Amsterdam - Oosteinde 11, 1017 WT Amsterdam
Boston - 101 Main Street, Cambridge, MA 02142

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

http://about.me/jeroenreijn

shreykh...@gmail.com

unread,
Dec 20, 2013, 8:34:39 AM12/20/13
to hippo-c...@googlegroups.com
Hey Jerone,
 
That was my first instincts. So i checked the file and it seems to be curropted. So , I deleted myHippoProject and .m2 and did a complete installation again. However, I still got the same issue.
 
Have already tried deleting .m2 and project thrice and restarting it from scratch.

shreykh...@gmail.com

unread,
Dec 23, 2013, 3:31:16 AM12/23/13
to hippo-c...@googlegroups.com, shreykh...@gmail.com
Also, Have deleted the file couple of times i.;e C:\Users\256932\.m2\repository\org\codehaus\cargo\cargo-container-archives\apache-tomcat-6.0.37.tar.gz and run the command but i get the same issue.
 
Thanks,
Shrey Khandelwal

Minos Chatzidakis

unread,
Dec 23, 2013, 4:46:28 AM12/23/13
to hippo-c...@googlegroups.com, shreykh...@gmail.com
Do you perhaps have permissions issues? I see your path (C:\Users\256932\.m2\...) which suggests to me that you're probably on a corporate network, not a personal home computer/laptop. Could it be that you're missing security rights? Can you log in to the same machine you're using now, but with admin credentials and re-try the installation?

Also, a wild guess, could you try removing the space in your mvn command, so, run it like this: "mvn -Pcargo.run". I know under windows there are some known issues with spaces (like mvn failing if using spaces between 2 profiles, e.g. "mvn -Pcargo.run, tests"

Minos
--


--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
Most Hippo developers are active here and/or follow the Stackoverflow [hippo-cms] tag.
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/groups/opt_out.



--
With kind regards/Met vriendelijke groet,
Minos Chatzidakis

shreykh...@gmail.com

unread,
Dec 23, 2013, 6:44:12 AM12/23/13
to hippo-c...@googlegroups.com, shreykh...@gmail.com
Minos,
 
In past i have successfully installed Hippo CMS on the same machine and worked with it. I am not sure because even before , when i had successfully installed hippo , i had same set of permissions and rights.
 
However, I wil try to get access to admin id and try to install it.
 
Thanks and Regards,
Shrey Khandelwal

shreykh...@gmail.com

unread,
Dec 23, 2013, 7:26:59 AM12/23/13
to hippo-c...@googlegroups.com, shreykh...@gmail.com
Dear Minos,
 
I had deleted .m2 and myhippoproject , got admin rights and registry editing rights on my machine for my ID and tried to do the installation again. Still the issue persists.
 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.649s
[INFO] Finished at: Mon Dec 23 17:53:35 IST 2013
[INFO] Final Memory: 6M/245M
[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.1.3:run
(cargo-run) on project myhippoproject: Execution cargo-run of goal org.codehaus.
cargo:cargo-maven2-plugin:1.1.3:run failed: Error while expanding C:\Users\25693
2\.m2\repository\org\codehaus\cargo\cargo-container-archives\apache-tomcat-6.0.3
7.tar.gz: Not in GZIP format -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutio
nException
C:\hippo7\myhippoproject>
 
Thanks and Regards,
Shrey khandelwal

Minos Chatzidakis

unread,
Dec 23, 2013, 8:04:33 AM12/23/13
to hippo-c...@googlegroups.com, shreykh...@gmail.com
Ok some more suggestions would be:

- Run mvn with -X for more information
- Un-tar the tomcat archive, then re-tar and gzip it. Then run mvn in offline mode (-o) (otherwise it may download the file again)
- What mvn version are you using?
- What java version are you using? Is it a JRE or a JDK?
- Is there perhaps a mvn proxy (e.g. artifactory) from which you're getting the archive from, instead of getting it from codehaus directly? (it could be that the cached archive is corrupt)

I'm running out of ideas... perhaps you could check on a different machine as well? 

Minos
--


Mathijs den Burger

unread,
Dec 24, 2013, 4:23:34 AM12/24/13
to hippo-c...@googlegroups.com, shreykh...@gmail.com
Hi Shrey,

Another wild guess: you could inspect the contents of the file
'C:\Users\256932\.m2\repository\org\codehaus\cargo\cargo-container-archives\apache-tomcat-6.0.37.tar.gz'.
It could be that when Cargo tries to download the latest Tomcat
distribution, it gets an HTML error page back instead of a real tar.gz
fle when downloading the latest Tomcat. The 'tar.gz' file on your
system would then actually contain that HTML error page. The error
message may give you a hint about what's going on.

You can also download the Tomcat distribution yourself and put it in
your .m2 directory at the same location as Cargo would use. Cargo will
then pick it up automatically.

hope this helps,
Mathijs

shreykh...@gmail.com

unread,
Dec 26, 2013, 3:34:55 AM12/26/13
to hippo-c...@googlegroups.com, shreykh...@gmail.com
Hi Minos,
 
Please find my replies in bold.
 
Run mvn with -X for more information
- Un-tar the tomcat archive, then re-tar and gzip it. Then run mvn in offline mode (-o) (otherwise it may download the file again)
 -- I am not able to extract the file. I get an Corrupt File message.
- What mvn version are you using?
--apache-maven-3.0.3-bin
- What java version are you using? Is it a JRE or a JDK?
--JDK 6
- Is there perhaps a mvn proxy (e.g. artifactory) from which you're getting the archive from, instead of getting it from codehaus directly? (it could be that the cached archive is corrupt)
-- I am not sure about this.
 
Thanks and Regards,
Shrey Khandelwal

shreykh...@gmail.com

unread,
Dec 26, 2013, 3:37:08 AM12/26/13
to hippo-c...@googlegroups.com, shreykh...@gmail.com
Hi Mathijs,
 
Can you please share the url for the page where i can download tomcat distribution ? is it the normal tomcat server that we can download ?
 
Thanks,
Shrey Khandelwal

Olivier Bourgeois

unread,
Dec 27, 2013, 5:13:16 AM12/27/13
to hippo-c...@googlegroups.com
Hi,

  the Tomcat distribution downloaded by the Maven Cargo plugin is a standard one, so you can simply download it and replace your corrupted file. You can find the archive link at the bottom of this page (or on the Tomcat website):


shreykh...@gmail.com

unread,
Jan 2, 2014, 2:33:34 AM1/2/14
to hippo-c...@googlegroups.com, shreykh...@gmail.com
Finally was able to make hippo run. I suppose the issue was with corporate firewall
 
Ecternally downloaded tomcat distribution from tomcat website. copy-pasted the apache-tomcat-6.0.37.tar.gz in the folder. and then run mvn uin offline mode.
 
Thanks Minos
 
Regards,
Shrey
Reply all
Reply to author
Forward
0 new messages