maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Gierke <tobias.gie...@code-sourcery.de>
Subject Re: Remove inherited config
Date Wed, 23 Jul 2008 11:47:15 GMT
Hi,
> 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.
According to http://maven.apache.org/pom.html , something like

      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <inherited>false</inherited>
         </plugin>
        ...

might work ( I didn't check it though).

Regards,

Tobias


>
> What would be the correct solution for this problem?
>
> Jerome
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message