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

dependency updates report generation in xml does not create target directory #187

Closed
sabaka opened this issue Jul 13, 2017 · 1 comment
Closed
Labels
Milestone

Comments

@sabaka
Copy link
Contributor

sabaka commented Jul 13, 2017

On clean project:

[master|⚑ 11] $ mvn org.codehaus.mojo:versions-maven-plugin:2.5-SNAPSHOT:dependency-updates-report -DdependencyUpdateReportFormats=xml
[INFO] Scanning for projects...
[INFO] 
...
[INFO] BUILD FAILURE
...
[ERROR] Failed to execute goal org.codehaus.mojo:versions-maven-plugin:2.5-SNAPSHOT:dependency-updates-report (default-cli) on project geo-calc-job: An error has occurred in Dependency Updates Report report generation.: Cannot create xml report. /home/idubinin/git/geo-calc/job/target/dependency-updates-report.xml (No such file or directory) -> [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

But when target directory exist:

[master|⚑ 11] $ mkdir target
  [master|⚑ 11] $ mvn org.codehaus.mojo:versions-maven-plugin:2.5-SNAPSHOT:dependency-updates-report -DdependencyUpdateReportFormats=xml
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
...
[INFO] 
[INFO] --- versions-maven-plugin:2.5-SNAPSHOT:dependency-updates-report (default-cli) @ geo-calc-job ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.883 s
[INFO] Finished at: 2017-07-13T15:04:11+01:00
[INFO] Final Memory: 19M/323M
[INFO] ------------------------------------------------------------------------

sabaka pushed a commit to sabaka/versions-maven-plugin that referenced this issue Jul 13, 2017
sabaka pushed a commit to sabaka/versions-maven-plugin that referenced this issue Jul 13, 2017
@khmarbaise
Copy link
Member

Usually a report goal will not being called directly from command line but for this case it makes sense...please add the information to the ReleaseNotes.md as well.

khmarbaise added a commit that referenced this issue Jul 15, 2017
Fixed #187: create target directory when run dependency update report…
@khmarbaise khmarbaise added the bug label Jul 15, 2017
@khmarbaise khmarbaise added this to the 2.5 milestone Jul 15, 2017
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