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]

Reply via email to