wisemapping-open-source/wise-webapp/pom.xml

514 lines
21 KiB
XML
Raw Normal View History

<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">
2009-06-07 20:59:43 +02:00
<modelVersion>4.0.0</modelVersion>
<artifactId>wise-webapp</artifactId>
<packaging>war</packaging>
<name>WiseMapping Webapp</name>
<url>http://www.wisemapping.org</url>
<parent>
<groupId>org.wisemapping</groupId>
<artifactId>wisemapping</artifactId>
<relativePath>../pom.xml</relativePath>
<version>5.0.21-SNAPSHOT</version>
2009-06-07 20:59:43 +02:00
</parent>
2022-02-16 04:38:12 +01:00
<properties>
2023-07-29 07:46:38 +02:00
<org.springframework.version>6.0.10</org.springframework.version>
<org.springframework.addons>6.1.1</org.springframework.addons>
<hibernate.version>6.2.6.Final</hibernate.version>
<hibernate-validator.version>6.0.21.Final</hibernate-validator.version>
2023-07-29 07:46:38 +02:00
<spring-security-taglibs.version>6.0.2</spring-security-taglibs.version>
</properties>
2009-06-07 20:59:43 +02:00
<dependencies>
<dependency>
<groupId>org.wisemapping</groupId>
<artifactId>wise-ui</artifactId>
<version>${com.wisemapping.version}</version>
2012-02-01 04:03:32 +01:00
<type>war</type>
2009-06-07 20:59:43 +02:00
</dependency>
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity</artifactId>
2020-11-07 06:35:54 +01:00
<version>1.7</version>
2009-06-07 20:59:43 +02:00
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.7.0</version>
2009-06-07 20:59:43 +02:00
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.intellij</groupId>
<artifactId>annotations</artifactId>
2022-12-06 05:07:35 +01:00
<version>12.0</version>
<scope>compile</scope>
</dependency>
2011-10-03 00:16:13 +02:00
<dependency>
2009-06-07 20:59:43 +02:00
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${org.springframework.version}</version>
<scope>compile</scope>
</dependency>
2022-12-06 05:07:35 +01:00
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.5.4</version>
2022-12-06 05:07:35 +01:00
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${org.springframework.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${org.springframework.version}</version>
<scope>compile</scope>
</dependency>
2022-02-19 21:39:38 +01:00
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
<version>${spring-security-taglibs.version}</version>
</dependency>
2020-11-07 20:56:38 +01:00
<!-- Hibernate -->
<dependency>
<groupId>org.hibernate</groupId>
2023-07-29 07:46:38 +02:00
<artifactId>hibernate-core-jakarta</artifactId>
<version>5.6.15.Final</version>
2020-11-07 20:56:38 +01:00
</dependency>
2020-11-07 23:42:00 +01:00
<!-- Hibernate Validator -->
2020-11-07 20:56:38 +01:00
<dependency>
<groupId>org.hibernate.validator</groupId>
2020-11-07 23:42:00 +01:00
<artifactId>hibernate-validator</artifactId>
2023-07-29 07:46:38 +02:00
<version>8.0.1.Final</version>
2020-11-07 20:56:38 +01:00
</dependency>
2023-07-29 07:46:38 +02:00
2020-11-07 20:56:38 +01:00
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${org.springframework.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${org.springframework.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${org.springframework.version}</version>
2009-06-07 20:59:43 +02:00
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-oxm</artifactId>
<version>${org.springframework.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${org.springframework.version}</version>
<scope>compile</scope>
</dependency>
2022-01-23 08:50:20 +01:00
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>2.6.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.3.15</version>
<scope>test</scope>
</dependency>
2023-07-31 03:04:45 +02:00
2009-06-07 20:59:43 +02:00
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${org.springframework.version}</version>
2009-06-07 20:59:43 +02:00
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>${org.springframework.addons}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>${org.springframework.addons}</version>
<scope>compile</scope>
</dependency>
2009-06-07 20:59:43 +02:00
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${org.springframework.version}</version>
<scope>runtime</scope>
2009-06-07 20:59:43 +02:00
</dependency>
<dependency>
<groupId>aopalliance</groupId>
<artifactId>aopalliance</artifactId>
<version>1.0</version>
2009-06-07 20:59:43 +02:00
<scope>compile</scope>
</dependency>
<dependency>
2023-07-29 07:46:38 +02:00
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
<version>2.1.2</version>
2009-06-07 20:59:43 +02:00
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
2023-04-02 01:56:29 +02:00
<version>8.0.32</version>
2009-06-07 20:59:43 +02:00
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
<version>2.9.0</version>
2009-06-07 20:59:43 +02:00
</dependency>
2023-07-31 03:21:25 +02:00
<!-- <dependency>-->
<!-- <groupId>org.hibernate</groupId>-->
<!-- <artifactId>hibernate-ehcache</artifactId>-->
<!-- <version>5.6.15.Final</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>javax.cache</groupId>-->
<!-- <artifactId>cache-api</artifactId>-->
<!-- <version>1.1.1</version>-->
<!-- </dependency>-->
2009-06-07 20:59:43 +02:00
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
2023-04-02 01:56:29 +02:00
<version>2.20.0</version>
2009-06-07 20:59:43 +02:00
</dependency>
2022-02-15 04:59:36 +01:00
<!-- https://mvnrepository.com/artifact/commons-validator/commons-validator -->
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.7</version>
</dependency>
2023-07-29 07:46:38 +02:00
2009-06-07 20:59:43 +02:00
<!-- Only for test purposes -->
<dependency>
<groupId>org.hsqldb</groupId>
2009-06-07 20:59:43 +02:00
<artifactId>hsqldb</artifactId>
2023-04-02 01:56:29 +02:00
<version>2.7.1</version>
2009-06-07 20:59:43 +02:00
<scope>runtime</scope>
</dependency>
2023-07-29 07:46:38 +02:00
2012-02-13 01:57:11 +01:00
<dependency>
2020-11-07 06:35:54 +01:00
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
2023-07-29 07:46:38 +02:00
<version>2.15.1</version>
</dependency>
2023-07-29 07:46:38 +02:00
<dependency>
2023-07-29 07:46:38 +02:00
<groupId>jakarta.transaction</groupId>
<artifactId>jakarta.transaction-api</artifactId>
<version>2.0.1</version>
</dependency>
2023-07-29 07:46:38 +02:00
2014-07-14 07:43:24 +02:00
<dependency>
2023-07-29 07:46:38 +02:00
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>6.0.0</version>
<scope>provided</scope>
2020-11-07 06:35:54 +01:00
</dependency>
2023-07-29 07:46:38 +02:00
<dependency>
2022-01-05 03:20:30 +01:00
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
2023-04-02 01:56:29 +02:00
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
2022-01-05 03:20:30 +01:00
<artifactId>fluent-hc</artifactId>
2023-04-02 01:56:29 +02:00
<version>4.5.14</version>
</dependency>
2023-07-29 07:46:38 +02:00
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>${org.springframework.addons}</version>
</dependency>
2009-06-07 20:59:43 +02:00
</dependencies>
2014-01-19 16:33:56 +01:00
<profiles>
<profile>
<id>hsqldb</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>1.5</version>
2009-06-07 20:59:43 +02:00
2014-01-19 16:33:56 +01:00
<configuration>
<driver>org.hsqldb.jdbc.JDBCDriver</driver>
<url>jdbc:hsqldb:file:${project.build.directory}/db/wisemapping</url>
<username>sa</username>
</configuration>
2009-06-07 20:59:43 +02:00
2014-01-19 16:33:56 +01:00
<dependencies>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
2022-10-28 04:07:39 +02:00
<version>2.7.1</version>
2014-01-19 16:33:56 +01:00
</dependency>
</dependencies>
2009-06-07 20:59:43 +02:00
2014-01-19 16:33:56 +01:00
<executions>
<execution>
<id>drop-schemas</id>
<phase>prepare-package</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<onError>continue</onError>
<orderFile>descending</orderFile>
<fileset>
<basedir>${project.basedir}</basedir>
<includes>
<include>config/database/hsql/drop-schemas.sql</include>
<include>config/database/hsql/create-schemas.sql</include>
<include>config/database/hsql/apopulate-schemas.sql</include>
2014-01-19 16:33:56 +01:00
</includes>
</fileset>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>mysqldb</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>1.5</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
2022-10-28 04:47:51 +02:00
<version>8.0.31</version>
2014-01-19 16:33:56 +01:00
</dependency>
</dependencies>
<executions>
<execution>
<id>init-schema</id>
<goals>
<goal>execute</goal>
</goals>
<phase>prepare-package</phase>
</execution>
</executions>
2009-06-07 20:59:43 +02:00
<configuration>
2014-01-19 16:33:56 +01:00
<driver>com.mysql.jdbc.Driver</driver>
<username>root</username>
<password/>
2014-01-19 16:33:56 +01:00
<url>jdbc:mysql://127.0.0.1:3306/?useUnicode=true&amp;characterEncoding=UTF-8</url>
<autocommit>false</autocommit>
<srcFiles>
<srcFile>config/database/mysql/create-database.sql</srcFile>
<srcFile>config/database/mysql/create-schemas.sql</srcFile>
2014-01-26 03:53:17 +01:00
<srcFile>config/database/mysql/apopulate-schemas.sql</srcFile>
2014-01-19 16:33:56 +01:00
</srcFiles>
2009-06-07 20:59:43 +02:00
</configuration>
2014-01-19 16:33:56 +01:00
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<plugins>
2023-07-31 05:12:11 +02:00
<!-- <plugin>-->
<!-- <groupId>org.hibernate.orm.tooling</groupId>-->
<!-- <artifactId>hibernate-enhance-maven-plugin</artifactId>-->
<!-- <version>${hibernate.version}</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <phase>compile</phase>-->
<!-- <configuration>-->
<!-- <failOnError>true</failOnError>-->
<!-- <enableLazyInitialization>true</enableLazyInitialization>-->
<!-- <enableDirtyTracking>true</enableDirtyTracking>-->
<!-- <enableAssociationManagement>true</enableAssociationManagement>-->
<!-- <enableExtendedEnhancement>false</enableExtendedEnhancement>-->
<!-- <enableExtendedEnhancement>false</enableExtendedEnhancement>-->
<!-- </configuration>-->
<!-- <goals>-->
<!-- <goal>enhance</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
2009-06-07 20:59:43 +02:00
<plugin>
2014-07-14 07:43:24 +02:00
<groupId>org.apache.maven.plugins</groupId>
2009-06-07 20:59:43 +02:00
<artifactId>maven-war-plugin</artifactId>
2023-06-30 03:09:40 +02:00
<version>3.4.0</version>
<configuration>
2009-06-07 20:59:43 +02:00
<warName>wisemapping</warName>
<overlays>
2012-02-01 04:03:32 +01:00
<overlay>
<groupId>org.wisemapping</groupId>
<artifactId>wise-ui</artifactId>
<targetPath>/static/mindplot/</targetPath>
2011-10-03 00:16:13 +02:00
<includes>
<include>wisemapping-mindplot/package/dist/*</include>
2011-10-03 00:16:13 +02:00
</includes>
</overlay>
2009-06-07 20:59:43 +02:00
<overlay>
<groupId>org.wisemapping</groupId>
<artifactId>wise-ui</artifactId>
<targetPath>/static/webapp/</targetPath>
2009-06-07 20:59:43 +02:00
<includes>
<include>wisemapping-webapp/package/dist/*</include>
2009-06-07 20:59:43 +02:00
</includes>
</overlay>
</overlays>
<archiveClasses>true</archiveClasses>
2023-07-29 07:46:38 +02:00
<packagingExcludes>
WEB-INF/lib/commons-logging-*.jar,
</packagingExcludes>
2009-06-07 20:59:43 +02:00
<webResources>
<resource>
<directory>src/main/resources</directory>
<targetPath>WEB-INF</targetPath>
<includes>
<include>*.wsdl</include>
<include>*.xsd</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
2023-07-31 03:04:45 +02:00
<version>0.8.10</version>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-prepare-agent-integration</id>
<phase>pre-integration-test</phase>
<goals>
<goal>prepare-agent-integration</goal>
</goals>
<configuration>
<excludes>
<exclude>**/*Test*</exclude>
</excludes>
<propertyName>integrationTestArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>default-check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>0.10</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
<execution>
<id>default-report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
2014-01-25 08:53:51 +01:00
2012-03-10 21:35:35 +01:00
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
2023-07-29 07:46:38 +02:00
<version>11.0.15</version>
2009-06-07 20:59:43 +02:00
<configuration>
<httpConnector>
<port>8080</port>
</httpConnector>
2023-07-31 03:04:45 +02:00
<jvmArgs>-Ddatabase.base.url=${project.build.directory} -Djetty.port=8080</jvmArgs>
2012-03-10 21:35:35 +01:00
<stopPort>9999</stopPort>
2023-07-29 07:46:38 +02:00
<deployMode>FORK</deployMode>
2023-07-29 08:09:44 +02:00
<stopKey>foo</stopKey>
2023-07-29 07:46:38 +02:00
<webApp>
<war>${project.build.directory}/wisemapping.war</war>
<overrideDescriptor>${project.basedir}/webdefault.xml</overrideDescriptor>
2023-07-29 07:46:38 +02:00
</webApp>
2009-06-07 20:59:43 +02:00
</configuration>
2012-03-10 21:35:35 +01:00
<executions>
<execution>
2020-11-07 06:35:54 +01:00
<id>run-forked</id>
2012-03-10 21:35:35 +01:00
<phase>pre-integration-test</phase>
<goals>
2023-07-29 08:09:44 +02:00
<goal>start-war</goal>
2012-03-10 21:35:35 +01:00
</goals>
<configuration>
<useTestScope>true</useTestScope>
2012-03-10 21:35:35 +01:00
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
2009-06-07 20:59:43 +02:00
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
2012-03-10 21:35:35 +01:00
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
2009-06-07 20:59:43 +02:00
</plugins>
</build>
</project>