Maven/ProjectHelp

HomePage | Maven | RecentChanges | Preferences

Problem The profile can only be activated with -Penv-local (and not with -Denv=local)

settings.xml
   <profiles>
      <profile>
         <id>env-local</id>
         <activation>
            <property>
               <name>env</name>
               <value>local</value>
            </property>
         </activation>
         <properties>
            <logPath>c:\\logs</logPath>
            <testLogPath>target</testLogPath>
         </properties>
      </profile>
     ...

With -P
$ mvn projecthelp:active-profiles -P env-local
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'projecthelp'.
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Benefactor Web
[INFO]    task-segment: [projecthelp:active-profiles]
[INFO] -------------------------------------------------------------------------
---
[INFO] [projecthelp:active-profiles]
[INFO]
The following profiles are active:


 - snapshot (source: settings.xml)
 - env-local (source: settings.xml)


[INFO] -------------------------------------------------------------------------
---
[INFO] BUILD SUCCESSFUL
[INFO] -------------------------------------------------------------------------
---
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Mar 03 10:20:40 MST 2006
[INFO] Final Memory: 3M/6M
[INFO] -------------------------------------------------------------------------
---

With -D
$ mvn projecthelp:active-profiles -Denv=local
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'projecthelp'.
[INFO] -------------------------------------------------------------------------
---
[INFO] Building Benefactor Web
[INFO]    task-segment: [projecthelp:active-profiles]
[INFO] -------------------------------------------------------------------------
---
[INFO] [projecthelp:active-profiles]
[INFO]
The following profiles are active:


 - snapshot (source: settings.xml)


[INFO] -------------------------------------------------------------------------
---
[INFO] BUILD SUCCESSFUL
[INFO] -------------------------------------------------------------------------
---
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Mar 03 10:20:54 MST 2006
[INFO] Final Memory: 3M/7M
[INFO] -------------------------------------------------------------------------
---
$

HomePage | Maven | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited March 3, 2006 9:52 am by WendySmoak (diff)
Search: