RE: Liferay IDE blade gw distBindle always uses 7zip bunble and fails

Michael Green, modified 5 Years ago. New Member Posts: 21 Join Date: 3/5/20 Recent Posts
Blade version: 3.9.1 SNAPSHOT202002241735
Lifereay version: 7.3.1 GA 2
Liferay IDE 3.8.0 GA1


The gradle task :distBundleTar|Zip always seems to be using the same liferay bundle no matter what I set in the gradel.properties. This happens in the IDE and the command line.  (Small point the liferay workspace creatation is also using the wrong tomcat version number. I had to change it from 9.0.17 to 9.0.33 to match 7.3.1 GA2)
gradel.properties:
app.server.tomcat.version = 9.0.33
liferay.workspace.bundle.url = https://releases-cdn.liferay.com/portal/7.3.1-ga2/liferay-ce-portal-tomcat-7.3.1-ga2-2
0200327090859603.tar.gz
liferay.workspace.target.platform.version = 7.3.0
microsoft.translator.subscription.key =  
target.platform.index.sources = true


Error:
$ blade gw distBundleTar
> Task :distBundle FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':distBundle'.
> Could not expand ZIP '/home/michael/.liferay/bundles/liferay-ce-portal-tomcat-7.3.1-ga2-20200327090859603.7z'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run wi
th --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
2 actionable tasks: 2 executed


Michael Green, modified 5 Years ago. New Member Posts: 21 Join Date: 3/5/20 Recent Posts
Sorry guys. I found that the $HOME/.gradle/gradel.properties file had a liferay.workspace.bundle.url line in it with the 7zip listed.
This overrides the project level gradle.properties file.This was from an earlier "misreading" of the documentation when I was setting up the http proxy options.
thumbnail
Gregory Amerson, modified 5 Years ago. Liferay Legend Posts: 1123 Join Date: 2/16/10 Recent Posts
Thanks for following up, glad you got it worked out.  Let us know if we can help with anything else.