setting kie-wb maven repo as public
This commit is contained in:
parent
dec73f7ba3
commit
49fbd72723
3 changed files with 771 additions and 278 deletions
|
|
@ -1,287 +1,312 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<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">
|
||||
<parent>
|
||||
<artifactId>drools-framework-kie-wb-parent</artifactId>
|
||||
<groupId>com.pymmasoftware.jbpm</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
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">
|
||||
<parent>
|
||||
<artifactId>drools-framework-kie-wb-parent</artifactId>
|
||||
<groupId>com.pymmasoftware.jbpm</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>kie-wb</artifactId>
|
||||
<artifactId>kie-wb</artifactId>
|
||||
|
||||
<packaging>war</packaging>
|
||||
<packaging>war</packaging>
|
||||
<name>Pymma platform workbench</name>
|
||||
<description>Pymma Plarform Kie-wb</description>
|
||||
<dependencies>
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.pymmasoftware.jbpm</groupId>
|
||||
<artifactId>kie-drools-framework-rest-backend</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.pymmasoftware.jbpm</groupId>
|
||||
<artifactId>kie-drools-framework-rest-backend</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.kie</groupId>
|
||||
<artifactId>business-central</artifactId>
|
||||
<classifier>wildfly14</classifier>
|
||||
<version>${jbpm.version}</version>
|
||||
<type>war</type>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.kie</groupId>
|
||||
<artifactId>business-central</artifactId>
|
||||
<classifier>wildfly14</classifier>
|
||||
<version>${jbpm.version}</version>
|
||||
<type>war</type>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>kie-wb</finalName>
|
||||
<plugins>
|
||||
<!-- unpack step -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<version>2.10</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>unpack</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>unpack</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifactItems>
|
||||
<artifactItem>
|
||||
<groupId>org.kie</groupId>
|
||||
<artifactId>business-central</artifactId>
|
||||
<classifier>wildfly14</classifier>
|
||||
<version>${jbpm.version}</version>
|
||||
<type>war</type>
|
||||
<outputDirectory>${project.build.directory}/unpack-tmp</outputDirectory>
|
||||
<!--includes>**/*.class,**/*.xml</includes-->
|
||||
</artifactItem>
|
||||
|
||||
</artifactItems>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<version>2.10</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-dependencies</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/unpack-tmp/WEB-INF/lib</outputDirectory>
|
||||
<overWriteReleases>false</overWriteReleases>
|
||||
<overWriteSnapshots>false</overWriteSnapshots>
|
||||
<overWriteIfNewer>true</overWriteIfNewer>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<!-- here the phase you need -->
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${basedir}/target//unpack-tmp/WEB-INF/classes/META-INF</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
<overwrite>true</overwrite>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<finalName>kie-wb</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/assembly-kie-wb-wildfly-11.xml</descriptor>
|
||||
</descriptors>
|
||||
<archive>
|
||||
<addMavenDescriptor>false</addMavenDescriptor>
|
||||
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>docker-build</id>
|
||||
<build>
|
||||
<build>
|
||||
<finalName>kie-wb</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>0.21.0</version>
|
||||
<!-- unpack step -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<version>2.10</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>unpack</id>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>unpack</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<artifactItems>
|
||||
<artifactItem>
|
||||
<groupId>org.kie</groupId>
|
||||
<artifactId>business-central</artifactId>
|
||||
<classifier>wildfly14</classifier>
|
||||
<version>${jbpm.version}</version>
|
||||
<type>war</type>
|
||||
<outputDirectory>${project.build.directory}/unpack-tmp</outputDirectory>
|
||||
<!--includes>**/*.class,**/*.xml</includes-->
|
||||
</artifactItem>
|
||||
|
||||
<configuration>
|
||||
<!--registry>192.168.1.184:12500</registry-->
|
||||
<dockerHost>${docker.Host}</dockerHost>
|
||||
</artifactItems>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<version>2.10</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-dependencies</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}/unpack-tmp/WEB-INF/lib</outputDirectory>
|
||||
<overWriteReleases>false</overWriteReleases>
|
||||
<overWriteSnapshots>false</overWriteSnapshots>
|
||||
<overWriteIfNewer>true</overWriteIfNewer>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<!-- this is for Mac and Amazon Linux -->
|
||||
<!--dockerHost>unix:///var/run/docker.sock</dockerHost-->
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<!-- here the phase you need -->
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${basedir}/target//unpack-tmp/WEB-INF/classes/META-INF</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/META-INF</directory>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
<overwrite>true</overwrite>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>copy-resources</id>
|
||||
<!-- here the phase you need -->
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-resources</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${basedir}/target//unpack-tmp/WEB-INF/</outputDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources/WEB-INF</directory>
|
||||
<filtering>false</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
<overwrite>true</overwrite>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<finalName>kie-wb</finalName>
|
||||
<appendAssemblyId>false</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/main/assembly/assembly-kie-wb-wildfly-11.xml</descriptor>
|
||||
</descriptors>
|
||||
<archive>
|
||||
<addMavenDescriptor>false</addMavenDescriptor>
|
||||
|
||||
<verbose>true</verbose>
|
||||
<images>
|
||||
<image>
|
||||
<name>kie-wb</name>
|
||||
<build>
|
||||
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<!--copies Jar to the maven directory (uses Assembly system)-->
|
||||
<assembly>
|
||||
<descriptorRef>artifact</descriptorRef>
|
||||
</assembly>
|
||||
<tags>
|
||||
<tag>latest</tag>
|
||||
</tags>
|
||||
|
||||
</build>
|
||||
|
||||
<run>
|
||||
<extraHosts>
|
||||
<host>mongodb:172.17.0.1</host>
|
||||
<host>kie-wb:172.17.0.1</host>
|
||||
</extraHosts>
|
||||
<ports>
|
||||
<port>10080:8080</port>
|
||||
<port>10001:8001</port>
|
||||
<port>50505:50505</port>
|
||||
</ports>
|
||||
</run>
|
||||
</image>
|
||||
</images>
|
||||
</configuration>
|
||||
|
||||
<executions>
|
||||
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
|
||||
</executions>
|
||||
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>docker-deploy</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>0.21.0</version>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>docker-build</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>0.21.0</version>
|
||||
|
||||
<configuration>
|
||||
<registry>registry.hub.docker.com/pymmasoftware</registry>
|
||||
<dockerHost>${docker.Host}</dockerHost>
|
||||
<verbose>true</verbose>
|
||||
<images>
|
||||
<image>
|
||||
<name>kie-wb</name>
|
||||
<build>
|
||||
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
|
||||
<configuration>
|
||||
<!--registry>192.168.1.184:12500</registry-->
|
||||
<dockerHost>${docker.Host}</dockerHost>
|
||||
|
||||
<!--copies Jar to the maven directory (uses Assembly system)-->
|
||||
<assembly>
|
||||
<mode>dir</mode>
|
||||
<name>maven/</name>
|
||||
<inline xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||
<id>middleware-rest</id>
|
||||
<files>
|
||||
<file>
|
||||
<source>${project.build.directory}/kie-wb.war</source>
|
||||
<outputDirectory>./</outputDirectory>
|
||||
<destName>kie-wb.war</destName>
|
||||
</file>
|
||||
</files>
|
||||
</inline>
|
||||
</assembly>
|
||||
<!-- this is for Mac and Amazon Linux -->
|
||||
<!--dockerHost>unix:///var/run/docker.sock</dockerHost-->
|
||||
|
||||
<verbose>true</verbose>
|
||||
<images>
|
||||
<image>
|
||||
<name>kie-wb</name>
|
||||
<build>
|
||||
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
|
||||
|
||||
<!--copies Jar to the maven directory (uses Assembly system)-->
|
||||
<assembly>
|
||||
<descriptorRef>artifact</descriptorRef>
|
||||
</assembly>
|
||||
<tags>
|
||||
<tag>latest</tag>
|
||||
</tags>
|
||||
|
||||
</build>
|
||||
|
||||
<run>
|
||||
<extraHosts>
|
||||
<host>mongodb:172.17.0.1</host>
|
||||
<host>kie-wb:172.17.0.1</host>
|
||||
</extraHosts>
|
||||
<ports>
|
||||
<port>10080:8080</port>
|
||||
<port>10001:8001</port>
|
||||
<port>50505:50505</port>
|
||||
</ports>
|
||||
</run>
|
||||
</image>
|
||||
</images>
|
||||
</configuration>
|
||||
|
||||
<executions>
|
||||
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
|
||||
</build>
|
||||
</executions>
|
||||
|
||||
<run>
|
||||
<extraHosts>
|
||||
<host>mongodb:192.168.1.102</host>
|
||||
<host>declasin:192.168.1.184</host>
|
||||
</extraHosts>
|
||||
<ports>
|
||||
<port>8080:8080</port>
|
||||
</ports>
|
||||
</run>
|
||||
</image>
|
||||
</images>
|
||||
<authConfig>
|
||||
<username>pymmasoftwaredeploy</username>
|
||||
<password>pymmalomme</password>
|
||||
</authConfig>
|
||||
<retries>5</retries>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>docker-deploy</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>docker-maven-plugin</artifactId>
|
||||
<version>0.21.0</version>
|
||||
|
||||
<executions>
|
||||
<configuration>
|
||||
<registry>registry.hub.docker.com/pymmasoftware</registry>
|
||||
<dockerHost>${docker.Host}</dockerHost>
|
||||
<verbose>true</verbose>
|
||||
<images>
|
||||
<image>
|
||||
<name>kie-wb</name>
|
||||
<build>
|
||||
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
|
||||
|
||||
<!--copies Jar to the maven directory (uses Assembly system)-->
|
||||
<assembly>
|
||||
<mode>dir</mode>
|
||||
<name>maven/</name>
|
||||
<inline xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
|
||||
<id>middleware-rest</id>
|
||||
<files>
|
||||
<file>
|
||||
<source>${project.build.directory}/kie-wb.war</source>
|
||||
<outputDirectory>./</outputDirectory>
|
||||
<destName>kie-wb.war</destName>
|
||||
</file>
|
||||
</files>
|
||||
</inline>
|
||||
</assembly>
|
||||
|
||||
|
||||
<execution>
|
||||
<id>mydeploy</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
<goal>push</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</build>
|
||||
|
||||
</executions>
|
||||
<run>
|
||||
<extraHosts>
|
||||
<host>mongodb:192.168.1.102</host>
|
||||
<host>declasin:192.168.1.184</host>
|
||||
</extraHosts>
|
||||
<ports>
|
||||
<port>8080:8080</port>
|
||||
</ports>
|
||||
</run>
|
||||
</image>
|
||||
</images>
|
||||
<authConfig>
|
||||
<username>pymmasoftwaredeploy</username>
|
||||
<password>pymmalomme</password>
|
||||
</authConfig>
|
||||
<retries>5</retries>
|
||||
</configuration>
|
||||
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
<executions>
|
||||
|
||||
|
||||
<execution>
|
||||
<id>mydeploy</id>
|
||||
<phase>deploy</phase>
|
||||
<goals>
|
||||
<goal>build</goal>
|
||||
<goal>push</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
</executions>
|
||||
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,468 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
|
||||
|
||||
<!--
|
||||
<distributable/>
|
||||
-->
|
||||
<listener>
|
||||
<listener-class>org.uberfire.backend.server.io.DisposableShutdownService</listener-class>
|
||||
</listener>
|
||||
|
||||
<listener>
|
||||
<listener-class>org.kie.workbench.screens.workbench.backend.SwaggerAPIScanner</listener-class>
|
||||
</listener>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>javax.ws.rs.core.Application</servlet-name>
|
||||
<url-pattern>/rest/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<context-param>
|
||||
<param-name>resteasy.role.based.security</param-name>
|
||||
<param-value>true</param-value>
|
||||
</context-param>
|
||||
|
||||
<filter>
|
||||
<filter-name>request-capture</filter-name>
|
||||
<filter-class>org.uberfire.ext.security.server.SecurityIntegrationFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>request-capture</filter-name>
|
||||
<url-pattern>*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter>
|
||||
<filter-name>Cache Filter</filter-name>
|
||||
<filter-class>org.uberfire.ext.security.server.CacheHeadersFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>Cache Filter</filter-name>
|
||||
<url-pattern>/kie-wb.jsp</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>Cache Filter</filter-name>
|
||||
<url-pattern>*.js</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter>
|
||||
<filter-name>Host Page Patch</filter-name>
|
||||
<filter-class>org.jboss.errai.security.server.servlet.UserHostPageFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>Host Page Patch</filter-name>
|
||||
<url-pattern>/kie-wb.jsp</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter>
|
||||
<filter-name>CSRF Token Filter</filter-name>
|
||||
<filter-class>org.jboss.errai.bus.server.servlet.CSRFTokenFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>CSRF Token Filter</filter-name>
|
||||
<url-pattern>/kie-wb.jsp</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter>
|
||||
<filter-name>GWT Locale Filter</filter-name>
|
||||
<filter-class>org.uberfire.server.locale.GWTLocaleHeaderFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>GWT Locale Filter</filter-name>
|
||||
<url-pattern>/kie-wb.jsp</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<filter>
|
||||
<filter-name>UberFire Security Headers Filter</filter-name>
|
||||
<filter-class>org.uberfire.ext.security.server.SecureHeadersFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>x-frame-options</param-name>
|
||||
<param-value>SAMEORIGIN</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>x-xss-protection-enable</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>x-xss-protection-block</param-name>
|
||||
<param-value>true</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>UberFire Security Headers Filter</filter-name>
|
||||
<url-pattern>*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>LoginRedirectServlet</servlet-name>
|
||||
<servlet-class>org.uberfire.ext.security.server.LoginRedirectServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>display-after-login</param-name>
|
||||
<param-value>/kie-wb.jsp</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>LoginRedirectServlet</servlet-name>
|
||||
<url-pattern>/login</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<welcome-file-list>
|
||||
<welcome-file>index.jsp</welcome-file>
|
||||
<welcome-file>index.html</welcome-file>
|
||||
</welcome-file-list>
|
||||
|
||||
<filter>
|
||||
<filter-name>GzipFilter</filter-name>
|
||||
<filter-class>org.uberfire.backend.server.util.gzip.GzipFilter</filter-class>
|
||||
</filter>
|
||||
|
||||
<filter-mapping>
|
||||
<filter-name>GzipFilter</filter-name>
|
||||
<url-pattern>*.js</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<!-- drools-wb servlets -->
|
||||
<servlet>
|
||||
<servlet-name>DTableXLSFileServlet</servlet-name>
|
||||
<servlet-class>org.drools.workbench.screens.dtablexls.backend.server.DecisionTableXLSFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>includes-path</param-name>
|
||||
<param-value>git://**,default://**</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>excludes-path</param-name>
|
||||
<param-value>file://**</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>DTableXLSFileServlet</servlet-name>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/dtablexls/file</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ArchiveServlet</servlet-name>
|
||||
<servlet-class>org.guvnor.common.services.backend.archive.ArchiveServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>includes-path</param-name>
|
||||
<param-value>git://**,default://**</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>excludes-path</param-name>
|
||||
<param-value>file://**</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>ArchiveServlet</servlet-name>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/archive</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>ScoreCardFileServlet</servlet-name>
|
||||
<servlet-class>org.drools.workbench.screens.scorecardxls.backend.server.ScoreCardXLSFileServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>includes-path</param-name>
|
||||
<param-value>git://**,default://**</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>excludes-path</param-name>
|
||||
<param-value>file://**</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>ScoreCardFileServlet</servlet-name>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/scorecardxls/file</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>UberfireFileUploadServlet</servlet-name>
|
||||
<servlet-class>org.uberfire.server.FileUploadServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>includes-path</param-name>
|
||||
<param-value>git://**,default://**</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>excludes-path</param-name>
|
||||
<param-value>file://**</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>UberfireFileUploadServlet</servlet-name>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/defaulteditor/upload/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>UberfireFileDownloadServlet</servlet-name>
|
||||
<servlet-class>org.uberfire.server.FileDownloadServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>includes-path</param-name>
|
||||
<param-value>git://**,default://**</param-value>
|
||||
</init-param>
|
||||
<init-param>
|
||||
<param-name>excludes-path</param-name>
|
||||
<param-value>file://**</param-value>
|
||||
</init-param>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>UberfireFileDownloadServlet</servlet-name>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/defaulteditor/download/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>M2Servlet</servlet-name>
|
||||
<servlet-class>org.guvnor.m2repo.backend.server.M2Servlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>M2Servlet</servlet-name>
|
||||
<url-pattern>/maven2/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>VerifierWebWorkerServlet</servlet-name>
|
||||
<servlet-class>org.kie.workbench.common.services.verifier.service.VerifierWebWorkerServlet</servlet-class>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>VerifierWebWorkerServlet</servlet-name>
|
||||
<url-pattern>/verifier/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<servlet>
|
||||
<servlet-name>PluginMediaServlet</servlet-name>
|
||||
<servlet-class>org.uberfire.ext.plugin.backend.PluginMediaServlet</servlet-class>
|
||||
<init-param>
|
||||
<param-name>url-pattern</param-name>
|
||||
<param-value>/plugins/</param-value>
|
||||
</init-param>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
<servlet-mapping>
|
||||
<servlet-name>PluginMediaServlet</servlet-name>
|
||||
<url-pattern>/plugins/*</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Errai servlets -->
|
||||
<servlet>
|
||||
<!-- NOTE: the integration-test profile uses this web.xml. Integration tests only work properly
|
||||
with the DefaultBlockingServlet. If you change this setting, make a backup of this web.xml
|
||||
(perhaps under src/integration-test-settings/web.xml and alter the integration-test
|
||||
profile in pom.xml to use that. -->
|
||||
<servlet-name>ErraiServlet</servlet-name>
|
||||
<servlet-class>org.jboss.errai.bus.server.servlet.DefaultBlockingServlet</servlet-class>
|
||||
<load-on-startup>1</load-on-startup>
|
||||
</servlet>
|
||||
|
||||
<servlet-mapping>
|
||||
<servlet-name>ErraiServlet</servlet-name>
|
||||
<url-pattern>*.erraiBus</url-pattern>
|
||||
</servlet-mapping>
|
||||
|
||||
<!-- Start jBPM Designer -->
|
||||
<filter>
|
||||
<filter-name>Redirect Filter</filter-name>
|
||||
<filter-class>org.jbpm.designer.filter.DesignerResourcesRedirectFilter</filter-class>
|
||||
<init-param>
|
||||
<param-name>redirectTo</param-name>
|
||||
<param-value>/org.kie.bc.KIEWebapp</param-value>
|
||||
</init-param>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>Redirect Filter</filter-name>
|
||||
<url-pattern>/org.jbpm.designer.jBPMDesigner/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<!-- the number within the session-timout element must be expressed in
|
||||
minutes. it is now 24 hours. -->
|
||||
<session-config>
|
||||
<session-timeout>1440</session-timeout>
|
||||
<cookie-config>
|
||||
<http-only>true</http-only>
|
||||
</cookie-config>
|
||||
</session-config>
|
||||
<!-- jBoss' default mapping is to "image/svg", which causes the client
|
||||
not to parse the SVG content as XML. However, the Oryx Editor client relies
|
||||
on that behaviour. The mimetype as per W3C specification must be "image/svg+xml".
|
||||
See http://www.w3.org/TR/SVG/intro.html#MIMEType. -->
|
||||
<mime-mapping>
|
||||
<extension>svg</extension>
|
||||
<mime-type>image/svg+xml</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>json</extension>
|
||||
<mime-type>application/json</mime-type>
|
||||
</mime-mapping>
|
||||
<mime-mapping>
|
||||
<extension>css</extension>
|
||||
<mime-type>text/css</mime-type>
|
||||
</mime-mapping>
|
||||
<!-- Set Favourites Icon MIME-Type -->
|
||||
<mime-mapping>
|
||||
<extension>ico</extension>
|
||||
<mime-type>image/x-icon</mime-type>
|
||||
</mime-mapping>
|
||||
<!-- End jBPM Designer -->
|
||||
|
||||
<!-- security settings -->
|
||||
<security-constraint>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>download</web-resource-name>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/archive</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/defaulteditor/upload/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/defaulteditor/download/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/dtablexls/file</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/scorecardxls/file</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<role-name>admin</role-name>
|
||||
<role-name>analyst</role-name>
|
||||
<role-name>developer</role-name>
|
||||
</auth-constraint>
|
||||
</security-constraint>
|
||||
|
||||
<security-constraint>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>console</web-resource-name>
|
||||
<url-pattern>/kie-wb.jsp</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/*</url-pattern>
|
||||
<url-pattern>*.erraiBus</url-pattern>
|
||||
<url-pattern>/resourceList</url-pattern>
|
||||
<url-pattern>/editor</url-pattern>
|
||||
<url-pattern>/editor/*</url-pattern>
|
||||
<url-pattern>/menuconnector/*</url-pattern>
|
||||
<url-pattern>/menu/*</url-pattern>
|
||||
<url-pattern>/uuidRepository</url-pattern>
|
||||
<url-pattern>/transformer</url-pattern>
|
||||
<url-pattern>/assetservice</url-pattern>
|
||||
<url-pattern>/filestore</url-pattern>
|
||||
<url-pattern>/dictionary</url-pattern>
|
||||
<url-pattern>/themes</url-pattern>
|
||||
<url-pattern>/customeditors</url-pattern>
|
||||
<url-pattern>/simulation</url-pattern>
|
||||
<url-pattern>/formwidget</url-pattern>
|
||||
<url-pattern>/calledelement</url-pattern>
|
||||
<url-pattern>/stencilpatterns</url-pattern>
|
||||
<url-pattern>/jbpmservicerepo</url-pattern>
|
||||
<url-pattern>/processdiff</url-pattern>
|
||||
<url-pattern>/taskforms</url-pattern>
|
||||
<url-pattern>/taskformseditor</url-pattern>
|
||||
<url-pattern>/processinfo</url-pattern>
|
||||
<url-pattern>/syntaxcheck</url-pattern>
|
||||
<url-pattern>/plugins</url-pattern>
|
||||
<url-pattern>/plugin</url-pattern>
|
||||
<url-pattern>/plugin/*</url-pattern>
|
||||
<url-pattern>/stencilset/*</url-pattern>
|
||||
<url-pattern>/plugins/*</url-pattern>
|
||||
<url-pattern>/verifier/*</url-pattern>
|
||||
<url-pattern>/docs/*</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<role-name>admin</role-name>
|
||||
<role-name>analyst</role-name>
|
||||
<role-name>developer</role-name>
|
||||
<role-name>user</role-name>
|
||||
<role-name>manager</role-name>
|
||||
<role-name>process-admin</role-name>
|
||||
</auth-constraint>
|
||||
</security-constraint>
|
||||
|
||||
<!-- public resources -->
|
||||
<security-constraint>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>public</web-resource-name>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/ace/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/bootstrap-daterangepicker/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/bootstrap-select/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/css/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/deferredjs/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/fonts/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/img/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/images/*</url-pattern>
|
||||
<url-pattern>/org.kie.bc.KIEWebapp/zeroclipboard/*</url-pattern>
|
||||
<url-pattern>/rest/ready</url-pattern>
|
||||
<url-pattern>/rest/healthy</url-pattern>
|
||||
<url-pattern>/maven2/*</url-pattern>
|
||||
</web-resource-collection>
|
||||
</security-constraint>
|
||||
|
||||
<security-constraint>
|
||||
<web-resource-collection>
|
||||
<web-resource-name>remote-services</web-resource-name>
|
||||
<url-pattern>/rest/*</url-pattern>
|
||||
<url-pattern>/ws/*</url-pattern>
|
||||
</web-resource-collection>
|
||||
<auth-constraint>
|
||||
<role-name>rest-all</role-name>
|
||||
</auth-constraint>
|
||||
</security-constraint>
|
||||
|
||||
|
||||
|
||||
|
||||
<login-config>
|
||||
<auth-method>BASIC?silent=true,FORM</auth-method>
|
||||
<form-login-config>
|
||||
<form-login-page>/login.jsp</form-login-page>
|
||||
<form-error-page>/login.jsp?message=Login failed: Invalid UserName or Password</form-error-page>
|
||||
</form-login-config>
|
||||
</login-config>
|
||||
|
||||
<security-role>
|
||||
<description>Administrator - Administrates the BPMS system. Has full access
|
||||
rights to make any changes necessary. Also has the
|
||||
ability to add and remove users from the system.
|
||||
</description>
|
||||
<role-name>admin</role-name>
|
||||
</security-role>
|
||||
|
||||
<security-role>
|
||||
<description>Analyst - Responsible for creating and designing processes
|
||||
into the system. Creates process flows and handles
|
||||
process change requests. Needs to test processes that
|
||||
they create. Also creates forms and dashboards.
|
||||
</description>
|
||||
<role-name>analyst</role-name>
|
||||
</security-role>
|
||||
|
||||
<security-role>
|
||||
<description>Developer - Implements code required for process to work. Mostly uses
|
||||
the JBDS connection to view processes, but may use the
|
||||
web tool occasionally.
|
||||
</description>
|
||||
<role-name>developer</role-name>
|
||||
</security-role>
|
||||
|
||||
<security-role>
|
||||
<description>Business user - Daily user of the system to take actions on business tasks
|
||||
that are required for the processes to continue forward. Works
|
||||
primarily with the task lists.
|
||||
</description>
|
||||
<role-name>user</role-name>
|
||||
</security-role>
|
||||
|
||||
<security-role>
|
||||
<description>Manager/Viewer-only User - Viewer of the system that is interested in statistics
|
||||
around the business processes and their performance, business indicators, and other
|
||||
reporting of the system and people who interact with the system.
|
||||
</description>
|
||||
<role-name>manager</role-name>
|
||||
</security-role>
|
||||
|
||||
<security-role>
|
||||
<description>Process Administrator - can access and manage the process related activities like process
|
||||
definitions and process instances.
|
||||
</description>
|
||||
<role-name>process-admin</role-name>
|
||||
</security-role>
|
||||
|
||||
<error-page>
|
||||
<error-code>403</error-code>
|
||||
<location>/not_authorized.jsp</location>
|
||||
</error-page>
|
||||
|
||||
</web-app>
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue