The project's artifact file is populated in the package phase of the lifecycle, at least in the case of the jar lifecycle. I'd say this is a pretty standard place for it, since the assumption is that the jar would not exist until this phase is complete. Once that phase has completed, your mojo can use project.getArtifact().getFile() to retrieve the project's jar file. At a minimum, you'd have to be sure the

org.apache.maven.plugins:maven-jar-plugin:jar

mojo has run, since this calls project.getArtifact().setFile(..).

If I knew more about what you were trying to accomplish, I might be able to help more, but I hope this points you in the right direction.

-john

Allan Ramirez wrote:
Hi everyone,

Is there a way to resolve a project jar of project modules if it is not yet installed in the repo?

I tried the reactorProject.getArtifact().getFile() but it is returning a null value.

Thanks in advance,
-allan


------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to