Commit ffce0e50 authored by Arent-Jan Banck's avatar Arent-Jan Banck

ARCHE-611 Use property placeholders for archetype release and essentials...

ARCHE-611 Use property placeholders for archetype release and essentials versions. The Essentials version property is set separately to allow overriding the essentials version independent from the release version
parent 5e251c5d
......@@ -33,6 +33,7 @@
<packaging>maven-archetype</packaging>
<properties>
<release.essentials.version>${project.version}</release.essentials.version>
<notice.project.name>Hippo CMS7 Project Archetype</notice.project.name>
<gettingstarted.app.groupId>org.onehippo.cms7.hst</gettingstarted.app.groupId>
<gettingstarted.app.artifactId>gettingstarted</gettingstarted.app.artifactId>
......@@ -80,6 +81,28 @@
</testResources>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>process-resources</phase>
<configuration>
<target>
<replace summary="true" failOnNoReplacements="true" token= "@project.version@" value="${project.version}" dir="${project.build.outputDirectory}/archetype-resources">
<include name="pom.xml"/>
</replace>
<replace token= "@release.essentials.version@" value="${release.essentials.version}" dir="${project.build.outputDirectory}/archetype-resources">
<include name="pom.xml"/>
</replace>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
......
#set( $dollar = '$' )
#set($dollar = '$')
#set($symbol_pound = '#')
#set($symbol_dollar = '$')
#set($symbol_escape = '\')
#set($hyphen = '-')
#set($empty = '')
<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
......@@ -6,7 +11,7 @@
<parent>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-cms7-release</artifactId>
<version>11.2.14-SNAPSHOT</version>
<version>@project.version@</version>
</parent>
<name>${projectName}</name>
......@@ -64,13 +69,13 @@
<!--***START temporary override of versions*** -->
<!-- ***END temporary override of versions*** -->
<essentials.version>3.2.11-SNAPSHOT</essentials.version>
<essentials.version>@release.essentials.version@</essentials.version>
<jsp-api.version>2.2</jsp-api.version>
<taglibs.version>1.2.5</taglibs.version>
<xalan.version>2.7.1</xalan.version>
<junit.version>4.10</junit.version>
<easymock.version>3.1</easymock.version>
<repo.bootstrap>true</repo.bootstrap>
<content-module-deploy-dir>shared/lib</content-module-deploy-dir>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment