The unrecognized tag 'exception' problem is solved, i am using the plugin
under
<pluginManagement>
<plugins>
section of my pom.
but still the build that is generated is as appName-${timestamp}, instead of
appName-20080502
Julien CARSIQUE wrote:
>
> Hello,
>
> Are you sure that the artifactId is maven-buildnumber-plugin ?
> I use buildnumber-maven-plugin
>
> Cheers,
> Julien
>
> RockRider a écrit :
>> Hi
>>
>> I am trying to use this plugin in my pom
>> http://mojo.codehaus.org/buildnumber-maven-plugin/index.html
>>
>> My pom is as follows:
>> <plugin>
>>
>> <groupId>org.codehaus.mojo</groupId>
>>
>> <artifactId>maven-buildnumber-plugin</artifactId>
>>
>> <executions>
>>
>> <execution>
>>
>> <phase>validate</phase>
>>
>> <goals>
>>
>> <goal>create</goal>
>>
>> </goals>
>>
>> </execution>
>>
>> </executions>
>>
>> <configuration>
>>
>> <doCheck>false</doCheck>
>>
>> <doUpdate>false</doUpdate>
>>
>> <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
>>
>> <items>
>>
>> <item>timestamp</item>
>>
>> </items>
>>
>> </configuration>
>>
>> </plugin>
>>
>> ...
>>
>> ...
>>
>> <build>
>>
>> <finalName>${project.artifactId}-${project.version}-r${buildNumber}</finalName>
>>
>> ...
>> </build>
>>
>> But I am getting this error:
>> org.apache.maven.reactor.MavenExecutionException: Parse error reading
>> POM.
>> Reason: Unrecognised tag: 'executions' (position: START_TAG seen
>> ...</artifactId>\n\t\t <executions>... @652:16) for project unknown at
>> /home/mig/cruisecontrol/cduweb/checkout/xxxWeb/pom.xml
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/***-Parse-error-reading-POM-***-tp17019499s177p17019773.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]