Custom Maven Plugin Development Archiving Files

2013-02-14 Thread kamaci
I am developing my own custom Maven plugin and I want to archive the files. I followd that example: http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-mojo-params.html and could archive the elements with zip format. However I want to use other formats too(user will indicate it

How to Get DefaultProjectBuilderConfiguration

2013-02-09 Thread kamaci
How can I get the default project builder configuration of my maven project when I implement my custom maven plugin? I will get execution properties from it (I think I can get the maven variables values from it i.e. project.version, bamboo.build.number etc.) I am searching for a way i.e. I will sa

Re: Reading Variables From a Properties File Without Creating An Ouptut File

2013-02-08 Thread kamaci
I need something like that. When Maven checks the pom.xml if it sees variables it gets their value. I need something like that: String version = something.getProperty("project.version") // to get ${project.version} String revision = something.getProperty("svn.revision.number") // to get ${svn.revi

Reading Variables From a Properties File Without Creating An Ouptut File

2013-02-08 Thread kamaci
I am developing a Maven plugin. It will search for given token and inject values at given files. Everything is OK but there is only one thing that I am struggling with. I have some tokens and variables and I want to read them from a properties file. For example: project.version = ${project.version

Re: Reading Variables From a Properties File Without Creating An Ouptut File

2013-02-08 Thread kamaci
copy resources requires an output directory that is what I don't want. However I didn't check to implement a custom filter, do I need copy resources plugin to it. I don't want to use copy resources plugin because I am developing a plugin myself that has lightweights of some plugins. Is there any ex

Reading Variables From a Properties File Without Creating An Ouptut File

2013-02-08 Thread kamaci
I am developing a Maven plugin. It will search for given token and inject values at given files. Everything is OK but there is only one thing that I am struggling with. I have some tokens and variables and I want to read them from a properties file. For example: project.version = ${project.version