maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Kettler <tim.kett...@udo.edu>
Subject Re: AW: AW: Change project version
Date Tue, 03 Jul 2007 14:42:10 GMT
http://www.nabble.com/Re%3A-AW%3A-Change-project-version-p11391476s177.html

Christian Clauss schrieb:
> Test project? I didn't get any project. Could you please re-send ist?
> 
> -Christian
> 
> -----Ursprüngliche Nachricht-----
> Von: Tim Kettler [mailto:tim.kettler@udo.edu] 
> Gesendet: Dienstag, 3. Juli 2007 16:11
> An: Maven Users List
> Betreff: Re: AW: Change project version
> 
> Have you tried to compile the test project I sent yesterday?
> 
> Christian Clauss schrieb:
>> Nobody a idea?
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Christian Clauss [mailto:Christian.Clauss@ptv.de] 
>> Gesendet: Montag, 2. Juli 2007 11:24
>> An: Maven Users List
>> Betreff: AW: Change project version
>>
>> Hi,
>>
>> I have declared the dependency to:
>>
>> 	<groupId>org.apache.maven</groupId>
>> 	<artifactId>maven-project</artifactId>
>> 	<version>2.0.7</version>
>>
>> in my pom but it still doesn't work.
>>
>> My usecase that forces me to alter the project version, is a custom release build.
I want the release build not to build all the sources again, but just change the name of a
SNAPSHOT version. After that the version in the pom should be automatically altered and counted
up to the next -SNAPSHOT version. 
>> I hope my explanation is coherent.
>>
>> -Christian
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Tim Kettler [mailto:tim.kettler@udo.edu] 
>> Gesendet: Montag, 2. Juli 2007 11:03
>> An: Maven Users List
>> Betreff: Re: Change project version
>>
>> Hi,
>>
>> well, most probably the class just isn't in your classpath.
>>
>> Have you declared a dependency to:
>>
>>    <groupId>org.apache.maven</groupId>
>>    <artifactId>maven-project</artifactId>
>>    <version>2.0.7</version>
>>
>> in your pom?
>>
>> And if you don't mind: May I ask what your usecase is that forces you to 
>> alter the project version?
>>
>> -Tim
>>
>> Christian Clauss schrieb:
>>> Hello everybody,
>>>
>>> I would like to change the version in the pom.xml using a self-developed
>>> plug-in. I tried to get access via 
>>>
>>> /**
>>> * Project instance
>>> * @parameter default-value="${project}"
>>> * 
>>> */
>>> private MavenProject project;
>>>
>>> and then 
>>>
>>> project.setVersion("222");
>>>
>>> but it doesn't work. The compiler tells me that MavenProject is an
>>> unknown type: can't find the symbol: class MavenProject
>>>
>>> Does anyone have a clue what to do?
>>>
>>> Thanks a lot.
>>>
>>> Christian
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message