checksum-maven-plugin | Compute Maven project artifacts/dependencies/files checksum | Plugin library
kandi X-RAY | checksum-maven-plugin Summary
kandi X-RAY | checksum-maven-plugin Summary
checksum-maven-plugin
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Closes the specified summary file .
- Runs the benchmark .
- Gets the file digester for the given algorithm .
- Get the checksum files .
- Calculates the MD5 hash of the file .
- Read the summary file .
- Return file relative path .
- Executes the mojo .
- Initializes the output directory .
- Adds a checksum to the file .
checksum-maven-plugin Key Features
checksum-maven-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on checksum-maven-plugin
QUESTION
Is there a moderately painless way of generating SHA-256
of maven
generated artifacts?
I have tried this plugin but I cannot make it work. The project builds but there is not SHA-256
deployed neither in my local repository nor our nexus
server.
Without SHA-256
I will not be able to automate the artifact deployment with Chef
in our nodes. Is there also a painless way of avoiding remote_file
re-download in chef using SHA1
or MD5
?
ANSWER
Answered 2017-Sep-19 at 00:35The SHA256 isn't probably what you want anyway, remote_file uses the MD5 for an ETag and sends the last modified time so if Maven implements either of those conditional request type, you should be fine automatically.
QUESTION
I try to use the Checksum Maven Plugin to generate checksum files for a distribution assemled by the Assembly plugin. Unfortunately it tries also to compute the checksum for target/classes
directory and fails of course as it is empty.
Beside a hack is there a way to suppress the creation of target/classes
and target/test-classes
?
The current configuration of the Checksum Maven Plugin is the following:
...ANSWER
Answered 2017-May-27 at 21:55Use files goal.
The example above will generate checksum for all files in directory target (represented by the property ${project.build.directory}).
To run, use the goal net.nicoulaj.maven.plugins:checksum-maven-plugin:1.5:files
I tested with a maven project with a assembly artifact. I could reproduce the problem from your question. I also tested this solution and it worked!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install checksum-maven-plugin
You can use checksum-maven-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the checksum-maven-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page