File tree Expand file tree Collapse file tree
azure-documentdb-benchmark
src/main/java/com/microsoft/azure/documentdb/benchmark Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 <metrics .version>3.1.2</metrics .version>
1818 <netty .version>4.1.7.Final</netty .version>
1919 <maven .deploy.skip>true</maven .deploy.skip>
20- <enforcer .skip>true</enforcer .skip>
20+ <enforcer .skip>true</enforcer .skip>
2121 </properties >
2222 <dependencies >
2323 <dependency >
112112 <build >
113113 <plugins >
114114 <plugin >
115- <groupId >org.apache.maven.plugins</groupId >
116115 <artifactId >maven-assembly-plugin</artifactId >
116+ <version >2.2</version >
117117 <configuration >
118118 <descriptorRefs >
119119 <descriptorRef >jar-with-dependencies</descriptorRef >
120120 </descriptorRefs >
121+ <archive >
122+ <manifest >
123+ <mainClass >com.microsoft.azure.documentdb.benchmark.SimpleTests</mainClass >
124+ </manifest >
125+ </archive >
121126 </configuration >
122127 <executions >
123128 <execution >
124- <id >generate-jar-dependency </id >
125- <phase >prepare- package</phase >
129+ <id >make-assembly </id >
130+ <phase >package</phase >
126131 <goals >
127132 <goal >single</goal >
128133 </goals >
129134 </execution >
130135 </executions >
131136 </plugin >
132- <plugin >
133- <groupId >org.apache.maven.plugins</groupId >
134- <artifactId >maven-jar-plugin</artifactId >
135- <version >3.1.0</version >
136- <executions >
137- <execution >
138- <phase >prepare-package</phase >
139- <goals >
140- <goal >test-jar</goal >
141- </goals >
142- </execution >
143- </executions >
144- </plugin >
145137 <plugin >
146138 <groupId >org.apache.maven.plugins</groupId >
147139 <artifactId >maven-compiler-plugin</artifactId >
148- <version >3.1 </version >
140+ <version >3.6.0 </version >
149141 <configuration >
150142 <source >1.8</source >
151143 <target >1.8</target >
152144 </configuration >
153145 </plugin >
146+ <plugin >
147+ <groupId >org.apache.maven.plugins</groupId >
148+ <artifactId >maven-eclipse-plugin</artifactId >
149+ <version >2.8</version >
150+ <configuration >
151+ <classpathContainers >
152+ <classpathContainer >
153+ org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8
154+ </classpathContainer >
155+ </classpathContainers >
156+ </configuration >
157+ </plugin >
154158 </plugins >
155159 </build >
156160</project >
Original file line number Diff line number Diff line change @@ -476,6 +476,8 @@ public static void main(String[] args) throws Exception {
476476
477477 reporter .report ();
478478 reporter .close ();
479- client .close ();
479+ if (client != null ) {
480+ client .close ();
481+ }
480482 }
481483}
You can’t perform that action at this time.
0 commit comments