From 6f7ad1a8c45fb91cec525bb7122794a551d82291 Mon Sep 17 00:00:00 2001
From: Joe Littlejohn <joelittlejohn@gmail.com>
Date: Fri, 23 Nov 2012 22:20:38 +0000
Subject: [PATCH] Update to flapdoodle API 1.27 (mkdir -p for
databaseDirectory)
---
pom.xml | 6 +++---
.../joelittlejohn/embedmongo/StartEmbeddedMongoMojo.java | 2 +-
src/test/resources/example/pom.xml | 3 +--
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/pom.xml b/pom.xml
index 9becf35..5985c56 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,8 +35,8 @@
<url>http://github.com/joelittlejohn/embedmongo-maven-plugin/tree/master</url>
<connection>scm:git:git@github.com:joelittlejohn/embedmongo-maven-plugin.git</connection>
<developerConnection>scm:git:git@github.com:joelittlejohn/embedmongo-maven-plugin.git</developerConnection>
- <tag>HEAD</tag>
- </scm>
+ <tag>HEAD</tag>
+ </scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -105,7 +105,7 @@
<dependency>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
- <version>1.26</version>
+ <version>1.27</version>
</dependency>
</dependencies>
diff --git a/src/main/java/com/github/joelittlejohn/embedmongo/StartEmbeddedMongoMojo.java b/src/main/java/com/github/joelittlejohn/embedmongo/StartEmbeddedMongoMojo.java
index 3193df9..2c4f67e 100644
--- a/src/main/java/com/github/joelittlejohn/embedmongo/StartEmbeddedMongoMojo.java
+++ b/src/main/java/com/github/joelittlejohn/embedmongo/StartEmbeddedMongoMojo.java
@@ -138,7 +138,7 @@ public class StartEmbeddedMongoMojo extends AbstractMojo {
RuntimeConfig config = new RuntimeConfig();
config.setProcessOutput(getOutputConfig());
- executable = MongodStarter.getInstance(config).prepare(new MongodConfig(getVersion(), bindIp, port, Network.localhostIsIPv6(), getDataDirectory()));
+ executable = MongodStarter.getInstance(config).prepare(new MongodConfig(getVersion(), bindIp, port, Network.localhostIsIPv6(), getDataDirectory(), null, 0));
} catch (UnknownHostException e) {
throw new MojoExecutionException("Unable to determine if localhost is ipv6", e);
} catch (DistributionException e) {
diff --git a/src/test/resources/example/pom.xml b/src/test/resources/example/pom.xml
index 3f9cb4d..63df763 100644
--- a/src/test/resources/example/pom.xml
+++ b/src/test/resources/example/pom.xml
@@ -23,7 +23,7 @@
<plugin>
<groupId>com.github.joelittlejohn.embedmongo</groupId>
<artifactId>embedmongo-maven-plugin</artifactId>
- <version>0.1.4-SNAPSHOT</version>
+ <version>0.1.5-SNAPSHOT</version>
<executions>
<execution>
<id>start</id>
@@ -32,7 +32,6 @@
</goals>
<configuration>
<port>37017</port>
- <version>2.0.8</version>
<databaseDirectory>/tmp/mongotest</databaseDirectory>
<logging>file</logging>
</configuration>
--
GitLab