IDEA打包,运行等错误

一、打包错误

1.Maven内存

IDEA打包,运行等错误_第1张图片

2.排查是不是Schema结构太长

可选择将schema拆分为一条一条

IDEA打包,运行等错误_第2张图片

3.pom文件


   src/main/scala

   
   
      
         net.alchim31.maven
         scala-maven-plugin
         
         3.2.0
         
            
               
                  compile
                  testCompile
               
            
         
         
            ${scala.version}
            incremental
            true
            
               -unchecked
               -deprecation
               -feature
            
            
               -source
               ${java.version}
               -target
               ${java.version}
            
         
      

      
         org.apache.maven.plugins
         maven-dependency-plugin
         
            
               copy-dependencies
               prepare-package
               
                  copy-dependencies
               
               
                  ${project.build.directory}/lib
                  false
                  false
                  true
               
            
         
      
      
         org.apache.maven.plugins
         maven-jar-plugin
         
            
               
                  true
                  lib/
               
            
         
      
      
         org.apache.maven.plugins
         maven-compiler-plugin
         3.6.0
         
            1.8
            1.8
         
      
   

二、在本地IDEA运行程序时,报出scalac:Error:org.jetbrains.jps.incremental.scala.remote.ServerException  java.lang.StackOverflow...

参考:https://www.jianshu.com/p/f5bd2829d418

三、运行后Command line is too long. Shorten command line for OnlinexxxAggregate or also for Application xxx

参考https://www.e-learn.cn/content/qita/766673

四、包冲突

Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.

找到这两个jar包,删除一个即可

并添加


    log4j
    log4j


    org.slf4j
    elf4j-log4j12

五、NoSuchMethodError: io.netty.buffer.PooledByteBufAllocator.defaultNumHeapArena()I

参考:https://blog.csdn.net/weixin_43777983/article/details/104558048

IDEA打包,运行等错误_第3张图片

在pom文件elasticsearch.client依赖处添加

IDEA打包,运行等错误_第4张图片

你可能感兴趣的:(Maven,IDEA)