Answer the question
In order to leave comments, you need to log in
Why doesn't maven create properties?
The pom.xml file has this construction
<properties>
<datasource>jdbc/${project.artifactId}DS</datasource>
</properties>
datasourceName=${datasource}
Answer the question
In order to leave comments, you need to log in
These properties are for use inside the pom.xml itself, they do not affect setting.properties in any way
So:
<properties>
<jdk.version>1.8</jdk.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>
</plugins>
</build>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question