Skip to content
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

mvnix-update attempts to build my project. Is this expected? #43

Open
solomon-b opened this issue Jun 5, 2020 · 2 comments
Open

mvnix-update attempts to build my project. Is this expected? #43

solomon-b opened this issue Jun 5, 2020 · 2 comments

Comments

@solomon-b
Copy link

solomon-b commented Jun 5, 2020

I thought mvnix-update was just supposed to generate the mavenix.lock file. It runs mvn package with different options then I have set in my default.nix which causes it to fail.

@icetan
Copy link
Collaborator

icetan commented Jun 8, 2020

Yes, the approach that mavenix takes to generating a lock file is to run mvn install (the log output incorrectly says package) and looks at the resulting repo mvn creates.

How are you setting your options? Can you give an example?

@solomon-b
Copy link
Author

ah thank you for the information. I'm attempting to build a massive 20 year old java 8 monolith. The full build takes hours so for an intial attempt I want to skip some steps and only build a subset of the whole project.

In default.nix I'm using overrideAttrs to override the build phase and set the flags:

let buildPhase = ''
  runHook preBuild
  $mvn --version
  $mvn -V -T 1C -Dmaven.test.skip=true -DskipTests=true -Dcleanup.skip=true -Ddelta.skip=true -Dtablespaces.skip=true -Dgulp.task=min -Dqunit.mThreads=8  -pl insights/ringo -am package;
  runHook postBuild
  '';
in ...

Can I use those same flags in mvnix-update here: https://github.com/nix-community/mavenix/blob/master/mvnix-update#L113 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants