Hi JB,

I tried your features.xml without any change. And yes i tried both absolute and 
relative paths, both on my windows machine and the unix system without any luck.

I did find an automated workaround though, using the maven resources plugin and 
configuring it to copy the file to the target/features/ directory prior to 
packaging - this works. But I find that more a hacked workaround than a real 
solution.

For anyone interested, maybe facing a similar problem: Put your feaures into 
one single file named feature.xml and configure the resources-plugin to copy it 
to the target folder upon packaging like this:

<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
  <execution>
        <id>copy-resources</id>
        <phase>process-resources</phase>
        <goals>
          <goal>copy-resources</goal>
        </goals>
        <configuration>
          <outputDirectory>${project.basedir}/target/feature</outputDirectory>
          <resources>          
                <resource>
                  <directory>${project.basedir}/src/main/resources</directory>
                  <includes>
                    <include>feature.xml</include>
                  </includes>
                </resource>
          </resources>              
        </configuration>            
  </execution>
</executions>
</plugin>

That does the job, although it forces you to use only one single features file. 
But that's a minor thing.

Thanks for your effort JB!
Regards,
Benjamin

-------- Original-Nachricht --------
> Datum: Fri, 23 Nov 2012 08:59:05 +0100
> Von: "Jean-Baptiste Onofré" <[email protected]>
> An: [email protected]
> Betreff: Re: features-maven-plugin ignores configuration?

> Hi Benjamin,
> 
> did you try putting a valid absolute path (like c:\path\to\features.xml) ?
> 
> I don't understand as it works for me.
> 
> Regards
> JB
> 
> On 11/22/2012 10:59 PM, Benjamin Debeerst wrote:
> > Hi JB,
> >
> > thanks again. I did post the features-xml just for completeness but I
> > don't think the contents really matter. The plugin does complain about
> > not finding the feature.xml in the first place, not about it's contents.
> > And when I put the file to target/feature/feature.xml everything works.
> > I'll try your suggestion tommorow anyways though.
> >
> > Regards,
> > Benjamin
> >
> >
> > -------- Original-Nachricht --------
> >> Datum: Thu, 22 Nov 2012 21:59:37 +0100
> >> Von: "Jean-Baptiste Onofré" <[email protected]>
> >> An: [email protected]
> >> Betreff: Re: features-maven-plugin ignores configuration?
> >
> >> Hi Benjamin,
> >>
> >> could you try to add a name on the features tag:
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <features name="my-features">
> >>        <feature name="test-app" version="1.0.0">
> >>            <bundle>mvn:joda-time/joda-time/2.1</bundle>
> >>        </feature>
> >> </features>
> >>
> >> Anyway, I will try with your features.xml tomorrow morning.
> >>
> >> I keep you posted.
> >>
> >> Regards
> >> JB
> >>
> 
> -- 
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Reply via email to