Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Generating .obr file: how to resolve buildNumber?

Christian Horn July 17, 2018

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?

2 answers

0 votes
Christian Horn July 31, 2018

Hi Ann,

 

thanks for pointing me in the right direction.

 

Regards

Christian

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events