Hi,

I'm afraid this isn't easy. I could find the JIRA entry for that, but overriding/disabling plugins/executions/configurations is somewhat tricky/impossible. Have a look at http://jira.codehaus.org/browse/MNG-3193 - I used phase "none" to disable plugin execution. In your case, it's not possible because you use the builtin execution, which cannot be overridden. So I guess it's down to one of:
 - solving by different inheritance levels
 - writing a MANIFEST.MF to include it
- having a dummy MANIFEST.MF, and adding another execution of the jar plugin in order to build the correct MANIFEST.MF
 - filing an issue in JIRA

Stefan

Jérôme Waibel wrote:
Hi,

I'm having a project with some 15 or so modules. All those modules have a manifest file which is provided by the developers. So I put some config for the jar plugin in the parent pom to include that manifest for all modules:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
 <archive>
  <manifestFile>path/to/MANIFEST.MF</manifestFile>
 </archive>
</configuration>
</plugin>

OK, this is working, so far, so good. Now I have one other modul which doesn't have a manifest file. Maven complains about the missing manifest which is configured in the parent. How can I unset the manifestFile configuration so the jar-plugin will go back to it's default behaviour and create one?

My naive approach was this plugin configuration in the module's pom:


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
 <archive>
  <manifestFile />
 </archive>
</configuration>
</plugin>

which I thought might the the plugin make forget the manifestFile config from the parent, but that doesn't work.

What would be the correct solution for this problem?

Jerome


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



--
best regards,

Stefan Seidel
software developer
________________________
VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.    +49 (341) 9 60 50 07
fax.    +49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.    www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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

Reply via email to