Replies: 2 comments 1 reply
-
The logic seems to be in pom.xml should never happen if extension is not pom but in fact this seems to be the fallback in case no better directory can be determined.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
To "resolve" a workspace project maven requires an existing file. So if the project has no target/classes an arbitrary exiting file has to be returned. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a mojo I evaluate the dependency artifact's files via
MavenProject.getDependencyArtifacts()[0].getFile()
. For dependencies which are Eclipse projects this sometimes returnstarget/classes
folder for dependencies which are Eclipse projectsWhile I do understand the latter I am wondering why the path to the pom.xml is returned (for dependencies with type != pom). Is that a bug or a feature?
Beta Was this translation helpful? Give feedback.
All reactions