Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I add an Implementation-Version value to a jar manifest using Maven's assembly plugin?

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.

like image 825
izb Avatar asked May 29 '09 08:05

izb


1 Answers

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.

like image 128
izb Avatar answered Oct 06 '22 18:10

izb