Hi all,
currently I am trying to set properly the JDK target used when jarring my
modules. What I have tried is:
<build>
<plugins>
<!-- maven2 jar plugin configuration -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<!-- do not include maven artifacts in the
generated archives -->
<addMavenDescriptor>false</addMavenDescriptor>
<!-- add the follwoing entries to the
default MANIFEST.MF file -->
<manifestEntries>
<Build-Jdk>test
${maven.compiler.compilerVersion}
${maven.compiler.target}</Build-Jdk><!--${maven.compiler.compilerVersion}-->
</manifestEntries>
</archive>
</configuration>
</plugin>
..........................
The problem seems to be that ${maven.compiler.compilerVersion} has not been
initialised yet neither the ${maven.compiler.target} expression, when it
should be set into the <Build-Jdk> entry. When I open the MANIFEST.MF I see
that Build-Jdk is set to "test null".
I have read a JIRA related to this issue:
[jira] Created: (MPJAR-49) Incorrect jdk version in "Build JDK" in manifest
when maven.compile.executable is set
but it seems I can not fix it.
Could you advise me.
Thank you
Dobri