maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Pilgrim (JIRA)" <>
Subject [jira] Created: (MNG-2532) System properties cannot be set from Profiles or Settings.xml
Date Tue, 29 Aug 2006 09:49:48 GMT
System properties cannot be set from Profiles or Settings.xml

                 Key: MNG-2532
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.4
         Environment: Windows XP 
            Reporter: Peter Pilgrim

Hi All

With the maven-antrun-plugin in Maven 2.0.4 is it possibly to define a system property. Instead
of me doing this all the time.

mvn install -Duser.install.root="C:\Program Files\IBM\WebSphere\AppServer"

For more info on the context see my blog

Specifically  the system properties is not set up following to either a profiles.xml or settings.xml
file by Maven 2
Possibly the system property I need is not also transfered to the Ant task using the maven-antrun-plugin.

/* profiles.xml */
      <user.install.root>C:\\Program Files\\IBM\\WebSphere\\AppServer</user.install.root>

Running mvn help:active-profiles, however, does show that the profile has been read.

C:\WORKSP~2\M2SPRI~1\ejb>mvn help:active-profiles
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] -------------------------------------------------------------------------
[INFO] Building Maven 2.0 Spring EJB Research Project (EJB Module)
[INFO]    task-segment: [help:active-profiles] (aggregator-style)
[INFO] -------------------------------------------------------------------------
[INFO] [help:active-profiles]
Active Profiles for Project '

The following profiles are active:

 - user-install-root (source: profiles.xml)

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue Aug 29 10:46:31 BST 2006
[INFO] Final Memory: 2M/5M
[INFO] ------------------------------------------------------------------------


Thanks Peter Pilgrim

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message