提交 867143a2 编写于 作者: J Joram Barrez

Changes to activiti rest such it can produce an executable war

上级 128280fd
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<relativePath>../..</relativePath> <relativePath>../..</relativePath>
<version>5.15.1-SNAPSHOT</version> <version>5.15.1-SNAPSHOT</version>
</parent> </parent>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
...@@ -103,6 +103,34 @@ ...@@ -103,6 +103,34 @@
</pluginManagement> </pluginManagement>
</build> </build>
<profiles>
<profile>
<id>buildExecutableWar</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<path>/</path>
<protocol>org.apache.coyote.http11.Http11NioProtocol</protocol>
</configuration>
<executions>
<execution>
<id>tomcat-run</id>
<goals>
<goal>exec-war-only</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.activiti</groupId> <groupId>org.activiti</groupId>
......
...@@ -14,13 +14,17 @@ http://www.springframework.org/schema/tx http://www.springframework.org/schema/t ...@@ -14,13 +14,17 @@ http://www.springframework.org/schema/tx http://www.springframework.org/schema/t
<property name="createDemoModels" value="true" /> <property name="createDemoModels" value="true" />
</bean> </bean>
<bean id="dbProperties" <bean id="dbProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations">
<property name="location" value="classpath:db.properties" /> <list>
<!-- Allow other PropertyPlaceholderConfigurer to run as well --> <value>classpath:db.properties</value>
<value>file:activiti-rest.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" /> <property name="ignoreUnresolvablePlaceholders" value="true" />
<property name="ignoreResourceNotFound" value="true" />
</bean> </bean>
<bean id="dataSource" <bean id="dataSource"
class="org.springframework.jdbc.datasource.SimpleDriverDataSource"> class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
<property name="driverClass" value="${jdbc.driver}" /> <property name="driverClass" value="${jdbc.driver}" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册