Hi,

> project.getArtifact().setFile(File) is called by the maven-compiler-plugin
> (with the output directory, often target/classes) and by the
> packaging-plugin, e.g. the maven-jar-plugin, which will set it to the
> produced artifact.
> As long as none of these plugins has been called,
> project.getArtifact().getFile() will be null.
>
> One option you have it verify if
> ${project.build.directory}/${project.build.finalName}.jar exists (assuming
> it is always a jar...)

Hmm, but I do not only want to know whether the exists, I want to make
sure it is getting generated. So I want to force the execution of the
"package" phase before the execution of my plugins goal.

How can I achieve this?

Best regards
Marco


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to