diff --git a/activemq-leveldb-store/pom.xml b/activemq-leveldb-store/pom.xml index 6f68731f45..5cafb48447 100644 --- a/activemq-leveldb-store/pom.xml +++ b/activemq-leveldb-store/pom.xml @@ -59,7 +59,7 @@ org.fusesource.hawtdispatch - hawtdispatch-scala + hawtdispatch-scala-2.11 ${hawtdispatch-version} @@ -319,7 +319,7 @@ org.scalatest - scalatest_${scala-version} + scalatest_2.11 ${scalatest-version} test diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala index d1f8f6bc45..146269de60 100644 --- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala +++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala @@ -25,7 +25,7 @@ import java.io.File import java.io.IOException import java.util.concurrent._ import java.util.concurrent.atomic.AtomicLong -import reflect.BeanProperty +import beans.BeanProperty import org.apache.activemq.store._ import java.util._ import collection.mutable.ListBuffer diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ElectingLevelDBStore.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ElectingLevelDBStore.scala index 4ff4288ad2..9a1852e507 100644 --- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ElectingLevelDBStore.scala +++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ElectingLevelDBStore.scala @@ -17,7 +17,7 @@ package org.apache.activemq.leveldb.replicated import org.linkedin.util.clock.Timespan -import scala.reflect.BeanProperty +import scala.beans.BeanProperty import org.apache.activemq.util.ServiceStopper import org.apache.activemq.leveldb.{LevelDBClient, RecordLog, LevelDBStore} import java.net.{NetworkInterface, InetAddress} diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala index 6de5f63ab4..00f16ba350 100644 --- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala +++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/MasterLevelDBStore.scala @@ -27,7 +27,7 @@ import java.util.concurrent._ import java.io.{IOException, File} import java.net.{SocketAddress, InetSocketAddress, URI} import java.util.concurrent.atomic.{AtomicBoolean, AtomicLong} -import scala.reflect.BeanProperty +import scala.beans.BeanProperty import org.fusesource.hawtbuf.{Buffer, AsciiBuffer} class PositionSync(val position:Long, count:Int) extends CountDownLatch(count) diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ReplicatedLevelDBStoreTrait.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ReplicatedLevelDBStoreTrait.scala index 1c522aa8ce..81efbf5576 100644 --- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ReplicatedLevelDBStoreTrait.scala +++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/ReplicatedLevelDBStoreTrait.scala @@ -16,7 +16,7 @@ */ package org.apache.activemq.leveldb.replicated -import scala.reflect.BeanProperty +import scala.beans.BeanProperty import java.util.UUID import org.apache.activemq.leveldb.LevelDBStore import org.apache.activemq.leveldb.util.FileSupport._ diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/SlaveLevelDBStore.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/SlaveLevelDBStore.scala index 2d288bd3c1..5d66abaa54 100644 --- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/SlaveLevelDBStore.scala +++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/SlaveLevelDBStore.scala @@ -28,7 +28,7 @@ import org.apache.activemq.leveldb.util._ import FileSupport._ import java.io.{IOException, RandomAccessFile, File} -import scala.reflect.BeanProperty +import scala.beans.BeanProperty import java.util.concurrent.{CountDownLatch, TimeUnit} object SlaveLevelDBStore extends Log diff --git a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/groups/ClusteredSingleton.scala b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/groups/ClusteredSingleton.scala index 8b0245859a..0a03811d9f 100644 --- a/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/groups/ClusteredSingleton.scala +++ b/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/replicated/groups/ClusteredSingleton.scala @@ -24,7 +24,7 @@ import org.codehaus.jackson.map.ObjectMapper import collection.JavaConversions._ import java.util.LinkedHashMap import java.lang.{IllegalStateException, String} -import reflect.BeanProperty +import beans.BeanProperty import org.codehaus.jackson.annotate.JsonProperty import org.apache.zookeeper.KeeperException.NoNodeException diff --git a/activemq-leveldb-store/src/test/scala/org/apache/activemq/leveldb/dfs/DFSLevelDBStore.scala b/activemq-leveldb-store/src/test/scala/org/apache/activemq/leveldb/dfs/DFSLevelDBStore.scala index effc058426..4054512f13 100644 --- a/activemq-leveldb-store/src/test/scala/org/apache/activemq/leveldb/dfs/DFSLevelDBStore.scala +++ b/activemq-leveldb-store/src/test/scala/org/apache/activemq/leveldb/dfs/DFSLevelDBStore.scala @@ -20,7 +20,7 @@ package org.apache.activemq.leveldb.dfs import org.apache.hadoop.conf.Configuration import org.apache.activemq.util.ServiceStopper import org.apache.hadoop.fs.FileSystem -import scala.reflect.BeanProperty +import scala.beans.BeanProperty import java.net.InetAddress import org.apache.activemq.leveldb.LevelDBStore diff --git a/activemq-partition/src/main/java/org/apache/activemq/partition/dto/Target.java b/activemq-partition/src/main/java/org/apache/activemq/partition/dto/Target.java index 2087f17f22..102f4ff879 100644 --- a/activemq-partition/src/main/java/org/apache/activemq/partition/dto/Target.java +++ b/activemq-partition/src/main/java/org/apache/activemq/partition/dto/Target.java @@ -17,7 +17,6 @@ package org.apache.activemq.partition.dto; import org.codehaus.jackson.annotate.JsonProperty; -import scala.actors.threadpool.Arrays; import java.io.IOException; import java.util.Collection; @@ -37,7 +36,7 @@ public class Target { } public Target(String ...ids) { - this.ids.addAll(Arrays.asList(ids)); + this.ids.addAll(java.util.Arrays.asList(ids)); } @Override diff --git a/activemq-runtime-config/pom.xml b/activemq-runtime-config/pom.xml index 9a69ff1046..f52d32c8e2 100755 --- a/activemq-runtime-config/pom.xml +++ b/activemq-runtime-config/pom.xml @@ -99,6 +99,27 @@ + + org.codehaus.mojo + properties-maven-plugin + 1.0-alpha-2 + + + initialize + + set-system-properties + + + + + javax.xml.accessExternalSchema + file + + + + + + org.apache.maven.plugins maven-dependency-plugin diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline1Test.java b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline1Test.java index 67745f9821..47fdac01d4 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline1Test.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/usecases/DurableSubscriptionOffline1Test.java @@ -22,7 +22,6 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import scala.actors.threadpool.Arrays; import javax.jms.Connection; import javax.jms.Message; @@ -56,7 +55,7 @@ public class DurableSubscriptionOffline1Test extends DurableSubscriptionOfflineT List testParameters = new ArrayList(); Boolean[] booleanValues = {Boolean.FALSE, Boolean.TRUE}; - List booleans = Arrays.asList(booleanValues); + List booleans = java.util.Arrays.asList(booleanValues); for (Boolean booleanValue : booleans) { for (PersistenceAdapterChoice persistenceAdapterChoice : persistenceAdapterChoices) { Object[] currentChoice = {persistenceAdapterChoice, booleanValue}; diff --git a/assembly/src/test/java/org/apache/activemq/config/ValidateXMLConfigTest.java b/assembly/src/test/java/org/apache/activemq/config/ValidateXMLConfigTest.java index 11accb097e..438f0ee654 100755 --- a/assembly/src/test/java/org/apache/activemq/config/ValidateXMLConfigTest.java +++ b/assembly/src/test/java/org/apache/activemq/config/ValidateXMLConfigTest.java @@ -33,7 +33,6 @@ import org.xml.sax.ErrorHandler; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; -import scala.actors.threadpool.Arrays; public class ValidateXMLConfigTest { @@ -51,7 +50,7 @@ public class ValidateXMLConfigTest { // resource:copy-resource brings all config files into target/conf File sampleConfDir = new File("target/conf"); - final HashSet skipped = new HashSet(Arrays.asList(new String[]{ + final HashSet skipped = new HashSet(java.util.Arrays.asList(new String[]{ "resin-web.xml", "web.xml" })); diff --git a/pom.xml b/pom.xml index 4cd4649dcd..3d770548e8 100755 --- a/pom.xml +++ b/pom.xml @@ -64,7 +64,7 @@ 1.0 1.0.0 1.10 - 1.20 + 1.21-SNAPSHOT 0.1.8 1.8.0.12 4.2.5 @@ -107,10 +107,10 @@ 9.5.1-2 9.5.1-1_1 3.1.0 - 2.9.1 + 2.11.0 2.9.1_3 1.2.2 - 1.8 + 2.1.5 1.7.5 1.1.0.1 3.2.8.RELEASE