Just tested with a sample pom:
h3. {{pom.xml}} - same dependency and build structure as used in above. { noformat code:xml } <?xml version="1.0" encoding="UTF-8"?> <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> <packaging>jar</packaging> <prerequisites> <maven>2.2.1</maven> </prerequisites>
<groupId>com.iacme</groupId> <artifactId>exec-test</artifactId> <version>1.0-SNAPSHOT</version>
<properties> <version-commons-lang>3.3.2</version-commons-lang> <version-jcommander>1.35</version-jcommander> <version-junit>4.11</version-junit> <version-jxl>2.6.12</version-jxl> <version-poi>3.10-FINAL</version-poi>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties>
<dependencies> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>${version-commons-lang}</version> </dependency>
<dependency> <groupId>com.beust</groupId> <artifactId>jcommander</artifactId> <version>${version-jcommander}</version> </dependency>
<dependency> <groupId>net.sourceforge.jexcelapi</groupId> <artifactId>jxl</artifactId> <version>${version-jxl}</version> <exclusions> <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId> </exclusion> </exclusions> </dependency>
<dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>${version-poi}</version> </dependency>
<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${version-junit}</version> <scope>test</scope> </dependency> </dependencies>
<build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> <archive> <manifest> <mainClass>com.acme.exectest.App</mainClass> </manifest> </archive> </configuration> </plugin>
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10</version> <configuration> <failOnError>false</failOnError> </configuration> </plugin> </plugins> </build>
<reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10</version> <configuration> <failOnError>false</failOnError> </configuration> </plugin> </plugins> </reporting>
<description>Test for exec delay.</description>
</project> { noformat code }
h3. {{time mvn clean package exec:exec}} {noformat} [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building exec-test 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ exec-test --- [INFO] Deleting /Users/bryan/Development/mvntest/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ exec-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/bryan/Development/mvntest/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ exec-test --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ exec-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/bryan/Development/mvntest/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ exec-test --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ exec-test --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ exec-test --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /Users/bryan/Development/mvntest/target/exec-test-1.0-SNAPSHOT.jar [INFO] [INFO] --- exec-maven-plugin:1.3.2:exec (default-cli) @ exec-test --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.725 s [INFO] Finished at: 2014-10-03T08:56:40+10:00 [INFO] Final Memory: 16M/309M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec (default-cli) on project exec-test: The parameters 'executable' for goal org.codehaus.mojo:exec-maven-plugin:1.3.2:exec are missing or invalid -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException
real 0m12.355s user 0m15.639s sys 0m0.217s {noformat}
h3. {{time mvn clean package}} {noformat} [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building exec-test 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ exec-test --- [INFO] Deleting /Users/bryan/Development/mvntest/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ exec-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/bryan/Development/mvntest/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ exec-test --- [INFO] No sources to compile [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ exec-test --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/bryan/Development/mvntest/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ exec-test --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ exec-test --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ exec-test --- [WARNING] JAR will be empty - no content was marked for inclusion! [INFO] Building jar: /Users/bryan/Development/mvntest/target/exec-test-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.634 s [INFO] Finished at: 2014-10-03T08:57:29+10:00 [INFO] Final Memory: 9M/245M [INFO] ------------------------------------------------------------------------
real 0m1.436s user 0m4.303s sys 0m0.205s {noformat}
|