Curious, why would a junit test act upon or need information about
another artifact?
Thank you very much for your feedback. Yes, I agree that it would seem
strange on why someone would need access to an artifact from outside a
Mojo. The use case I was running into is the design of a SDK that
all
> Alexander Horn wrote:
> However, what do I need to do to determine the local file
> system location of an artifact from outside a Mojo (i.e. a
Just IMO, it would be better if your TestCase's had no knowledge of
Maven
or the execution environment they're running in.
Personally, I would locate
In a Mojo developer cookbook [1] I found the snippet of code that
shows how to get the path of an artifact in the local repository.
Namely,
Set artifacts = project.getDependencyArtifacts();
for (Iterator artifactIterator = artifacts.iterator();
artifactIterator.hasNext();) {
Artifact artifact =