Hi
I'm starting up an embedded ElasticMQ server from a simple Groovy script:
class Deployer{
static void main(String... args) {
new Deployer().deploy()
}
void deploy(String version, String feature) {
//Restart ElasticMQ
println("Starting ElasticMq...")
SQSRestServerBuilder.start()
println("ElasticMq launched")
.....
}
}
There is no custom configuration. When I run this from my IntelliJ, the server starts up with no problem. When I execute the class from Maven using the GMaven plugin, I'm getting an error:
com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka'
at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:124)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:147)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:159)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:164)
at com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:206)
at akka.actor.ActorSystem$Settings.<init>(ActorSystem.scala:169)
at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:505)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:142)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:109)
at org.elasticmq.rest.sqs.TheSQSRestServerBuilder$$anonfun$getOrCreateActorSystem$2.apply(SQSRestServerBuilder.scala:172)
at org.elasticmq.rest.sqs.TheSQSRestServerBuilder$$anonfun$getOrCreateActorSystem$2.apply(SQSRestServerBuilder.scala:171)
at scala.Option.getOrElse(Option.scala:121)
at org.elasticmq.rest.sqs.TheSQSRestServerBuilder.getOrCreateActorSystem(SQSRestServerBuilder.scala:171)
at org.elasticmq.rest.sqs.TheSQSRestServerBuilder.start(SQSRestServerBuilder.scala:81)
I'm not familiar with Scala or the concept of Actor Systems in this context, but I do see that the
SQSRestServerBuilder assumes a default Actor System of 'akka'.
GMaven is configured as follows. The Deployer script launches several more complex services. ElasticMQ should be the simplest, but I just cannot get it to work!
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-jsch</artifactId>
<version>1.9.0</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.51</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>deploy-to-fuse</id>
<phase>pre-integration-test</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<scriptpath>
<element>src/test/java</element>
</scriptpath>
<source>
Deployer.main("${project.parent.version}","ds-all")
</source>
</configuration>
</execution>
</executions>
</plugin>
Does anyone have any idea why this may be failing in my Maven execution?
Many thanks