[INFO] Final Memory: 11M/108M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (websphere) on project eps: Error executing ant tasks: org/apache/tools/ant/launch/Locator: org.apache.tools.ant.launch.Locator -> [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/MojoExecutionException
<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>
<groupId>com.fiberhome.eps</groupId>
<artifactId>eps</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<modules>
<module>eps-common</module>
<module>eps-master</module>
<module>eps-slave-android</module>
<module>eps-slave-ios</module>
</modules>
<properties>
<version.springframework>3.0.5.RELEASE</version.springframework>
<version.httpcomponents>4.1.1</version.httpcomponents>
<version.cxf>2.2.12</version.cxf>
<version.junit>4.8.2</version.junit>
<version.dom4j>1.6.1</version.dom4j>
<skip.aes.flag>true</skip.aes.flag>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version.yongzhong>1.0.0</version.yongzhong>
<build.timestamp>${timestamp}</build.timestamp>
<patchNumber />
<version.qrcode>1.0.0</version.qrcode>
<skip.aes.flag>true</skip.aes.flag>
<version.mina>2.0.7</version.mina>
</properties>
<dependencies>
<dependency>
<groupId>com.fh.json</groupId>
<artifactId>fastjson</artifactId>
<version>1.1.27</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>com.fh.jms</groupId>
<artifactId>activemq-client</artifactId>
<version>5.10.2</version>
</dependency>
<dependency>
<groupId>com.fh.jms</groupId>
<artifactId>camel-jms</artifactId>
<version>2.13.1</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.fh.jms</groupId>
<artifactId>geronimo-j2ee-management</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>com.fh.jms</groupId>
<artifactId>geronimo-jms</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>sqlitejdbc</groupId>
<artifactId>sqlitejdbc</artifactId>
<version>0.53</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-launcher</artifactId>
<version>1.7.1</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.7.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.keyboardsamurais.maven</groupId>
<artifactId>maven-timestamp-plugin</artifactId>
<version>1.0</version>
<configuration>
<propertyName>timestamp</propertyName>
<timestampPattern>yyyyMMdd</timestampPattern>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.google.code.maven-svn-revision-number-plugin</groupId>
<artifactId>svn-revision-number-maven-plugin</artifactId>
<version>1.13</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<entries>
<entry>
<path>${project.basedir}</path>
<prefix>SVN</prefix>
</entry>
</entries>
</configuration>
<inherited>false</inherited>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>websphere</id>
<phase>package</phase>
<configuration>
<target>
<mkdir dir="${basedir}/target/eps" />
<copy todir="${basedir}/target/eps" overwrite="true"
preservelastmodified="true">
<fileset dir="${basedir}/eps-master/target">
<include name="**/*.war" />
</fileset>
</copy>
<copy todir="${basedir}/target/eps" overwrite="true"
preservelastmodified="true">
<fileset dir="${basedir}/eps-slave-android/target">
<include name="**/*.war" />
</fileset>
</copy>
<copy todir="${basedir}/target/eps" overwrite="true"
preservelastmodified="true">
<fileset dir="${basedir}/eps-slave-ios/target">
<include name="**/*.war" />
</fileset>
</copy>
<zip
destfile="${basedir}/target/eps-${project.version}-build${SVN.committedRevision}-${build.timestamp}.war"
basedir="${basedir}/target/eps/" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
1 个解决方案
#1
我也遇到了这个问题,根据http://*.com/questions/23340101/hadoop-2-4-failed-to-execute-goal-org-apache-maven-pluginsmaven-antrun-plugin1网页上的回答。安装了openssl-devel和ncurses-devel,编译成功了,希望对你有帮助。
#1
我也遇到了这个问题,根据http://*.com/questions/23340101/hadoop-2-4-failed-to-execute-goal-org-apache-maven-pluginsmaven-antrun-plugin1网页上的回答。安装了openssl-devel和ncurses-devel,编译成功了,希望对你有帮助。