pom.xml 10.5 KB
Newer Older
Jeroen Reijn's avatar
Jeroen Reijn committed
1
<?xml version="1.0" encoding="UTF-8"?>
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<!--
  Copyright 2014 Hippo B.V. (http://www.onehippo.com)

  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.
  -->

18
<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">
Jeroen Reijn's avatar
Jeroen Reijn committed
19 20 21 22 23
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.onehippo.cms7</groupId>
    <artifactId>hippo-cms7-release</artifactId>
24
    <version>7.10.0-SNAPSHOT</version>
Jeroen Reijn's avatar
Jeroen Reijn committed
25 26 27 28 29
  </parent>

  <name>Hippo Essentials</name>
  <description>Hippo Essentials</description>
  <groupId>org.onehippo.cms7.essentials</groupId>
Marijan Milicevic's avatar
Marijan Milicevic committed
30
  <artifactId>hippo-essentials</artifactId>
31
  <version>1.03.00-SNAPSHOT</version>
Jeroen Reijn's avatar
Jeroen Reijn committed
32 33 34
  <packaging>pom</packaging>

  <properties>
35
    <notice.project.name>Hippo Essentials</notice.project.name>
Marijan Milicevic's avatar
Marijan Milicevic committed
36
    <essentialsBuildNumber>${project.version}</essentialsBuildNumber>
Marijan Milicevic's avatar
Marijan Milicevic committed
37

Jeroen Reijn's avatar
Jeroen Reijn committed
38 39
    <!--***START temporary override of versions*** -->
    <!-- ***END temporary override of versions*** -->
40
    <maven.plugin.release.version>2.5</maven.plugin.release.version>
Jeroen Reijn's avatar
Jeroen Reijn committed
41

42 43
    <jsp-api.version>2.2</jsp-api.version>
    <taglibs.version>1.2.1</taglibs.version>
Jeroen Reijn's avatar
Jeroen Reijn committed
44 45 46 47 48 49
    <commons.lang.version>2.6</commons.lang.version>
    <junit.version>4.11</junit.version>
    <easymock.version>3.1</easymock.version>
    <freemarker.version>2.3.18</freemarker.version>
    <filesync.override>false</filesync.override>
    <maven.plugins.filesync.version>1.0.0</maven.plugins.filesync.version>
50
    <jaxb-api.version>2.2.6</jaxb-api.version>
Jeroen Reijn's avatar
Jeroen Reijn committed
51 52

    <cargo.tomcat.major.version>7</cargo.tomcat.major.version>
53
    <cargo.tomcat.full.version>7.0.42</cargo.tomcat.full.version>
Jeroen Reijn's avatar
Jeroen Reijn committed
54

55 56 57 58 59 60
    <!-- Tells Sonar to run the unit tests -->
    <sonar.dynamicAnalysis>true</sonar.dynamicAnalysis>
    <!-- Tells Sonar to use JaCoCo as the code coverage tool -->
    <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
    <sonar.jacoco.reportPath>${basedir}/target/target/jacoco.exec</sonar.jacoco.reportPath>

Jeroen Reijn's avatar
Jeroen Reijn committed
61
  </properties>
Marijan Milicevic's avatar
Marijan Milicevic committed
62
  <scm>
63 64 65
    <connection>scm:svn:http://svn.onehippo.org/repos/hippo/hippo-cms7/essentials/trunk</connection>
    <developerConnection>scm:svn:https://svn.onehippo.org/repos/hippo/hippo-cms7/essentials/trunk</developerConnection>
    <url>http://svn.onehippo.org/repos/hippo/hippo-cms7/essentials/trunk</url>
Marijan Milicevic's avatar
Marijan Milicevic committed
66
  </scm>
Marijan Milicevic's avatar
Marijan Milicevic committed
67 68
  <distributionManagement>
    <repository>
69 70 71
      <name>Hippo Maven 2 Repository</name>
      <id>hippo-maven2</id>
      <url>https://maven.onehippo.com/content/repositories/releases</url>
Marijan Milicevic's avatar
Marijan Milicevic committed
72 73
      <uniqueVersion>false</uniqueVersion>
    </repository>
Marijan Milicevic's avatar
Marijan Milicevic committed
74
    <snapshotRepository>
75 76 77
      <id>hippo-maven2-snapshots</id>
      <name>Hippo Maven 2 Snapshots Repository</name>
      <url>https://maven.onehippo.com/content/repositories/snapshots</url>
Marijan Milicevic's avatar
Marijan Milicevic committed
78 79
      <uniqueVersion>false</uniqueVersion>
    </snapshotRepository>
Marijan Milicevic's avatar
Marijan Milicevic committed
80
  </distributionManagement>
Jeroen Reijn's avatar
Jeroen Reijn committed
81

Marijan Milicevic's avatar
Marijan Milicevic committed
82
  <modules>
83
    <module>components</module>
84
    <module>plugin-sdk</module>
85
    <module>plugins</module>
86
    <module>dashboard-dependencies</module>
87
    <module>dashboard</module>
Marijan Milicevic's avatar
Marijan Milicevic committed
88 89
  </modules>

Jeroen Reijn's avatar
Jeroen Reijn committed
90
  <repositories>
91 92 93 94 95 96 97 98 99 100 101 102
    <!--
        <repository>
          <id>hippo-maven2-private</id>
          <name>Hippo maven 2 private repository.</name>
          <url>https://maven.onehippo.com/maven2-private</url>
        </repository>
        <repository>
          <id>hippo-maven2-private-snapshots</id>
          <name>Hippo maven 2 private repository snapshots</name>
          <url>https://maven.onehippo.com/maven2-private-snapshots</url>
        </repository>
    -->
103
    <repository>
Jeroen Reijn's avatar
Jeroen Reijn committed
104 105 106
      <id>hippo</id>
      <name>Hippo maven 2 repository.</name>
      <url>http://maven.onehippo.com/maven2/</url>
107
    </repository>
Jeroen Reijn's avatar
Jeroen Reijn committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
    <repository>
      <id>hippo-forge</id>
      <name>Hippo Forge maven 2 repository.</name>
      <url>http://maven.onehippo.com/maven2-forge/</url>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
      <releases>
        <updatePolicy>never</updatePolicy>
      </releases>
      <layout>default</layout>
    </repository>
  </repositories>

  <dependencyManagement>
    <dependencies>
      <!-- other predefined runtime scope versioned dependencies -->
      <dependency>
126 127 128
        <groupId>org.apache.taglibs</groupId>
        <artifactId>taglibs-standard-spec</artifactId>
        <version>${taglibs.version}</version>
Jeroen Reijn's avatar
Jeroen Reijn committed
129 130 131 132
        <scope>runtime</scope>
      </dependency>

      <dependency>
133 134
        <groupId>org.apache.taglibs</groupId>
        <artifactId>taglibs-standard-impl</artifactId>
Jeroen Reijn's avatar
Jeroen Reijn committed
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
        <version>${taglibs.version}</version>
        <scope>runtime</scope>
      </dependency>

      <!-- other predefined compile scope versioned dependencies -->
      <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>${commons.lang.version}</version>
      </dependency>

      <dependency>
        <groupId>org.freemarker</groupId>
        <artifactId>freemarker</artifactId>
        <version>${freemarker.version}</version>
      </dependency>

      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>${junit.version}</version>
        <scope>test</scope>
      </dependency>

      <dependency>
        <groupId>org.easymock</groupId>
        <artifactId>easymock</artifactId>
        <version>${easymock.version}</version>
        <scope>test</scope>
      </dependency>

166 167 168 169 170 171
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-test</artifactId>
        <version>${spring.version}</version>
        <scope>test</scope>
      </dependency>
Jeroen Reijn's avatar
Jeroen Reijn committed
172 173 174 175 176 177 178 179 180
    </dependencies>
  </dependencyManagement>


  <build>
    <defaultGoal>package</defaultGoal>
    <pluginManagement>
      <plugins>
        <plugin>
181 182
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
Jeroen Reijn's avatar
Jeroen Reijn committed
183
          <configuration>
184 185
            <target>1.8</target>
            <source>1.8</source>
Jeroen Reijn's avatar
Jeroen Reijn committed
186 187
          </configuration>
        </plugin>
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205
        <!-- redefine again default Hippo LICENSE and NOTICE file handling configuration like as defined
             in root cms7-project pom but is 'nullified' again in parent cms7-release pom. -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-remote-resources-plugin</artifactId>
          <executions>
            <execution>
              <goals>
                <goal>process</goal>
              </goals>
              <configuration>
                <resourceBundles>
                  <resourceBundle>org.onehippo.cms7:hippo-cms7-legal-resources:1</resourceBundle>
                </resourceBundles>
              </configuration>
            </execution>
          </executions>
        </plugin>
Jeroen Reijn's avatar
Jeroen Reijn committed
206 207
      </plugins>
    </pluginManagement>
208 209 210 211
    <plugins>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
212
        <version>0.7.2.201409121644</version>
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
        <executions>
          <execution>
            <id>jacoco-initialize</id>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
            <configuration>
              <excludes>
                <exclude>org.hippoecm.*</exclude>
              </excludes>
              <destFile>${basedir}/target/jacoco.exec</destFile>
            </configuration>
          </execution>
          <execution>
            <id>jacoco-site</id>
            <phase>verify</phase>
            <goals>
              <goal>report</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
Jeroen Reijn's avatar
Jeroen Reijn committed
236 237
  </build>

238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
  <profiles>
    <profile>
      <id>pedantic</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.rat</groupId>
            <artifactId>apache-rat-plugin</artifactId>
            <inherited>false</inherited>
            <configuration>
              <addDefaultLicenseMatchers>false</addDefaultLicenseMatchers>
              <excludeSubProjects>false</excludeSubProjects>
              <licenses>
                <license implementation="org.apache.rat.analysis.license.AppliedApacheSoftwareLicense20">
                  <copyrightOwner>Hippo B\.V\. \(http://www\.onehippo\.com\)</copyrightOwner>
                </license>
              </licenses>
              <excludes>
                <!-- no license headers needed for these files -->
                <exclude>**/*.cnd</exclude>
                <exclude>**/*.json</exclude>
                <exclude>**/*.log</exclude>
                <exclude>**/*.patch</exclude>
                <exclude>**/*.properties</exclude>
                <exclude>**/hippoecm-extension.xml</exclude>
                <exclude>**/log4j.dtd</exclude>
                <exclude>**/MANIFEST.MF</exclude>
                <!-- exclude IntelliJ module files of sub-projects -->
                <exclude>**/*.iml</exclude>
                <!-- exclude IntelliJ Atlassian plugin file -->
                <exclude>**/atlassian-ide-plugin.xml</exclude>
                <!-- essentials specific -->
270
                <exclude>VERSIONS</exclude>
271 272 273 274
                <exclude>dashboard/*.txt</exclude>
                <exclude>dashboard/src/main/webapp/components/**</exclude>
                <exclude>dashboard/src/main/webapp/js/lib/**</exclude>
                <exclude>dashboard/src/main/webapp/docs/rest-api/**</exclude>
275 276 277 278 279 280 281
                <exclude>archetype/**</exclude>
                <exclude>**/*.md</exclude>
                <exclude>*/.idea/**</exclude>
                <exclude>*/.bowerrc/**</exclude>
                <exclude>**/*.svg</exclude>
                <exclude>**/*.woff</exclude>
                <exclude>**/*.ttf</exclude>
282
                <exclude>jar-dependencies.txt</exclude>
283 284 285
                <exclude>plugins/skeleton-package/src/main/resources/instructions/bootstrap/**</exclude>
                <exclude>plugins/skeleton-package/src/main/resources/instructions/js/bootstrap*.js</exclude>
                <exclude>plugins/skeleton-package/src/main/resources/instructions/js/jquery*.js</exclude>
286 287 288 289 290 291 292 293
              </excludes>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

Jeroen Reijn's avatar
Jeroen Reijn committed
294
</project>