Skip to content

Instantly share code, notes, and snippets.

View bmatthews68's full-sized avatar
🎯
Focusing

Brian Matthews bmatthews68

🎯
Focusing
View GitHub Profile
@bmatthews68
bmatthews68 / validation-rules.drl
Created November 15, 2011 11:59
Drools Example
package com.leaseplanis.iq.model.bo.options.validation
import com.leaseplanis.iq.model.bo.options.OptionDetail;
import com.leaseplanis.iq.model.bo.options.validation.translatableProviders.DuplicateOptionGroups;
import com.leaseplanis.iq.model.bo.options.validation.translatableProviders.DuplicateOptions;
import com.leaseplanis.iq.model.bo.options.validation.translatableProviders.Exclusion;
import com.leaseplanis.iq.model.bo.options.validation.translatableProviders.Inclusion;
import com.leaseplanis.iq.model.bo.options.validation.translatableProviders.InvalidSupplement;
# Find supplements whose corresponding pack has not been selected
@bmatthews68
bmatthews68 / ra.xml
Created December 22, 2011 17:41
Customized ra.xml used to deploy Jackrabbit on WebSphere 6.1
<?xml version="1.0" encoding="UTF-8"?>
<connector
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/connector_1_5.xsd"
version="1.5" >
<display-name> Apache Jackrabbit JCR Adapter</display-name>
<vendor-name> The Apache Software Foundation</vendor-name>
@bmatthews68
bmatthews68 / pom.xml
Created December 22, 2011 17:56
pom.xml for project to build customized Jackrabbit JCA for WebSphere 6.1
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.jackrabbit</groupId>
<artifactId>jackrabbit-jca-webpshere</artifactId>
@bmatthews68
bmatthews68 / ITestMailServer.java
Created February 15, 2012 22:09
emailserver-maven-plugin dependency declaration
package com.btmatthews.maven.plugins.emailserver.test;
import com.icegreen.greenmail.util.GreenMailUtil;
import com.icegreen.greenmail.util.ServerSetup;
public class ITestMailServer
{
@Test
public void testSendMail()
{
@bmatthews68
bmatthews68 / 1.0.2.xml
Created June 28, 2012 00:30
Maven Coordinates for Selenium JUnit 4 Runner
<dependency>
<groupId>com.btmatthews.selenium.junit4</groupId>
<artifactId>selenium-junit4-runner</artifactId>
<version>1.0.2</version>
</dependency>
@bmatthews68
bmatthews68 / 1.0.0.xml
Created July 27, 2012 03:22
CRX Maven Plugin
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>crx-maven-plugin</artifactId>
<version>1.0.0</version>
</plugin
@bmatthews68
bmatthews68 / pom.xml
Created August 10, 2012 18:09
Maven Coordinates for CRX Maven Plugin 1.1.0
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>crx-maven-plugin</artifactId>
<version>1.1.0</version>
</plugin>
@bmatthews68
bmatthews68 / pom.xml
Created September 18, 2012 20:43
Maven Coordinates for CRX Maven Plugin 1.1.1
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>crx-maven-plugin</artifactId>
<version>1.1.1</version>
</plugin>
@bmatthews68
bmatthews68 / pom.xml
Created September 19, 2012 08:34
Maven Coordinates for CRX Maven Plugin 1.1.1
<plugin>
<groupId>com.btmatthews.maven.plugins</groupId>
<artifactId>crx-maven-plugin</artifactId>
<version>1.1.1</version>
</plugin>
@bmatthews68
bmatthews68 / archiva-ds.xml
Created April 15, 2013 21:12
Configuration for Archiva on JBoss
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/archiva</jndi-name>
<connection-url>jdbc:mysql://localhost/archiva/connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>archiva</user-name>
<password><!-- Password --></password>
</local-tx-datasource>
</datasources>