Remove copy-dependencies from the regular build; on Windows, sqlline.bat invokes it explicitly on first run.
diff --git a/pom.xml b/pom.xml
index 43f1812..4b5d6be 100644
--- a/pom.xml
+++ b/pom.xml
@@ -188,37 +188,14 @@
<version>2.16</version>
</plugin>
+ <!-- Not part of the standard build. sqlline.bat invokes copy-dependencies
+ because windows doesn't like long paths. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.8</version>
- <executions>
- <execution>
- <id>copy-dependencies</id>
- <phase>package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/dependencies/</outputDirectory>
- <overWriteReleases>false</overWriteReleases>
- <overWriteSnapshots>false</overWriteSnapshots>
- <overWriteIfNewer>true</overWriteIfNewer>
- </configuration>
- </execution>
- </executions>
</plugin>
- <!--
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>2.3.2</version>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
diff --git a/sqlline.bat b/sqlline.bat
index 8f32f62..6a9550d 100644
--- a/sqlline.bat
+++ b/sqlline.bat
@@ -22,7 +22,7 @@
:: sqlline> !connect jdbc:optiq:model=target/test-classes/model.json admin admin
:: Copy dependency jars on first call. (To force jar refresh, remove target\dependencies)
-if not exist target\dependencies (call mvn -B -DskipTests -Dcheckstyle.skip=true package)
+if not exist target\dependencies (call mvn -B dependency:copy-dependencies -DoverWriteReleases=false -DoverWriteSnapshots=false -DoverWriteIfNewer=true -DoutputDirectory=target\dependencies)
java -Xmx1G -cp ".\target\dependencies\*" sqlline.SqlLine --verbose=true %*