Hi,

---------------------------------------------------
Here is my setting.xml:

<settings>
  <profiles>
    <profile>
      <id>default</id>
      <activation>
        <activeByDefault/>
      </activation>
      <properties>
        <myusername>my username</myusername>
       <mypassword>secret</mypassword>
      </properties>
    </profile>
  </profiles>
</settings>

---------------------------------------------------
In my pom I have the following:

<plugin>
  <artifactId>maven-scm-plugin</artifactId>
  <version>1.0</version>
  <configuration>
    <username>${myusername}</username>
     <password>${mypassword}</password>
   </configuration>
</plugin>

---------------------------------------------------
When doing help:effective-settings I get:

<profile>
  <activation />
  <properties>
    <myusername>my username</myusername>
    <mypassword>secret</mypassword>
   </properties>
 <id>default</id>
</profile>

---------------------------------------------------
But on help:effective-pom the properties are not substituted:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-scm-plugin</artifactId>
  <version>1.0</version>
  <configuration>
    <username>${myusername}</username>
    <password>${mypassword}</password>
  </configuration>
</plugin>


I have also tried to use ${settings.myusername} without success.

The weird thing is that the property substitution works properly on linux
but not on windows.

Any idea ?

Thanks

Reply via email to