-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use now maven-exec to create packages as part of the build #871
use now maven-exec to create packages as part of the build #871
Conversation
…ied to the Xcode version selected for your build, it is not set independently. To use a particular JDK for your build, be sure to select an OS X image which includes the version of Java that you need.
Possible errorsin
|
I have merged that PR with Development to cedricwalter-Bitsquare_Icon_Missing_on_compiled_release and have a few questions: You commented out the icon definition in the .iss file: Another developer has set the path to that (not tested yet): Have you tested if the icon works on windows when removed? The travis file got edited by @cbeams. When I run mvn package I get that error: [INFO] Replacing /Users/dev/Documents/intellij/exchange_bisq/gui/target/gui-0.5.3-app.jar with /Users/dev/Documents/intellij/exchange_bisq/gui/target/gui-0.5.3-bundled.jar Any idea what causes that? Might be some of my merge changes caused a problem. |
|
@cedricwalter Not sure about the other parts though.... |
@cedricwalter getting the same error as Manfred on Mac:
Any hints/ideas on how to debug this? |
Hi @mrosseel yes look in gui/pom.xml line 455, this require a properly set ${env.JAVA_HOME}, so is your JAVA_HOME properly set in MacOS? see https://coderwall.com/p/8xy5eg/env-java_home-maven-intellij-idea-and-mavericks as it seems difficult to set properly on macos |
Running from command line, JAVA_HOME points to a jdk8 dir under which there is a /jre/bin/java - should be ok no? |
|
hi Cedric, It's working now on mac (might be interesting for you to buy a cheap second hand apple TV or a mac mini to test this stuff, always difficult to write if you don't have the OS). this is my diff: https://gist.github.com/mrosseel/1e31f240911f59e45f95bee0492345c3 |
Hi @mrosseel Your diff is correct even if ${version} and ${project.version} are both valid, lets use the one that work everywhere on all platform . You're also right i should get a MacOS device to test this in the future. My AMD1950x broke my VirtualBox Sierra VM. I will update now the PR with your changes. |
I changed the artifactId and version to project.artifactId and project.version because maven was complaining about it, this was not related to the mac osx bugs. Less warnings is always better, but I leave it to you to decide. |
your changes are now inside this PR. I totally agree, was not seeing the maven warnings, build logs should stay clean. |
…on_Missing_on_compiled_release # Conflicts: # .travis.yml # gui/package/windows/Bisq.iss # gui/pom.xml # package/linux/32bitBuild.sh # package/linux/64bitBuild.sh # package/linux/Dockerfile # package/osx/create_app.sh # package/win/32bitBuild.bat # package/win/64bitBuild.bat
PR updated with development and conflicts resolved |
packaging make easy part of the build. During maven
package
phase installer are created.Tested on Windows and Linux Ubuntu.
Features:
Requirements
create a master password
mvn --encrypt-master-password <password>
This command will produce an encrypted version of the password, something like
{jSMOWnoPFgsHVpMvz5VrIt5kRbzGpI8u+9EF1iFQyJQ=}
Store this password in the ${user.home}/.m2/settings-security.xml; it should look like
secure your gpg2 passphrase
mvn --encrypt-password <mypassphrase password>
And store the result in a profile in ${user.home}/.m2/settings.xml
this could be done for development, or if you dont like this at all or dont trust it, you can always run
mvn package/deploy -Dgpg.passphrase=thephrase
If you don't specify a passphrase, it will prompt for one.
32 bits vs 64 bits
Javapackager bundling with 32/64-bit is triggered off the JDK used.
So to build the 5 installers, run maven package/deploy -Dgpg.passphrase=thephrase in each virtual machine, with the corresponding JDK