[jboss-svn-commits] JBL Code SVN: r13869 - in labs/jbossrules/trunk: drools-compiler/src/main/java/org/drools/brms/server/rules and 7 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jul 30 15:12:38 EDT 2007
Author: tirelli
Date: 2007-07-30 15:12:37 -0400 (Mon, 30 Jul 2007)
New Revision: 13869
Modified:
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/brms/server/rules/SuggestionCompletionLoader.java
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/ImportError.java
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilder.java
labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/rule/builder/dialect/java/RuleBuilderTest.java
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/ClassTypeResolver.java
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/TypeResolver.java
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Package.java
labs/jbossrules/trunk/drools-core/src/test/java/org/codehaus/jfdi/interpreter/ClassTypeResolverTest.java
labs/jbossrules/trunk/drools-jbrms/src/test/resources/RepoBinPackage.pkg
labs/jbossrules/trunk/pom.xml
Log:
JBRULES-1013: making imports a Set instead of List
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/brms/server/rules/SuggestionCompletionLoader.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/brms/server/rules/SuggestionCompletionLoader.java 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/brms/server/rules/SuggestionCompletionLoader.java 2007-07-30 19:12:37 UTC (rev 13869)
@@ -4,6 +4,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.jar.JarEntry;
@@ -70,7 +71,7 @@
}
}
this.loader = new MapBackedClassLoader( classLoader );
- this.resolver = new ClassTypeResolver(new ArrayList(), this.loader);
+ this.resolver = new ClassTypeResolver(new HashSet(), this.loader);
}
/**
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/ImportError.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/ImportError.java 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/ImportError.java 2007-07-30 19:12:37 UTC (rev 13869)
@@ -30,5 +30,9 @@
public String getMessage() {
return this.importName;
}
+
+ public String toString() {
+ return this.getMessage();
+ }
}
\ No newline at end of file
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilder.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilder.java 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/compiler/PackageBuilder.java 2007-07-30 19:12:37 UTC (rev 13869)
@@ -133,7 +133,7 @@
// make an automatic import for the current package
this.typeResolver.addImport( this.pkg.getName() + ".*" );
} else {
- this.typeResolver = new ClassTypeResolver( new ArrayList(),
+ this.typeResolver = new ClassTypeResolver( new HashSet(),
this.configuration.getClassLoader() );
}
this.configuration.getDialectRegistry().initAll( this );
Modified: labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/rule/builder/dialect/java/RuleBuilderTest.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/rule/builder/dialect/java/RuleBuilderTest.java 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/rule/builder/dialect/java/RuleBuilderTest.java 2007-07-30 19:12:37 UTC (rev 13869)
@@ -20,6 +20,7 @@
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Calendar;
+import java.util.HashSet;
import java.util.List;
import junit.framework.Assert;
@@ -79,7 +80,7 @@
ruleDescr.setClassName( ruleClassName );
ruleDescr.addAttribute( new AttributeDescr("dialect", "java") );
- final TypeResolver typeResolver = new ClassTypeResolver( new ArrayList(),
+ final TypeResolver typeResolver = new ClassTypeResolver( new HashSet(),
this.getClass().getClassLoader() );
// make an automatic import for the current package
typeResolver.addImport( pkgDescr.getName() + ".*" );
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/ClassTypeResolver.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/ClassTypeResolver.java 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/ClassTypeResolver.java 2007-07-30 19:12:37 UTC (rev 13869)
@@ -30,7 +30,7 @@
public class ClassTypeResolver
implements
TypeResolver {
- private List imports = Collections.EMPTY_LIST;
+ private Set imports = Collections.EMPTY_SET;
private ClassLoader classLoader;
@@ -56,8 +56,8 @@
"C" );
}
- public ClassTypeResolver(final List imports,
- ClassLoader classLoader) {
+ public ClassTypeResolver(final Set imports,
+ final ClassLoader classLoader) {
this.imports = imports;
if ( classLoader == null ) {
@@ -79,7 +79,7 @@
/* (non-Javadoc)
* @see org.drools.semantics.java.TypeResolver#getImports()
*/
- public List getImports() {
+ public Set getImports() {
return this.imports;
}
@@ -92,12 +92,10 @@
* @see org.drools.semantics.java.TypeResolver#addImport(java.lang.String)
*/
public void addImport(final String importEntry) {
- if ( this.imports == Collections.EMPTY_LIST ) {
- this.imports = new ArrayList();
+ if ( this.imports == Collections.EMPTY_SET ) {
+ this.imports = new HashSet();
}
- if ( !this.imports.contains( importEntry ) ) {
- this.imports.add( importEntry );
- }
+ this.imports.add( importEntry );
}
public Class lookupFromCache(final String className) {
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/TypeResolver.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/TypeResolver.java 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/base/TypeResolver.java 2007-07-30 19:12:37 UTC (rev 13869)
@@ -1,9 +1,9 @@
package org.drools.base;
-import java.util.List;
+import java.util.Set;
public interface TypeResolver {
- public List getImports();
+ public Set getImports();
public void addImport(String importEntry);
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/AbstractRuleBase.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/AbstractRuleBase.java 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/common/AbstractRuleBase.java 2007-07-30 19:12:37 UTC (rev 13869)
@@ -368,7 +368,7 @@
private void mergePackage(final Package pkg,
final Package newPkg) throws PackageIntegrationException {
final Map globals = pkg.getGlobals();
- final List imports = pkg.getImports();
+ final Set imports = pkg.getImports();
// First update the binary files
// @todo: this probably has issues if you add classes in the incorrect order - functions, rules, invokers.
Modified: labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Package.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Package.java 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/drools-core/src/main/java/org/drools/rule/Package.java 2007-07-30 19:12:37 UTC (rev 13869)
@@ -26,10 +26,12 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import org.drools.common.DroolsObjectInputStream;
import org.drools.facttemplates.FactTemplate;
@@ -67,11 +69,11 @@
/** Set of all rule-names in this <code>Package</code>. */
private Map rules;
- private List imports;
+ private Set imports;
private List functions;
- private List staticImports;
+ private Set staticImports;
private Map globals;
@@ -119,8 +121,8 @@
public Package(final String name,
ClassLoader parentClassLoader) {
this.name = name;
- this.imports = new ArrayList( 1 );
- this.staticImports = Collections.EMPTY_LIST;
+ this.imports = new HashSet( 2 );
+ this.staticImports = Collections.EMPTY_SET;
this.rules = new LinkedHashMap();
this.ruleFlows = Collections.EMPTY_MAP;
this.globals = Collections.EMPTY_MAP;
@@ -169,8 +171,8 @@
// PackageCompilationData must be restored before Rules as it has the ClassLoader needed to resolve the generated code references in Rules
this.packageCompilationData = (PackageCompilationData) stream.readObject();
this.name = (String) stream.readObject();
- this.imports = (List) stream.readObject();
- this.staticImports = (List) stream.readObject();
+ this.imports = (Set) stream.readObject();
+ this.staticImports = (Set) stream.readObject();
this.globals = (Map) stream.readObject();
this.ruleFlows = (Map) stream.readObject();
@@ -205,13 +207,13 @@
this.imports.remove( importEntry );
}
- public List getImports() {
+ public Set getImports() {
return this.imports;
}
public void addStaticImport(final String functionImport) {
- if ( this.staticImports == Collections.EMPTY_LIST ) {
- this.staticImports = new ArrayList( 1 );
+ if ( this.staticImports == Collections.EMPTY_SET ) {
+ this.staticImports = new HashSet( 2 );
}
this.staticImports.add( functionImport );
}
@@ -232,7 +234,7 @@
this.staticImports.remove( functionImport );
}
- public List getStaticImports() {
+ public Set getStaticImports() {
return this.staticImports;
}
Modified: labs/jbossrules/trunk/drools-core/src/test/java/org/codehaus/jfdi/interpreter/ClassTypeResolverTest.java
===================================================================
--- labs/jbossrules/trunk/drools-core/src/test/java/org/codehaus/jfdi/interpreter/ClassTypeResolverTest.java 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/drools-core/src/test/java/org/codehaus/jfdi/interpreter/ClassTypeResolverTest.java 2007-07-30 19:12:37 UTC (rev 13869)
@@ -4,6 +4,7 @@
package org.codehaus.jfdi.interpreter;
import java.util.ArrayList;
+import java.util.HashSet;
import junit.framework.TestCase;
@@ -17,7 +18,7 @@
public class ClassTypeResolverTest extends TestCase {
public void testResolvePrimtiveTypes() throws Exception {
- final ClassTypeResolver resolver = new ClassTypeResolver(new ArrayList(), Thread.currentThread().getContextClassLoader());
+ final ClassTypeResolver resolver = new ClassTypeResolver(new HashSet(), Thread.currentThread().getContextClassLoader());
assertEquals( boolean.class,
resolver.resolveType( "boolean" ) );
assertEquals( double.class,
@@ -37,7 +38,7 @@
}
public void testResolveArrayOfPrimitiveTypes() throws Exception {
- final ClassTypeResolver resolver = new ClassTypeResolver(new ArrayList(), Thread.currentThread().getContextClassLoader());
+ final ClassTypeResolver resolver = new ClassTypeResolver(new HashSet(), Thread.currentThread().getContextClassLoader());
assertEquals( boolean[].class,
resolver.resolveType( "boolean[]" ) );
assertEquals( double[].class,
@@ -57,7 +58,7 @@
}
public void testResolveMultidimensionnalArrayOfPrimitiveTypes() throws Exception {
- final ClassTypeResolver resolver = new ClassTypeResolver(new ArrayList(), Thread.currentThread().getContextClassLoader());
+ final ClassTypeResolver resolver = new ClassTypeResolver(new HashSet(), Thread.currentThread().getContextClassLoader());
assertEquals( int[][].class,
resolver.resolveType( "int[][]" ) );
assertEquals( int[][][].class,
@@ -67,7 +68,7 @@
}
public void testResolveObjectNotFromImport() throws Exception {
- final ClassTypeResolver resolver = new ClassTypeResolver(new ArrayList(), Thread.currentThread().getContextClassLoader());
+ final ClassTypeResolver resolver = new ClassTypeResolver(new HashSet(), Thread.currentThread().getContextClassLoader());
assertEquals( String.class,
resolver.resolveType( "String" ) );
assertEquals( String.class,
@@ -84,7 +85,7 @@
}
public void testResolveObjectFromImport() throws Exception {
- final ClassTypeResolver resolver = new ClassTypeResolver( new ArrayList(), Thread.currentThread().getContextClassLoader() );
+ final ClassTypeResolver resolver = new ClassTypeResolver( new HashSet(), Thread.currentThread().getContextClassLoader() );
resolver.addImport( "org.drools.Cheese" );
assertEquals( String.class,
resolver.resolveType( "String" ) );
@@ -97,7 +98,7 @@
}
public void testResolveArrayOfObjectsNotFromImport() throws Exception {
- final ClassTypeResolver resolver = new ClassTypeResolver(new ArrayList(), Thread.currentThread().getContextClassLoader());
+ final ClassTypeResolver resolver = new ClassTypeResolver(new HashSet(), Thread.currentThread().getContextClassLoader());
assertEquals( String[].class,
resolver.resolveType( "String[]" ) );
assertEquals( String[].class,
@@ -114,7 +115,7 @@
}
public void testResolveArrayOfObjectsFromImport() throws Exception {
- final ClassTypeResolver resolver = new ClassTypeResolver( new ArrayList(), Thread.currentThread().getContextClassLoader() );
+ final ClassTypeResolver resolver = new ClassTypeResolver( new HashSet(), Thread.currentThread().getContextClassLoader() );
resolver.addImport( "org.drools.Cheese" );
assertEquals( String[].class,
resolver.resolveType( "String[]" ) );
@@ -127,7 +128,7 @@
}
public void testResolveMultidimensionnalArrayOfObjectsNotFromImport() throws Exception {
- final ClassTypeResolver resolver = new ClassTypeResolver(new ArrayList(), Thread.currentThread().getContextClassLoader());
+ final ClassTypeResolver resolver = new ClassTypeResolver(new HashSet(), Thread.currentThread().getContextClassLoader());
assertEquals( String[][].class,
resolver.resolveType( "String[][]" ) );
assertEquals( String[][].class,
@@ -144,7 +145,7 @@
}
public void testResolveMultidimensionnalArrayOfObjectsFromImport() throws Exception {
- final ClassTypeResolver resolver = new ClassTypeResolver( new ArrayList(), Thread.currentThread().getContextClassLoader() );
+ final ClassTypeResolver resolver = new ClassTypeResolver( new HashSet(), Thread.currentThread().getContextClassLoader() );
resolver.addImport( "org.drools.Cheese" );
assertEquals( String[][].class,
resolver.resolveType( "String[][]" ) );
Modified: labs/jbossrules/trunk/drools-jbrms/src/test/resources/RepoBinPackage.pkg
===================================================================
(Binary files differ)
Modified: labs/jbossrules/trunk/pom.xml
===================================================================
--- labs/jbossrules/trunk/pom.xml 2007-07-30 18:47:36 UTC (rev 13868)
+++ labs/jbossrules/trunk/pom.xml 2007-07-30 19:12:37 UTC (rev 13869)
@@ -1,715 +1,715 @@
-<?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/maven-v4_0_0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>org.drools</groupId>
- <artifactId>drools</artifactId>
- <packaging>pom</packaging>
- <name>Drools</name>
- <version>4.0.0.SNAPSHOT</version>
- <description>A rule production system</description>
- <url>http://www.jboss.com/products/rules</url>
-
- <issueManagement>
- <system>jira</system>
- <url>http://jira.jboss.com/jira/browse/JBRULES</url>
- </issueManagement>
- <ciManagement>
- <system>continuum</system>
- <url>http://ci.codehaus.org:8001/continuum/servlet/continuum/target/Summary.vm/fid/continuumProject</url>
- <notifiers>
- <notifier>
- <type>mail</type>
- <configuration>
- <address>dev at drools.codehaus.org</address>
- </configuration>
- </notifier>
-
- <notifier>
- <type>irc</type>
- <configuration>
- <host>irc.codehaus.org</host>
- <port>6667</port>
- <channel>#drools</channel>
- </configuration>
- </notifier>
- </notifiers>
- </ciManagement>
- <inceptionYear>2001</inceptionYear>
-
- <mailingLists>
- <mailingList>
- <name>announce</name>
- <subscribe>announce-subscribe at drools.codehaus.org</subscribe>
- <unsubscribe>announce-unsubscribe at drools.codehaus.org</unsubscribe>
- <archive>http://archive.drools.codehaus.org/announce/</archive>
- </mailingList>
- <mailingList>
- <name>user</name>
- <subscribe>user-subscribe at drools.codehaus.org</subscribe>
- <unsubscribe>user-unsubscribe at drools.codehaus.org</unsubscribe>
- <archive>http://archive.drools.codehaus.org/user/</archive>
- </mailingList>
- <mailingList>
- <name>dev</name>
- <subscribe>dev-subscribe at drools.codehaus.org</subscribe>
- <unsubscribe>dev-unsubscribe at drools.codehaus.org</unsubscribe>
- <archive>http://archive.drools.codehaus.org/dev/</archive>
- </mailingList>
- <mailingList>
- <name>drools cvs messages</name>
- <subscribe>scm-subscribe at drools.codehaus.org</subscribe>
- <unsubscribe>scm-unsubscribe at drools.codehaus.org</unsubscribe>
- <archive>http://archive.drools.codehaus.org/scm/</archive>
- </mailingList>
- </mailingLists>
-
- <developers>
- <developer>
- <name>Mark Proctor</name>
- <id>mark</id>
- <email>mark.proctor at jboss.com</email>
- <organization>JBoss Inc.</organization>
- <roles>
- <role>Project Lead</role>
- </roles>
- <timezone>0</timezone>
- </developer>
-
- <developer>
- <name>Michael Neale</name>
- <id>mic</id>
- <email>michael.neale at gmail.com</email>
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>+10</timezone>
- <organization>JBoss Inc.</organization>
- </developer>
-
- <developer>
- <name>Kris Verlaenen</name>
- <id>kris</id>
- <email>kris.verlaenen at gmail.com</email>
- <organization>JBoss Inc.</organization>
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>+1</timezone>
- </developer>
-
- <developer>
- <name>Bob McWhirter</name>
- <id>bob</id>
- <email>bob at werken.com</email>
- <organization>The Werken Company</organization>
- <roles>
- <role>Founder</role>
- </roles>
- <timezone>-5</timezone>
- </developer>
-
- <developer>
- <name>Edson Tirelli</name>
- <id>tirelli</id>
- <email>tirelli at post.com</email>
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>-3</timezone>
- </developer>
-
- <developer>
- <name>Fernando Meyer</name>
- <id>fmeyer</id>
- <email>fmcamargo at gmail.com</email>
- <organization>Red Hat/JBoss </organization>
- <roles>
- <role>Developer</role>
- </roles>
- <timezone>-3</timezone>
- </developer>
- </developers>
-
- <contributors/>
-
-
- <licenses>
- <license>
- <name>The Apache Software License, Version 2.0</name>
- <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
- <distribution>repo</distribution>
- </license>
- </licenses>
- <scm>
- <connection>scm:svn:http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/</connection>
- <!-- TODO developerConnection-->
- <url>http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/</url>
- </scm>
- <organization>
- <name>JBoss Inc.</name>
- <url>http://www.jboss.org/</url>
- </organization>
-
- <repositories>
- <repository>
- <id>jboss</id>
- <url>http://repository.jboss.com/maven2/</url>
- </repository>
-
- <repository>
- <id>basedir</id>
- <url>file://${basedir}/m2_repo</url>
- </repository>
-
- <repository>
- <id>Maven Snapshots</id>
- <url>http://snapshots.maven.codehaus.org/maven2/</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
-
-
- <repository>
- <id>apache.org</id>
- <name>Maven Snapshots</name>
- <url>http://people.apache.org/repo/m2-snapshot-repository</url>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- <releases>
- <enabled>false</enabled>
- </releases>
- </repository>
- </repositories>
-
- <pluginRepositories>
- <pluginRepository>
- <id>basedir</id>
- <url>file://${basedir}/repository</url>
- </pluginRepository>
- </pluginRepositories>
-
- <profiles>
- <profile>
- <id>ydoc-doclet</id>
- <activation>
- <property><name>ydoc.home</name></property>
- </activation>
-
- <reporting>
- <plugins>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.3</version>
- <configuration>
- <aggregate>true</aggregate>
- <doclet>ydoc.doclets.YStandard</doclet>
- <docletPath>${ydoc.home}/lib/ydoc.jar${path.separator}${ydoc.home}/lib/class2svg.jar${path.separator}${ydoc.home}/resources</docletPath>
- <author>false</author>
- <bottom>true</bottom>
- <header>JBoss Rules</header>
- <minmemory>128m</minmemory>
- <maxmemory>512</maxmemory>
- <packagenames>org.drools.*</packagenames>
- <use>true</use>
- <version>true</version>
- <windowtitle>${project.name} ${project.version} API</windowtitle>
- <breakiterator>true</breakiterator>
- <excludePackageNames>org.drools.asm*,org.drools.objenesis.*,org.drools.commons.jci.*</excludePackageNames>
- <overview>drools-core/target/classes/overview.html</overview>
- <groups>
- <group title="Runtime Core API" packages="org.drools:org.drools.rule"/>
- <group title="Compiler Core API" packages="org.drools.compiler"/>
- <group title="Compiler Utilities" packages="org.drools.lang:org.drools.xml"/>
- <group title="Runtime Utilities" packages="org.drools.audit:org.drools.event:org.drools.visualize"/>
- <group title="Decision Tables" packages="org.drools.decisiontable"/>
- <group title="Internal" packages="org.drools*"/>
- </groups>
- <additionalparam>-umlautogen -tag y.precondition -tag y.postcondition -tag y.complexity -tag param -tag return -tag see -tag y.uml</additionalparam>
- </configuration>
- </plugin>
-
- </plugins>
- </reporting>
- </profile>
-
- <profile>
- <id>documentation</id>
- <activation>
- <property><name>documentation</name></property>
- </activation>
- <modules>
- <module>documentation</module>
- </modules>
- </profile>
- <profile>
- <id>build-eclipse</id>
- <activation>
- <property><name>eclipse</name></property>
- </activation>
- <modules>
- <module>drools-eclipse</module>
- </modules>
- </profile>
- </profiles>
-
-
- <build>
- <pluginManagement>
- <plugins>
- <!--
- Last time synchronized with the latest plugin releases:
- 2006-12-03
- See http://news.gmane.org/gmane.comp.apache.maven.announce
- -->
-
- <!-- Building -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-help-plugin</artifactId>
- <version>2.0.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.1.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.0.2</version>
- <configuration>
- <source>1.4</source>
- <target>1.4</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.3</version>
- <configuration>
- <includes>
- <include>**/*Test.java</include>
- </includes>
- <excludes>
- <exclude>**/*AbstractTest.java</exclude>
- </excludes>
- </configuration>
- </plugin>
-
- <!-- Packaging -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.1</version>
- <executions>
- <execution>
- <goals>
- <goal>test-jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.0.2</version>
- <executions>
- <execution>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.0</version>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.2-beta-1</version>
- <configuration>
- <descriptors>
- <descriptor>src/main/assembly/bin.xml</descriptor>
- <descriptor>src/main/assembly/src.xml</descriptor>
- <descriptor>src/main/assembly/brms.xml</descriptor>
- <descriptor>src/main/assembly/eclipse.xml</descriptor>
- <descriptor>src/main/assembly/examples.xml</descriptor>
- </descriptors>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-archetype-plugin</artifactId>
- <version>1.0-alpha-4</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <version>2.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>2.2.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>2.0-beta-4</version>
- <configuration>
- <tagBase>
- http://anonsvn.labs.jboss.com/labs/jbossrules/tags
- </tagBase>
- </configuration>
- </plugin>
-
- <!-- IDE -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-eclipse-plugin</artifactId>
- <version>2.3</version>
- <configuration>
- <!--<downloadSources>true</downloadSources>-->
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-idea-plugin</artifactId>
- <version>2.0</version>
- <configuration>
- <!--<downloadSources>true</downloadSources>-->
- <!--<downloadJavadocs>true</downloadJavadocs>-->
- <dependenciesAsLibraries>true</dependenciesAsLibraries>
- </configuration>
- </plugin>
-
- <!--Site -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>2.0-beta-5</version>
- </plugin>
-
- </plugins>
- </pluginManagement>
- <plugins/>
- </build>
-
- <reporting>
- <plugins>
- <!-- Note: It's not possible to configure reporting plugins in pluginManagement in m2.0.4 -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.0.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.3</version>
- <configuration>
- <aggregate>true</aggregate>
- <links>
- <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
- </links>
- <minmemory>128m</minmemory>
- <maxmemory>512</maxmemory>
- </configuration>
- </plugin>
-
- <!--
- TODO Changelog is unfinished:
- - has also a problem with the netbeans (cvs)lib dependency
- - is moving from mojo.codehaus.org to maven.apache.org
- -->
- <!--<plugin>-->
- <!--<groupId>org.apache.maven.plugins</groupId>-->
- <!--<artifactId>maven-changelog-plugin</artifactId>-->
- <!--<version>2.0-beta-1</version>-->
- <!--</plugin>-->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- <version>2.3</version>
- <reportSets>
- <reportSet>
- <reports>
- <report>report-only</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
- <!--<plugin>-->
- <!--<groupId>org.apache.maven.plugins</groupId>-->
- <!--<artifactId>maven-clover-plugin</artifactId>-->
- <!--<configuration/>-->
- <!--<executions>-->
- <!--<execution>-->
- <!--<phase>pre-site</phase>-->
- <!--<goals>-->
- <!--<goal>instrument</goal>-->
- <!--<goal>aggregate</goal>-->
- <!--</goals>-->
- <!--</execution>-->
- <!--</executions>-->
- <!--</plugin>-->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>taglist-maven-plugin</artifactId>
- <version>2.0</version>
- </plugin>
- <!--<plugin>-->
- <!--<groupId>org.codehaus.mojo</groupId>-->
- <!--<artifactId>findbugs-maven-plugin</artifactId>-->
- <!--<version>1.0-beta-1</version>-->
- <!--</plugin>-->
- <!--<plugin>-->
- <!--<groupId>org.apache.maven.plugins</groupId>-->
- <!--<artifactId>maven-pmd-plugin</artifactId>-->
- <!--<version>2.0</version>-->
- <!--</plugin>-->
- <!--<plugin>-->
- <!--<groupId>org.apache.maven.plugins</groupId>-->
- <!--<artifactId>maven-checkstyle-plugin</artifactId>-->
- <!--<version>2.1</version>-->
- <!--</plugin>-->
- <!--<plugin>-->
- <!--<groupId>org.codehaus.mojo</groupId>-->
- <!--<artifactId>jdepend-maven-plugin</artifactId>-->
- <!--<version>2.0-beta-1</version>-->
- <!--</plugin>-->
- <plugin>
- <!-- In 2.0-beta-1 an aggegate works after running "mvn site" twice -->
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>javancss-maven-plugin</artifactId>
- <version>2.0-beta-1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jxr-plugin</artifactId>
- <version>2.0</version>
- </plugin>
- </plugins>
- </reporting>
-
- <modules>
- <module>drools-core</module>
- <module>drools-compiler</module>
- <module>drools-jsr94</module>
- <module>drools-decisiontables</module>
- <!-- TODO enable these or create a profile in which they are enabled (to avoid making the build slow) -->
- <!--module>drools-server</module-->
- <module>drools-repository</module>
- <module>drools-jbrms</module>
- <!--module>drools-examples</module-->
- </modules>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <dependencyManagement>
- <dependencies>
- <!--
- Declare all dependency versions and default scopes here, but not optional.
- Each module should declare it's direct dependency and possibily overwrite scope/optional.
- -->
-
- <!-- Internal dependencies -->
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-core</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-core</artifactId>
- <type>test-jar</type>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-compiler</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-compiler</artifactId>
- <type>test-jar</type>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-jsr94</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-jsr94</artifactId>
- <type>test-jar</type>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-decisiontables</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-decisiontables</artifactId>
- <type>test-jar</type>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-documentation</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-server</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-server</artifactId>
- <type>test-jar</type>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-repository</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-repository</artifactId>
- <type>test-jar</type>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-jbrms</artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-jbrms</artifactId>
- <type>test-jar</type>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
-
- <!-- External dependencies -->
- <!-- drools-core -->
- <dependency>
- <groupId>xstream</groupId>
- <artifactId>xstream</artifactId>
- <version>1.1.3</version>
- </dependency>
- <dependency>
- <groupId>xpp3</groupId>
- <artifactId>xpp3</artifactId>
- <version>1.1.3.4.O</version>
- </dependency>
- <dependency>
- <groupId>org.mvel</groupId>
- <artifactId>mvel14</artifactId>
- <version>1.2rc1</version>
- </dependency>
-
- <!-- drools-compiler -->
- <dependency>
- <groupId>org.antlr</groupId>
- <artifactId>antlr-runtime</artifactId>
- <version>3.0</version>
- </dependency>
- <dependency>
- <groupId>org.eclipse.jdt</groupId>
- <artifactId>core</artifactId>
- <version>3.2.3.v_686_R32x</version>
- </dependency>
- <dependency>
- <groupId>janino</groupId>
- <artifactId>janino</artifactId>
- <version>2.5.7</version>
- </dependency>
- <dependency>
- <groupId>xerces</groupId>
- <artifactId>xercesImpl</artifactId>
- <version>2.4.0</version>
- </dependency>
- <dependency>
- <groupId>xml-apis</groupId>
- <artifactId>xml-apis</artifactId>
- <version>1.0.b2</version>
- </dependency>
-
- <!-- drools-jsr94 -->
- <dependency>
- <groupId>jsr94</groupId>
- <artifactId>jsr94</artifactId>
- <version>1.1</version>
- </dependency>
- <dependency>
- <groupId>jsr94</groupId>
- <artifactId>jsr94-tck</artifactId>
- <version>1.0.3</version>
- </dependency>
- <dependency>
- <groupId>jsr94</groupId>
- <artifactId>jsr94-sigtest</artifactId>
- <version>1.1</version>
- </dependency>
-
- <!-- drools-decisiontables -->
- <dependency>
- <groupId>jexcelapi</groupId>
- <artifactId>jxl</artifactId>
- <version>2.4.2</version>
- </dependency>
-
- <!-- drools-server -->
- <dependency>
- <groupId>jboss</groupId>
- <artifactId>jboss-remoting</artifactId>
- <version>1.4.1_final</version>
- </dependency>
-
- <!-- drools-repository -->
- <dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>jackrabbit-core</artifactId>
+<?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/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.drools</groupId>
+ <artifactId>drools</artifactId>
+ <packaging>pom</packaging>
+ <name>Drools</name>
+ <version>4.0.0.SNAPSHOT</version>
+ <description>A rule production system</description>
+ <url>http://www.jboss.com/products/rules</url>
+
+ <issueManagement>
+ <system>jira</system>
+ <url>http://jira.jboss.com/jira/browse/JBRULES</url>
+ </issueManagement>
+ <ciManagement>
+ <system>continuum</system>
+ <url>http://ci.codehaus.org:8001/continuum/servlet/continuum/target/Summary.vm/fid/continuumProject</url>
+ <notifiers>
+ <notifier>
+ <type>mail</type>
+ <configuration>
+ <address>dev at drools.codehaus.org</address>
+ </configuration>
+ </notifier>
+
+ <notifier>
+ <type>irc</type>
+ <configuration>
+ <host>irc.codehaus.org</host>
+ <port>6667</port>
+ <channel>#drools</channel>
+ </configuration>
+ </notifier>
+ </notifiers>
+ </ciManagement>
+ <inceptionYear>2001</inceptionYear>
+
+ <mailingLists>
+ <mailingList>
+ <name>announce</name>
+ <subscribe>announce-subscribe at drools.codehaus.org</subscribe>
+ <unsubscribe>announce-unsubscribe at drools.codehaus.org</unsubscribe>
+ <archive>http://archive.drools.codehaus.org/announce/</archive>
+ </mailingList>
+ <mailingList>
+ <name>user</name>
+ <subscribe>user-subscribe at drools.codehaus.org</subscribe>
+ <unsubscribe>user-unsubscribe at drools.codehaus.org</unsubscribe>
+ <archive>http://archive.drools.codehaus.org/user/</archive>
+ </mailingList>
+ <mailingList>
+ <name>dev</name>
+ <subscribe>dev-subscribe at drools.codehaus.org</subscribe>
+ <unsubscribe>dev-unsubscribe at drools.codehaus.org</unsubscribe>
+ <archive>http://archive.drools.codehaus.org/dev/</archive>
+ </mailingList>
+ <mailingList>
+ <name>drools cvs messages</name>
+ <subscribe>scm-subscribe at drools.codehaus.org</subscribe>
+ <unsubscribe>scm-unsubscribe at drools.codehaus.org</unsubscribe>
+ <archive>http://archive.drools.codehaus.org/scm/</archive>
+ </mailingList>
+ </mailingLists>
+
+ <developers>
+ <developer>
+ <name>Mark Proctor</name>
+ <id>mark</id>
+ <email>mark.proctor at jboss.com</email>
+ <organization>JBoss Inc.</organization>
+ <roles>
+ <role>Project Lead</role>
+ </roles>
+ <timezone>0</timezone>
+ </developer>
+
+ <developer>
+ <name>Michael Neale</name>
+ <id>mic</id>
+ <email>michael.neale at gmail.com</email>
+ <roles>
+ <role>Developer</role>
+ </roles>
+ <timezone>+10</timezone>
+ <organization>JBoss Inc.</organization>
+ </developer>
+
+ <developer>
+ <name>Kris Verlaenen</name>
+ <id>kris</id>
+ <email>kris.verlaenen at gmail.com</email>
+ <organization>JBoss Inc.</organization>
+ <roles>
+ <role>Developer</role>
+ </roles>
+ <timezone>+1</timezone>
+ </developer>
+
+ <developer>
+ <name>Bob McWhirter</name>
+ <id>bob</id>
+ <email>bob at werken.com</email>
+ <organization>The Werken Company</organization>
+ <roles>
+ <role>Founder</role>
+ </roles>
+ <timezone>-5</timezone>
+ </developer>
+
+ <developer>
+ <name>Edson Tirelli</name>
+ <id>tirelli</id>
+ <email>tirelli at post.com</email>
+ <roles>
+ <role>Developer</role>
+ </roles>
+ <timezone>-3</timezone>
+ </developer>
+
+ <developer>
+ <name>Fernando Meyer</name>
+ <id>fmeyer</id>
+ <email>fmcamargo at gmail.com</email>
+ <organization>Red Hat/JBoss </organization>
+ <roles>
+ <role>Developer</role>
+ </roles>
+ <timezone>-3</timezone>
+ </developer>
+ </developers>
+
+ <contributors/>
+
+
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <connection>scm:svn:http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/</connection>
+ <!-- TODO developerConnection-->
+ <url>http://anonsvn.labs.jboss.com/labs/jbossrules/trunk/</url>
+ </scm>
+ <organization>
+ <name>JBoss Inc.</name>
+ <url>http://www.jboss.org/</url>
+ </organization>
+
+ <repositories>
+ <repository>
+ <id>jboss</id>
+ <url>http://repository.jboss.com/maven2/</url>
+ </repository>
+
+ <repository>
+ <id>basedir</id>
+ <url>file://${basedir}/m2_repo</url>
+ </repository>
+
+ <repository>
+ <id>Maven Snapshots</id>
+ <url>http://snapshots.maven.codehaus.org/maven2/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+
+
+ <repository>
+ <id>apache.org</id>
+ <name>Maven Snapshots</name>
+ <url>http://people.apache.org/repo/m2-snapshot-repository</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>basedir</id>
+ <url>file://${basedir}/repository</url>
+ </pluginRepository>
+ </pluginRepositories>
+
+ <profiles>
+ <profile>
+ <id>ydoc-doclet</id>
+ <activation>
+ <property><name>ydoc.home</name></property>
+ </activation>
+
+ <reporting>
+ <plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <aggregate>true</aggregate>
+ <doclet>ydoc.doclets.YStandard</doclet>
+ <docletPath>${ydoc.home}/lib/ydoc.jar${path.separator}${ydoc.home}/lib/class2svg.jar${path.separator}${ydoc.home}/resources</docletPath>
+ <author>false</author>
+ <bottom>true</bottom>
+ <header>JBoss Rules</header>
+ <minmemory>128m</minmemory>
+ <maxmemory>512</maxmemory>
+ <packagenames>org.drools.*</packagenames>
+ <use>true</use>
+ <version>true</version>
+ <windowtitle>${project.name} ${project.version} API</windowtitle>
+ <breakiterator>true</breakiterator>
+ <excludePackageNames>org.drools.asm*,org.drools.objenesis.*,org.drools.commons.jci.*</excludePackageNames>
+ <overview>drools-core/target/classes/overview.html</overview>
+ <groups>
+ <group title="Runtime Core API" packages="org.drools:org.drools.rule"/>
+ <group title="Compiler Core API" packages="org.drools.compiler"/>
+ <group title="Compiler Utilities" packages="org.drools.lang:org.drools.xml"/>
+ <group title="Runtime Utilities" packages="org.drools.audit:org.drools.event:org.drools.visualize"/>
+ <group title="Decision Tables" packages="org.drools.decisiontable"/>
+ <group title="Internal" packages="org.drools*"/>
+ </groups>
+ <additionalparam>-umlautogen -tag y.precondition -tag y.postcondition -tag y.complexity -tag param -tag return -tag see -tag y.uml</additionalparam>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </reporting>
+ </profile>
+
+ <profile>
+ <id>documentation</id>
+ <activation>
+ <property><name>documentation</name></property>
+ </activation>
+ <modules>
+ <module>documentation</module>
+ </modules>
+ </profile>
+ <profile>
+ <id>build-eclipse</id>
+ <activation>
+ <property><name>eclipse</name></property>
+ </activation>
+ <modules>
+ <module>drools-eclipse</module>
+ </modules>
+ </profile>
+ </profiles>
+
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <!--
+ Last time synchronized with the latest plugin releases:
+ 2006-12-03
+ See http://news.gmane.org/gmane.comp.apache.maven.announce
+ -->
+
+ <!-- Building -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-help-plugin</artifactId>
+ <version>2.0.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <version>2.1.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.2</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.4</source>
+ <target>1.4</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <includes>
+ <include>**/*Test.java</include>
+ </includes>
+ <excludes>
+ <exclude>**/*AbstractTest.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+
+ <!-- Packaging -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>2.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>test-jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.0.2</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>2.2-beta-1</version>
+ <configuration>
+ <descriptors>
+ <descriptor>src/main/assembly/bin.xml</descriptor>
+ <descriptor>src/main/assembly/src.xml</descriptor>
+ <descriptor>src/main/assembly/brms.xml</descriptor>
+ <descriptor>src/main/assembly/eclipse.xml</descriptor>
+ <descriptor>src/main/assembly/examples.xml</descriptor>
+ </descriptors>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>1.0-alpha-4</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-install-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <version>2.2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.0-beta-4</version>
+ <configuration>
+ <tagBase>
+ http://anonsvn.labs.jboss.com/labs/jbossrules/tags
+ </tagBase>
+ </configuration>
+ </plugin>
+
+ <!-- IDE -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <!--<downloadSources>true</downloadSources>-->
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-idea-plugin</artifactId>
+ <version>2.0</version>
+ <configuration>
+ <!--<downloadSources>true</downloadSources>-->
+ <!--<downloadJavadocs>true</downloadJavadocs>-->
+ <dependenciesAsLibraries>true</dependenciesAsLibraries>
+ </configuration>
+ </plugin>
+
+ <!--Site -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>2.0-beta-5</version>
+ </plugin>
+
+ </plugins>
+ </pluginManagement>
+ <plugins/>
+ </build>
+
+ <reporting>
+ <plugins>
+ <!-- Note: It's not possible to configure reporting plugins in pluginManagement in m2.0.4 -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.0.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <aggregate>true</aggregate>
+ <links>
+ <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
+ </links>
+ <minmemory>128m</minmemory>
+ <maxmemory>512</maxmemory>
+ </configuration>
+ </plugin>
+
+ <!--
+ TODO Changelog is unfinished:
+ - has also a problem with the netbeans (cvs)lib dependency
+ - is moving from mojo.codehaus.org to maven.apache.org
+ -->
+ <!--<plugin>-->
+ <!--<groupId>org.apache.maven.plugins</groupId>-->
+ <!--<artifactId>maven-changelog-plugin</artifactId>-->
+ <!--<version>2.0-beta-1</version>-->
+ <!--</plugin>-->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ <version>2.3</version>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>report-only</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <!--<plugin>-->
+ <!--<groupId>org.apache.maven.plugins</groupId>-->
+ <!--<artifactId>maven-clover-plugin</artifactId>-->
+ <!--<configuration/>-->
+ <!--<executions>-->
+ <!--<execution>-->
+ <!--<phase>pre-site</phase>-->
+ <!--<goals>-->
+ <!--<goal>instrument</goal>-->
+ <!--<goal>aggregate</goal>-->
+ <!--</goals>-->
+ <!--</execution>-->
+ <!--</executions>-->
+ <!--</plugin>-->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>taglist-maven-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ <!--<plugin>-->
+ <!--<groupId>org.codehaus.mojo</groupId>-->
+ <!--<artifactId>findbugs-maven-plugin</artifactId>-->
+ <!--<version>1.0-beta-1</version>-->
+ <!--</plugin>-->
+ <!--<plugin>-->
+ <!--<groupId>org.apache.maven.plugins</groupId>-->
+ <!--<artifactId>maven-pmd-plugin</artifactId>-->
+ <!--<version>2.0</version>-->
+ <!--</plugin>-->
+ <!--<plugin>-->
+ <!--<groupId>org.apache.maven.plugins</groupId>-->
+ <!--<artifactId>maven-checkstyle-plugin</artifactId>-->
+ <!--<version>2.1</version>-->
+ <!--</plugin>-->
+ <!--<plugin>-->
+ <!--<groupId>org.codehaus.mojo</groupId>-->
+ <!--<artifactId>jdepend-maven-plugin</artifactId>-->
+ <!--<version>2.0-beta-1</version>-->
+ <!--</plugin>-->
+ <plugin>
+ <!-- In 2.0-beta-1 an aggegate works after running "mvn site" twice -->
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>javancss-maven-plugin</artifactId>
+ <version>2.0-beta-1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.0</version>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ <modules>
+ <module>drools-core</module>
+ <module>drools-compiler</module>
+ <module>drools-jsr94</module>
+ <module>drools-decisiontables</module>
+ <!-- TODO enable these or create a profile in which they are enabled (to avoid making the build slow) -->
+ <!--module>drools-server</module-->
+ <module>drools-repository</module>
+ <module>drools-jbrms</module>
+ <!--module>drools-examples</module-->
+ </modules>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <dependencyManagement>
+ <dependencies>
+ <!--
+ Declare all dependency versions and default scopes here, but not optional.
+ Each module should declare it's direct dependency and possibily overwrite scope/optional.
+ -->
+
+ <!-- Internal dependencies -->
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-core</artifactId>
+ <type>test-jar</type>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-compiler</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-compiler</artifactId>
+ <type>test-jar</type>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-jsr94</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-jsr94</artifactId>
+ <type>test-jar</type>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-decisiontables</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-decisiontables</artifactId>
+ <type>test-jar</type>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-documentation</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-server</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-server</artifactId>
+ <type>test-jar</type>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-repository</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-repository</artifactId>
+ <type>test-jar</type>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-jbrms</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-jbrms</artifactId>
+ <type>test-jar</type>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- External dependencies -->
+ <!-- drools-core -->
+ <dependency>
+ <groupId>xstream</groupId>
+ <artifactId>xstream</artifactId>
+ <version>1.1.3</version>
+ </dependency>
+ <dependency>
+ <groupId>xpp3</groupId>
+ <artifactId>xpp3</artifactId>
+ <version>1.1.3.4.O</version>
+ </dependency>
+ <dependency>
+ <groupId>org.mvel</groupId>
+ <artifactId>mvel14</artifactId>
+ <version>1.2rc1</version>
+ </dependency>
+
+ <!-- drools-compiler -->
+ <dependency>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr-runtime</artifactId>
+ <version>3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.eclipse.jdt</groupId>
+ <artifactId>core</artifactId>
+ <version>3.2.3.v_686_R32x</version>
+ </dependency>
+ <dependency>
+ <groupId>janino</groupId>
+ <artifactId>janino</artifactId>
+ <version>2.5.7</version>
+ </dependency>
+ <dependency>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ <version>2.4.0</version>
+ </dependency>
+ <dependency>
+ <groupId>xml-apis</groupId>
+ <artifactId>xml-apis</artifactId>
+ <version>1.0.b2</version>
+ </dependency>
+
+ <!-- drools-jsr94 -->
+ <dependency>
+ <groupId>jsr94</groupId>
+ <artifactId>jsr94</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>jsr94</groupId>
+ <artifactId>jsr94-tck</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+ <dependency>
+ <groupId>jsr94</groupId>
+ <artifactId>jsr94-sigtest</artifactId>
+ <version>1.1</version>
+ </dependency>
+
+ <!-- drools-decisiontables -->
+ <dependency>
+ <groupId>jexcelapi</groupId>
+ <artifactId>jxl</artifactId>
+ <version>2.4.2</version>
+ </dependency>
+
+ <!-- drools-server -->
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-remoting</artifactId>
+ <version>1.4.1_final</version>
+ </dependency>
+
+ <!-- drools-repository -->
+ <dependency>
+ <groupId>org.apache.jackrabbit</groupId>
+ <artifactId>jackrabbit-core</artifactId>
<version>1.3</version>
<!-- and getting rid of some annoying transitive junk not really needed for us -->
<exclusions>
@@ -733,82 +733,82 @@
<groupId>nekohtml</groupId>
<artifactId>nekohtml</artifactId>
</exclusion>
- </exclusions>
- </dependency>
-
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.13</version>
- </dependency>
-
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-log4j12</artifactId>
- <version>1.3.0</version>
- </dependency>
-
- <dependency>
- <groupId>org.tmatesoft</groupId>
- <artifactId>svnkit</artifactId>
- <version>1.1.2</version>
- </dependency>
-
- <!-- drools-jbrms -->
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.3</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-servlet</artifactId>
- <version>1.3.3</version>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>1.1.1</version>
- </dependency>
-
- <!-- drools-examples -->
- <dependency>
- <groupId>foxtrot</groupId>
- <artifactId>foxtrot</artifactId>
- <version>2.0</version>
- </dependency>
- <dependency>
- <groupId>com.jgoodies</groupId>
- <artifactId>forms</artifactId>
- <version>1.0.7</version><!-- TODO test that the upgrade from 1.0.4 isn't a problem -->
- </dependency>
-
- <!--
- TODO looks like jsr170:jcr:1.0 isn't used any more, remove it from /repository/jsr170/jcr/1.0
- It's also in the central repo: http://www.mvnrepository.com/artifact/javax.jcr/jcr
- -->
- </dependencies>
- </dependencyManagement>
-
- <distributionManagement>
- <site>
- <id>rules-site.jboss.org</id>
- <url>${rules.site.deploy.dir}</url>
- </site>
- <!-- TODO configure this if it's needed -->
- <!--<repository>-->
- <!--<id>shell.jboss.org?</id>-->
- <!--<url>scp://???.jboss.org/???/maven2</url>-->
- <!--</repository>-->
- <!--<snapshotRepository>-->
- <!--<id>shell.jboss.org?</id>-->
- <!--<url>scp://???.jboss.org/???/maven2snapshots???</url>-->
- <!--</snapshotRepository>-->
- <!--<site>-->
- <!--<id>shell.jboss.org?</id>-->
- <!--<url>scp://???/???/</url>-->
- <!--</site>-->
- </distributionManagement>
-
-</project>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.13</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-log4j12</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.tmatesoft</groupId>
+ <artifactId>svnkit</artifactId>
+ <version>1.1.2</version>
+ </dependency>
+
+ <!-- drools-jbrms -->
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.3</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>1.3.3</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+
+ <!-- drools-examples -->
+ <dependency>
+ <groupId>foxtrot</groupId>
+ <artifactId>foxtrot</artifactId>
+ <version>2.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jgoodies</groupId>
+ <artifactId>forms</artifactId>
+ <version>1.0.7</version><!-- TODO test that the upgrade from 1.0.4 isn't a problem -->
+ </dependency>
+
+ <!--
+ TODO looks like jsr170:jcr:1.0 isn't used any more, remove it from /repository/jsr170/jcr/1.0
+ It's also in the central repo: http://www.mvnrepository.com/artifact/javax.jcr/jcr
+ -->
+ </dependencies>
+ </dependencyManagement>
+
+ <distributionManagement>
+ <site>
+ <id>rules-site.jboss.org</id>
+ <url>${rules.site.deploy.dir}</url>
+ </site>
+ <!-- TODO configure this if it's needed -->
+ <!--<repository>-->
+ <!--<id>shell.jboss.org?</id>-->
+ <!--<url>scp://???.jboss.org/???/maven2</url>-->
+ <!--</repository>-->
+ <!--<snapshotRepository>-->
+ <!--<id>shell.jboss.org?</id>-->
+ <!--<url>scp://???.jboss.org/???/maven2snapshots???</url>-->
+ <!--</snapshotRepository>-->
+ <!--<site>-->
+ <!--<id>shell.jboss.org?</id>-->
+ <!--<url>scp://???/???/</url>-->
+ <!--</site>-->
+ </distributionManagement>
+
+</project>
More information about the jboss-svn-commits
mailing list