1
 Projects to build: [MavenProject: com.cisco.hmp:HMP:1.0 @ C:\Program Files  (x86)\Jenkins\jobs\HMP-R2\workspace\CCI\Applications\eCustomer\HMP\pom.xml]
[JENKINS] Archiving C:\Program Files (x86)\Jenkins\jobs\HMP-R2\workspace\CCI\Applications\eCustomer\HMP\pom.xml to C:\Program Files (x86)\Jenkins\jobs\HMP-R2\modules\com.cisco.hmp$HMP\builds\2012-06-20_14-40- 11\archive\com.cisco.hmp\HMP\1.0\HMP-1.0.pom
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal org.apache.maven.plugins:maven-compiler-    plugin:2.3.2:compile (default-compile) on project HMP: Compilation failure
Failure executing javac, but could not parse the error:
javac: invalid flag: -s
Usage: javac <options> <source files>
where possible options include:
-g                         Generate all debugging info
-g:none                    Generate no debugging info
-g:{lines,vars,source}     Generate only some debugging info
-nowarn                    Generate no warnings
-verbose                   Output messages about what the compiler is doing
-deprecation               Output source locations where deprecated APIs are used
-classpath <path>          Specify where to find user class files
-cp <path>                 Specify where to find user class files
-sourcepath <path>         Specify where to find input source files
-bootclasspath <path>      Override location of bootstrap class files
-extdirs <dirs>            Override location of installed extensions
-endorseddirs <dirs>       Override location of endorsed standards path
-d <directory>             Specify where to place generated class files
-encoding <encoding>       Specify character encoding used by source files
-source <release>          Provide source compatibility with specified release
-target <release>          Generate class files for specific VM version
-version                   Version information
-help                      Print a synopsis of standard options
-X                         Print a synopsis of nonstandard options
-J<flag>                   Pass <flag> directly to the runtime system

POM ファイルで何かを変更する必要がありますか?

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
   <source>1.6</source>
   <target>1.6</target>
</configuration>
</plugin>

JDK が環境変数のパス変数にあることを確認しました。これを Jenkins でビルドしています。プロジェクトをパラメーター化されたビルドにし、提供するパラメーターは JDK の場所です。

4

1 に答える 1

0

コメントで回答:

jdkを再インストールすることで機能しました。— ロナク・シャー

于 2015-07-10T11:04:27.050 に答える