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?