I would like to use the Build Number Maven Plugin to have a build number added to the version automatically.
The final name is defined as follows in the build section of the pom.xml:
<finalName>${project.artifactId}-${project.version}.${buildNumber}</finalName>
It works fine as far as the creation of the .jar file is concerned but fails for the creation of the .obr file because it cannot resolve "$buildNumber":
[ERROR] Failed to execute goal com.atlassian.maven.plugins:maven-confluence-plugin:6.3.15:generate-obr-artifact (default-generate-obr-artifact) on project test: Source '...\target\test-0.3.0.${buildNumber}.jar' does not exist -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Any suggestions how to get it working?
Hi Ann,
thanks for pointing me in the right direction.
Regards
Christian
Hi Christian,
I would like to help more but the best I can do is refer you to another forum where the development community is more active and has more expertise for questions like yours. Please see our Developer Community for more help with Maven and plugins for Maven.
Thanks,
Ann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.