You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by e9...@seznam.cz on 2012/11/22 12:01:12 UTC
build number maven plugin - how define plugin exclusion?
Hello,
I have profile in parrent pom.xml for prestep build, where I am using Build
Number Maven Plugin to set qualifier all plugins as last svn revision: <
useLastCommittedRevision>true</useLastCommittedRevision>
But I need to avoid to set the qualifier for two plugins... how can I do
that?
Thanks for any advices.
David
Re: Re: build number maven plugin - how define plugin exclusion?
Posted by Anders Hammar <an...@hammar.net>.
Then I guess you different plugin configuration in the modules.
/Anders
On Mon, Nov 26, 2012 at 8:56 AM, <e9...@seznam.cz> wrote:
> Yeah sorry for mistification. I have one parrent pom.xml and other moudules
> references on this parrent pom.xml.
> In parrent pom.xml I have this definition:
>
> <profiles>
> <profile>
> <id>pre</id>
> <build>
>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>buildnumber-maven-plugin</artifactId>
> <version>1.1</version>
> <executions>
> <execution>
> <phase>validate</phase>
> <goals>
> <goal>create</goal>
> </goals>
> </execution>
> </executions>
> <configuration>
> <doCheck>false</doCheck>
> <doUpdate>false</doUpdate>
> <useLastCommittedRevision>true</
> useLastCommittedRevision>
> <providerImplementations>
> <svn>javasvn</svn>
> </providerImplementations>
> </configuration>
> </plugin>
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>build-helper-maven-plugin</artifactId>
> <version>1.7</version>
> <executions>
> <execution>
> <id>parse-version</id>
> <goals>
> <goal>parse-version</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-packaging-plugin</artifactId>
> <version>${tycho-version}</version>
> <executions>
> <execution>
> <phase>validate</phase>
> <goals>
> <goal>build-qualifier</goal>
> </goals>
> <configuration>
> <forceContextQualifier>${buildNumber}</
> forceContextQualifier>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
>
> <plugin>
> <groupId>org.eclipse.tycho</groupId>
> <artifactId>tycho-versions-plugin</artifactId>
> <version>${tycho-version}</version>
> <executions>
> <execution>
> <phase>validate</phase>
> <goals>
> <goal>set-version</goal>
> </goals>
> <configuration>
> <newVersion>${parsedVersion.
> majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.
> incrementalVersion}.${buildNumber}</newVersion>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> </plugins>
> </build>
> </profile>
> </profiles>
>
>
> So before the build on Jenkins started, the profile <PRE> is called and
> set
> the qualifier for all modules in reactor. But I need to NOT to set the
> qualifier for 2 modules in reactor. Is it clear?
>
>
> Thank you
>
>
> ---------- Původní zpráva ----------
> Od: Anders Hammar <an...@hammar.net>
> Datum: 22. 11. 2012
> Předmět: Re: build number maven plugin - how define plugin exclusion?
> "> But I need to avoid to set the qualifier for two plugins... how can I do
> > that?
> >
>
> I don't understand what you're trying to do. How are you using the build
> number as a qualifier for your plugins? Are you talking about your modules?
>
> /Anders
>
>
>
> > Thanks for any advices.
> >
> > David"
Re: Re: build number maven plugin - how define plugin exclusion?
Posted by e9...@seznam.cz.
Yeah sorry for mistification. I have one parrent pom.xml and other moudules
references on this parrent pom.xml.
In parrent pom.xml I have this definition:
<profiles>
<profile>
<id>pre</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<useLastCommittedRevision>true</
useLastCommittedRevision>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>parse-version</id>
<goals>
<goal>parse-version</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>build-qualifier</goal>
</goals>
<configuration>
<forceContextQualifier>${buildNumber}</
forceContextQualifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-versions-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>set-version</goal>
</goals>
<configuration>
<newVersion>${parsedVersion.
majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.
incrementalVersion}.${buildNumber}</newVersion>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
So before the build on Jenkins started, the profile <PRE> is called and set
the qualifier for all modules in reactor. But I need to NOT to set the
qualifier for 2 modules in reactor. Is it clear?
Thank you
---------- Původní zpráva ----------
Od: Anders Hammar <an...@hammar.net>
Datum: 22. 11. 2012
Předmět: Re: build number maven plugin - how define plugin exclusion?
"> But I need to avoid to set the qualifier for two plugins... how can I do
> that?
>
I don't understand what you're trying to do. How are you using the build
number as a qualifier for your plugins? Are you talking about your modules?
/Anders
> Thanks for any advices.
>
> David"
Re: build number maven plugin - how define plugin exclusion?
Posted by Anders Hammar <an...@hammar.net>.
> But I need to avoid to set the qualifier for two plugins... how can I do
> that?
>
I don't understand what you're trying to do. How are you using the build
number as a qualifier for your plugins? Are you talking about your modules?
/Anders
> Thanks for any advices.
>
> David