eclipse-ee4j / glassfish-samples

Other
32 stars 27 forks source link

Unable to launch application with cargo:run as latest-glassfish.zip: archive is not a ZIP archive #65

Open chainhead opened 3 years ago

chainhead commented 3 years ago

The mvn install ran successfully. However, when I do a mvn cargo:run in javaee8 folder, I get this error.

[ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.7.9:run (default-cli) on project glassfish-samples-parent: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.7.9:run failed: Failed to unpack [latest-glassfish.zip]: Error while expanding /var/folders/kp/q6f59rr15_d28h37c7zwt3yc_twsrn/T/cargo/installs/latest-glassfish.zip: archive is not a ZIP archive -> [Help 1]

What is missing?

ellkrauze commented 2 years ago

If you're facing this same issue, you may want to try and fix it via editing property in the parent file pom.xml to use HTTPS instead of HTTP. E.g. ws/jakartaee9/pom.xml: <cargo.maven.containerUrl>https://download.oracle.com/glassfish/5.0/promoted/latest-glassfish.zip</cargo.maven.containerUrl>