Merge remote-tracking branch 'origin/jetty-9.4.x' into jetty-10.0.x
This commit is contained in:
commit
cd4d2c26a9
|
@ -12,7 +12,7 @@ lib/infinispan-common-${jetty.version}.jar
|
||||||
lib/infinispan/*.jar
|
lib/infinispan/*.jar
|
||||||
|
|
||||||
[ini]
|
[ini]
|
||||||
infinispan.version?=9.1.0.Final
|
infinispan.version?=9.4.8.Final
|
||||||
|
|
||||||
[license]
|
[license]
|
||||||
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
|
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
|
|
@ -67,8 +67,8 @@
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<tasks>
|
<tasks>
|
||||||
<concat destfile="${project.build.directory}/infinispan-query-libs.mod">
|
<concat destfile="${project.build.directory}/infinispan-embedded-query-libs.mod">
|
||||||
<fileset file="src/main/config-template/modules/infinispan-query-libs.mod"/>
|
<fileset file="src/main/config-template/modules/sessions/infinispan/embedded/infinispan-embedded-query-libs.mod"/>
|
||||||
<fileset file="${project.build.directory}/deps.txt"/>
|
<fileset file="${project.build.directory}/deps.txt"/>
|
||||||
</concat>
|
</concat>
|
||||||
</tasks>
|
</tasks>
|
||||||
|
|
|
@ -13,14 +13,14 @@
|
||||||
<include>**</include>
|
<include>**</include>
|
||||||
</includes>
|
</includes>
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>**/infinispan-query-libs.mod</exclude>
|
<exclude>**/infinispan-embedded-query-libs.mod</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet>
|
<fileSet>
|
||||||
<directory>target</directory>
|
<directory>target</directory>
|
||||||
<outputDirectory>modules</outputDirectory>
|
<outputDirectory>modules/sessions/infinispan/embedded</outputDirectory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>infinispan-query-libs.mod</include>
|
<include>infinispan-embedded-query-libs.mod</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
|
|
|
@ -7,6 +7,9 @@ session
|
||||||
[provides]
|
[provides]
|
||||||
infinispan-embedded
|
infinispan-embedded
|
||||||
|
|
||||||
|
[depends]
|
||||||
|
sessions/infinispan/embedded/infinispan-embedded-query-libs
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
lib/infinispan/*.jar
|
lib/infinispan/*.jar
|
||||||
lib/infinispan-embedded-query-${jetty.version}.jar
|
lib/infinispan-embedded-query-${jetty.version}.jar
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[description]
|
|
||||||
The Infinispan query libraries
|
|
||||||
|
|
||||||
[tags]
|
|
||||||
3rdparty
|
|
||||||
infinispan
|
|
||||||
|
|
||||||
[depends]
|
|
||||||
infinispan-query
|
|
||||||
|
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
[description]
|
[description]
|
||||||
Enables querying with the Infinispan cache
|
The Infinispan query libraries
|
||||||
|
|
||||||
[tags]
|
[tags]
|
||||||
session
|
|
||||||
3rdparty
|
3rdparty
|
||||||
infinispan
|
infinispan
|
||||||
|
|
||||||
|
|
||||||
[license]
|
[license]
|
||||||
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
|
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
|
||||||
http://infinispan.org/
|
http://infinispan.org/
|
||||||
http://www.apache.org/licenses/LICENSE-2.0.html
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
[ini]
|
|
||||||
## Hide the infinispan libraries from deployed webapps
|
|
||||||
jetty.webapp.addServerClasses+=,${jetty.base.uri}/lib/infinispan/
|
|
|
@ -15,6 +15,69 @@
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>install</defaultGoal>
|
<defaultGoal>install</defaultGoal>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>build-deps-file</id>
|
||||||
|
<phase>generate-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>list</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<appendOutput>false</appendOutput>
|
||||||
|
<outputFile>${project.build.directory}/deps.txt</outputFile>
|
||||||
|
<sort>true</sort>
|
||||||
|
<excludeGroupIds>org.eclipse.jetty,javax.servlet,org.slf4j</excludeGroupIds>
|
||||||
|
<prependGroupId>true</prependGroupId>
|
||||||
|
<includeScope>runtime</includeScope>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>process-deps</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<tasks>
|
||||||
|
<replaceregexp file="${project.build.directory}/deps.txt"
|
||||||
|
match=" *(.*):(.*):jar:(.*):.*$"
|
||||||
|
replace="maven://\1/\2/\3|lib/infinispan/\2-\3.jar"
|
||||||
|
byline="true"
|
||||||
|
/>
|
||||||
|
<replaceregexp file="${project.build.directory}/deps.txt"
|
||||||
|
match="The following files have been resolved:"
|
||||||
|
replace="[files]"
|
||||||
|
/>
|
||||||
|
</tasks>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>process-mod</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<tasks>
|
||||||
|
<concat destfile="${project.build.directory}/infinispan-embedded-libs.mod">
|
||||||
|
<fileset file="src/main/config-templates/modules/sessions/infinispan/embedded/infinispan-embedded-libs.mod"/>
|
||||||
|
<fileset file="${project.build.directory}/deps.txt"/>
|
||||||
|
</concat>
|
||||||
|
</tasks>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
@ -25,9 +88,9 @@
|
||||||
<goal>single</goal>
|
<goal>single</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<descriptorRefs>
|
<descriptors>
|
||||||
<descriptorRef>config</descriptorRef>
|
<descriptor>src/main/assembly/config.xml</descriptor>
|
||||||
</descriptorRefs>
|
</descriptors>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
@ -40,5 +103,10 @@
|
||||||
<artifactId>infinispan-common</artifactId>
|
<artifactId>infinispan-common</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.infinispan</groupId>
|
||||||
|
<artifactId>infinispan-core</artifactId>
|
||||||
|
<version>${infinispan.version}</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<assembly>
|
||||||
|
<id>config</id>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<formats>
|
||||||
|
<format>jar</format>
|
||||||
|
</formats>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/config-templates</directory>
|
||||||
|
<outputDirectory></outputDirectory>
|
||||||
|
<includes>
|
||||||
|
<include>**</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/infinispan-embedded-libs.mod</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>target</directory>
|
||||||
|
<outputDirectory>modules/sessions/infinispan/embedded</outputDirectory>
|
||||||
|
<includes>
|
||||||
|
<include>infinispan-embedded-libs.mod</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
|
@ -8,12 +8,12 @@ session
|
||||||
session-store
|
session-store
|
||||||
|
|
||||||
[depend]
|
[depend]
|
||||||
infinispan-common
|
sessions/infinispan/infinispan-common
|
||||||
infinispan-embedded
|
infinispan-embedded
|
||||||
infinispan-query-libs
|
sessions/infinispan/embedded/infinispan-embedded-libs
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
basehome:modules/session-store-infinispan-embedded/infinispan.xml|etc/infinispan.xml
|
basehome:modules/sessions/infinispan/embedded/infinispan.xml|etc/infinispan.xml
|
||||||
|
|
||||||
[ini]
|
[ini]
|
||||||
infinispan.version?=9.4.8.Final
|
infinispan.version?=9.4.8.Final
|
|
@ -1,16 +1,16 @@
|
||||||
[description]
|
[description]
|
||||||
Enables querying with a remote Infinispan cache
|
The Infinispan embedded libraries
|
||||||
|
|
||||||
[tags]
|
[tags]
|
||||||
session
|
|
||||||
3rdparty
|
3rdparty
|
||||||
infinispan
|
infinispan
|
||||||
|
|
||||||
|
[depends]
|
||||||
|
sessions/infinispan/embedded/infinispan-embedded-serverclasses
|
||||||
|
|
||||||
[license]
|
[license]
|
||||||
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
|
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
|
||||||
http://infinispan.org/
|
http://infinispan.org/
|
||||||
http://www.apache.org/licenses/LICENSE-2.0.html
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
[ini]
|
|
||||||
## Hide the infinispan libraries from deployed webapps
|
|
||||||
jetty.webapp.addServerClasses+=,${jetty.base.uri}/lib/infinispan/
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
[description]
|
||||||
|
Hides Infinispan classes from webapp.
|
||||||
|
|
||||||
|
[tags]
|
||||||
|
session
|
||||||
|
3rdparty
|
||||||
|
infinispan
|
||||||
|
|
||||||
|
|
||||||
|
[ini]
|
||||||
|
## Hide the infinispan libraries from deployed webapps
|
||||||
|
jetty.webapp.addServerClasses+=,${jetty.base.uri}/lib/infinispan/
|
|
@ -73,8 +73,8 @@
|
||||||
<configuration>
|
<configuration>
|
||||||
<tasks>
|
<tasks>
|
||||||
<concat destfile="${project.build.directory}/infinispan-remote-query-libs.mod">
|
<concat destfile="${project.build.directory}/infinispan-remote-query-libs.mod">
|
||||||
<fileset file="src/main/config-template/modules/infinispan-remote-query-libs.mod"/>
|
<fileset file="src/main/config-template/modules/sessions/infinispan/remote/infinispan-remote-query-libs.mod"/>
|
||||||
<fileset file="${project.build.directory}/deps.txt"/>
|
<fileset file="${project.build.directory}/deps.txt"/>
|
||||||
</concat>
|
</concat>
|
||||||
</tasks>
|
</tasks>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet>
|
<fileSet>
|
||||||
<directory>target</directory>
|
<directory>target</directory>
|
||||||
<outputDirectory>modules</outputDirectory>
|
<outputDirectory>modules/sessions/infinispan/remote</outputDirectory>
|
||||||
<includes>
|
<includes>
|
||||||
<include>infinispan-remote-query-libs.mod</include>
|
<include>infinispan-remote-query-libs.mod</include>
|
||||||
</includes>
|
</includes>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
||||||
|
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
<!-- Get a reference to the remote cache manager. -->
|
<!-- Set up support for queries and index on session expiry time. -->
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
<New id="mapping" class="org.hibernate.search.cfg.SearchMapping">
|
<New id="mapping" class="org.hibernate.search.cfg.SearchMapping">
|
||||||
<Call name="entity">
|
<Call name="entity">
|
||||||
|
@ -35,6 +35,10 @@
|
||||||
</Call>
|
</Call>
|
||||||
</New>
|
</New>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Convert properties to configuration. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
<New class="org.infinispan.client.hotrod.configuration.ConfigurationBuilder">
|
<New class="org.infinispan.client.hotrod.configuration.ConfigurationBuilder">
|
||||||
<Call name="withProperties">
|
<Call name="withProperties">
|
||||||
<Arg><Ref refid="properties"/></Arg>
|
<Arg><Ref refid="properties"/></Arg>
|
||||||
|
@ -46,11 +50,17 @@
|
||||||
</Call>
|
</Call>
|
||||||
<Call id="config" name="build"/>
|
<Call id="config" name="build"/>
|
||||||
</New>
|
</New>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Get a reference to the remote cachemanager. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
<New id="remoteCacheManager" class="org.infinispan.client.hotrod.RemoteCacheManager">
|
<New id="remoteCacheManager" class="org.infinispan.client.hotrod.RemoteCacheManager">
|
||||||
<Arg><Ref refid="config"/></Arg>
|
<Arg><Ref refid="config"/></Arg>
|
||||||
</New>
|
</New>
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Set up custom session serialization. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
<Call id="serial_context" class="org.infinispan.client.hotrod.marshall.ProtoStreamMarshaller" name="getSerializationContext">
|
<Call id="serial_context" class="org.infinispan.client.hotrod.marshall.ProtoStreamMarshaller" name="getSerializationContext">
|
||||||
<Arg>
|
<Arg>
|
||||||
<Ref refid="remoteCacheManager"/>
|
<Ref refid="remoteCacheManager"/>
|
||||||
|
@ -77,14 +87,16 @@
|
||||||
|
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
<!-- Get a reference to the remote cache. -->
|
<!-- Get a reference to the remote cache. -->
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
<Ref refid="remoteCacheManager">
|
<Ref refid="remoteCacheManager">
|
||||||
<Call id="cache" name="getCache">
|
<Call id="cache" name="getCache">
|
||||||
<Arg><Property name="jetty.session.infinispan.remoteCacheName" default="sessions"/></Arg>
|
<Arg><Property name="jetty.session.infinispan.remoteCacheName" default="sessions"/></Arg>
|
||||||
</Call>
|
</Call>
|
||||||
</Ref>
|
</Ref>
|
||||||
|
|
||||||
<!-- set queryMgrFactory reference to RemoteQueryManagerFactory -->
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Set queryMgrFactory reference to RemoteQueryManagerFactory -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
<New id="queryMgrFactory" class="org.eclipse.jetty.session.infinispan.RemoteQueryManagerFactory"/>
|
<New id="queryMgrFactory" class="org.eclipse.jetty.session.infinispan.RemoteQueryManagerFactory"/>
|
||||||
|
|
||||||
</Configure>
|
</Configure>
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[description]
|
|
||||||
The Infinispan remote query libraries
|
|
||||||
|
|
||||||
[tags]
|
|
||||||
3rdparty
|
|
||||||
infinispan
|
|
||||||
|
|
||||||
[depends]
|
|
||||||
infinispan-remote-query-serverclasses
|
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,11 @@ session
|
||||||
[provides]
|
[provides]
|
||||||
infinispan-remote
|
infinispan-remote
|
||||||
|
|
||||||
|
[depends]
|
||||||
|
sessions/infinispan/remote/infinispan-remote-query-libs
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
basehome:modules/infinispan-remote-query/hotrod-client.properties|resources/hotrod-client.properties
|
basehome:modules/sessions/infinispan/remote/other_proto_marshallers.xml|etc/other_proto_marshallers.xml
|
||||||
basehome:modules/infinispan-remote-query/other_proto_marshallers.xml|etc/other_proto_marshallers.xml
|
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
lib/infinispan-remote-query-${jetty.version}.jar
|
lib/infinispan-remote-query-${jetty.version}.jar
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
[description]
|
||||||
|
The Infinispan remote query libraries
|
||||||
|
|
||||||
|
[tags]
|
||||||
|
3rdparty
|
||||||
|
infinispan
|
||||||
|
|
||||||
|
[license]
|
||||||
|
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
|
||||||
|
http://infinispan.org/
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,74 @@
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>install</defaultGoal>
|
<defaultGoal>install</defaultGoal>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>build-deps-file</id>
|
||||||
|
<phase>generate-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>list</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<appendOutput>false</appendOutput>
|
||||||
|
<outputFile>${project.build.directory}/deps.txt</outputFile>
|
||||||
|
<sort>true</sort>
|
||||||
|
<excludeGroupIds>org.eclipse.jetty,javax.servlet</excludeGroupIds>
|
||||||
|
<prependGroupId>true</prependGroupId>
|
||||||
|
<includeScope>provided</includeScope>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>process-deps</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<tasks>
|
||||||
|
<replaceregexp file="${project.build.directory}/deps.txt"
|
||||||
|
match=" *(.*):(.*):jar:(.*):(.*):.*$"
|
||||||
|
replace="maven://\1/\2/\4/jar/\3|lib/infinispan/\2-\3-\4.jar"
|
||||||
|
byline="true"
|
||||||
|
/>
|
||||||
|
<replaceregexp file="${project.build.directory}/deps.txt"
|
||||||
|
match=" *(.*):(.*):jar:(.*):.*$"
|
||||||
|
replace="maven://\1/\2/\3|lib/infinispan/\2-\3.jar"
|
||||||
|
byline="true"
|
||||||
|
/>
|
||||||
|
<replaceregexp file="${project.build.directory}/deps.txt"
|
||||||
|
match="The following files have been resolved:"
|
||||||
|
replace="[files]"
|
||||||
|
/>
|
||||||
|
</tasks>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>process-mod</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<tasks>
|
||||||
|
<concat destfile="${project.build.directory}/infinispan-remote-libs.mod">
|
||||||
|
<fileset file="src/main/config-template/modules/sessions/infinispan/remote/infinispan-remote-libs.mod"/>
|
||||||
|
<fileset file="${project.build.directory}/deps.txt"/>
|
||||||
|
</concat>
|
||||||
|
</tasks>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
@ -25,9 +93,9 @@
|
||||||
<goal>single</goal>
|
<goal>single</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<descriptorRefs>
|
<descriptors>
|
||||||
<descriptorRef>config</descriptorRef>
|
<descriptor>src/main/assembly/config.xml</descriptor>
|
||||||
</descriptorRefs>
|
</descriptors>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
@ -40,5 +108,23 @@
|
||||||
<artifactId>infinispan-common</artifactId>
|
<artifactId>infinispan-common</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.infinispan</groupId>
|
||||||
|
<artifactId>infinispan-client-hotrod</artifactId>
|
||||||
|
<version>${infinispan.version}</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.infinispan</groupId>
|
||||||
|
<artifactId>infinispan-remote-query-client</artifactId>
|
||||||
|
<version>${infinispan.version}</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.infinispan.protostream</groupId>
|
||||||
|
<artifactId>protostream</artifactId>
|
||||||
|
<version>4.2.2.Final</version>
|
||||||
|
<scope>provided</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<assembly>
|
||||||
|
<id>config</id>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
<formats>
|
||||||
|
<format>jar</format>
|
||||||
|
</formats>
|
||||||
|
<fileSets>
|
||||||
|
<fileSet>
|
||||||
|
<directory>src/main/config-template</directory>
|
||||||
|
<outputDirectory></outputDirectory>
|
||||||
|
<includes>
|
||||||
|
<include>**</include>
|
||||||
|
</includes>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/infinispan-remote-libs.mod</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>target</directory>
|
||||||
|
<outputDirectory>modules/sessions/infinispan/remote</outputDirectory>
|
||||||
|
<includes>
|
||||||
|
<include>infinispan-remote-libs.mod</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
|
@ -32,13 +32,16 @@
|
||||||
</New>
|
</New>
|
||||||
|
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
<!-- Get a reference to the remote cache. -->
|
<!-- Get a reference to the remote cachemanager. -->
|
||||||
<!-- ===================================================================== -->
|
<!-- ===================================================================== -->
|
||||||
<New id="hotrodMgr" class="org.infinispan.client.hotrod.RemoteCacheManager">
|
<New id="hotrodMgr" class="org.infinispan.client.hotrod.RemoteCacheManager">
|
||||||
<Arg><Ref refid="config"/></Arg>
|
<Arg><Ref refid="config"/></Arg>
|
||||||
</New>
|
</New>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Set up custom session serialization. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
<Call id="serial_context" class="org.infinispan.client.hotrod.marshall.ProtoStreamMarshaller" name="getSerializationContext">
|
<Call id="serial_context" class="org.infinispan.client.hotrod.marshall.ProtoStreamMarshaller" name="getSerializationContext">
|
||||||
<Arg>
|
<Arg>
|
||||||
<Ref refid="hotrodMgr"/>
|
<Ref refid="hotrodMgr"/>
|
||||||
|
@ -64,13 +67,18 @@
|
||||||
</Call>
|
</Call>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Get a reference to the remote cache. -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
<Ref refid="hotrodMgr">
|
<Ref refid="hotrodMgr">
|
||||||
<Call id="cache" name="getCache">
|
<Call id="cache" name="getCache">
|
||||||
<Arg><Property name="jetty.session.infinispan.remoteCacheName" default="sessions"/></Arg>
|
<Arg><Property name="jetty.session.infinispan.remoteCacheName" default="sessions"/></Arg>
|
||||||
</Call>
|
</Call>
|
||||||
</Ref>
|
</Ref>
|
||||||
|
|
||||||
<!-- set queryMgrFactory reference to NullQueryManagerFactory -->
|
<!-- ===================================================================== -->
|
||||||
|
<!-- Set queryMgrFactory reference to NullQueryManagerFactory -->
|
||||||
|
<!-- ===================================================================== -->
|
||||||
<New id="queryMgrFactory" class="org.eclipse.jetty.session.infinispan.NullQueryManagerFactory"/>
|
<New id="queryMgrFactory" class="org.eclipse.jetty.session.infinispan.NullQueryManagerFactory"/>
|
||||||
|
|
||||||
</Configure>
|
</Configure>
|
|
@ -8,12 +8,12 @@ session
|
||||||
session-store
|
session-store
|
||||||
|
|
||||||
[depend]
|
[depend]
|
||||||
infinispan-common
|
sessions/infinispan/infinispan-common
|
||||||
infinispan-remote
|
infinispan-remote
|
||||||
infinispan-remote-query-libs
|
sessions/infinispan/remote/infinispan-remote-libs
|
||||||
|
|
||||||
[files]
|
[files]
|
||||||
basehome:modules/session-store-infinispan-remote/resources/hotrod-client.properties|resources/hotrod-client.properties
|
basehome:modules/sessions/infinispan/remote/resources/hotrod-client.properties|resources/hotrod-client.properties
|
||||||
|
|
||||||
[ini]
|
[ini]
|
||||||
infinispan.version?=9.4.8.Final
|
infinispan.version?=9.4.8.Final
|
|
@ -0,0 +1,16 @@
|
||||||
|
[description]
|
||||||
|
The Infinispan remote libs
|
||||||
|
|
||||||
|
[tags]
|
||||||
|
3rdparty
|
||||||
|
infinispan
|
||||||
|
|
||||||
|
[depends]
|
||||||
|
sessions/infinispan/remote/infinispan-remote-serverclasses
|
||||||
|
|
||||||
|
[license]
|
||||||
|
Infinispan is an open source project hosted on Github and released under the Apache 2.0 license.
|
||||||
|
http://infinispan.org/
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
[description]
|
||||||
|
Hides Infinispan classes from webapp.
|
||||||
|
|
||||||
|
[tags]
|
||||||
|
session
|
||||||
|
3rdparty
|
||||||
|
infinispan
|
||||||
|
|
||||||
|
|
||||||
|
[ini]
|
||||||
|
## Hide the infinispan libraries from deployed webapps
|
||||||
|
jetty.webapp.addServerClasses+=,${jetty.base.uri}/lib/infinispan/
|
|
@ -1 +0,0 @@
|
||||||
#infinispan.client.hotrod.server_list
|
|
Loading…
Reference in New Issue