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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]