I am fighting with maven to include a managed dependency with \'provided\' scope into tar file by using the maven-assembly-plugin.
I use super parent pom file as a base
it is not possible to override the 'provided' scope in maven.
To solve this issue, I declared a variable in the parent pom that will define the artifact scope. In order to override the scope the only thing that has to be done, is to set new value for the variable in the inherited pom.
See example below:
parent pom:
1.2.8
provided
.
.
.
log4j
log4j
${log4j.version}
${log4j.scope}
Now in the child pom, just declare the variable again:
runtime