<?xml version="1.0"?>
<!--
This software is OSI Certified Open Source Software.
OSI Certified is a certification mark of the Open Source Initiative

The license (Mozilla version 1.0) can be read at the MMBase site.
See http://www.MMBase.org/license
Version $Id: pom.xml,v 1.8 2009/02/20 15:21:28 michiel Exp $
-->
<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 https://maven.apache.org/xsd/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.mmbase</groupId>
  <artifactId>mmbase-cms</artifactId>
  <version>1.9.7-rc2</version>
  <name>MMBase</name>

  <packaging>pom</packaging>

  <properties>
    <compiler.fork>false</compiler.fork>
    <mmbase.version.number>1.9.7</mmbase.version.number>
    <mmbase.version.postfix>-rc2</mmbase.version.postfix>
    <mmbase.version>${mmbase.version.number}${mmbase.version.postfix}</mmbase.version>
    <!-- Cannot be project.version, because then an extension of this cannot have it's own version any more -->

    <surefire.fork.mode>once</surefire.fork.mode>
    <surefire.format>brief</surefire.format>
    <surefire.usefile>false</surefire.usefile>
    <surefire.fork.vmargs>-ea</surefire.fork.vmargs>

    <project.build.sourceEncoding>iso-8859-1</project.build.sourceEncoding>
  </properties>

  <description>
    MMBase is a Web Content Management System with strong multi media features. MMBase has a large
    installed base in The Netherlands, and is used by major Dutch broadcasters, publishers,
    educational institutes, national and local governments. MMBase is written in Java, it is Open
    Source Software (MPL) and all standards used are as 'open' as possible. The system can be used
    with all major operating systems, webservers and databases.
  </description>
  <url>https://www.mmbase.org/</url>
  <inceptionYear>2000</inceptionYear>

  <organization>
    <name>MMBase.org</name>
    <url>https://www.mmbase.org</url>
  </organization>

  <licenses>
    <license>
      <name>Mozilla Public License 1.0 (MPL)</name>
      <url>https://www.mmbase.org/license</url>
    </license>
  </licenses>

  <scm>
    <url>https://github.com/mmbase/mmbase.git</url>
    <connection>scm:git:${project.scm.url}</connection>
    <developerConnection>${project.scm.connection}</developerConnection>
    <tag>MMBase-1_9</tag>
  </scm>

  <issueManagement>
    <system>github</system>
    <url>https://github.com/mmbase/mmbase/issues</url>
  </issueManagement>

  <ciManagement>
    <notifiers>
      <notifier>
        <configuration>
          <address>developers@mmbase.org</address>
        </configuration>
      </notifier>
    </notifiers>
  </ciManagement>

  <mailingLists>
    <mailingList>
      <name>MMBase discussion group</name>
      <subscribe>https://groups.google.com/group/mmbase-discuss/subscribe</subscribe>
      <unsubscribe>https://groups.google.com/group/mmbase-discuss/subscribe</unsubscribe>
      <archive>https://groups.google.com/group/mmbase-discuss/topics</archive>
    </mailingList>
    <mailingList>
      <name>MMBase SCM changes List</name>
      <subscribe>https://groups.google.com/group/mmbase-repos/subscribe</subscribe>
      <unsubscribe>https://groups.google.com/group/mmbase-repos/subscribe</unsubscribe>
      <archive>https://groups.google.com/group/mmbase-repos/topics</archive>
    </mailingList>
  </mailingLists>

  <developers>
    <developer>
      <id>0</id>
      <name>Andre van Toly</name>
      <email>andre@toly.nl</email>
      <roles>
        <role>Webmaster</role>
      </roles>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>1</id>
      <name>Daniel Ockeloen</name>
      <email>daniel@submarine.nl</email>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>2</id>
      <name>Eduard Witteveen</name>
      <email>eywitteveen@gmail.com</email>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>ernst</id>
      <name>Ernst Bunders</name>
      <email>ernst@dynasol.nl</email>
      <url>http://www.dynasol.nl</url>
      <organization>Dynasol</organization>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>4</id>
      <name>Gerard van Enk</name>
      <email>gvenk@xs4all.nl</email>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>5</id>
      <name>Jaco de Groot</name>
      <email>jaco@dynasol.nl</email>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>johannes</id>
      <name>Johannes Verelst</name>
      <email>jverelst@gmail.com</email>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>keesj</id>
      <name>Kees Jongenburger</name>
      <email>keesj@dds.nl</email>
      <organization>Exmachina</organization>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>7</id>
      <name>Marcel Maatkamp</name>
      <email>M.Maatkamp@vpro.nl</email>
      <organization>Vpro</organization>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>8</id>
      <name>Mark Huijser</name>
      <email>mark.huijser@eo.nl</email>
      <organization>EO</organization>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>michiel</id>
      <name>Michiel Meeuwissen</name>
      <email>michiel.meeuwissen@gmail.com</email>
      <url>https://meeuw.org/</url>
      <roles>
        <role>Release Manager</role>
      </roles>
      <timezone>Europe/Amsterdam</timezone>
    </developer>
    <developer>
      <id>nklasens</id>
      <name>Nico Klasens</name>
      <email>mmbase@klasens.net</email>
      <url>http://www.finalist.com</url>
      <organization>Finalist IT Group</organization>
      <roles>
        <role>Source monitor</role>
        <role>Patch manager</role>
      </roles>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>pierre</id>
      <name>Pierre van Rooden</name>
      <email>Pierre.van.Rooden@omroep.nl</email>
      <organization>Publieke Omroep</organization>
      <roles>
        <role>Vote manager</role>
      </roles>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>11</id>
      <name>Rico Jansen</name>
      <email>R.Jansen@vpro.nl</email>
      <organization>Vpro</organization>
      <roles>
        <role>Hosting</role>
      </roles>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>12</id>
      <name>Rob van Maris</name>
      <email>robvanmaris@xs4all.nl</email>
      <roles>
        <role>Project coordination</role>
        <role>Meeting coordination</role>
      </roles>
      <timezone>1</timezone>
    </developer>
    <developer>
      <id>13</id>
      <name>Rob Vermeulen</name>
      <email>r.vermeulen@vpro.nl</email>
      <organization>Vpro</organization>
      <timezone>1</timezone>
    </developer>
    <developer>
      <name>Sander de Boer</name>
      <id>sdboer</id>
      <organization>EO</organization>
      <timezone>1</timezone>
    </developer>
  </developers>

  <build>
    <defaultGoal>install</defaultGoal>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.3.1</version>
        <configuration>

          <maxmemory>1024</maxmemory>
          <!--
              Very nice, but mvn site fails on it.
              The maven site does not work anyway.
          -->
          <stylesheetfile>file:///${maven.multiModuleProjectDirectory}/documentation/javadoc.css</stylesheetfile>

          <doctitle>MMBase ${project.version}</doctitle>
          <windowtitle>MMBase ${project.version} - API</windowtitle>
          <bottom>${project.name} ${project.version} - ${javadoctimestamp}</bottom>
          <show>package</show>
          <javaApiLinks>
            <property>
              <name>api_1.7</name>
              <value>https://download.oracle.com/javase/7/docs/api</value>
            </property>
          </javaApiLinks>
          <detectLinks/>
          <links>
            <link>https://docs.oracle.com/cd/E17802_01/products/products/jsp/jstl/1.1/docs/api/</link>
            <link>https://logging.apache.org/log4j/1.2/apidocs/</link>
            <link>https://commons.apache.org/proper/commons-fileupload/apidocs/</link>
          </links>
          <groups>
            <group>
              <title>Bridge Packages and associated packages</title>
              <packages>org.mmbase.bridge:org.mmbase.bridge.util:org.mmbase.security:org.mmbase.storage.search:org.mmbase.datatypes*:org.mmbase.util.functions:org.mmbase.cache:org.mmbase.framework:org.mmbase.servlet:org.mmbase.bridge.mock</packages>
            </group>
            <group>
              <title>Utility Packages</title>
              <packages>org.mmbase.util*:org.mmbase.bridge.util*</packages>
            </group>
            <group>
              <title>Core Packages (should only be of interest if you're changing MMBase itself)</title>
              <packages>org.mmbase.core*:org.mmbase.module:org.mmbase.module.core*:org.mmbase.module.builders*:org.mmbase.module.database*</packages>
            </group>
            <group>
              <title>MMBase Taglib</title>
              <packages>org.mmbase.bridge.jsp.taglib*</packages>
            </group>
            <group>
              <title>Mojo</title>
              <packages>org.mmbase.mojo*</packages>
            </group>
          </groups>
          <tags>
            <tag>
              <head>To Do:</head>
              <name>todo</name>
              <placement>a</placement>
            </tag>
            <tag>
              <head>Classifies the class as an APPLICATION class, belonging to the application with name application-name</head>
              <name>application</name>
            </tag>
            <tag>
              <head>Section contains hard-coded values, which should be made configurable.</head>
              <name>bad-constant</name>
            </tag>
            <tag>
              <head>Section contains literals (numeric or string constants), where constants (public final static identifiers) should be used.</head>
              <name>bad-literal</name>
            </tag>
            <tag>
              <head>The class needs to be adapted to the MMBase Coding Standards.</head>
              <name>code-conventions</name>
            </tag>
            <tag>
              <head>Classifies the class as a CORE class</head>
              <name>core</name>
            </tag>
            <tag>
              <head>Section is deprecated and will be removed from the code. If this is a Class, the entire Class will be removed.</head>
              <name>deprecated-now</name>
            </tag>
            <tag>
              <head>Section uses deprecated (java) code, which will be fixed</head>
              <name>deprecation-used</name>
            </tag>
            <tag>
              <head>Section contains code which is depedent on a class, where it is undesirable. The code will be adapated to be more generic or moved to a more appropriate class.</head>
              <name>dependency</name>
            </tag>
            <tag>
              <head>Section contains code which will be moved to an higher (possibly abstract) class, identified with &lt;classname></head>
              <name>duplicate</name>
            </tag>
            <tag>
              <head>Section needs Javadoc..</head>
              <name>javadoc</name>
            </tag>
            <tag>
              <head>Section needs to be altered to use internationalization, using english ('en') as a default.</head>
              <name>language</name>
            </tag>
            <tag>
              <head>The code for this class falls under a different (and conflicting) license, such as GPL. The code needs to be replaced or moved out of the core.</head>
              <name>license</name>
            </tag>
            <tag>
              <head>Class will be moved to package &lt;packagename&amp;lg;</head>
              <name>move</name>
            </tag>
            <tag>
              <head>Section need be improved for performance reasons.</head>
              <name>performance</name>
            </tag>
            <tag>
              <head>Class wil be renamed to &lt;classname></head>
              <name>rename</name>
            </tag>
            <tag>
              <head>This Class needs the indicated version of the MMBase core.</head>
              <name>requires</name>
            </tag>
            <!--
                These seems to conflict with something and fails to complete mvn javadoc:jar  build
            -->
            <tag>
              <head>Section scope will be narrowed to &lt;scope> (i.e. private, package, protected)</head>
              <name>scope</name>
            </tag>
            <tag>
              <name>sql</name>
              <head>Section uses (direct) SQL queries, which will be removed or fixed</head>
            </tag>
            <tag>
              <name>vpro</name>
              <head>Section contains VPRO-specific code, which will be removed or fixed</head>
            </tag>

          </tags>
          <doclint>none</doclint>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.5</version>
        <configuration>
          <includes>
            <include>**/*Test.java</include>
            <include>**/*TestCase.java</include>
            <include>**/*TestCases.java</include>
          </includes>
          <!-- do not exclude **/Abstract*Test.java **/Abstract*TestCase.java -->
          <excludes>
            <exclude>**/*$*</exclude>
          </excludes>
          <reportFormat>${surefire.format}</reportFormat>
          <useFile>${surefire.usefile}</useFile>
          <forkMode>${surefire.fork.mode}</forkMode>
          <childDelegation>false</childDelegation>
          <argLine>${surefire.fork.vmargs}</argLine>
          <systemPropertyVariables>
            <property>
              <name>java.awt.headless</name>
              <value>true</value>
            </property>
            <property>
              <name>mmbase.defaultcloudcontext</name>
              <value>mock:local</value>
            </property>

            <!-- TODO should not depend on system  default locale -->
            <property>
              <name>user.language</name>
              <value>en</value>
            </property>
            <property>
              <name>java.util.logging.config.file</name>
              <value>${basedir}/target/test-classes/logging.properties</value>
            </property>
            <property>
              <name>surefire.fork.vmargs</name>
              <value>${surefire.fork.vmargs}</value>
            </property>
          </systemPropertyVariables>
<!--
          <check>
            <branchRate>80</branchRate>
            <lineRate>80</lineRate>
            <haltOnFailure>true</haltOnFailure>
            <totalBranchRate>80</totalBranchRate>
            <totalLineRate>80</totalLineRate>
            <packageLineRate>80</packageLineRate>
            <packageBranchRate>80</packageBranchRate>
          </check>-->
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.keyboardsamurais.maven</groupId>
        <artifactId>maven-timestamp-plugin</artifactId>
        <version>1.0</version>
        <configuration>
          <propertyName>javadoctimestamp</propertyName>
          <timestampPattern>yyyy-MM-dd'T'HH:mm</timestampPattern>
        </configuration>
        <executions>
          <execution>
            <phase>generate-sources</phase>
            <goals>
              <goal>create</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.sonatype.central</groupId>
        <artifactId>central-publishing-maven-plugin</artifactId>
        <version>0.9.0</version>
        <extensions>true</extensions>
        <configuration>
          <publishingServerId>central</publishingServerId>
          <autoPublish>true</autoPublish>
          <waitUntil>published</waitUntil>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.3.1</version>
        <configuration>
          <maxmemory>1024</maxmemory>
          <doclint>none</doclint>
        </configuration>
        <reportSets>
          <reportSet>
            <id>aggregate</id>
            <reports>
              <report>aggregate</report>
            </reports>
          </reportSet>
          <reportSet>
            <id>javadoc</id>
            <reports>
              <report>javadoc</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <!-- disabled because fails on RMMCI
           /home/michiel/mmbase/trunk/applications/rmmci/target/generated-sources/org/mmbase/bridge/remote/proxy/RemoteRelation_Proxy.java:[37,75] cannot access net.sourceforge.cobertura.coveragedata.HasBeenInstrumented
           file net/sourceforge/cobertura/coveragedata/HasBeenInstrumented.class not found
           org.mmbase.bridge.Node retval = (org.mmbase.bridge.Node)ObjectWrapper.rmiObjectToRemoteProxy(getWrappedObject().getSource());
           WTF, what can I say.

           <plugin>
           <groupId>org.codehaus.mojo</groupId>
           <artifactId>cobertura-maven-plugin</artifactId>
           <version>2.2</version>
           </plugin>
      -->
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.5</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>taglist-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>javancss-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <reportSets>
          <reportSet>
            <reports>
              <report>project-team</report>
              <report>mailing-list</report>
              <report>cim</report>
              <report>issue-tracking</report>
              <report>license</report>
              <report>scm</report>
              <report>index</report>
              <report>aggregate</report>
              <report>javadoc</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>

      <!--
          <plugin>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <configuration>
          <configLocation>${basedir}/maven-base/checkstyle-mmbase.xml</configLocation>
          <headerLocation>${basedir}/maven-base/LICENSE.txt</headerLocation>
          </configuration>
          </plugin>
      -->
      <!--
          <plugin>
          <artifactId>maven-changes-plugin</artifactId>
          <configuration>
          <xmlPath>${basedir}/xdocs/changes.xml</xmlPath>
          </configuration>
          </plugin>
      -->
    </plugins>

  </reporting>


  <repositories>
    <repository>
      <!-- jai-* is not in central, jms (which is dependeny of oscache) isn't either -->
      <id>jboss</id>
      <name>JBoss maven 2 repository</name>
      <url>https://repository.jboss.org/maven2</url>
    </repository>
    <repository>
      <name>Central Portal Snapshots</name>
      <id>central-portal-snapshots</id>
      <url>https://central.sonatype.com/repository/maven-snapshots/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <name>Central Portal Snapshots</name>
      <id>central-portal-snapshots</id>
      <url>https://central.sonatype.com/repository/maven-snapshots/</url>
      <releases>
        <enabled>false</enabled>
      </releases>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>

  <profiles>
    <profile>
      <id>default</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <modules>
        <module>maven</module>
        <module>maven-base</module>
        <module>maven-base/applications</module>
        <module>core</module>
        <module>applications</module>
        <module>contributions</module>
        <module>base-webapp</module>
        <module>example-webapp</module>
      </modules>
    </profile>
    <profile>
      <id>mmapplications_subset1</id>
      <!--
          No no example-app, no maven stuff
      -->
      <modules>
        <module>maven/assembly-descriptors</module>
        <module>core</module>
        <module>applications</module>
        <module>contributions</module>
        <module>base-webapp</module>
      </modules>
    </profile>
    <profile>
      <id>privaterelease</id>
      <!--
          This profile makes it possible to build a release with a different version number.
          This is valid for all (sub) modules which would otherwise use '${mmbase.version}'.
      -->
      <activation>
        <property>
          <name>my.version</name>
        </property>
      </activation>

      <properties>
        <mmbase.version.postfix>-${my.version}</mmbase.version.postfix>
      </properties>
      <distributionManagement>
        <repository>
          <id>${my.repository.id}</id>
          <name>Corporate repository</name>
          <url>${my.repository.url}</url>
          <uniqueVersion>false</uniqueVersion> <!-- hmm? -->
        </repository>
        <snapshotRepository>
          <id>${my.repository.id}</id>
          <name>Corporate snapshot repository</name>
          <url>${my.repository.url}</url>
          <uniqueVersion>false</uniqueVersion>
        </snapshotRepository>
      </distributionManagement>
    </profile>
    <profile>
      <id>uml</id>
      <properties>
        <umlgraph.version>5.1</umlgraph.version>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.3.1</version>
            <configuration>
              <doclet>org.umlgraph.doclet.UmlGraphDoc</doclet>
              <doclint>none</doclint>
              <docletArtifact>
                <groupId>org.umlgraph</groupId>
                <artifactId>doclet</artifactId>
                <version>${umlgraph.version}</version>
              </docletArtifact>
              <usestandardparameters>true</usestandardparameters>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <dependencies>
        <dependency>
          <groupId>org.umlgraph</groupId>
          <artifactId>doclet</artifactId>
          <version>${umlgraph.version}</version>
        </dependency>
      </dependencies>

    </profile>
    <profile>
      <id>deploy</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>3.2.8</version>
            <executions>
            <execution>
              <id>sign-artifacts</id>
              <phase>verify</phase>
              <goals>
                <goal>sign</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>
