Maven read external property file plugins

<profiles>
        <profile>
            <id>cmd</id>
            <activation>
              <os>
                <family>Windows</family>
              </os>
            </activation>
       <build>
                              <plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<executions>
 <execution>
<phase>initialize</phase>
<goals>
 <goal>read-project-properties</goal>
</goals>
<configuration>
 <files>
<file>properties/incident-mq-common.properties</file>
 </files>
</configuration>
 </execution>
</executions>
</plugin>
                           </plugins>
       </build>
        </profile>

No comments :

Post a Comment