Simpler way to maintain correct versioning. Replace it on resources copy.
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 13 May 2013 16:11:21 +0200
changeset 10935201a2a0ccd1
parent 1092 e684cc5dec32
child 1095 c06cedde886d
Simpler way to maintain correct versioning. Replace it on resources copy.
rt/archetype/pom.xml
rt/archetype/src/main/resources/archetype-resources/pom.xml
     1.1 --- a/rt/archetype/pom.xml	Fri May 10 00:05:40 2013 +0200
     1.2 +++ b/rt/archetype/pom.xml	Mon May 13 16:11:21 2013 +0200
     1.3 @@ -17,6 +17,22 @@
     1.4        virtual machine.
     1.5    </description>
     1.6    <build>
     1.7 +      <resources>
     1.8 +          <resource>
     1.9 +            <directory>src/main/resources</directory>
    1.10 +            <filtering>true</filtering>
    1.11 +            <includes>
    1.12 +                <include>**/pom.xml</include>
    1.13 +            </includes>
    1.14 +          </resource>
    1.15 +          <resource>
    1.16 +            <directory>src/main/resources</directory>
    1.17 +            <filtering>false</filtering>
    1.18 +            <excludes>
    1.19 +                <exclude>**/pom.xml</exclude>
    1.20 +            </excludes>
    1.21 +          </resource>
    1.22 +      </resources>      
    1.23        <plugins>
    1.24            <plugin>
    1.25                <groupId>org.apache.maven.plugins</groupId>
    1.26 @@ -29,6 +45,15 @@
    1.27            </plugin>
    1.28            <plugin>
    1.29                <groupId>org.apache.maven.plugins</groupId>
    1.30 +              <artifactId>maven-resources-plugin</artifactId>
    1.31 +              <version>2.6</version>
    1.32 +              <configuration>
    1.33 +                  <escapeString>\</escapeString>
    1.34 +                  <target>1.6</target>
    1.35 +              </configuration>
    1.36 +          </plugin>
    1.37 +          <plugin>
    1.38 +              <groupId>org.apache.maven.plugins</groupId>
    1.39                <artifactId>maven-surefire-plugin</artifactId>
    1.40                <configuration>
    1.41                    <skipTests>true</skipTests>
     2.1 --- a/rt/archetype/src/main/resources/archetype-resources/pom.xml	Fri May 10 00:05:40 2013 +0200
     2.2 +++ b/rt/archetype/src/main/resources/archetype-resources/pom.xml	Mon May 13 16:11:21 2013 +0200
     2.3 @@ -3,12 +3,12 @@
     2.4    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     2.5    <modelVersion>4.0.0</modelVersion>
     2.6  
     2.7 -  <groupId>${groupId}</groupId>
     2.8 -  <artifactId>${artifactId}</artifactId>
     2.9 -  <version>${version}</version>
    2.10 +  <groupId>\${groupId}</groupId>
    2.11 +  <artifactId>\${artifactId}</artifactId>
    2.12 +  <version>\${version}</version>
    2.13    <packaging>jar</packaging>
    2.14  
    2.15 -  <name>${artifactId}</name>
    2.16 +  <name>\${artifactId}</name>
    2.17  
    2.18    <repositories>
    2.19        <repository>
    2.20 @@ -53,7 +53,7 @@
    2.21                      </execution>
    2.22                  </executions>
    2.23                  <configuration>
    2.24 -                    <startpage>${package.replace('.','/')}/index.html</startpage>
    2.25 +                    <startpage>\${package.replace('.','/')}/index.html</startpage>
    2.26                  </configuration>
    2.27              </plugin>
    2.28           <plugin>
    2.29 @@ -103,13 +103,13 @@
    2.30      <dependency>
    2.31        <groupId>org.apidesign.bck2brwsr</groupId>
    2.32        <artifactId>emul</artifactId>
    2.33 -      <version>0.8-SNAPSHOT</version>
    2.34 +      <version>${project.version}</version>
    2.35        <classifier>rt</classifier>
    2.36      </dependency>
    2.37      <dependency>
    2.38        <groupId>org.apidesign.bck2brwsr</groupId>
    2.39        <artifactId>javaquery.api</artifactId>
    2.40 -      <version>0.8-SNAPSHOT</version>
    2.41 +      <version>${project.version}</version>
    2.42      </dependency>
    2.43      <dependency>
    2.44        <groupId>org.testng</groupId>
    2.45 @@ -122,13 +122,13 @@
    2.46        <artifactId>vm4brwsr</artifactId>
    2.47        <classifier>js</classifier>
    2.48        <type>zip</type>
    2.49 -      <version>0.8-SNAPSHOT</version>
    2.50 +      <version>${project.version}</version>
    2.51        <scope>provided</scope>
    2.52      </dependency>
    2.53      <dependency>
    2.54        <groupId>org.apidesign.bck2brwsr</groupId>
    2.55        <artifactId>vmtest</artifactId>
    2.56 -      <version>0.8-SNAPSHOT</version>
    2.57 +      <version>${project.version}</version>
    2.58        <scope>test</scope>
    2.59      </dependency>
    2.60    </dependencies>