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

594 lines
24 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>
2023-01-03 04:48:19 +01:00
<version>5.0.20-SNAPSHOT</version>
2009-06-07 20:59:43 +02:00
</parent>
2022-02-16 04:38:12 +01:00
<properties>
2022-12-06 05:07:35 +01:00
<org.springframework.version>5.3.24</org.springframework.version>
<org.springframework.addons>5.7.3</org.springframework.addons>
2022-10-22 03:58:36 +02:00
<hibernate.version>5.6.12.Final</hibernate.version>
<hibernate-validator.version>6.0.21.Final</hibernate-validator.version>
2022-02-19 21:39:38 +01:00
<spring-security-taglibs.version>5.6.1</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>6.9.8</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.1</version>
</dependency>
2013-02-18 01:00:08 +01:00
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
<version>${org.springframework.addons}</version>
2013-02-18 01:00:08 +01:00
<scope>compile</scope>
</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>
2020-11-07 23:42:00 +01:00
<artifactId>hibernate-core</artifactId>
2020-11-07 20:56:38 +01:00
<version>${hibernate.version}</version>
</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>
<version>${hibernate-validator.version}</version>
2020-11-07 20:56:38 +01:00
</dependency>
<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>
2012-11-05 04:51:06 +01:00
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
2012-11-05 04:51:06 +01:00
<scope>runtime</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>
<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>2.7.6</version>
2009-06-07 20:59:43 +02:00
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
2020-11-07 23:46:20 +01:00
<version>3.0.8</version>
2009-06-07 20:59:43 +02:00
<scope>runtime</scope>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
</exclusion>
</exclusions>
2009-06-07 20:59:43 +02:00
</dependency>
<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>
2012-02-13 01:57:11 +01:00
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>${org.springframework.addons}</version>
<scope>runtime</scope>
2009-06-07 20:59:43 +02:00
</dependency>
<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>
2022-03-28 01:05:21 +02:00
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
2009-06-07 20:59:43 +02:00
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
2022-10-28 04:47:51 +02:00
<version>8.0.31</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>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-ehcache</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>javax.cache</groupId>
<artifactId>cache-api</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>3.9.9</version>
</dependency>
2009-06-07 20:59:43 +02:00
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.19.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>
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>
<version>2.6.1</version>
2009-06-07 20:59:43 +02:00
<scope>runtime</scope>
</dependency>
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>
<version>2.13.4.2</version>
2012-02-13 01:57:11 +01:00
</dependency>
<dependency>
2022-03-28 03:52:08 +02:00
<!-- This is required in case of Tomcat, do not remove -->
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
<scope>runtime</scope>
</dependency>
2014-07-14 07:43:24 +02:00
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
2020-11-07 06:35:54 +01:00
</dependency>
<dependency>
2022-01-05 03:20:30 +01:00
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
2022-01-05 03:20:30 +01:00
<artifactId>fluent-hc</artifactId>
2022-02-15 04:59:36 +01:00
<version>4.5.13</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></password>
<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>
<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>
<version>3.3.2</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>
<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>
2014-01-26 23:28:54 +01:00
2012-03-10 21:35:35 +01:00
<plugin>
2014-01-25 08:53:51 +01:00
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
2014-01-25 19:27:03 +01:00
<version>2.0</version>
2014-01-25 08:53:51 +01:00
<configuration>
<path>/wisemapping</path>
<warFile>${project.build.directory}/wisemapping.war</warFile>
<mode>war</mode>
<update>true</update>
<systemProperties>
<database.base.url>${project.build.directory}</database.base.url>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</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>
<!-- Confirm why there is a NPE -->
<!-- <execution>-->
<!-- <id>default-report-integration</id>-->
<!-- <phase>verify</phase>-->
<!-- <goals>-->
<!-- <goal>report-integration</goal>-->
<!-- </goals>-->
<!-- </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>
2020-11-07 06:35:54 +01:00
<version>9.4.34.v20201102</version>
2009-06-07 20:59:43 +02:00
<configuration>
2012-03-10 21:35:35 +01:00
<stopKey>foo</stopKey>
<httpConnector>
<port>8080</port>
</httpConnector>
2012-03-10 21:35:35 +01:00
<stopPort>9999</stopPort>
<war>${project.build.directory}/wisemapping.war</war>
2012-02-13 01:57:11 +01:00
<reload>automatic</reload>
<webAppConfig>
<overrideDescriptor>${project.basedir}/webdefault.xml</overrideDescriptor>
</webAppConfig>
<systemProperties>
2014-08-19 00:20:59 +02:00
<systemProperty>
<name>org.mortbay.util.FileResource.checkAliases</name>
<value>false</value>
</systemProperty>
<systemProperty>
<name>org.mortbay.util.FileResource.checkAliases</name>
<value>false</value>
</systemProperty>
2012-11-04 05:06:02 +01:00
<systemProperty>
<name>database.base.url</name>
<value>${project.build.directory}</value>
</systemProperty>
</systemProperties>
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>
2020-11-07 06:35:54 +01:00
<goal>run-forked</goal>
2012-03-10 21:35:35 +01:00
</goals>
<configuration>
<useTestClasspath>true</useTestClasspath>
<useTestScope>true</useTestScope>
2012-03-10 21:35:35 +01:00
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
2020-11-07 06:35:54 +01:00
<waitForChild>false</waitForChild>
<maxStartupLines>200</maxStartupLines>
<jvmArgs>${integrationTestArgLine} -Ddatabase.base.url=${project.build.directory}
-Djetty.port=8080
</jvmArgs>
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>
<configuration>
<stopWait>1</stopWait>
</configuration>
2012-03-10 21:35:35 +01:00
</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>