zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maoling (Jira)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-3536) On Windows maven build generates corrupted tarball
Date Sun, 08 Sep 2019 05:44:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-3536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925084#comment-16925084
] 

maoling commented on ZOOKEEPER-3536:
------------------------------------

* it seems not due to *tarLongFileMode,*changing to *gnu* also failed
 * Cc [~nkalmar], [~eolivelli] What's your insight?
 * >*mvn clean compile -e -X -DtrimStackTrace=false -DskipTests*. (Windows 10,java version
"1.8.0_151")
 * 
{code:java}
[INFO] Compiling 334 source files to E:\WORKSPACES\workspace_zookeeper\zookeeper\zookeeper-server\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache ZooKeeper ................................... SUCCESS [  8.970 s]
[INFO] Apache ZooKeeper - Documentation ................... SUCCESS [  9.712 s]
[INFO] Apache ZooKeeper - Jute ............................ SUCCESS [  9.208 s]
[INFO] Apache ZooKeeper - Server .......................... FAILURE [ 15.542 s]
[INFO] Apache ZooKeeper - Metrics Providers ............... SKIPPED
[INFO] Apache ZooKeeper - Prometheus.io Metrics Provider .. SKIPPED
[INFO] Apache ZooKeeper - Client .......................... SKIPPED
[INFO] Apache ZooKeeper - Recipes ......................... SKIPPED
[INFO] Apache ZooKeeper - Recipes - Election .............. SKIPPED
[INFO] Apache ZooKeeper - Recipes - Lock .................. SKIPPED
[INFO] Apache ZooKeeper - Recipes - Queue ................. SKIPPED
[INFO] Apache ZooKeeper - Assembly ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.006 s
[INFO] Finished at: 2019-09-08T13:38:37+08:00
[INFO] Final Memory: 50M/429M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
(default-compile) on project zookeeper: Fatal error compiling: java.lang.NullPointerException
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile
(default-compile) on project zookeeper: Fatal error compiling
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java: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: Fatal error compiling
        at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1140)
        at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:188)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 20 more
Caused by: org.codehaus.plexus.compiler.CompilerException: java.lang.NullPointerException
        at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:173)
        at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:174)
        at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1129)
        ... 23 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at com.sun.tools.javac.main.Main.compile(Main.java:559)
        at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
        at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
        at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126)
        ... 25 more
Caused by: java.lang.NullPointerException
        at com.sun.tools.javac.model.JavacTypes.getOverriddenMethods(JavacTypes.java:306)
        at com.sun.tools.doclint.Env.setCurrent(Env.java:155)
        at com.sun.tools.doclint.Checker.scan(Checker.java:144)
        at com.sun.tools.doclint.DocLint$2.visitDecl(DocLint.java:285)
        at com.sun.tools.doclint.DocLint$DeclScanner.visitVariable(DocLint.java:372)
        at com.sun.tools.doclint.DocLint$DeclScanner.visitVariable(DocLint.java:346)
        at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:864)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
        at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
        at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:99)
        at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:133)
        at com.sun.tools.doclint.DocLint$DeclScanner.visitClass(DocLint.java:360)
        at com.sun.tools.doclint.DocLint$DeclScanner.visitClass(DocLint.java:346)
        at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:720)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
        at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
        at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:99)
        at com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:120)
        at com.sun.tools.doclint.DocLint$DeclScanner.visitCompilationUnit(DocLint.java:354)
        at com.sun.tools.doclint.DocLint$DeclScanner.visitCompilationUnit(DocLint.java:346)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:550)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
        at com.sun.tools.doclint.DocLint$3.started(DocLint.java:296)
        at com.sun.tools.javac.api.ClientCodeWrapper$WrappedTaskListener.started(ClientCodeWrapper.java:668)
        at com.sun.tools.javac.api.MultiTaskListener.started(MultiTaskListener.java:103)
        at com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1240)
        at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
        at com.sun.tools.javac.main.Main.compile(Main.java:523)
        ... 28 more
[ERROR]
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :zookeeper
{code}

 

 

> On Windows maven build generates corrupted tarball
> --------------------------------------------------
>
>                 Key: ZOOKEEPER-3536
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3536
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 3.5.5
>            Reporter: Mohammad Arshad
>            Priority: Minor
>
> On windows maven command {code}mvn clean install -DskipTests{code} creates corrupted
tarballs.
> In zookeeper-assembly/pom.xml <tarLongFileMode>posix</tarLongFileMode> causing
the problem.  Many use Windows as development environment. it would be better if we can make
tarLongFileMode property configurable or select based on OS.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message