But I'm failed with the action.
I have an simple application project, and put MANIFEST.MF file into
directory
src/main/resources/META-INF
the file has an entry "Main-Class"
But Maven don't add the manifest automatically. I have to do following,
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>
src/main/resources/META-INF/MANIFEST.MF
</manifestFile>
</archive>
</configuration>
</plugin>
</plugins>
</build>
a cup of Java, cheers!
Sha Jiang
Paul Li-2 wrote:
>
> or you could just add the META-INF/MANIFEST.MF into your resources
> directory ;-)
>
> maven will automatically package it
>
> A bit lazy i know.
>
> Paul
>
> On 4/12/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>> Give this a try...
>>
>> <build>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-jar-plugin</artifactId>
>> <configuration>
>> <archive>
>> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</
>> manifestFile>
>>
>> Wayne
>>
>> On 4/11/06, Karthik Manimaran <[EMAIL PROTECTED]> wrote:
>> > Hi,
>> >
>> > How can I include a custom manifest file for a jar file and a WAR file?
>> >
>> > Thanks and regards,
>> > Karthik.
>> >
>> >
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Custom-Manifest-file-tf1435329s177.html#a7070551
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]