I would like to use mvn dependency:unpack-dependencies -Dclassifier=sources on my project so I can use ctags on the dependencies’ sources. However, if a dependency doesn’t have any sources, this command fails.
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack-dependencies (default-cli) on project X: not found in any repository: Y
It seems that -DfailOnMissingClassifierArtifact was meant to avoid this failure, but it doesn’t seem to affect anything. Is there a way I can download just the available sources? I am not interested in manually omitting artifactIds.
A second reading of the documentation revealed the correct variable to be used.