[
https://issues.apache.org/jira/browse/HADOOP-9350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590497#comment-13590497
]
Steve Loughran commented on HADOOP-9350:
----------------------------------------
On java7 on OSX, the {[jspc-maven-plugin}}: fails as it cannot find
{{classes.jar}} where it expects.
{code}
main:
[INFO] Executed tasks
[INFO]
[INFO] --- jspc-maven-plugin:2.0-alpha-3:compile (hdfs) @ hadoop-hdfs ---
[WARNING] Compiled JSPs will not be added to the project and web.xml will not
be modified, either because includeInProject is set to false or because the
project's packaging is not 'war'.
---------------------------------------------------
constituent[0]: file:/usr/share/maven/lib/aether-api-1.13.1.jar
constituent[1]: file:/usr/share/maven/lib/aether-connector-wagon-1.13.1.jar
constituent[2]: file:/usr/share/maven/lib/aether-impl-1.13.1.jar
constituent[3]: file:/usr/share/maven/lib/aether-spi-1.13.1.jar
constituent[4]: file:/usr/share/maven/lib/aether-util-1.13.1.jar
constituent[5]: file:/usr/share/maven/lib/commons-cli-1.2.jar
constituent[6]: file:/usr/share/maven/lib/maven-aether-provider-3.0.4.jar
constituent[7]: file:/usr/share/maven/lib/maven-artifact-3.0.4.jar
constituent[8]: file:/usr/share/maven/lib/maven-compat-3.0.4.jar
constituent[9]: file:/usr/share/maven/lib/maven-core-3.0.4.jar
constituent[10]: file:/usr/share/maven/lib/maven-embedder-3.0.4.jar
constituent[11]: file:/usr/share/maven/lib/maven-model-3.0.4.jar
constituent[12]: file:/usr/share/maven/lib/maven-model-builder-3.0.4.jar
constituent[13]: file:/usr/share/maven/lib/maven-plugin-api-3.0.4.jar
constituent[14]: file:/usr/share/maven/lib/maven-repository-metadata-3.0.4.jar
constituent[15]: file:/usr/share/maven/lib/maven-settings-3.0.4.jar
constituent[16]: file:/usr/share/maven/lib/maven-settings-builder-3.0.4.jar
constituent[17]: file:/usr/share/maven/lib/plexus-cipher-1.7.jar
constituent[18]:
file:/usr/share/maven/lib/plexus-component-annotations-1.5.5.jar
constituent[19]: file:/usr/share/maven/lib/plexus-interpolation-1.14.jar
constituent[20]: file:/usr/share/maven/lib/plexus-sec-dispatcher-1.3.jar
constituent[21]: file:/usr/share/maven/lib/plexus-utils-2.0.6.jar
constituent[22]: file:/usr/share/maven/lib/sisu-guava-0.9.9.jar
constituent[23]: file:/usr/share/maven/lib/sisu-guice-3.1.0-no_aop.jar
constituent[24]: file:/usr/share/maven/lib/sisu-inject-bean-2.3.0.jar
constituent[25]: file:/usr/share/maven/lib/sisu-inject-plexus-2.3.0.jar
constituent[26]: file:/usr/share/maven/lib/wagon-file-2.2.jar
constituent[27]: file:/usr/share/maven/lib/wagon-http-2.2-shaded.jar
constituent[28]: file:/usr/share/maven/lib/wagon-provider-api-2.2.jar
---------------------------------------------------
Exception in thread "main" java.lang.AssertionError: Missing tools.jar at:
/Library/Java/JavaVirtualMachines/jdk1.7.0_15.jdk/Contents/Home/Classes/classes.jar.
Expression: file.exists()
at
org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:395)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:683)
at
org.codehaus.mojo.jspc.CompilationMojoSupport.findToolsJar(CompilationMojoSupport.groovy:371)
at
org.codehaus.mojo.jspc.CompilationMojoSupport.this$4$findToolsJar(CompilationMojoSupport.groovy)
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:601)
at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrent0(ScriptBytecodeAdapter.java:112)
at
org.codehaus.mojo.jspc.CompilationMojoSupport.execute(CompilationMojoSupport.groovy:318)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:601)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
{code}
> Hadoop not building against Java7 on OSX
> -----------------------------------------
>
> Key: HADOOP-9350
> URL: https://issues.apache.org/jira/browse/HADOOP-9350
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 3.0.0
> Environment: OSX, java version "1.7.0_15" -Oracle installation of JRE
> and JDK
> Reporter: Steve Loughran
> Priority: Minor
>
> Maven stack-traces out in the {{jspc}} compilation as the JSPC plugin doesn't
> work against the new JDK7 JAR layout. Needs a symlink set up to fix
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira