Re: Error writing first Maven plugin.

2011-11-02 Thread MavenUser8979
Yes it is there. Sorry for not pasting entire MOJO defination. /** * Echos an object string to the output screen. * @goal sayhi * */ public class GreetingsMojo extends AbstractMojo { } -- View this message in context: http://maven.40175.n5.nabble.com/Error-writing-first-Maven-plugin-tp4957

Error writing first Maven plugin.

2011-11-02 Thread MavenUser8979
All, I want to write my own maven plugin but I am getting some wired error while executing the goal. 1) Using below command I am creating one archetype : archetype:generate -DgroupId=sample.plugin -DartifactId=hello-maven-plugin -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactI

Re: Reading property file based on configuration.

2011-10-31 Thread MavenUser8979
I tried this one too. But Still it does not work. If you have sample can you give me pom.xml's for parent and childs. -- View this message in context: http://maven.40175.n5.nabble.com/Reading-property-file-based-on-configuration-tp4942499p4951943.html Sent from the Maven - Users mailing list ar

Re: Reading property file based on configuration.

2011-10-30 Thread MavenUser8979
I tried to think of this but it seems this is not achieveable. Can any one has sample example for similar problem ? I am kind of stuck with this. -- View this message in context: http://maven.40175.n5.nabble.com/Reading-property-file-based-on-configuration-tp4942499p4951508.html Sent from the M

Reading property file based on configuration.

2011-10-27 Thread MavenUser8979
I have one requirement where I want to read properties file based on configuration. I have one folder where I have global environment related properties. e.g. env.properties is having two properties. SubEnvName=245SolarisMachine GlobalEnvDir=/apps Now I have all sub-enviroment related properti

Reading property file based on configuration.

2011-10-27 Thread MavenUser8979
I have one requirement where I want to read properties file based on configuration. I have one folder where I have global environment related properties. e.g. env.properties is having two properties. SubEnvName=245SolarisMachine GlobalEnvDir=/apps Now I have all sub-enviroment related properti

Re: Replacing properties with Maven.

2011-10-27 Thread MavenUser8979
Thanks for your valuable help. This can be achived with out ANT. My goal is to migrate my project from ANT to MAVEN and donot want to use ANT for this Proof of concept. Given below are steps. Hope it will help some one. 1) Load all the properties in initialize phase using POM properties plugin

Replacing properties with Maven.

2011-10-25 Thread MavenUser8979
All, I have one requirement where I want to read all the parameterized properties from one file and replace it in other file. e.g. parameterized.properties is having below two properties. LOG_DIR=/application/logs INSTALL_DIR = /application/config Now I have other property file project.propert