Strange, it's working for me. Here is my full conf, have a look and see what
differs :

Maven version: 2.0.1

~   sedamit-parent
~   +-- pom.xml
~   +-- sedamit
~       +-- pom.xml
~       +-- src
~           +-- foo.properties
~           +-- sedamit
~               +-- Example.java

sedamit-parent/pom.xml :
~   <?xml version="1.0" encoding="UTF-8"?><project>
~     <modelVersion>4.0.0</modelVersion>
~     <groupId>sedamit-parent</groupId>
~     <artifactId>reactor</artifactId>
~     <packaging>pom</packaging>
~     <name>SedamIT Reactor</name>
~     <version>1.0</version>
~
~     <build>
~       <sourceDirectory>src</sourceDirectory>
~
~       <resources>
~         <resource>
~           <directory>src</directory>
~
~           <excludes>
~             <exclude>**/*.java</exclude>
~           </excludes>
~         </resource>
~       </resources>
~     </build>
~   </project>

sedamit-parent/sedamit/pom.xml :
~   <?xml version="1.0" encoding="UTF-8"?><project>
~     <parent>
~       <groupId>sedamit-parent</groupId>
~       <artifactId>reactor</artifactId>
~       <version>1.0</version>
~     </parent>
~
~     <modelVersion>4.0.0</modelVersion>
~     <groupId>sedamit</groupId>
~     <artifactId>sedamit</artifactId>
~     <name>SedamIT</name>
~     <version>1.0</version>
~   </project>

'mvn pacakge' executed in sedamit-parent/sedamit/ produces a jar containing
:
~   /
~   +-- META-INF
~   +-- foo.properties
~   +-- sedamit
~       +-- Example.class

--
Yann

2005/12/23, Nitko2 <[EMAIL PROTECTED]>:
>
> I don't.
>
> parent pom
> ----------
>
> <groupId>sedamit-parent</groupId>
> <version>1.0</version>
> <name>SedamIT Reactor</name>
>
> <artifactId>reactor</artifactId>
> <packaging>pom</packaging>
>
> ....
>
> <build>
>    <sourceDirectory>src</sourceDirectory>
>    <resources>
>       <resource>
>         <directory>src</directory>
>         <excludes>
>            <exclude>**/*.java</exclude>
>         </excludes>
>       </resource>
>    </resources>
>
>
> Child pom
> ----------
>
>    <parent>
>      <groupId>sedamit-parent</groupId>
>      <artifactId>reactor</artifactId>
>      <version>1.0</version>
>    </parent>
>
>
> I looked at the code maven-resources-plugin, and this should work.
>
>
>
>
> Yann Le Du wrote:
> > Hi Filip,
> >
> > Do you have any extra resource declared in child pom ?
> >
> >
> http://docs.codehaus.org/display/MAVENUSER/FAQs#FAQs-DoesaPOMinherititsresources%3F
> >
> >
> > --
> > Yann
> >
> > 2005/12/22, Nitko2 <[EMAIL PROTECTED]>:
> >
> >>Hi,
> >>
> >>I have a parent pom with declared resources in it, but it doesn't get
> >>propagated in child pom. Is it
> >>  supposed to work like that or is it a bug?
> >>
> >>Thanks,
> >>Filip
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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]
>
>

Reply via email to