From 26ca3084e2f1e4011657a2720f16ab0bcb79dc9f Mon Sep 17 00:00:00 2001 From: Martyn Taylor Date: Mon, 19 Jan 2015 15:03:00 +0000 Subject: [PATCH] Rework dependency management in top level poms This patch moves test dependencies into out of the main pom and into the tests module pom. This will make managing 3rd party category X dependencies much easier going forward. In addition each dependency license has been outlined in the pom and README entry added to outline future policy when adding 3rd party depdendencies. --- README.md | 12 ++ examples/jms/jms-bridge/pom.xml | 4 - pom.xml | 298 ++++++++++++++++---------------- tests/pom.xml | 45 ++++- tests/unit-tests/pom.xml | 1 - 5 files changed, 206 insertions(+), 154 deletions(-) diff --git a/README.md b/README.md index 0bffbaad9a..6d4536fe54 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,18 @@ of well formatted commit messages to the README.md. This is required to enable developers to quickly identify what the commit is intended to do and why the commit was added. ``` +### Adding New Dependencies + +Due to incompatibilities between some open source licenses and the Apache v2.0 license (that this project is licensed under) +care must be taken when adding new dependencies to the project. The Apache Software Foundation 3rd party + licensing policy has more information here: http://www.apache.org/legal/3party.html + +To keep track of all licenses in ActiveMQ6, new dependencies must be added in either the top level pom.xml or in test/pom.xml +(depending on whether this is a test only dependency or if it is used in the main code base). The dependency should be +added under the dependency management section with version and labelled with a comment highlighting the license for the +dependency version. See existing dependencies in the main pom.xml for examples. The dependency can then be added to +individual ActiveMQ6 modules *without* the version specified (the version is implied from the dependency management +section of the top level pom). This allows ActiveMQ6 developers to keep track of all dependencies and licenses. ### Core Contributers diff --git a/examples/jms/jms-bridge/pom.xml b/examples/jms/jms-bridge/pom.xml index adcb8812ed..5b1d6d4772 100644 --- a/examples/jms/jms-bridge/pom.xml +++ b/examples/jms/jms-bridge/pom.xml @@ -43,10 +43,6 @@ under the License. activemq-jms-server ${project.version} - - org.jboss.jbossts.jts - jbossjts-jacorb - org.apache.geronimo.specs geronimo-jms_2.0_spec diff --git a/pom.xml b/pom.xml index cee5074952..5ca2d45a53 100644 --- a/pom.xml +++ b/pom.xml @@ -175,238 +175,240 @@ - + + + org.jboss.apiviz + apiviz + 1.3.2.GA + release + + + + + + + junit + junit + 4.11 + test + + + + + + org.jboss.logging jboss-logging-processor 1.2.0.Final - provided - - - - - org.jboss.logging - jboss-logging - 3.1.4.GA - - - - org.jboss.logmanager - jboss-logmanager - 1.5.1.Final - - - - net.java.dev.javacc - javacc - 4.0 - - - - - org.apache.geronimo.specs - geronimo-jms_2.0_spec - ${geronimo.jms.2.spec.version} - - - - - javax.enterprise - cdi-api - 1.0-SP4 - - - javax.inject - javax.inject - 1 - - - - - org.apache.geronimo.specs - geronimo-ejb_3.0_spec - 1.0.1 - - - org.apache.geronimo.specs - geronimo-jta_1.1_spec - 1.1.1 - - - - - org.jboss.jbossts.jts - jbossjts-jacorb - 4.17.13.Final - - - - org.jboss.security - jboss-security-spi - 2.0.3.SP1 - - - org.jboss.security - jbosssx - 2.0.3.SP1 - - - - org.jgroups - jgroups - 3.6.0.Final - - - io.airlift - airline - 0.6 - - - - io.netty - netty-all - ${netty.version} + compile + log4j log4j 1.2.16 + compile + org.jboss.logging jboss-logging-spi 2.1.0.GA + compile + + + + org.springframework + spring-core + 3.1.4.RELEASE + compile + + + + org.springframework + spring-beans + 3.1.4.RELEASE + compile + + + + org.springframework + spring-context + 3.1.4.RELEASE + compile + + + + org.springframework + spring-jms + 3.1.4.RELEASE + compile + + + + + + + org.jboss.logging + jboss-logging + 3.1.4.GA + + + + org.jboss.logmanager + jboss-logmanager + 1.5.1.Final + + + + net.java.dev.javacc + javacc + 4.0 + + + + org.apache.geronimo.specs + geronimo-jms_2.0_spec + ${geronimo.jms.2.spec.version} + + + + javax.enterprise + cdi-api + 1.0-SP4 + + + + javax.inject + javax.inject + 1 + + + + + + + org.apache.geronimo.specs + geronimo-ejb_3.0_spec + 1.0.1 + + + + org.apache.geronimo.specs + geronimo-jta_1.1_spec + 1.1.1 + + + + + + + org.jgroups + jgroups + 3.6.0.Final + + + + io.airlift + airline + 0.6 + + + + + io.netty + netty-all + ${netty.version} + + org.apache.qpid proton-j 0.8 + org.apache.qpid proton-jms 0.8 + org.apache.activemq activemq-client 5.10.0 + org.slf4j slf4j-api 1.7.5 + - - - org.springframework - spring-core - 3.0.3.RELEASE - - - org.springframework - spring-beans - 3.0.3.RELEASE - - - org.springframework - spring-context - 3.0.3.RELEASE - - - org.springframework - spring-jms - 3.0.3.RELEASE - org.jboss.resteasy resteasy-jaxrs ${resteasy.version} + org.jboss.resteasy resteasy-jaxb-provider ${resteasy.version} + org.jboss.resteasy resteasy-jackson-provider ${resteasy.version} + org.jboss.resteasy resteasy-atom-provider ${resteasy.version} + org.jboss.resteasy tjws ${resteasy.version} + - + + org.eclipse.jetty.aggregate jetty-all-server 7.6.9.v20130131 + org.apache.geronimo.specs geronimo-servlet_3.0_spec 1.0 + org.jolokia jolokia-war war 1.2.3 + - - - junit - junit - - 4.11 - - - - - org.apache.geronimo.components - geronimo-jaspi - 2.0.0 - - - - - apache-logging - commons-logging - 1.1.0.jboss - - - - - org.jboss.ejb3 - jboss-ejb3-ext-api - 1.0.0 - + - org.apache.geronimo.specs + org.apache.geronimo.specs geronimo-j2ee-connector_1.5_spec 2.0.0 - - - - org.jboss.apiviz - apiviz - 1.3.2.GA + diff --git a/tests/pom.xml b/tests/pom.xml index e330c506a8..a6695a3e7a 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -21,9 +21,9 @@ activemq-pom 6.0.0-SNAPSHOT + ActiveMQ6 Tests POM 4.0.0 - org.apache.activemq.tests activemq-tests-pom pom @@ -32,6 +32,49 @@ ${project.basedir}/.. + + + + + org.jboss.jbossts.jts + jbossjts-jacorb + 4.17.13.Final + + + + + + + org.jboss.security + jboss-security-spi + 2.0.3.SP1 + + + + org.jboss.security + jbosssx + 2.0.3.SP1 + + + + + + + org.apache.geronimo.components + geronimo-jaspi + 2.0.0 + + + + apache-logging + commons-logging + 1.1.0.jboss + + + + + + diff --git a/tests/unit-tests/pom.xml b/tests/unit-tests/pom.xml index 21919f37e7..975ea108b1 100644 --- a/tests/unit-tests/pom.xml +++ b/tests/unit-tests/pom.xml @@ -81,7 +81,6 @@ org.jboss.security jbosssx - 2.0.3.SP1 junit