Dmitry Beransky wrote:

worked like a charm! I ended up putting the following into the profile section:

<properties>
   <buildDir>${java.io.tmpDir}/maven/${pom.artifactId}</buildDir>
</properties>

now the settings file is portalble among different platforms. Very cool, indeed.


Thanks
Dmitry


I was thinking in the lines of using profiles in settings.xml or profiles.xml where you specify a property which would be used in the pom, ie:

- inside profiles.xml (which resides only in the system that is used):
<profiles>
<profile>
  <id>myProfile</id>
  <properties>
    <myoutput>c:\test\target</myoutput>
  </properties>
</profile>
</profiles>

- inside pom.xml (which is portable):
....
<build>
  <outputDirectory>${myoutput}</outputDirectory>
</build>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Glad to hear it worked!

Regards,
Henry

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to