Of course, I can locate MANIFEST.MF to another directory. I just be curious of why application project have not the trouble. And I cannot use standard directory structure.
a cup of Java, cheers! Sha Jiang jiangshachina wrote: > > I find another problem. > If the project is Web application, then META-INF/MANIFEST.MF will be > inserted into classes directory. > Obviously, Maven thinks META-INF/MANIFEST.MF is resource since it's in > src/main/resources directory(standard resource path). > > How can I cancel the problem? > > a cup of Java, cheers! > Sha Jiang > > > jiangshachina wrote: >> >> 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#a7071364 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
