Hadoop Common
  1. Hadoop Common
  2. HADOOP-9350

Hadoop not building against Java7 on OSX

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 2.3.0
    • Component/s: build
    • Labels:
      None
    • Environment:

      OSX, java version "1.7.0_15" -Oracle installation of JRE and JDK

      Description

      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

      1. HADOOP-9350.patch
        1 kB
        Robert Kanter
      2. building.patch
        0.7 kB
        Steve Loughran

        Issue Links

          Activity

          Hide
          Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk #1551 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1551/)
          HADOOP-9350. Moving to appropriate section in CHANGES.txt (acmurthy: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523891)

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #1551 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1551/ ) HADOOP-9350 . Moving to appropriate section in CHANGES.txt (acmurthy: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523891 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk #1525 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1525/)
          HADOOP-9350. Moving to appropriate section in CHANGES.txt (acmurthy: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523891)

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #1525 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1525/ ) HADOOP-9350 . Moving to appropriate section in CHANGES.txt (acmurthy: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523891 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Yarn-trunk #335 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/335/)
          HADOOP-9350. Moving to appropriate section in CHANGES.txt (acmurthy: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523891)

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - SUCCESS: Integrated in Hadoop-Yarn-trunk #335 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/335/ ) HADOOP-9350 . Moving to appropriate section in CHANGES.txt (acmurthy: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523891 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Hadoop-trunk-Commit #4430 (See https://builds.apache.org/job/Hadoop-trunk-Commit/4430/)
          HADOOP-9350. Moving to appropriate section in CHANGES.txt (acmurthy: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523891)

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - SUCCESS: Integrated in Hadoop-trunk-Commit #4430 (See https://builds.apache.org/job/Hadoop-trunk-Commit/4430/ ) HADOOP-9350 . Moving to appropriate section in CHANGES.txt (acmurthy: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523891 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk #1548 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1548/)
          HADOOP-9350: move entry in changes.txt to 2.1.2-beta section (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523191)

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #1548 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1548/ ) HADOOP-9350 : move entry in changes.txt to 2.1.2-beta section (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523191 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk #1522 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1522/)
          HADOOP-9350: move entry in changes.txt to 2.1.2-beta section (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523191)

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #1522 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1522/ ) HADOOP-9350 : move entry in changes.txt to 2.1.2-beta section (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523191 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Hadoop-Yarn-trunk #332 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/332/)
          HADOOP-9350: move entry in changes.txt to 2.1.2-beta section (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523191)

          Show
          Hudson added a comment - SUCCESS: Integrated in Hadoop-Yarn-trunk #332 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/332/ ) HADOOP-9350 : move entry in changes.txt to 2.1.2-beta section (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523191 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt HADOOP-9350 . Hadoop not building against Java7 on OSX (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1522867 ) /hadoop/common/trunk/BUILDING.txt /hadoop/common/trunk/hadoop-common-project/hadoop-annotations/pom.xml /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Hadoop-trunk-Commit #4414 (See https://builds.apache.org/job/Hadoop-trunk-Commit/4414/)
          HADOOP-9350: move entry in changes.txt to 2.1.2-beta section (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523191)

          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - SUCCESS: Integrated in Hadoop-trunk-Commit #4414 (See https://builds.apache.org/job/Hadoop-trunk-Commit/4414/ ) HADOOP-9350 : move entry in changes.txt to 2.1.2-beta section (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1523191 ) /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          FAILURE: Integrated in Hadoop-Mapreduce-trunk #1547 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1547/)
          HADOOP-9350. Hadoop not building against Java7 on OSX (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1522867)

          • /hadoop/common/trunk/BUILDING.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-annotations/pom.xml
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #1547 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1547/ ) HADOOP-9350 . Hadoop not building against Java7 on OSX (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1522867 ) /hadoop/common/trunk/BUILDING.txt /hadoop/common/trunk/hadoop-common-project/hadoop-annotations/pom.xml /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          FAILURE: Integrated in Hadoop-Hdfs-trunk #1521 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1521/)
          HADOOP-9350. Hadoop not building against Java7 on OSX (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1522867)

          • /hadoop/common/trunk/BUILDING.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-annotations/pom.xml
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #1521 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1521/ ) HADOOP-9350 . Hadoop not building against Java7 on OSX (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1522867 ) /hadoop/common/trunk/BUILDING.txt /hadoop/common/trunk/hadoop-common-project/hadoop-annotations/pom.xml /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Hudson added a comment -

          SUCCESS: Integrated in Hadoop-trunk-Commit #4407 (See https://builds.apache.org/job/Hadoop-trunk-Commit/4407/)
          HADOOP-9350. Hadoop not building against Java7 on OSX (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1522867)

          • /hadoop/common/trunk/BUILDING.txt
          • /hadoop/common/trunk/hadoop-common-project/hadoop-annotations/pom.xml
          • /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Show
          Hudson added a comment - SUCCESS: Integrated in Hadoop-trunk-Commit #4407 (See https://builds.apache.org/job/Hadoop-trunk-Commit/4407/ ) HADOOP-9350 . Hadoop not building against Java7 on OSX (stevel: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1522867 ) /hadoop/common/trunk/BUILDING.txt /hadoop/common/trunk/hadoop-common-project/hadoop-annotations/pom.xml /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
          Hide
          Steve Loughran added a comment -

          Patch also verified on Windows & that it doesn't break the build on OS/X + Java6

          Fixed in trunk and branch-2. Thanks!

          Show
          Steve Loughran added a comment - Patch also verified on Windows & that it doesn't break the build on OS/X + Java6 Fixed in trunk and branch-2. Thanks!
          Hide
          Karthik Kambatla (Inactive) added a comment -

          I verified it on Linux. +1.

          Show
          Karthik Kambatla (Inactive) added a comment - I verified it on Linux. +1.
          Hide
          Steve Loughran added a comment -

          OK -we'll need people on other platforms (linux, windows, power) to make sure that this doesn't break.

          Show
          Steve Loughran added a comment - OK -we'll need people on other platforms (linux, windows, power) to make sure that this doesn't break.
          Hide
          Akira AJISAKA added a comment -

          +1, after creating the symlink according to the direction, 'mvn install -DskipTest' succeeded with the patch on my Mac against Java7.

          Show
          Akira AJISAKA added a comment - +1, after creating the symlink according to the direction, 'mvn install -DskipTest' succeeded with the patch on my Mac against Java7.
          Hide
          Robert Kanter added a comment -

          I created a patch that includes the two fixes suggested by Steve Loughran:

          1. BUILDING.txt gives directions on creating the symlink (instead of just saying it doesn't work)
          2. Hadoop-Annotations pom has a Java 7 profile

          Verified that it compiles on my Mac against Java 7 and Java 6. Verifies that it also compiles on Linux against Java 7 and Java 6 (thanks Karthik Kambatla!)

          Show
          Robert Kanter added a comment - I created a patch that includes the two fixes suggested by Steve Loughran : BUILDING.txt gives directions on creating the symlink (instead of just saying it doesn't work) Hadoop-Annotations pom has a Java 7 profile Verified that it compiles on my Mac against Java 7 and Java 6. Verifies that it also compiles on Linux against Java 7 and Java 6 (thanks Karthik Kambatla !)
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Hdfs-trunk #1356 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1356/)
          HADOOP-9350 -add entry to BUILDING.TXT to say 'no java7 on OS/X (Revision 1460634)

          Result = FAILURE
          stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1460634
          Files :

          • /hadoop/common/trunk/BUILDING.txt
          Show
          Hudson added a comment - Integrated in Hadoop-Hdfs-trunk #1356 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1356/ ) HADOOP-9350 -add entry to BUILDING.TXT to say 'no java7 on OS/X (Revision 1460634) Result = FAILURE stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1460634 Files : /hadoop/common/trunk/BUILDING.txt
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Yarn-trunk #167 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/167/)
          HADOOP-9350 -add entry to BUILDING.TXT to say 'no java7 on OS/X (Revision 1460634)

          Result = SUCCESS
          stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1460634
          Files :

          • /hadoop/common/trunk/BUILDING.txt
          Show
          Hudson added a comment - Integrated in Hadoop-Yarn-trunk #167 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/167/ ) HADOOP-9350 -add entry to BUILDING.TXT to say 'no java7 on OS/X (Revision 1460634) Result = SUCCESS stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1460634 Files : /hadoop/common/trunk/BUILDING.txt
          Hide
          Hudson added a comment -

          Integrated in Hadoop-Mapreduce-trunk #1383 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1383/)
          HADOOP-9350 -add entry to BUILDING.TXT to say 'no java7 on OS/X (Revision 1460634)

          Result = FAILURE
          stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1460634
          Files :

          • /hadoop/common/trunk/BUILDING.txt
          Show
          Hudson added a comment - Integrated in Hadoop-Mapreduce-trunk #1383 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1383/ ) HADOOP-9350 -add entry to BUILDING.TXT to say 'no java7 on OS/X (Revision 1460634) Result = FAILURE stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1460634 Files : /hadoop/common/trunk/BUILDING.txt
          Hide
          Hudson added a comment -

          Integrated in Hadoop-trunk-Commit #3519 (See https://builds.apache.org/job/Hadoop-trunk-Commit/3519/)
          HADOOP-9350 -add entry to BUILDING.TXT to say 'no java7 on OS/X (Revision 1460634)

          Result = SUCCESS
          stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1460634
          Files :

          • /hadoop/common/trunk/BUILDING.txt
          Show
          Hudson added a comment - Integrated in Hadoop-trunk-Commit #3519 (See https://builds.apache.org/job/Hadoop-trunk-Commit/3519/ ) HADOOP-9350 -add entry to BUILDING.TXT to say 'no java7 on OS/X (Revision 1460634) Result = SUCCESS stevel : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1460634 Files : /hadoop/common/trunk/BUILDING.txt
          Hide
          Steve Loughran added a comment -

          I've patched BUILDING.TXT for this; here's the lines changed.

          Leaving the JIRA open as there is a POM fixup to add too.

          Show
          Steve Loughran added a comment - I've patched BUILDING.TXT for this; here's the lines changed. Leaving the JIRA open as there is a POM fixup to add too.
          Hide
          Steve Loughran added a comment -

          I should add that this patch isn't enough; hadoop-annotations won't compile; imports of {{ com.sun.javadoc}}: [http://steveloughran.blogspot.co.uk/2013/03/hadoop-java7-and-osx-or-what-is-it.html]

          It looks like someone needs to patch up maven's POM

          Show
          Steve Loughran added a comment - I should add that this patch isn't enough; hadoop-annotations won't compile; imports of {{ com.sun.javadoc}}: [ http://steveloughran.blogspot.co.uk/2013/03/hadoop-java7-and-osx-or-what-is-it.html ] It looks like someone needs to patch up maven's POM [ http://sunnytalkstech.blogspot.in/2011/08/maven-dependency-for-toolsjar-in-jdk7.html ] [ http://stackoverflow.com/questions/3080437/jdk-tools-jar-as-maven-dependency ]
          Hide
          Steve Loughran added a comment -

          will patch BUILDING.TXT

          Show
          Steve Loughran added a comment - will patch BUILDING.TXT
          Hide
          Timothy Chen added a comment -

          Just hit this problem earlier and agree please put this in BUILDING.txt as it will save a lot of time for new devs.

          Show
          Timothy Chen added a comment - Just hit this problem earlier and agree please put this in BUILDING.txt as it will save a lot of time for new devs.
          Hide
          Alejandro Abdelnur added a comment -

          Steve, how about adding a note in the BUILDING.txt file with the workaround until it is fixed upstream?

          Show
          Alejandro Abdelnur added a comment - Steve, how about adding a note in the BUILDING.txt file with the workaround until it is fixed upstream?
          Hide
          Steve Loughran added a comment -

          This is triggered by

          1. Oracle moving things around
          2. The JSPC plugin having hard-coded expectations of where things live.

          There is a known (currently open) plugin JIRA MJSPC-53

          The workaround is to create the Home/Classes dir, then symlink ../lib/tools.jar to classes.jar

          closing as WONTFIX as it's an upstream problem; this JIRA is here to note the problem and the fix

          Show
          Steve Loughran added a comment - This is triggered by Oracle moving things around The JSPC plugin having hard-coded expectations of where things live. There is a known (currently open) plugin JIRA MJSPC-53 The workaround is to create the Home/Classes dir, then symlink ../lib/tools.jar to classes.jar closing as WONTFIX as it's an upstream problem; this JIRA is here to note the problem and the fix
          Hide
          Steve Loughran added a comment -

          On java7 on OSX, the {[jspc-maven-plugin}}: fails as it cannot find classes.jar where it expects.

          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)
          
          Show
          Steve Loughran added a comment - On java7 on OSX, the {[jspc-maven-plugin}}: fails as it cannot find classes.jar where it expects. 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)

            People

            • Assignee:
              Robert Kanter
              Reporter:
              Steve Loughran
            • Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development