You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Klaus H." <kd...@googlemail.com> on 2008/09/19 11:14:32 UTC
release-plugin: execute at generate-sources phase
Hi all,
i need to filter a resource file before the generate-sources phase (input
file for source-generator). So i bound the maven-resources-plugin to the
generate-sources phase. The point is that filtering does not work anymore.
Even the filtering in the default lifecycle-phase of the generator plugin
does not work anymore. Seem as explicity naming the resource-plugin
overwrites some default configuration. Any idea which one this could be? Or
any other idea how this could be solved..
Thanks,
Klaus
---
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>filterGeneratorInput</id>
<phase>generate-sources</phase>
<goals>
<goal>resources</goal>
</goals>
<configuration>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
<includes>
<include>GeneratorInput.xml</include>
</includes>
</resource>
</resources>
<outputDirectory>target\klaus</outputDirectory>
</configuration>
</execution>
</executions>
<configuration>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources/META-INF</directory>
</resource>
</resources>
</configuration>
</plugin>
<!-- (Re-)Generate -->
<plugin>
<artifactId>myGeneratorPlugin</artifactId>
...
Re: release-plugin: execute at generate-sources phase
Posted by Brett Porter <br...@gmail.com>.
I would normally expect to see the resources in <build>, but you have
a second configuration outside the execution attempting to override
that.
Is it your intent to copy the one filtered file from
src/main/resources in process-sources and then only the files in
src/main/resources/META-INF during the normal build?
- Brett
2008/9/25 Klaus <kd...@googlemail.com>:
> Sorry, i do not get it.
>
> My explict configuration in <build><plugins><plugin> overwrites the default
> config (or, that is what i expect). Where is the conflict? I thought that i
> just missed a configuration...
>
> Thanks
> Klaus
>
>
> On Tue, Sep 23, 2008 at 6:35 AM, Brett Porter <br...@gmail.com>wrote:
>
>> I think the plugin level configuration would conflict, overriding the
>> section from the <build> section.
>>
>> - Brett
>>
>> 2008/9/19 Klaus H. <kd...@googlemail.com>:
>> > Hi all,
>> >
>> > i need to filter a resource file before the generate-sources phase (input
>> > file for source-generator). So i bound the maven-resources-plugin to the
>> > generate-sources phase. The point is that filtering does not work
>> anymore.
>> > Even the filtering in the default lifecycle-phase of the generator plugin
>> > does not work anymore. Seem as explicity naming the resource-plugin
>> > overwrites some default configuration. Any idea which one this could be?
>> Or
>> > any other idea how this could be solved..
>> >
>> > Thanks,
>> > Klaus
>> >
>> > ---
>> > <build>
>> > <plugins>
>> > <plugin>
>> > <artifactId>maven-resources-plugin</artifactId>
>> > <executions>
>> > <execution>
>> > <id>filterGeneratorInput</id>
>> > <phase>generate-sources</phase>
>> > <goals>
>> > <goal>resources</goal>
>> > </goals>
>> > <configuration>
>> > <resources>
>> > <resource>
>> > <filtering>true</filtering>
>> >
>> > <directory>src/main/resources</directory>
>> > <includes>
>> >
>> > <include>GeneratorInput.xml</include>
>> > </includes>
>> > </resource>
>> > </resources>
>> >
>> <outputDirectory>target\klaus</outputDirectory>
>> > </configuration>
>> > </execution>
>> > </executions>
>> > <configuration>
>> > <resources>
>> > <resource>
>> > <filtering>true</filtering>
>> >
>> > <directory>src/main/resources/META-INF</directory>
>> > </resource>
>> > </resources>
>> > </configuration>
>> > </plugin>
>> > <!-- (Re-)Generate -->
>> > <plugin>
>> > <artifactId>myGeneratorPlugin</artifactId>
>> > ...
>> >
>>
>>
>>
>> --
>> Brett Porter
>> Blog: http://blogs.exist.com/bporter/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
--
Brett Porter
Blog: http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: release-plugin: execute at generate-sources phase
Posted by Klaus <kd...@googlemail.com>.
Sorry, i do not get it.
My explict configuration in <build><plugins><plugin> overwrites the default
config (or, that is what i expect). Where is the conflict? I thought that i
just missed a configuration...
Thanks
Klaus
On Tue, Sep 23, 2008 at 6:35 AM, Brett Porter <br...@gmail.com>wrote:
> I think the plugin level configuration would conflict, overriding the
> section from the <build> section.
>
> - Brett
>
> 2008/9/19 Klaus H. <kd...@googlemail.com>:
> > Hi all,
> >
> > i need to filter a resource file before the generate-sources phase (input
> > file for source-generator). So i bound the maven-resources-plugin to the
> > generate-sources phase. The point is that filtering does not work
> anymore.
> > Even the filtering in the default lifecycle-phase of the generator plugin
> > does not work anymore. Seem as explicity naming the resource-plugin
> > overwrites some default configuration. Any idea which one this could be?
> Or
> > any other idea how this could be solved..
> >
> > Thanks,
> > Klaus
> >
> > ---
> > <build>
> > <plugins>
> > <plugin>
> > <artifactId>maven-resources-plugin</artifactId>
> > <executions>
> > <execution>
> > <id>filterGeneratorInput</id>
> > <phase>generate-sources</phase>
> > <goals>
> > <goal>resources</goal>
> > </goals>
> > <configuration>
> > <resources>
> > <resource>
> > <filtering>true</filtering>
> >
> > <directory>src/main/resources</directory>
> > <includes>
> >
> > <include>GeneratorInput.xml</include>
> > </includes>
> > </resource>
> > </resources>
> >
> <outputDirectory>target\klaus</outputDirectory>
> > </configuration>
> > </execution>
> > </executions>
> > <configuration>
> > <resources>
> > <resource>
> > <filtering>true</filtering>
> >
> > <directory>src/main/resources/META-INF</directory>
> > </resource>
> > </resources>
> > </configuration>
> > </plugin>
> > <!-- (Re-)Generate -->
> > <plugin>
> > <artifactId>myGeneratorPlugin</artifactId>
> > ...
> >
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: release-plugin: execute at generate-sources phase
Posted by Brett Porter <br...@gmail.com>.
I think the plugin level configuration would conflict, overriding the
section from the <build> section.
- Brett
2008/9/19 Klaus H. <kd...@googlemail.com>:
> Hi all,
>
> i need to filter a resource file before the generate-sources phase (input
> file for source-generator). So i bound the maven-resources-plugin to the
> generate-sources phase. The point is that filtering does not work anymore.
> Even the filtering in the default lifecycle-phase of the generator plugin
> does not work anymore. Seem as explicity naming the resource-plugin
> overwrites some default configuration. Any idea which one this could be? Or
> any other idea how this could be solved..
>
> Thanks,
> Klaus
>
> ---
> <build>
> <plugins>
> <plugin>
> <artifactId>maven-resources-plugin</artifactId>
> <executions>
> <execution>
> <id>filterGeneratorInput</id>
> <phase>generate-sources</phase>
> <goals>
> <goal>resources</goal>
> </goals>
> <configuration>
> <resources>
> <resource>
> <filtering>true</filtering>
>
> <directory>src/main/resources</directory>
> <includes>
>
> <include>GeneratorInput.xml</include>
> </includes>
> </resource>
> </resources>
> <outputDirectory>target\klaus</outputDirectory>
> </configuration>
> </execution>
> </executions>
> <configuration>
> <resources>
> <resource>
> <filtering>true</filtering>
>
> <directory>src/main/resources/META-INF</directory>
> </resource>
> </resources>
> </configuration>
> </plugin>
> <!-- (Re-)Generate -->
> <plugin>
> <artifactId>myGeneratorPlugin</artifactId>
> ...
>
--
Brett Porter
Blog: http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org