Hi Wayne, I just think src/main/resources is default directory for MANIFEST.MF file(at least, in simply Application project) . And what's general(not standard/default) directory for MANIFEST.MF?
a cup of Java, cheers! Sha Jiang Wayne Fay wrote: > > Why in the world would you put the file in src/main/resources/META-INF > but then not want it copied into the proper place in the resulting Web > app WAR file?? I just don't understand the business/use case, can you > explain it a little better? > > If this is really want you want, you might be able to make it work > with <excludes>. Refer to this page for more info on using <excludes>: > http://people.apache.org/~aramirez/maven-resources-plugin/examples/include-exclude.html > > Wayne > > On 10/30/06, jiangshachina <[EMAIL PROTECTED]> wrote: >> >> In Web application project, I want to put MANIFEST.MF into >> main/resources/META-INF directory(it's the same as that in simply >> application project). >> And I don't want META-INF/MANIFEST.MF to be copied into >> webapp_archive_file/WEB-INF/classes. >> How can I achieve that? Use filter file? >> >> a cup of Java, cheers! >> Sha Jiang >> >> >> jiangshachina wrote: >> > >> > 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#a7087688 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> 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] > > > -- View this message in context: http://www.nabble.com/Custom-Manifest-file-tf1435329s177.html#a7088136 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
