How do I compile in debug mode? (netbeans, java, maven)

后端 未结 5 1678
再見小時候
再見小時候 2021-02-07 12:01

I am facing annotation/persistence errors in a project and the persistence library throws a

NullPointerException when trying to resolve the entitie

5条回答
  •  再見小時候
    2021-02-07 12:34

    From what I understand, you want debug in the compilation- not maven in debug mode.

    Using mvn to compile, use debug mode through following way:

    
        org.apache.maven.plugins
        maven-compiler-plugin
        3.8.1
        
            8
            8
            true
            lines,vars,source 
        
     
    

    debuglevel can be any of the three values entered in CSV format To highlight, debug and debuglevel are important nodes included in the maven.

    Hope it helps in some way.

    Reference: maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html

提交回复
热议问题