pom.xml 4.89 KB
Newer Older
1 2
<?xml version="1.0" encoding="UTF-8"?>
<!--
3
  Copyright 2010-2018 Hippo B.V. (http://www.onehippo.com)
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<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>

  <parent>
    <groupId>org.onehippo.cms7</groupId>
    <artifactId>hippo-cms7-project</artifactId>
23
    <version>28.12</version>
24 25 26 27 28 29 30 31
  </parent>

  <name>Hippo CMS7 Project Archetype</name>
  <description>This project enables you to start with a skeleton project
    gluing together all the necessary components and compatible versions.
  </description>

  <artifactId>hippo-project-archetype</artifactId>
32
  <version>11.2.11-SNAPSHOT</version>
33 34 35 36 37 38
  <packaging>maven-archetype</packaging>

  <properties>
    <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>
39
    <gettingstarted.app.version>0.1.0</gettingstarted.app.version>
40
    <gettingstarted.app.name>Getting Started</gettingstarted.app.name>
41
    <maven.archetype.plugin.version>2.4</maven.archetype.plugin.version>
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
    <maven.antrun.plugin.version>1.7</maven.antrun.plugin.version>
  </properties>

  <repositories>
    <repository>
      <id>hippo</id>
      <name>Hippo Maven 2</name>
      <url>https://maven.onehippo.com/maven2/</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <updatePolicy>never</updatePolicy>
      </releases>
    </repository>
  </repositories>

  <scm>
60 61 62
    <connection>scm:git:https://code.onehippo.org/cms-community/hippo-project-archetype.git</connection>
    <developerConnection>scm:git:git@code.onehippo.org:cms-community/hippo-project-archetype.git</developerConnection>
    <url>https://code.onehippo.org/cms-community/hippo-project-archetype</url>
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
  </scm>

  <build>
    <defaultGoal>package</defaultGoal>
    <extensions>
      <extension>
        <groupId>org.apache.maven.archetype</groupId>
        <artifactId>archetype-packaging</artifactId>
        <version>${maven.archetype.plugin.version}</version>
      </extension>
    </extensions>

    <testResources>
      <testResource>
        <directory>src/test/resources</directory>
        <filtering>true</filtering>
      </testResource>
    </testResources>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-archetype-plugin</artifactId>
        <version>${maven.archetype.plugin.version}</version>
        <extensions>true</extensions>
        <configuration>
          <skip>${skipITs}</skip>
        </configuration>     
      </plugin>
      <plugin>
        <artifactId>maven-resources-plugin</artifactId>
        <version>2.7</version>
        <executions>
          <execution>
            <!-- copy the Getting Started app to target/gettingstarted in the install phase -->
            <id>copy-resources</id>
            <phase>install</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <outputDirectory>${project.build.directory}/gettingstarted</outputDirectory>
              <resources>          
                <resource>
                  <directory>${project.build.directory}/test-classes/projects/gettingstarted/project/gettingstarted</directory>
                </resource>
              </resources>
              <includeEmptyDirs>true</includeEmptyDirs>
            </configuration>            
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>pedantic</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.rat</groupId>
            <artifactId>apache-rat-plugin</artifactId>
            <inherited>false</inherited>
            <configuration>
              <excludes combine.children="append">
                <!-- skip archetype resources itself (but should not contain 3rd party copyrighted/licensed content) -->
                <exclude>src/**</exclude>
                <exclude>sync-marker.txt</exclude>
              </excludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>