Question

I'd like to add an Implementation-Version line to a manifest in my jar file that reflects the POM version number, using the maven assembly plugin.

Note that this is similar but different to another of my recent questions about the jar plugin.

Was it helpful?

Solution

Actually I'm a fool.. you do it in exactly the same way, i.e.

<configuration>
 <archive>
  <manifest>
   <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  </manifest>
 </archive>
</configuration>

Silly question. Should have tried that first, really.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top