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

Goal "check" searchs the summary file in wrong folder #133

Open
ollily opened this issue Apr 3, 2022 · 2 comments
Open

Goal "check" searchs the summary file in wrong folder #133

ollily opened this issue Apr 3, 2022 · 2 comments
Labels

Comments

@ollily
Copy link

ollily commented Apr 3, 2022

When using the goals "dependencies" & "check" with default values this ends with an "FAILURE", because the "check"-goal searchs in the project.base folder instead in the project.build folder.

Simple Example

C:\todo\checksum-demo>mvn net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11:dependencies net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11:check
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.example:checksum-demo >----------------------
[INFO] Building checksum-demo 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- checksum-maven-plugin:1.11:dependencies (default-cli) @ checksum-demo ---
[INFO] commons-collections4-4.4.jar - MD5 : 4a37023740719b391f10030362c86be6
[INFO] commons-collections4-4.4.jar - SHA-1 : 62ebe7544cb7164d87e0637a2a6a2bdc981395e8
[INFO]
[INFO] --- checksum-maven-plugin:1.11:check (default-cli) @ checksum-demo ---
[ERROR] C:\todo\checksum-demo\dependencies-checksums.csv (Das System kann die angegebene Datei nicht finden)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.332 s
[INFO] Finished at: 2022-04-03T08:38:41+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11:check (default-cli) on project checksum-demo: C:\todo\checksum-demo\dependencies-checksums.csv (Das System kann die angegebene Datei nicht finden) -> [Help 1]
[ERROR]

Solution

I made a small fix and then it workx.

C:\todo\checksum-demo>mvn net.nicoulaj.maven.plugins:checksum-maven-plugin:1.11:dependencies net.nicoulaj.maven.plugins:checksum-maven-plugin:1.12-SNAPSHOT:check
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.example:checksum-demo >----------------------
[INFO] Building checksum-demo 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- checksum-maven-plugin:1.11:dependencies (default-cli) @ checksum-demo ---
[INFO] commons-collections4-4.4.jar - MD5 : 4a37023740719b391f10030362c86be6
[INFO] commons-collections4-4.4.jar - SHA-1 : 62ebe7544cb7164d87e0637a2a6a2bdc981395e8
[INFO]
[INFO] --- checksum-maven-plugin:1.12-SNAPSHOT:check (default-cli) @ checksum-demo ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.729 s
[INFO] Finished at: 2022-04-03T08:39:03+02:00
[INFO] ------------------------------------------------------------------------

I will add the fix as pull-request.

@ollily
Copy link
Author

ollily commented Apr 3, 2022

Add pull request #134

@ollily
Copy link
Author

ollily commented Apr 3, 2022

Here the used example

pom.xml.txt

@nicoulaj nicoulaj added the Bug label Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants