Re: Creating a maven variable

2008-04-29 Thread Martin Höller
On Monday 28 April 2008 amit kumar wrote: Hi Olivier, I tried the same thing in the root pom. But at the sub module level it was taking ${my.build.directory} as {basedir}/${my.build.directory}, so the error that was coming was like could not create *

Re: Creating a maven variable

2008-04-29 Thread amit kumar
Thanks martin, problem got resolved (still to figure out why wasn't it working earlier). I am using a property now, which seems to work, now the issue lies with buildnumber-maven-plugin , i am not able to have two separate buildNumbers with different formats. Thanks adn regards, Amit On Tue, Apr

Creating a maven variable

2008-04-28 Thread amit kumar
Hi, I want to create a variable that can take a value of directory path on the system and that variable can be read by children projects of the project. I tried with properties build.directoryC:\builds/build.directory /properties but problem with this is that ${build.directory} seems to be

Re: Creating a maven variable

2008-04-28 Thread Olivier Dehon
Avoid redefining variables that are (or might be) defined by maven itself. Use something like: properties my.build.directoryC:/builds/my.build.directory /properties instead. HTH, -Olivier On Mon, 2008-04-28 at 16:13 +0530, amit kumar wrote: Hi, I want to create a variable that can take

Re: Creating a maven variable

2008-04-28 Thread amit kumar
Hi Olivier, I tried the same thing in the root pom. But at the sub module level it was taking ${my.build.directory} as {basedir}/${my.build.directory}, so the error that was coming was like could not create * D:\myProjects\project1\C:\builds\my-artifact-1.0.jar* Is the any work around to this?