falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Ram <nellaivi...@live.com>
Subject org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message: Detected JDK Version: 1.7.0-51 is not in the allowed range [1.6.0,1.6.1000}].
Date Mon, 03 Feb 2014 01:55:58 GMT
Hi,

I am trying to build the falcon on my laptop, which is CentOS and JDK 1.7.0.
Its throws below error message, I think it could cause by JDK version. Do I
need to downgrade the JDK level. Please refer the error from here. Please
share your thoughts if your time permits.

 

[admin@localhost falcon]$ mvn clean assembly:assembly -DskipTests -X

 

[INFO]
------------------------------------------------------------------------

[INFO] Building Apache Oozie Main 4.0.0-falcon

[INFO]
------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-enforcer-plugin:1.0:enforce (clean) @ oozie-main ---

[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireJavaVersion
failed with message:

Detected JDK Version: 1.7.0-51 is not in the allowed range
[1.6.0,1.6.1000}].

[INFO]
------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] Apache Oozie Main ................................. FAILURE [1.358s]

[INFO] Apache Oozie Client ............................... SKIPPED

[INFO] Apache Oozie Hadoop 1.1.1.oozie-4.0.0-falcon ...... SKIPPED

[INFO] Apache Oozie Hadoop Distcp 1.1.1.oozie-4.0.0-falcon  SKIPPED

[INFO] Apache Oozie Hadoop 1.1.1.oozie-4.0.0-falcon Test . SKIPPED

[INFO] Apache Oozie Hadoop 2.2.0-SNAPSHOT.oozie-4.0.0-falcon  SKIPPED

[INFO] Apache Oozie Hadoop 2.2.0-SNAPSHOT.oozie-4.0.0-falcon Test  SKIPPED

[INFO] Apache Oozie Hadoop Distcp 2.2.0-SNAPSHOT.oozie-4.0.0-falcon  SKIPPED

[INFO] Apache Oozie Hadoop 0.23.5.oozie-4.0.0-falcon ..... SKIPPED

[INFO] Apache Oozie Hadoop 0.23.5.oozie-4.0.0-falcon Test  SKIPPED

[INFO] Apache Oozie Hadoop Distcp 0.23.5.oozie-4.0.0-falcon  SKIPPED

[INFO] Apache Oozie Hadoop Libs .......................... SKIPPED

[INFO] Apache Oozie Hbase 0.94.2.oozie-4.0.0-falcon ...... SKIPPED

[INFO] Apache Oozie Hbase Libs ........................... SKIPPED

[INFO] Apache Oozie HCatalog 0.5.0.oozie-4.0.0-falcon .... SKIPPED

[INFO] Apache Oozie HCatalog 0.6.0.oozie-4.0.0-falcon .... SKIPPED

[INFO] Apache Oozie HCatalog Libs ........................ SKIPPED

[INFO] Apache Oozie Share Lib Oozie ...................... SKIPPED

[INFO] Apache Oozie Share Lib HCatalog ................... SKIPPED

[INFO] Apache Oozie Core ................................. SKIPPED

[INFO] Apache Oozie Docs ................................. SKIPPED

[INFO] Apache Oozie Share Lib Pig ........................ SKIPPED

[INFO] Apache Oozie Share Lib Hive ....................... SKIPPED

[INFO] Apache Oozie Share Lib Sqoop ...................... SKIPPED

[INFO] Apache Oozie Share Lib Streaming .................. SKIPPED

[INFO] Apache Oozie Share Lib Distcp ..................... SKIPPED

[INFO] Apache Oozie WebApp ............................... SKIPPED

[INFO] Apache Oozie Examples ............................. SKIPPED

[INFO] Apache Oozie Share Lib ............................ SKIPPED

[INFO] Apache Oozie Tools ................................ SKIPPED

[INFO] Apache Oozie MiniOozie ............................ SKIPPED

[INFO] Apache Oozie Distro ............................... SKIPPED

[INFO]
------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 3.133s

[INFO] Finished at: Sun Feb 02 17:50:27 PST 2014

[INFO] Final Memory: 12M/33M

[INFO]
------------------------------------------------------------------------

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce (clean) on
project oozie-main: Some Enforcer rules have failed. Look above for specific
messages explaining why the rule failed. -> [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

[INFO]
------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] Checkstyle ........................................ SUCCESS [0.285s]

[INFO] Apache Falcon ..................................... FAILURE [23.234s]

[INFO] Build Tools ....................................... SUCCESS [0.017s]

[INFO] Apache Falcon CLI client .......................... SUCCESS [0.008s]

[INFO] Apache Falcon Metrics ............................. SUCCESS [0.004s]

[INFO] Apache Falcon Hadoop Dependencies ................. SUCCESS [0.012s]

[INFO] Apache Falcon Test Utility ........................ SUCCESS [0.011s]

[INFO] Apache Falcon Commons ............................. SUCCESS [0.013s]

[INFO] Apache Falcon Oozie EL Extension .................. SUCCESS [0.010s]

[INFO] Apache Falcon Embedded Hadoop - Test Cluster ...... SUCCESS [0.011s]

[INFO] Apache Falcon Messaging ........................... SUCCESS [0.004s]

[INFO] Apache Falcon Oozie Adaptor ....................... SUCCESS [0.026s]

[INFO] Apache Falcon Feed ................................ SUCCESS [0.025s]

[INFO] Apache Falcon Process ............................. SUCCESS [0.008s]

[INFO] Apache Falcon Acquisition ......................... SUCCESS [0.004s]

[INFO] Apache Falcon Replication ......................... SUCCESS [0.023s]

[INFO] Apache Falcon Retention ........................... SUCCESS [0.005s]

[INFO] Apache Falcon Archival ............................ SUCCESS [0.027s]

[INFO] Apache Falcon Rerun ............................... SUCCESS [0.007s]

[INFO] Apache Falcon Prism ............................... SUCCESS [0.056s]

[INFO] Apache Falcon Web Application ..................... SUCCESS [0.007s]

[INFO] Apache Falcon Documentation ....................... SUCCESS [0.012s]

[INFO]
------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 26.817s

[INFO] Finished at: Sun Feb 02 17:50:27 PST 2014

[INFO] Final Memory: 28M/67M

[INFO]
------------------------------------------------------------------------

[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (BUILD-OOZIE) on project
build-tools: Command execution failed. Process exited with an error: 1 (Exit
value: 1) -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (BUILD-OOZIE) on project
build-tools: Command execution failed.

                at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:2
16)

                at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
53)

                at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
45)

                at
org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(Moj
oExecutor.java:364)

                at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
98)

                at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
53)

                at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:1
45)

                at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
cycleModuleBuilder.java:84)

                at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Life
cycleModuleBuilder.java:59)

                at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Lif
ecycleStarter.java:183)

                at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarte
r.java:161)

                at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)

                at
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)

                at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)

                at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)

                at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57
)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)

                at java.lang.reflect.Method.invoke(Method.java:606)

                at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.ja
va:289)

                at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

                at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.
java:415)

                at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution
failed.

                at
org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:362)

                at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPl
uginManager.java:106)

                at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:2
08)

                ... 23 more

Caused by: org.apache.commons.exec.ExecuteException: Process exited with an
error: 1 (Exit value: 1)

                at
org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java
:377)

                at
org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)

                at
org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:610)

                at
org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:352)

                ... 25 more

[ERROR]

 

Thanks and Regards

Vijay Ram

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message