| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one or more | |
| contributor license agreements. See the NOTICE file distributed with | |
| this work for additional information regarding copyright ownership. | |
| The ASF licenses this file to You 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. | |
| --> | |
| <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/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.apache.roller</groupId> | |
| <artifactId>roller-project</artifactId> | |
| <version>7.0.0-SNAPSHOT</version> | |
| <relativePath>../pom.xml</relativePath> | |
| </parent> | |
| <name>Roller webapp</name> | |
| <artifactId>roller-webapp</artifactId> | |
| <packaging>war</packaging> | |
| <properties> | |
| <servlet.version>6.1.0</servlet.version> | |
| <jsp-api.version>4.0.0</jsp-api.version> | |
| <jstl.version>3.0.2</jstl.version> | |
| <ant.version>1.10.18</ant.version> | |
| <asm.version>9.10.1</asm.version> | |
| <bouncycastle.version>1.86</bouncycastle.version> | |
| <commons-validator.version>1.11.0</commons-validator.version> | |
| <commons-beanutils.version>1.11.0</commons-beanutils.version> | |
| <commons-codec.version>1.22.1</commons-codec.version> | |
| <commons-text.version>1.15.0</commons-text.version> | |
| <commons-lang3.version>3.20.0</commons-lang3.version> | |
| <commons-secure-xml.version>1.0.0</commons-secure-xml.version> | |
| <eclipse-link.version>5.0.2</eclipse-link.version> | |
| <guice.version>7.0.0</guice.version> | |
| <log4j2.version>2.26.1</log4j2.version> | |
| <lucene.version>9.12.3</lucene.version> <!-- lucene 10 requires JDK 21 --> | |
| <maven-war.version>3.5.1</maven-war.version> | |
| <maven-surefire.version>3.6.0</maven-surefire.version> | |
| <maven-antrun.version>1.0b3</maven-antrun.version> | |
| <rome.version>1.19.0</rome.version> <!-- ROME core; used for feeds/planet (AtomPub no longer uses Propono) --> | |
| <slf4j.version>2.0.20</slf4j.version> | |
| <spring.version>7.0.9</spring.version> | |
| <spring.security.version>7.1.1</spring.security.version> | |
| <struts.version>7.3.0</struts.version> | |
| <struts-bootstrap.version>6.2.0</struts-bootstrap.version> | |
| <bootstrap.version>5.3.8</bootstrap.version> | |
| <bootstrap-icons.version>1.13.1</bootstrap-icons.version> | |
| <velocity.version>2.4.1</velocity.version> | |
| <ws-commons-util.version>1.0.2</ws-commons-util.version> | |
| <xmlrpc-version>3.1.3</xmlrpc-version> | |
| </properties> | |
| <dependencies> | |
| <!-- Java EE deps --> | |
| <dependency> | |
| <groupId>jakarta.servlet</groupId> | |
| <artifactId>jakarta.servlet-api</artifactId> | |
| <version>${servlet.version}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.servlet.jsp</groupId> | |
| <artifactId>jakarta.servlet.jsp-api</artifactId> | |
| <version>${jsp-api.version}</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.servlet.jsp.jstl</groupId> | |
| <artifactId>jakarta.servlet.jsp.jstl-api</artifactId> | |
| <version>${jstl.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.web</groupId> | |
| <artifactId>jakarta.servlet.jsp.jstl</artifactId> | |
| <version>3.0.1</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.mail</groupId> | |
| <artifactId>jakarta.mail-api</artifactId> | |
| <version>2.1.5</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.angus</groupId> | |
| <artifactId>angus-mail</artifactId> | |
| <version>2.0.5</version> | |
| <scope>provided</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.activation</groupId> | |
| <artifactId>jakarta.activation-api</artifactId> | |
| <version>2.1.4</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>jakarta.xml.bind</groupId> | |
| <artifactId>jakarta.xml.bind-api</artifactId> | |
| <version>4.0.5</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.glassfish.jaxb</groupId> | |
| <artifactId>jaxb-runtime</artifactId> | |
| <version>4.0.9</version> | |
| </dependency> | |
| <!-- Eclipselink JPA is the default JPA implementation used by | |
| Roller, comment out this dependency and uncomment Hibernate's | |
| to use that stack instead. | |
| Logging, other special configuration during JUnit tests can be | |
| placed in the src/test/resources/roller-custom.properties file. | |
| --> | |
| <dependency> | |
| <groupId>org.eclipse.persistence</groupId> | |
| <artifactId>org.eclipse.persistence.jpa</artifactId> | |
| <version>${eclipse-link.version}</version> | |
| </dependency> | |
| <!-- small dependency containing slf4j bridge for eclipselink --> | |
| <dependency> | |
| <groupId>org.eclipse.persistence</groupId> | |
| <artifactId>org.eclipse.persistence.extension</artifactId> | |
| <version>${eclipse-link.version}</version> | |
| </dependency> | |
| <!-- Alternative testing with Hibernate (used by default with JBoss) | |
| Important: set hibernate.transaction.factory_class=org.hibernate.transaction.JDBCTransactionFactory | |
| in your roller-custom.properties if using Hibernate with Tomcat | |
| org.javassist:javassist:3.15.0 cannot replace differently named javassist:javassist:3.11.0 | |
| always provided by struts2-spring-plugin so filtering it out; already provided by JBoss anyway | |
| Note: Apache cannot distribute Hibernate due to it being LGPL, so these dependencies must be | |
| commented out in trunk. We have this dependency declaration to help with testing on JBoss | |
| which uses Hibernate. | |
| --> | |
| <!--dependency> | |
| <groupId>org.hibernate</groupId> | |
| <artifactId>hibernate-entitymanager</artifactId> | |
| <version>4.2.3.Final</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.javassist</groupId> | |
| <artifactId>javassist</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-jdk14</artifactId> | |
| <version>1.6.1</version> | |
| <scope>runtime</scope> | |
| </dependency--> | |
| <!-- To test with OpenJPA instead of EclipseLink, will need to add OpenJPA | |
| dependencies and static bytecode enhancement of the generated JPA classes | |
| to this pom.xml. Check the Roller source code repository for a copy of | |
| this pom.xml prior to July 2013 for the necessary OpenJPA configuration --> | |
| <!-- Apache deps include Velocity, Struts, Lucene, HttpClient and XML-RPC --> | |
| <dependency> | |
| <groupId>org.apache.velocity</groupId> | |
| <artifactId>velocity-engine-core</artifactId> | |
| <version>${velocity.version}</version> | |
| </dependency> | |
| <!-- explicitly adding newest asm lib to improve compatibility with latest JDKs --> | |
| <dependency> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm</artifactId> | |
| <version>${asm.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm-commons</artifactId> | |
| <version>${asm.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.ow2.asm</groupId> | |
| <artifactId>asm-tree</artifactId> | |
| <version>${asm.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.struts</groupId> | |
| <artifactId>struts2-core</artifactId> | |
| <version>${struts.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.apache.logging.log4j</groupId> | |
| <artifactId>log4j-api</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.struts</groupId> | |
| <artifactId>struts2-spring-plugin</artifactId> | |
| <version>${struts.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring-beans</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring-core</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.struts</groupId> | |
| <artifactId>struts2-convention-plugin</artifactId> | |
| <version>${struts.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.struts</groupId> | |
| <artifactId>struts2-tiles-plugin</artifactId> | |
| <version>${struts.version}</version> | |
| </dependency> | |
| <!-- Supplies the "bootstrap" form theme templates the JSPs render with. | |
| Maintained at github.com/struts-community-plugins/struts2-bootstrap. --> | |
| <dependency> | |
| <groupId>com.jgeppert.struts2.bootstrap</groupId> | |
| <artifactId>struts2-bootstrap-plugin</artifactId> | |
| <version>${struts-bootstrap.version}</version> | |
| </dependency> | |
| <!-- note: update head.jsp on webjar version change --> | |
| <!-- WebJar assets live under META-INF/resources, which Servlet 3.0+ | |
| containers serve from the docroot, so no webjars servlet is needed --> | |
| <dependency> | |
| <groupId>org.webjars</groupId> | |
| <artifactId>bootstrap</artifactId> | |
| <version>${bootstrap.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.webjars.npm</groupId> | |
| <artifactId>bootstrap-icons</artifactId> | |
| <version>${bootstrap-icons.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.webjars</groupId> | |
| <artifactId>clipboard.js</artifactId> | |
| <version>2.0.11</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.webjars</groupId> | |
| <artifactId>jquery</artifactId> | |
| <version>3.7.1</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.webjars</groupId> | |
| <artifactId>jquery-ui</artifactId> | |
| <version>1.14.2+1</version> | |
| </dependency> | |
| <!-- 0.9 renders its menu check icons as <i></i>; 0.8.12 wrote <i/>, | |
| which jQuery 3.5+ no longer expands, hiding the menu labels --> | |
| <dependency> | |
| <groupId>org.webjars.npm</groupId> | |
| <artifactId>summernote</artifactId> | |
| <version>0.9.1</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.webjars</groupId> | |
| <artifactId>jquery-validation</artifactId> | |
| <version>1.21.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.lucene</groupId> | |
| <artifactId>lucene-analysis-common</artifactId> | |
| <scope>compile</scope> | |
| <version>${lucene.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.lucene</groupId> | |
| <artifactId>lucene-backward-codecs</artifactId> | |
| <scope>compile</scope> | |
| <version>${lucene.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.lucene</groupId> | |
| <artifactId>lucene-queryparser</artifactId> | |
| <scope>compile</scope> | |
| <version>${lucene.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>slf4j-api</artifactId> | |
| <version>${slf4j.version}</version> | |
| </dependency> | |
| <!-- slf4j implementing the apache commons-logging interfaces --> | |
| <!-- note: commons-logging needs to be excluded in all dependencies transitive depending on it. | |
| See 2006 RFE https://issues.apache.org/jira/browse/MNG-1977 for maven's missing feature of global exclusions --> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>jcl-over-slf4j</artifactId> | |
| <version>${slf4j.version}</version> | |
| </dependency> | |
| <!-- slf4j implementing java.util.logging interfaces (needed for WebJars, ..) --> | |
| <dependency> | |
| <groupId>org.slf4j</groupId> | |
| <artifactId>jul-to-slf4j</artifactId> | |
| <version>${slf4j.version}</version> | |
| </dependency> | |
| <!-- the actual logging impl below slf4j: log4j2 --> | |
| <dependency> | |
| <groupId>org.apache.logging.log4j</groupId> | |
| <artifactId>log4j-slf4j2-impl</artifactId> | |
| <version>${log4j2.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-validator</groupId> | |
| <artifactId>commons-validator</artifactId> | |
| <version>${commons-validator.version}</version> | |
| <type>jar</type> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>commons-logging</groupId> | |
| <artifactId>commons-logging</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-beanutils</groupId> | |
| <artifactId>commons-beanutils</artifactId> | |
| <version>${commons-beanutils.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>commons-logging</groupId> | |
| <artifactId>commons-logging</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>commons-codec</groupId> | |
| <artifactId>commons-codec</artifactId> | |
| <version>${commons-codec.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-text</artifactId> | |
| <version>${commons-text.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-lang3</artifactId> | |
| <version>${commons-lang3.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-secure-xml</artifactId> | |
| <version>${commons-secure-xml.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.xmlrpc</groupId> | |
| <artifactId>xmlrpc-common</artifactId> | |
| <version>${xmlrpc-version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.xmlrpc</groupId> | |
| <artifactId>xmlrpc-client</artifactId> | |
| <version>${xmlrpc-version}</version> | |
| </dependency> | |
| <!-- Still needed: RollerXmlRpcServlet/RollerXmlRpcServletServer use | |
| server-side classes (PropertyHandlerMapping, XmlRpcHttpServer, etc.) | |
| that live in this artifact. The servlet classes themselves have been | |
| forked into Roller so their javax.servlet imports can be migrated | |
| to jakarta.servlet in Phase 2. TODO ROL-2183: evaluate whether | |
| these server classes can also be forked to fully drop this dep. --> | |
| <dependency> | |
| <groupId>org.apache.xmlrpc</groupId> | |
| <artifactId>xmlrpc-server</artifactId> | |
| <version>${xmlrpc-version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>commons-logging</groupId> | |
| <artifactId>commons-logging</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.ws.commons.util</groupId> | |
| <artifactId>ws-commons-util</artifactId> | |
| <version>${ws-commons-util.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>xml-apis</groupId> | |
| <artifactId>xml-apis</artifactId> | |
| </exclusion> | |
| <!-- has a compile scope dependency to junit for some reason --> | |
| <exclusion> | |
| <groupId>junit</groupId> | |
| <artifactId>junit</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <!-- Spring deps (needed only for Spring Security) --> | |
| <dependency> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring-web</artifactId> | |
| <version>${spring.version}</version> | |
| <exclusions> | |
| <!-- in jcl-over-slf4j --> | |
| <exclusion> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring-jcl</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring-context</artifactId> | |
| <version>${spring.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.security</groupId> | |
| <artifactId>spring-security-config</artifactId> | |
| <version>${spring.security.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.security</groupId> | |
| <artifactId>spring-security-ldap</artifactId> | |
| <version>${spring.security.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.security</groupId> | |
| <artifactId>spring-security-taglibs</artifactId> | |
| <version>${spring.security.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.security</groupId> | |
| <artifactId>spring-security-acl</artifactId> | |
| <version>${spring.security.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>org.springframework</groupId> | |
| <artifactId>spring-jdbc</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.security</groupId> | |
| <artifactId>spring-security-oauth2-client</artifactId> | |
| <version>${spring.security.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.springframework.security</groupId> | |
| <artifactId>spring-security-oauth2-jose</artifactId> | |
| <version>${spring.security.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.fasterxml.jackson.core</groupId> | |
| <artifactId>jackson-databind</artifactId> | |
| <version>2.22.3</version> | |
| </dependency> | |
| <!-- Other deps include Guice and ROME --> | |
| <dependency> | |
| <groupId>com.google.inject</groupId> | |
| <artifactId>guice</artifactId> | |
| <version>${guice.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>aopalliance</groupId> | |
| <artifactId>aopalliance</artifactId> | |
| </exclusion> | |
| <!-- this removes an empty jar guava depends on --> | |
| <exclusion> | |
| <groupId>com.google.guava</groupId> | |
| <artifactId>listenablefuture</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <groupId>com.rometools</groupId> | |
| <artifactId>rome</artifactId> | |
| <version>${rome.version}</version> | |
| <scope>compile</scope> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>commons-logging</groupId> | |
| <artifactId>commons-logging</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <dependency> | |
| <!-- used by Spring Security's SCrypt and Argon2 password encoders --> | |
| <groupId>org.bouncycastle</groupId> | |
| <artifactId>bcprov-jdk18on</artifactId> | |
| <version>${bouncycastle.version}</version> | |
| </dependency> | |
| <!-- Test deps --> | |
| <dependency> | |
| <groupId>org.junit.jupiter</groupId> | |
| <artifactId>junit-jupiter-engine</artifactId> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.ant</groupId> | |
| <artifactId>ant</artifactId> | |
| <version>${ant.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.derby</groupId> | |
| <artifactId>derbynet</artifactId> | |
| <version>${derby.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.derby</groupId> | |
| <artifactId>derbyclient</artifactId> | |
| <version>${derby.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.mockito</groupId> | |
| <artifactId>mockito-core</artifactId> | |
| <version>5.24.0</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.instancio</groupId> | |
| <artifactId>instancio-junit</artifactId> | |
| <version>6.0.1</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <!-- Jing: RELAX NG validator, used to check AtomWriter output against | |
| the RFC 4287 / RFC 5023 schemas in AtomSchemaValidationTest. --> | |
| <dependency> | |
| <groupId>com.thaiopensource</groupId> | |
| <artifactId>jing</artifactId> | |
| <version>20091111</version> | |
| <scope>test</scope> | |
| <!-- Jing declares these with runtime scope, which would replace | |
| the newer versions that reach the WAR through nekohtml. | |
| Jing uses the JDK's XML parser instead. --> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>xerces</groupId> | |
| <artifactId>xercesImpl</artifactId> | |
| </exclusion> | |
| <exclusion> | |
| <groupId>xml-apis</groupId> | |
| <artifactId>xml-apis</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <finalName>roller</finalName> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-war-plugin</artifactId> | |
| <version>${maven-war.version}</version> | |
| <configuration> | |
| <attachClasses>true</attachClasses> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.eclipse.jetty.ee11</groupId> | |
| <artifactId>jetty-ee11-maven-plugin</artifactId> | |
| <configuration> | |
| <webApp> | |
| <contextPath>/roller</contextPath> | |
| </webApp> | |
| <jettyXmls> | |
| <jettyXml>src/test/resources/jetty.xml</jettyXml> | |
| </jettyXmls> | |
| <systemProperties> | |
| <roller.custom.config> | |
| ${project.build.directory}/test-classes/roller-jettyrun.properties | |
| </roller.custom.config> | |
| </systemProperties> | |
| </configuration> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.roller</groupId> | |
| <artifactId>db-utils</artifactId> | |
| <version>7.0.0-SNAPSHOT</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-dbcp2</artifactId> | |
| <version>2.14.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.derby</groupId> | |
| <artifactId>derby</artifactId> | |
| <version>${derby.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.derby</groupId> | |
| <artifactId>derbyclient</artifactId> | |
| <version>${derby.version}</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.eclipse.angus</groupId> | |
| <artifactId>angus-mail</artifactId> | |
| <version>2.0.5</version> | |
| </dependency> | |
| </dependencies> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-resources-plugin</artifactId> | |
| <version>3.5.0</version> | |
| <executions> | |
| <execution> | |
| <id>copy-main-resources</id> | |
| <phase>validate</phase> | |
| <goals> | |
| <goal>copy-resources</goal> | |
| </goals> | |
| <configuration> | |
| <outputDirectory>${basedir}/target/classes</outputDirectory> | |
| <resources> | |
| <resource> | |
| <directory>src/main/resources</directory> | |
| <filtering>false</filtering> | |
| </resource> | |
| </resources> | |
| </configuration> | |
| </execution> | |
| <execution> | |
| <id>copy-dbscripts-resources</id> | |
| <phase>generate-resources</phase> | |
| <goals> | |
| <goal>copy-resources</goal> | |
| </goals> | |
| <configuration> | |
| <includeEmptyDirs>true</includeEmptyDirs> | |
| <outputDirectory>${basedir}/target/classes/dbscripts</outputDirectory> | |
| <resources> | |
| <resource> | |
| <directory>${basedir}/src/main/resources/sql</directory> | |
| <filtering>false</filtering> | |
| </resource> | |
| </resources> | |
| </configuration> | |
| </execution> | |
| <!-- <execution> | |
| <id>copy-resources</id> | |
| <phase>process-resources</phase> | |
| <goals> | |
| <goal>copy-resources</goal> | |
| </goals> | |
| <configuration> | |
| <outputDirectory>${project.build.directory}/roller/WEB-INF/classes/dbscripts</outputDirectory> | |
| <resources> | |
| <resource> | |
| <directory>target/dbscripts</directory> | |
| <filtering>false</filtering> | |
| <includes> | |
| <include>**/*.sql</include> | |
| </includes> | |
| </resource> | |
| </resources> | |
| </configuration> | |
| </execution> --> | |
| </executions> | |
| <configuration> | |
| <includeEmptyDirs>true</includeEmptyDirs> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <version>${maven-surefire.version}</version> | |
| <configuration> | |
| <systemProperties> | |
| <property> | |
| <name>project.build.directory</name> | |
| <value>${basedir}/target</value> | |
| </property> | |
| </systemProperties> | |
| <trimStackTrace>false</trimStackTrace> | |
| <argLine>-Djavax.xml.accessExternalSchema=all</argLine> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-antrun-plugin</artifactId> | |
| <version>3.2.0</version> | |
| <dependencies> | |
| <dependency> | |
| <groupId>ant-contrib</groupId> | |
| <artifactId>ant-contrib</artifactId> | |
| <version>${maven-antrun.version}</version> | |
| <exclusions> | |
| <exclusion> | |
| <groupId>ant</groupId> | |
| <artifactId>ant</artifactId> | |
| </exclusion> | |
| </exclusions> | |
| </dependency> | |
| <!-- last velocity version which had the Ant TexenTask --> | |
| <dependency> | |
| <groupId>org.apache.velocity</groupId> | |
| <artifactId>velocity</artifactId> | |
| <version>1.7</version> | |
| </dependency> | |
| </dependencies> | |
| <executions> | |
| <execution> | |
| <id>gen-db-scripts</id> | |
| <phase>generate-resources</phase> | |
| <goals> | |
| <goal>run</goal> | |
| </goals> | |
| <configuration> | |
| <target> | |
| <!-- Workaround for git distribution that doesn't keep empty directories. | |
| For detail check [ROL-2086] --> | |
| <taskdef resource="net/sf/antcontrib/antlib.xml" /> | |
| <property file="${basedir}/src/main/resources/sql/dbscripts.properties" /> | |
| <for list="${databases}" param="database" delimiter=" "> | |
| <sequential> | |
| <mkdir dir="${basedir}/target/classes/dbscripts/@{database}" /> | |
| </sequential> | |
| </for> | |
| <taskdef name="texen" | |
| classname="org.apache.velocity.texen.ant.TexenTask" | |
| classpathref="maven.plugin.classpath"/> | |
| <texen | |
| controlTemplate ="control.vm" | |
| contextProperties="${basedir}/src/main/resources/sql/dbscripts.properties" | |
| templatePath ="${basedir}/src/main/resources/sql" | |
| outputDirectory ="${basedir}/target/classes/dbscripts" | |
| outputFile ="README.txt"/> | |
| </target> | |
| </configuration> | |
| </execution> | |
| </executions> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>buildnumber-maven-plugin</artifactId> | |
| <version>3.3.1</version> | |
| <executions> | |
| <execution> | |
| <phase>validate</phase> | |
| <goals> | |
| <goal>create</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <doUpdate>false</doUpdate> | |
| <revisionOnScmFailure>UNKNOWN</revisionOnScmFailure> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| <testResources> | |
| <testResource> | |
| <directory>${project.basedir}/../app/src/main/webapp/</directory> | |
| <filtering>false</filtering> | |
| <includes> | |
| <include>themes/**</include> | |
| </includes> | |
| </testResource> | |
| <testResource> | |
| <directory>${project.basedir}/src/test/resources</directory> | |
| <filtering>true</filtering> | |
| <includes> | |
| <include>**/**</include> | |
| </includes> | |
| </testResource> | |
| </testResources> | |
| <resources> | |
| <resource> | |
| <directory>${project.basedir}/src/main/resources</directory> | |
| <filtering>false</filtering> | |
| <includes> | |
| <include>org/**</include> | |
| </includes> | |
| <excludes> | |
| <exclude>**/sql/**</exclude> | |
| </excludes> | |
| </resource> | |
| <resource> | |
| <!-- ensure version gets substitution --> | |
| <directory>${project.basedir}/src/main/resources-filtered</directory> | |
| <filtering>true</filtering> | |
| <includes> | |
| <include>roller-version.properties</include> | |
| </includes> | |
| </resource> | |
| </resources> | |
| </build> | |
| </project> |