67 lines
2.6 KiB
XML
67 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>maven-properties</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
<name>maven-properties</name>
|
|
|
|
<parent>
|
|
<groupId>com.baeldung</groupId>
|
|
<artifactId>parent-modules</artifactId>
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
<relativePath>../..</relativePath>
|
|
</parent>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>properties-maven-plugin</artifactId>
|
|
<version>1.1.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>write-project-properties</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputFile>${project.build.outputDirectory}/properties-from-pom.properties</outputFile>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<version>3.2.0</version>
|
|
<configuration>
|
|
<!--encoding>UTF-8</encoding -->
|
|
<!--propertiesEncoding>ISO-8859-1</propertiesEncoding -->
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<!--encoding>UTF-8</encoding -->
|
|
</configuration>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
|
|
<properties>
|
|
<name>${project.name}</name>
|
|
<my.awesome.property>property-from-pom</my.awesome.property>
|
|
<!--these properties are normally set in the parent POM -->
|
|
<!-- and would be overidden by the plugin specific properties above. -->
|
|
<!--project.build.sourceEncoding></project.build.sourceEncoding -->
|
|
<!--project.build.sourceEncoding>US-ASCII</project.build.sourceEncoding -->
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
</properties>
|
|
|
|
</project> |