I am developing a maven plugin , I have a parameter called "FinalVersion" which is created as a @Parameter in Mojo and its value is being set in Mojo class. I need to pass "finalversion" to my pom file and use it as an element in the configuration of other plugin. like this:
@Mojo(name = "validate", defaultPhase = LifecyclePhase.COMPILE)
public class VersionValidatorMojo extends AbstractMojo{
.
.
@Parameter(property = "finalVersion")
private String finalVersion ;
and I want to have something like this in my pom.xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>custom-maven-release-plugin</artifactId>
<configuration>
<goals>release</goals>
<version>finalversion</version>
</configuration>
</plugin>
ALSO in my scenario I have the project version set by developer and not getting from SCM, which plugin can I use?
Bests