Hello,

I figured out what is wrong with my configuration: I was trying to use
properties in a different life cycle (clean). So, I have try to change
somethings in my Mojo and in pom.xml. Now I have the following combo:

/**
* @goal properties
* @phase initialize
* @requiresDependencyResolution
* @requiresProject
*
*/
public class EnableProjectPropertiesMojo extends AbstractMojo {
...

I other words, I have added @phase tag. And my pom.xml:

<plugin>
   <groupId>com.provider.maven.plugins</groupId>
   <artifactId>maven-properties-plugin</artifactId>
   <version>1.0</version>
   <executions>
       <execution>
           <phase>initialize</phase>
           <goals>
               <goal>properties</goal>
           </goals>
       </execution>
   </executions>
</plugin>

I put some logs and so I can see that the mojo was executed correctly, but I
still can't access properties setted by it. So, my question is, how can a
mojo set properties to maven in a way that they are disposable in pom.xml? I
am using System.setProperty.

Kind Regards

--
Marcos Silva Pereira
recife - pe
[EMAIL PROTECTED]
skype: marcos.silva.pereira
http://blastemica.blogspot.com

Reply via email to