提交 c31d9142 编写于 作者: J Joram Barrez

Basic skeleton (scripts and maven module) for ui to exercise refreshed rest API

上级 0899b577
......@@ -13,11 +13,9 @@
package org.activiti.engine.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import org.activiti.engine.ActivitiException;
import org.activiti.engine.ActivitiIllegalArgumentException;
import org.activiti.engine.identity.Group;
import org.activiti.engine.impl.context.Context;
......
<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>
<name>Activiti - Rest</name>
<artifactId>activiti-webapp-angular</artifactId>
<packaging>war</packaging>
<parent>
<groupId>org.activiti</groupId>
<artifactId>activiti-root</artifactId>
<relativePath>../..</relativePath>
<version>5.12.1</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<url>http://localhost:8080/manager/text</url>
<username>admin</username>
<password>admin</password>
<port>8080</port>
</configuration>
</plugin>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
org.zeroturnaround
</groupId>
<artifactId>
jrebel-maven-plugin
</artifactId>
<versionRange>
[1.0.7,)
</versionRange>
<goals>
<goal>generate</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Activiti UI</display-name>
</web-app>
\ No newline at end of file
......@@ -88,6 +88,17 @@
</lifecycleMappingMetadata>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<url>http://localhost:8080/manager/text</url>
<username>admin</username>
<password>admin</password>
<port>8080</port>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
......
......@@ -705,6 +705,7 @@
<module>modules/activiti-webapp-explorer2</module>
<module>modules/activiti-rest</module>
<module>modules/activiti-webapp-rest2</module>
<module>modules/activiti-webapp-angular</module>
<module>modules/activiti-spring</module>
<module>modules/activiti-cxf</module>
<module>modules/activiti-mule</module>
......@@ -796,6 +797,7 @@
<module>modules/activiti-rest</module>
<module>modules/activiti-webapp-rest2</module>
<module>modules/activiti-webapp-explorer2</module>
<module>modules/activiti-webapp-angular</module>
<module>modules/activiti-cxf</module>
<module>modules/activiti-osgi</module>
<module>modules/activiti-camel</module>
......@@ -852,7 +854,7 @@
</build>
</profile>
<profile>
<!-- Profile used by the start-explorer.sh script to build the Explorer webapp and all its dependencies -->
<!-- Profile used by the start-rest.sh script to build the Explorer webapp and all its dependencies -->
<id>buildRestappDependencies</id>
<modules>
<module>modules/activiti-bpmn-model</module>
......
#!/bin/bash
ORIGINAL_FOLDER=$(pwd)
export MAVEN_OPTS="-Xms521M -Xmx1024M -noverify"
cd ../modules/activiti-webapp-angular
mvn tomcat7:undeploy
mvn clean package tomcat7:deploy
#!/bin/bash
ORIGINAL_FOLDER=$(pwd)
export MAVEN_OPTS="-Xms521M -Xmx1024M -noverify"
cd ..
mvn -T 1C -PbuildRestappDependencies clean install
STATUS=$?
if [ $STATUS -eq 0 ]
then
cd modules/activiti-webapp-rest2
echo "Undeploying any previously deployed activiti REST web application"
mvn tomcat7:undeploy
echo "Deploying latest version of activiti REST web application"
mvn clean package tomcat7:deploy
else
echo "Build failure in dependent project. Cannot boot Activiti Rest."
fi
\ No newline at end of file
#!/bin/bash
if [[ -z "$TOMCAT_HOME" ]]
then
echo ""
echo "Cannot boot Activiti REST web application : TOMCAT_HOME is not set"
echo ""
else
echo ""
echo "TOMCAT_HOME = $TOMCAT_HOME"
echo ""
ORIGINAL_FOLDER=$(pwd)
export CATALINA_OPTS="-Xms521M -Xmx1024M -noverify -javaagent:/Applications/ZeroTurnaround/JRebel/jrebel.jar -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
cd $TOMCAT_HOME
rm -rf conf/tomcat-users.xml
cp $ORIGINAL_FOLDER/tomcat-users.xml conf/
cd bin
chmod +x *.sh
./catalina.sh run
fi
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<role rolename="manager-script" />
<user username="admin" password="admin" roles="admin,manager,manager-script"/>
</tomcat-users>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册