<?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>
<!--    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>9</version>
    </parent>-->
    <groupId>com.manydesigns</groupId>
    <artifactId>portofino</artifactId>
    <packaging>pom</packaging>
    <version>4.2.13</version>
    <name>manydesigns-portofino</name>
    <description>
        Portofino is a web application framework written in Java and
        extensible using Groovy, distributed under the LGPL open source license.
        The framework can be used to create interactive database-driven web
        applications. The creation process includes automatic generation through
        a &quot;wizard&quot; tool, manual configuration through a web-based
        administration interface, and customization through scripting languages.
        The framework combines features that are typical of Content Management
        Systems and of Rapid application development tools. Portofino is mainly
        intended for Java developers of enterprise applications and of dynamic
        web sites. It can connect to an existing database and generate a working
        web application based on an automatic analysis of the database's
        structure.
    </description>
    <url>https://www.manydesigns.com</url>
    <licenses>
        <license>
            <name>GNU LESSER GENERAL PUBLIC LICENSE, Version 3</name>
            <url>http://www.gnu.org/licenses/lgpl.html</url>
            <distribution>repo</distribution>
            <comments>A business-friendly OSS license</comments>
        </license>
    </licenses>
    <organization>
        <name>MANYDESIGNS s.r.l.</name>
        <url>https://www.manydesigns.com</url>
    </organization>
    <mailingLists>
        <mailingList>
            <name>Portofino mailing list in English</name>
            <archive>http://groups.google.com/group/manydesigns-portofino</archive>
        </mailingList>
        <mailingList>
            <name>Portofino mailing list in Italian</name>
            <archive>http://groups.google.com/group/manydesigns-portofino-it</archive>
        </mailingList>
    </mailingLists>
    <scm>
        <connection>scm:hg:http://hg.code.sf.net/p/portofino/mercurial</connection>
        <developerConnection>scm:hg:https://hg.code.sf.net/p/portofino/mercurial</developerConnection>
        <url>http://sourceforge.net/p/portofino/mercurial/</url>
        <tag>tip</tag>
    </scm>
    <developers>
        <developer>
            <name>Angelo Lupo</name>
            <email>angelo.lupo@manydesigns.com</email>
        </developer>
        <developer>
            <name>Giampiero Granatella</name>
            <email>giampiero.granatella@manydesigns.com</email>
        </developer>
        <developer>
            <name>Emanuele Poggi</name>
            <email>emanuele.poggi@manydesigns.com</email>
        </developer>
        <developer>
            <name>Alessio Stalla</name>
            <email>alessiostalla@gmail.com</email>
        </developer>
        <developer>
            <name>Fabio Bonfante</name>
            <email>fabio.bonfante@manydesigns.com</email>
        </developer>
    </developers>
    <properties>
        <commons.collections.version>4.4</commons.collections.version><!--Hibernate uses 3.1, Commons-configuration uses 3.2.1, 3.2.2 has an important security fix -->
        <commons.validator.version>1.9.0</commons.validator.version>
        <commons.configuration.version>1.10</commons.configuration.version>
        <commons.dbutils.version>1.8.0</commons.dbutils.version>
        <commons.email.version>1.6.0</commons.email.version>
        <commons.fileupload.version>2.0.0-M2</commons.fileupload.version>
        <commons.io.version>2.15.1</commons.io.version>
        <commons.lang.version>2.6</commons.lang.version>
        <ehcache.version>2.10.5</ehcache.version>
        <fop.version>2.9</fop.version>
        <groovy.version>3.0.24</groovy.version>
        <guava.version>33.0.0-jre</guava.version> <!-- Following GAE dependency -->
        <hibernate.version>4.3.11.Final</hibernate.version>
        <jackson.version>2.15.3</jackson.version> <!-- >=2.8.10 for current jersey version -->
        <javassist.version>3.24.1-GA</javassist.version> <!-- Hibernate -->
        <jakarta.mail.version>2.0.1</jakarta.mail.version> <!-- Differs from commons-email but the interface is unchanged-->
        <jakarta.ws.rs.api.version>3.1.0</jakarta.ws.rs.api.version>
        <jersey.version>3.1.10</jersey.version>
        <jfreechart.version>1.0.12</jfreechart.version>
        <joda-time.version>2.9.1</joda-time.version>
        <jsp.api.version>2.3.0</jsp.api.version>
        <!-- 0.9.7 rompe compatibilita con Hibernate 4? -->
        <jsqlparser.version>0.9.6</jsqlparser.version>
        <json.version>20231013</json.version>
        <jsoup.version>1.18.3</jsoup.version>
        <jstl.version>1.2</jstl.version>
        <jxl.version>2.6.12</jxl.version>
        <liquibase.version>4.31.1</liquibase.version>
        <logback.version>1.3.15</logback.version>
        <ognl.version>3.2.21</ognl.version>
        <quartz.version>2.5.0</quartz.version>
        <resteasy.version>3.15.6.Final</resteasy.version>
        <servlet.api.version>6.0.0</servlet.api.version>
        <shiro.version>2.0.4</shiro.version>
        <slf4j.version>2.0.7</slf4j.version>
        <stax.version>1.2.0</stax.version>
        <stripes.version>1.6.1-JakartaEE10</stripes.version>
        <aws.version>1.12.783</aws.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <allowIncompleteProjects>true</allowIncompleteProjects>
    </properties>
    <modules>
        <!-- Core stuff -->
        <module>elements</module>
        <module>portofino-base</module>
        <module>portofino-cryptography</module>
        <module>portofino-stripes</module>
        <module>portofino-jersey</module>
        <module>portofino-model</module>
        <!-- Database persistence -->
        <module>portofino-database</module>
        <module>portofino-db2</module>
        <module>portofino-derby</module>
        <module>portofino-googlecloudsql</module>
        <module>portofino-h2</module>
        <module>portofino-mssql</module>
        <module>portofino-mysql</module>
        <module>portofino-oracle</module>
        <module>portofino-postgresql</module>
        <!-- Pages -->
        <module>portofino-pageactions</module>
        <module>portofino-calendar</module>
        <module>portofino-map</module>
        <module>portofino-gallery</module>
        <module>portofino-chart</module>
        <module>portofino-crud</module>
        <module>portofino-admin</module>
        <module>portofino-theme</module>
        <!-- Optional services -->
        <module>portofino-atmosphere</module>
        <module>portofino-mail</module>
        <module>portofino-openid</module>
        <module>portofino-quartz</module>
        <!-- Archetypes -->
        <module>portofino-war-archetype</module>
        <!-- Applications -->
        <module>demo-tt</module>
        <module>portofino-google</module>
        <!-- WS -->
        <module>portofino-s3</module>
    </modules>
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.sun.mail</groupId>
                <artifactId>jakarta.mail</artifactId>
                <version>${jakarta.mail.version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.xmlgraphics</groupId>
                <artifactId>fop</artifactId>
                <version>${fop.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>commons-io</groupId>
                        <artifactId>commons-io</artifactId>
                    </exclusion>
                </exclusions>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>net.sourceforge.jexcelapi</groupId>
                <artifactId>jxl</artifactId>
                <version>${jxl.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                    </exclusion>
                </exclusions>
                <scope>compile</scope>
            </dependency>
            <!-- Web -->
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>${servlet.api.version}</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>javax.ws.rs</groupId>
                <artifactId>javax.ws.rs-api</artifactId>
                <version>${javax.ws.rs.api.version}</version>
            </dependency>
            <!-- Utilities -->
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>${commons.lang.version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons.io.version}</version>
                <scope>compile</scope>
            </dependency>
            <!-- Logging -->
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl-over-slf4j</artifactId>
                <version>${slf4j.version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>log4j-over-slf4j</artifactId>
                <version>${slf4j.version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>${logback.version}</version>
                <scope>compile</scope>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-core</artifactId>
                <version>${logback.version}</version>
                <scope>compile</scope>
            </dependency>
            <!-- Groovy -->
            <dependency>
                <groupId>org.codehaus.groovy</groupId>
                <artifactId>groovy</artifactId>
                <version>${groovy.version}</version>
            </dependency>
            <!-- Test dependencies -->
            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>7.9.0</version>
                <scope>test</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.1</version>
                <configuration>
                    <source>17</source>
                    <target>17</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.3.0</version>
                <configuration>
                    <archive>
                        <index>true</index>
                        <manifest>
                            <addClasspath>true</addClasspath>
                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                            <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                        </manifest>
                        <manifestEntries>
                            <mode>development</mode>
                            <url>${project.url}</url>
                            <key>value</key>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.7</version>
                <configuration>
                    <encoding>UTF-8</encoding>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.shared</groupId>
                        <artifactId>maven-filtering</artifactId>
                        <version>1.3</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <version>2.4.1</version>
                <configuration>
                    <descriptors>
                        <descriptor>assembly-src.xml</descriptor>
                    </descriptors>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.3</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <phase>verify</phase>
                        <goals>
                            <goal>jar-no-fork</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>cobertura-maven-plugin</artifactId>
                <version>2.3</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.5</version>
                    <configuration>
                        <mavenExecutorId>forked-path</mavenExecutorId>
                        <useReleaseProfile>false</useReleaseProfile>
                        <arguments>-Psonatype-oss-release</arguments>
                        <localCheckout>true</localCheckout>
                        <pushChanges>false</pushChanges>
                        <tagNameFormat>@{project.version}</tagNameFormat>
                        <autoVersionSubmodules>true</autoVersionSubmodules>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.8.2</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <profiles>
        <profile>
            <id>portofino-release</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>2.10.4</version>
                        <configuration>
                            <links>
                                <link>https://javadoc.io/doc/org.apache.shiro/shiro-web/${shiro.version}</link>
                                <link>https://commons.apache.org/proper/commons-configuration/javadocs/v${commons.configuration.version}/apidocs/</link>
                                <link>http://docs.jboss.org/hibernate/orm/4.3/javadocs/</link>
                                <link>http://docs.groovy-lang.org/docs/groovy-${groovy.version}/html/api/</link>
                                <link>http://www.joda.org/joda-time/apidocs/</link>
                                <link>https://docs.oracle.com/javaee/6/api/</link>
                                <!-- Corresponding javadoc command line:
                                -link http://shiro.apache.org/static/1.4.1/apidocs/ -link https://commons.apache.org/proper/commons-configuration/javadocs/v1.10/apidocs/ -link https://docs.jboss.org/hibernate/orm/4.3/javadocs/ -link http://docs.groovy-lang.org/latest/html/api/ -link http://www.joda.org/joda-time/apidocs/ -link http://docs.oracle.com/javase/6/docs/api/ -link https://docs.oracle.com/javaee/6/api/ -encoding UTF-8
                                -->
                            </links>
                        </configuration>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.6</version>
                        <executions>
                            <execution>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                        <version>3.3.0</version>
                        <executions>
                            <execution>
                                <id>enforce-bytecode-version</id>
                                <goals>
                                    <goal>enforce</goal>
                                </goals>
                                <configuration>
                                    <rules>
                                        <dependencyConvergence/>
                                        <enforceBytecodeVersion>
                                            <maxJdkVersion>17</maxJdkVersion>
                                            <excludes>
                                                <exclude>org.testng:testng</exclude>
                                            </excludes>
                                        </enforceBytecodeVersion>
                                    </rules>
                                    <fail>true</fail>
                                </configuration>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>org.codehaus.mojo</groupId>
                                <artifactId>extra-enforcer-rules</artifactId>
                                <version>1.7.0</version>
                            </dependency>
                        </dependencies>
                    </plugin>


                    <plugin>
                        <groupId>org.sonatype.central</groupId>
                        <artifactId>central-publishing-maven-plugin</artifactId>
                        <version>0.7.0</version>
                        <extensions>true</extensions>
                        <configuration>
                            <publishingServerId>maven-central</publishingServerId>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
