I ran into this problem too. You can either hack the 'maven-jar' plugin or you can do what I did (which is terribly hacky) and make a 'postGoal' that un-jars the jar you just made and re-build it with a fresh manifest like so:

<?xml version="1.0"?>
<project xmlns:j="jelly:core"
   xmlns:maven="jelly:maven"
   xmlns:ant="jelly:ant">

<!--
This post-goal hook was put in to replace the standard META-INF/MANIFEST.MF file
that Maven generates. For some deep, dark, hidden reason the extra information put
in that file, for this component, causes the PaymentException class to not be loaded
by the class-loader. So we replace the noisy MANIFEST.MF file with a very plain one.
-->
<postGoal name="jar:jar">
<ant:mkdir dir="${maven.build.dir}/temp-jar"/>
<ant:unjar src="${maven.build.dir}/${maven.final.name}.jar"
dest="${maven.build.dir}/temp-jar"/>
<ant:delete dir="${maven.build.dir}/temp-jar/META-INF" quiet="true"/>
<ant:jar destfile="${maven.build.dir}/${maven.final.name}.jar"
basedir="${maven.build.dir}/temp-jar"
excludes="META-INF">
<ant:manifest>
<ant:attribute name="Built-By" value="${user.name}"/>
</ant:manifest>
</ant:jar>
<ant:delete dir="${maven.build.dir}/temp-jar"/>
</postGoal>
</project>


Gruesome isn't it? ;-)

--Alex

tek1 wrote:

Hello.

Is there a way to change the properties in MANIFEST.MF that Maven generates when creating a .jar of the project?

Also, is there any documentation on all the properties that can be set in project.properties?

Thank you.

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



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



Reply via email to