janssk1 / maven-graph-plugin

Maven plugin that generates a dependency graph in graphml format
Apache License 2.0
50 stars 22 forks source link

Doesn't create output directory if missing #6

Closed OrangeDog closed 4 years ago

OrangeDog commented 7 years ago

For example:

[ERROR] Failed to execute goal com.github.janssk1:maven-dependencygraph-plugin:1.2:graph (default-cli) on project myproject: Can't write to file: C:\dev\myproject\target\myproject-1.5.0-SNAPSHOT-PACKAGE-deps.graphml (The system cannot find the path specified) -> [Help 1]

Is solved if the "target" directory is manually created. The project may not output anything itself, so it shouldn't rely on another phase creating it.

eniniz commented 6 years ago

I'm having the same problem

JPDSousa commented 5 years ago

Same problem. It's a shame as this tool is quite promising, but for a giant multi-module project it is simply impractical to create all missing target folders.

By the way: the problem only seems to manifest in pom dependencies (i.e. not jar ones), as these are the modules who don't require a target folder.