Repository navigation
mvn -Papp fixes - #293
Closed
Grimler91 wants to merge 2 commits into
Closed
mvn -Papp fixes#293Grimler91 wants to merge 2 commits into
Grimler91 wants to merge 2 commits into
Conversation
Currently, mvn -Dapp fails with something like:
[INFO] --- maven-assembly-plugin:3.2.0:single (make-assembly) @ imagej ---
[INFO] Reading assembly descriptor: src/main/assembly/zip.xml
[WARNING] The assembly descriptor contains a *nix-specific root-relative reference (starting with slash). This is not portable and might fail on Windows: /Contents/Resources/
[WARNING] The assembly descriptor contains a *nix-specific root-relative reference (starting with slash). This is not portable and might fail on Windows: /images/
[WARNING] The assembly descriptor contains a *nix-specific root-relative reference (starting with slash). This is not portable and might fail on Windows: /images/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15.826 s
[INFO] Finished at: 2021-09-10T13:43:20+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.2.0:single (make-assembly) on project imagej: Failed to create assembly: Error adding file to archive: /home/grimler/imagej2/src/imagej2-imagej-2.2.0/target/imagej-launcher-6.0.1.jar -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
The same error (I think) was fixed for pom.xml in c3562b1 ("Fix
imagej-launcher dependency").
Currently, mvn -Papp fails with something like:
[INFO] --- maven-assembly-plugin:3.2.0:single (make-assembly) @ imagej ---
[INFO] Reading assembly descriptor: src/main/assembly/zip.xml
[WARNING] The assembly descriptor contains a *nix-specific root-relative reference (starting with slash). This is not portable and might fail on Windows: /Contents/Resources/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.036 s
[INFO] Finished at: 2021-09-10T13:56:32+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.2.0:single (make-assembly) on project imagej: Failed to create assembly: Error adding file to archive: /home/grimler/imagej2/src/imagej2-imagej-2.2.0/./logo/ImageJ.icns -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[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 read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
The paths to the images was changed in d02516a ("ImageJ logo
update"), but the paths in application.xml not updated.
Member
|
@Grimler91 Thanks for the fix! I ended up doing a more thorough cleanup of the icons, then cherry-picked your |
Contributor
Author
|
Great, thanks for the quick feedback! I can confirm that your commits as well, and the warnings seen in my commits are gone. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
These commits fixes two build failures (tested with tag 2.2.0) on linux when building with
mvn -Papp.imagej-launcher-${imagej-launcher.version}.jardoes not exist anymore, and was removed in a similar way from pom.xml in c3562b1. That commit also added net.imagej as a dependency, is that necessary for application.xml as well?