David Carr avatar David Carr committed afc16b5

pom: only use embedded mongodb for testing in CI

Comments (0)

Files changed (1)

         <maven.min-version>2.2.1</maven.min-version>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
-        <mongodb.test.port>37017</mongodb.test.port>
+        <mongodb.test.port>27017</mongodb.test.port>
     </properties>
     <parent>
         <groupId>org.sonatype.oss</groupId>
                 <groupId>com.github.joelittlejohn.embedmongo</groupId>
                 <artifactId>embedmongo-maven-plugin</artifactId>
                 <version>0.1.3</version>
-                <executions>
-                    <execution>
-                        <id>mongodb-start</id>
-                        <goals>
-                            <goal>start</goal>
-                        </goals>
-                        <configuration>
-                            <port>${mongodb.test.port}</port>
-                            <version>2.2.0</version>
-                            <databaseDirectory>target/mongotest</databaseDirectory>
-                            <logging>none</logging>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>mongodb-stop</id>
-                        <goals>
-                            <goal>stop</goal>
-                        </goals>
-                    </execution>
-                </executions>
             </plugin>
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                     <name>BUILD_NUMBER</name>
                 </property>
             </activation>
+            <properties>
+                <mongodb.test.port>37017</mongodb.test.port>
+            </properties>
             <build>
                 <plugins>
                     <plugin>
                             </execution>
                         </executions>
                     </plugin>
+                    <plugin>
+                        <groupId>com.github.joelittlejohn.embedmongo</groupId>
+                        <artifactId>embedmongo-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>mongodb-start</id>
+                                <goals>
+                                    <goal>start</goal>
+                                </goals>
+                                <configuration>
+                                    <port>${mongodb.test.port}</port>
+                                    <version>2.2.0</version>
+                                    <databaseDirectory>target/mongotest</databaseDirectory>
+                                    <logging>none</logging>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>mongodb-stop</id>
+                                <goals>
+                                    <goal>stop</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
                 </plugins>
             </build>
         </profile>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.