Wayne Fay wrote:
OK let's get a little more explicit...

What are you currently getting out of Maven?
What do you want to get out of Maven?
What have you tried which did not work as you required?

This, like many responses I've seen on this mailing list, is venturing into "smarmy" territory. Legitimate questions have been asked about a Maven component that is quite under-documented.

The final "work-around" is simply to write your own static Manifest
file and tell Maven where it is, and it will use it instead of
generating one itself. But this is a last-resort kind of thing,
usually.

It's also usually helpful to point people toward resources that might help them decide whether or not they need to take this last-resort (oops, a smarmy response from me). I suggest that anyone interested in learning how to tweak their JAR manifests take a look at the source for MavenArchiveConfiguration and ManifestConfiguration in:

http://svn.apache.org/viewvc/maven/shared/tags/maven-archiver-2.2/src/main/java/org/apache/maven/archiver/

Here's a very simple example:

<configuration>
  <archive>
    <!-- don't include the POM and stuff in the jar -->
    <addMavenDescriptor>false</addMavenDescriptor>
    <!-- add custom manifest entries to the main section -->
    <manifestEntries>
      <Sealed>true</Sealed>
      <This>has a value</This>
      <That>has another value</That>
      <TheOther>you get the idea</TheOther>
      <!-- maven wants to put this stuff in, but i don't -->
      <Built-By/>
      <Build-Jdk/>
    </manifestEntries>
  </archive>
  <!-- recreate the jar no matter what -->
  <forceCreation>true</forceCreation>
</configuration>
--
                -Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to