Use Maven to unpack static resources from webjar for JS-Testing



<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-dependency-plugin</artifactId>
	<executions>
		<execution>
			<id>unpack</id>
			<phase>generate-test-sources</phase>
			<goals>
				<goal>unpack</goal>
			</goals>
			<configuration>
				<artifactItems>
					<artifactItem>
						<groupId>org.webjars</groupId>
						<artifactId>openlayers</artifactId>
						<version>${openlayers.version}</version>									
						<type>jar</type>
						<includes>META-INF/resources/webjars/**/*</includes>
						<outputDirectory>${project.basedir}/src/main/webapp/webjars</outputDirectory>
					</artifactItem>
				</artifactItems>
			</configuration>
		</execution>
	</executions>
</plugin>			
<plugin>
	<artifactId>maven-antrun-plugin</artifactId>
	<version>1.8</version>
	<executions>
		<execution>
			<phase>process-test-resources</phase>
			<goals>
				<goal>run</goal>
			</goals>						
			<configuration>
				<target>
					<copy todir="${project.basedir}/src/main/webapp/webjars">
						<fileset dir="${project.basedir}/src/main/webapp/webjars/META-INF/resources/webjars" includes="**/*" />
					</copy>
					<!-- TODO: Delete Marker in target\dependency-maven-plugin-markers -->
					<!-- <delete includeemptydirs="true">
						<fileset dir="${project.basedir}/src/main/webapp/webjars/META-INF" includes="**/*"/>
					</delete> -->
				</target>
			</configuration>
		</execution>
	</executions>
</plugin>