CCM NG: Replaced Wildfly Swarm with its sucessor Thorntail
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@5803 8810af33-2d31-482b-a856-94f89814c4df
parent
c94f1b3495
commit
09fb1a601f
|
|
@ -17,10 +17,10 @@
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<groupId>org.libreccm</groupId>
|
<groupId>org.libreccm</groupId>
|
||||||
<artifactId>ccm-bundle-devel-wildfly-swarm</artifactId>
|
<artifactId>ccm-bundle-devel-thorntail</artifactId>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<name>LibreCCM Devel Bundle for Wildfly Swarm</name>
|
<name>LibreCCM Devel Bundle for Thorntail</name>
|
||||||
<url>http://www.libreccm.org</url>
|
<url>http://www.libreccm.org</url>
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<site>
|
<site>
|
||||||
|
|
@ -48,9 +48,9 @@
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>bom-all</artifactId>
|
<artifactId>bom</artifactId>
|
||||||
<version>2017.11.0</version>
|
<version>2.3.0.Final</version>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
@ -60,67 +60,72 @@
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>cdi</artifactId>
|
<artifactId>cdi</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>container</artifactId>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
|
||||||
<artifactId>datasources</artifactId>
|
<artifactId>datasources</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>ejb</artifactId>
|
<artifactId>ejb</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>hibernate-search</artifactId>
|
<artifactId>hibernate-search</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>hibernate-validator</artifactId>
|
<artifactId>hibernate-validator</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>jaxrs</artifactId>
|
<artifactId>jaxrs</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<!-- <dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>jaxrs-cdi</artifactId>
|
<artifactId>jaxrs-cdi</artifactId>
|
||||||
|
</dependency>-->
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.thorntail</groupId>
|
||||||
|
<artifactId>jaxrs-jsonp</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>jpa</artifactId>
|
<artifactId>jpa</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>jsf</artifactId>
|
<artifactId>jsf</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
|
<artifactId>jsonp</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>logging</artifactId>
|
<artifactId>logging</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>mail</artifactId>
|
<artifactId>mail</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>undertow</artifactId>
|
<artifactId>undertow</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|
@ -157,11 +162,8 @@
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>wildfly-swarm-plugin</artifactId>
|
<artifactId>thorntail-maven-plugin</artifactId>
|
||||||
<!--<configuration>
|
|
||||||
<mainClass>org.libreccm.CcmBundleDevel</mainClass>
|
|
||||||
</configuration>-->
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|
@ -29,8 +29,14 @@ import org.hibernate.integrator.spi.Integrator;
|
||||||
import org.hibernate.service.spi.SessionFactoryServiceRegistry;
|
import org.hibernate.service.spi.SessionFactoryServiceRegistry;
|
||||||
import org.libreccm.search.SearchConfig;
|
import org.libreccm.search.SearchConfig;
|
||||||
|
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.PreparedStatement;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import java.sql.Statement;
|
||||||
|
|
||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
import java.sql.*;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,13 @@
|
||||||
*/
|
*/
|
||||||
package org.libreccm.security;
|
package org.libreccm.security;
|
||||||
|
|
||||||
|
import java.lang.annotation.ElementType;
|
||||||
|
import java.lang.annotation.Inherited;
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
import javax.interceptor.InterceptorBinding;
|
import javax.interceptor.InterceptorBinding;
|
||||||
import java.lang.annotation.*;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use this annotation to secure a method by the
|
* Use this annotation to secure a method by the
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,6 @@ import io.jsonwebtoken.Jwts;
|
||||||
import io.jsonwebtoken.SignatureAlgorithm;
|
import io.jsonwebtoken.SignatureAlgorithm;
|
||||||
import org.apache.shiro.SecurityUtils;
|
import org.apache.shiro.SecurityUtils;
|
||||||
import org.apache.shiro.subject.Subject;
|
import org.apache.shiro.subject.Subject;
|
||||||
import org.apache.shiro.subject.SubjectContext;
|
|
||||||
import org.apache.shiro.web.filter.AccessControlFilter;
|
import org.apache.shiro.web.filter.AccessControlFilter;
|
||||||
|
|
||||||
import java.security.Key;
|
import java.security.Key;
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,12 @@
|
||||||
*/
|
*/
|
||||||
package org.libreccm.security;
|
package org.libreccm.security;
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.ElementType;
|
||||||
|
import java.lang.annotation.Inherited;
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
import java.lang.annotation.Target;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This annotation is used together with the {@link AuthorizationRequired}
|
* This annotation is used together with the {@link AuthorizationRequired}
|
||||||
|
|
|
||||||
19
pom.xml
19
pom.xml
|
|
@ -82,13 +82,14 @@
|
||||||
<module>ccm-bundle-devel</module>
|
<module>ccm-bundle-devel</module>
|
||||||
<module>ccm-bundle-devel-wildfly-web</module>
|
<module>ccm-bundle-devel-wildfly-web</module>
|
||||||
<module>ccm-bundle-devel-wildfly</module>
|
<module>ccm-bundle-devel-wildfly</module>
|
||||||
<module>ccm-bundle-devel-wildfly-swarm</module>
|
<module>ccm-bundle-devel-thorntail</module>
|
||||||
|
|
||||||
<!-- Archetypes -->
|
<!-- Archetypes -->
|
||||||
<module>ccm-archetype-module</module>
|
<module>ccm-archetype-module</module>
|
||||||
<module>ccm-cms-archetype-contenttype</module>
|
<module>ccm-cms-archetype-contenttype</module>
|
||||||
|
|
||||||
<!--<module>ccm-cms-js</module>-->
|
<!--<module>ccm-cms-js</module>-->
|
||||||
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<reporting>
|
<reporting>
|
||||||
|
|
@ -97,7 +98,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||||
<version>2.9</version>
|
<!-- <version>2.9</version>-->
|
||||||
<reportSets>
|
<reportSets>
|
||||||
<reportSet>
|
<reportSet>
|
||||||
<reports>
|
<reports>
|
||||||
|
|
@ -113,7 +114,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>versions-maven-plugin</artifactId>
|
<artifactId>versions-maven-plugin</artifactId>
|
||||||
<version>2.4</version>
|
<!--<version>2.4</version>-->
|
||||||
<configuration>
|
<configuration>
|
||||||
<rulesUri>file:///${session.executionRootDirectory}/maven-version-rules.xml</rulesUri>
|
<rulesUri>file:///${session.executionRootDirectory}/maven-version-rules.xml</rulesUri>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
@ -276,6 +277,11 @@
|
||||||
<artifactId>hibernate51-ddl-maven-plugin</artifactId>
|
<artifactId>hibernate51-ddl-maven-plugin</artifactId>
|
||||||
<version>2.1.0</version>
|
<version>2.1.0</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.thorntail</groupId>
|
||||||
|
<artifactId>thorntail-maven-plugin</artifactId>
|
||||||
|
<version>2.3.0.Final</version>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
|
|
@ -301,7 +307,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>versions-maven-plugin</artifactId>
|
<artifactId>versions-maven-plugin</artifactId>
|
||||||
<version>2.5</version>
|
<version>2.7</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.jacoco</groupId>
|
<groupId>org.jacoco</groupId>
|
||||||
|
|
@ -313,11 +319,6 @@
|
||||||
<artifactId>wildfly-maven-plugin</artifactId>
|
<artifactId>wildfly-maven-plugin</artifactId>
|
||||||
<version>1.2.1.Final</version>
|
<version>1.2.1.Final</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
|
||||||
<artifactId>wildfly-swarm-plugin</artifactId>
|
|
||||||
<version>2017.11.0</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue