revise the way that pom file uses version number
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
- <version>6.3.5-SNAPSHOT</version>
+ <version>6.3.5.${jreVersion}-SNAPSHOT</version>
<packaging>jar</packaging>
<profiles>
<profile>
<id>build41</id>
+
+ <properties>
+ <jreVersion>jre7</jreVersion>
+ </properties>
+
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
- <finalName>${project.artifactId}-${project.version}.jre7-preview</finalName>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
<profile>
<id>build42</id>
+
<activation>
<activeByDefault>true</activeByDefault>
</activation>
+
+ <properties>
+ <jreVersion>jre8</jreVersion>
+ </properties>
+
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
- <finalName>${project.artifactId}-${project.version}.jre8-preview</finalName>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
