[rules-users] Using Advanced Enumeration Concepts in guvnor

Stephen Masters stephen.masters at me.com
Wed Jan 8 10:58:51 EST 2014


btw - I keep properties files in a “conf” folder at the root of my tomcat instance.

my-tomcat-instance
	conf
		my-props.properties
	webapps
		guvnor

This way, my properties stay the same between deployments of updated code.


On 8 Jan 2014, at 15:52, Stephen Masters <stephen.masters at me.com> wrote:

> The Maven Shade plugin is relatively simple to use. Below is the XML in my pom.xml. Basically, it finds all of the jars which are required by your project and bundles all of the classes (and other resources) from them into a single big fat jar. This means that keeping track of what you have added to the Guvnor class path is much simpler.
> 
> You then put the shaded jar in the WEB-INF/lib folder inside the exploded Guvnor WAR and restart Guvnor.
> 
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-shade-plugin</artifactId>
>        <version>1.4</version>
>        <executions>
>          <execution>
>            <phase>package</phase>
>            <goals>
>              <goal>shade</goal>
>            </goals>
>            <configuration>
>              <transformers>
>                <transformer
>                  implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>                  <resource>META-INF/spring.handlers</resource>
>                </transformer>
>                <transformer
>                  implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
>                  <resource>META-INF/spring.schemas</resource>
>                </transformer>
>              </transformers>
>              <filters>
>                <filter>
>                  <artifact>*:*</artifact>
>                  <excludes>
>                    <exclude>META-INF/*.SF</exclude>
>                    <exclude>META-INF/*.DSA</exclude>
>                    <exclude>META-INF/*.RSA</exclude>
>                  </excludes>
>                </filter>
>              </filters>
>            </configuration>
>          </execution>
>        </executions>
>      </plugin>
> 
> 
> 
> On 8 Jan 2014, at 14:28, abhinay_agarwal <abhinay_agarwal at infosys.com> wrote:
> 
>> Hi Stephen,
>> 
>> One quick question, what is the best approach to add these java classes into
>> guvnor. I am able to work it out by adding the class files into the
>> WEB-INF/classes folder. Is there any other easy way out, because I will be
>> adding a lot of files. The properties file, if used, should also be placed
>> inside the war ? It that practically correct ?
>> 
>> N.B. I have practically no idea how Maven Shade plugin works.
>> 
>> Regards,
>> Abhinay
>> 
>> 
>> 
>> --
>> View this message in context: http://drools.46999.n3.nabble.com/Using-Advanced-Enumeration-Concepts-in-guvnor-tp4027563p4027601.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
> 




More information about the rules-users mailing list