exec-maven-plugin
Used in: 118 components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
Overview
Description
A plugin to allow execution of system and Java programs
Snippets
<dependency> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.1.0</version> </dependency>
Maven POM File
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.codehaus.mojo</groupId> <artifactId>mojo-parent</artifactId> <version>69</version> </parent> <artifactId>exec-maven-plugin</artifactId> <version>3.1.0</version> <packaging>maven-plugin</packaging> <name>Exec Maven Plugin</name> <description>A plugin to allow execution of system and Java programs</description> <url>https://www.mojohaus.org/exec-maven-plugin</url> <inceptionYear>2005</inceptionYear> <prerequisites> <maven>${mavenVersion}</maven> </prerequisites> <developers> <developer> <id>jerome</id> <name>Jerome Lacoste</name> <email>jerome@coffeebreaks.org</email> <organization>CoffeeBreaks</organization> <organizationUrl>http://www.coffeebreaks.org</organizationUrl> <roles> <role>Java Developer</role> </roles> <timezone>+1</timezone> </developer> <developer> <id>kaare</id> <name>Kaare Nilsen</name> <email>kaare.nilsen@gmail.com</email> <organization>Objectware</organization> <organizationUrl>http://www.objectware.no</organizationUrl> <roles> <role>Java Developer</role> </roles> <timezone>+1</timezone> </developer> <developer> <id>rfscholte</id> <name>Robert Scholte</name> <email>rfscholte@apache.org</email> <timezone>Europe/Amsterdam</timezone> </developer> <developer> <id>khmarbaise</id> <name>Karl Heinz Marbaise</name> <email>khmarbaise@apache.org</email> <timezone>Europe/Berlin</timezone> </developer> <developer> <id>sjaranowski</id> <name>Slawomir Jaranowski</name> <email>sjaranowski@apache.org</email> <timezone>Europe/Warsaw</timezone> </developer> </developers> <contributors> <contributor> <name>David Smiley</name> <email>protected</email> <roles> <role>Patch Contributor</role> </roles> </contributor> <contributor> <name>Milos Kleint</name> <email>protected</email> <roles> <role>Patch Contributor</role> </roles> </contributor> <contributor> <name>Markus KARG</name> <email>markus@headcrashing.eu</email> <organization>Head Crashing Informatics</organization> <organizationUrl>http://www.headcrashing.eu</organizationUrl> <roles> <role>Patch Contributor</role> </roles> <timezone>Europe/Berlin</timezone> </contributor> </contributors> <licenses> <license> <name>Apache License 2</name> <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </license> </licenses> <scm> <connection>scm:git:https://github.com/mojohaus/exec-maven-plugin.git</connection> <developerConnection>scm:git:ssh://git@github.com/mojohaus/exec-maven-plugin.git</developerConnection> <url>https://github.com/mojohaus/exec-maven-plugin/tree/master</url> <tag>exec-maven-plugin-3.1.0</tag> </scm> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId> <version>${mavenVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact</artifactId> <version>${mavenVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> <version>${mavenVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>${mavenVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>3.4.2</version> </dependency> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-component-annotations</artifactId> <version>2.1.1</version> <optional>true</optional> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-exec</artifactId> <version>1.3</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven.plugin-testing</groupId> <artifactId>maven-plugin-testing-harness</artifactId> <version>3.3.0</version> <scope>test</scope> <exclusions> <exclusion> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-container-default</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-compat</artifactId> <version>${mavenVersion}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-interpolation</artifactId> <version>1.26</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>4.6.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4j.version}</version> <scope>test</scope> </dependency> </dependencies> <properties> <mavenVersion>3.2.5</mavenVersion> <slf4j.version>1.7.36</slf4j.version> <project.build.outputTimestamp>2022-07-15T02:43:08Z</project.build.outputTimestamp> </properties> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <detectLinks>false</detectLinks> <detectJavaApiLink>false</detectJavaApiLink> <detectOfflineLinks>false</detectOfflineLinks> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-maven-plugin</artifactId> <executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executions> <configuration> <signature> <groupId>org.codehaus.mojo.signature</groupId> <artifactId>java18</artifactId> <version>1.0</version> </signature> <ignores> <ignore>java.lang.invoke.MethodHandle</ignore> <ignore>java.util.concurrent.ForkJoinPool</ignore> </ignores> </configuration> </plugin> <plugin> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-component-metadata</artifactId> <version>2.1.1</version> <executions> <execution> <goals> <goal>generate-metadata</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-test-deps</id> <phase>generate-test-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> <type>jar</type> <overWrite>false</overWrite> <destFileName>slf4j-api.jar</destFileName> </artifactItem> <artifactItem> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4j.version}</version> <type>jar</type> <overWrite>false</overWrite> <destFileName>slf4j-simple.jar</destFileName> </artifactItem> <artifactItem> <groupId>org.slf4j</groupId> <artifactId>slf4j-jdk14</artifactId> <version>${slf4j.version}</version> <type>jar</type> <overWrite>false</overWrite> <destFileName>slf4j-jdk14.jar</destFileName> </artifactItem> </artifactItems> <outputDirectory>${project.build.directory}/test-dependencies/</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>run-its</id> <build> <plugins> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.5</version> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy</artifactId> <version>3.0.11</version> </dependency> <dependency> <groupId>org.codehaus.gmaven.runtime</groupId> <artifactId>gmaven-runtime-1.8</artifactId> <version>1.5</version> </dependency> </dependencies> <configuration> <debug>false</debug> <verbose>true</verbose> <stacktrace>true</stacktrace> <defaultScriptExtension>.groovy</defaultScriptExtension> </configuration> <executions> <execution> <goals> <goal>testCompile</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-invoker-plugin</artifactId> <configuration> <addTestClassPath>true</addTestClassPath> <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> <projectsDirectory>src/it/projects</projectsDirectory> <showErrors>true</showErrors> <showVersion>true</showVersion> <preBuildHookScript>setup</preBuildHookScript> <postBuildHookScript>verify</postBuildHookScript> <settingsFile>src/it/mrm/settings.xml</settingsFile> <parallelThreads>1C</parallelThreads> <properties> <maven.compiler.source>${mojo.java.target}</maven.compiler.source> <maven.compiler.target>${mojo.java.target}</maven.compiler.target> </properties> <filterProperties> <mrm.repository.url>${mrm.repository.url}</mrm.repository.url> </filterProperties> </configuration> <executions> <execution> <goals> <goal>install</goal> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>mrm-maven-plugin</artifactId> <executions> <execution> <goals> <goal>start</goal> <goal>stop</goal> </goals> </execution> </executions> <configuration> <repositories> <mockRepo> <source>src/it/mrm/repository</source> </mockRepo> <localRepo> <source>${project.build.directory}/local-repo</source> </localRepo> <proxyRepo /> </repositories> </configuration> </plugin> <plugin> <artifactId>maven-enforcer-plugin</artifactId> <executions> <execution> <id>enforce-JAVA_HOME-is-set</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireEnvironmentVariable> <variableName>JAVA_HOME</variableName> </requireEnvironmentVariable> </rules> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>