Skip to content

Instantly share code, notes, and snippets.

@BlueSKySec
Created December 20, 2023 08:57
Show Gist options
  • Save BlueSKySec/fd1532fb56a90378beeccb79a9e49a0a to your computer and use it in GitHub Desktop.
Save BlueSKySec/fd1532fb56a90378beeccb79a9e49a0a to your computer and use it in GitHub Desktop.
Skip Maven Tests

Skip Maven Tests

pom.xml:

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<phase>process-test-resources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target unless="maven.test.skip">
								<echo message="To skip me, just call mvn -Dmaven.test.skip=true" />
								<unzip src="test/resources/looper_data.zip" dest="target/test-classes" overwrite="true" encoding="IBM437" />
							</target>
						</configuration>
					</execution>
				</executions>
			</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment