How to stop Maven's verify phase rebuilding the artifact?

前端 未结 5 1889
太阳男子
太阳男子 2020-12-31 21:15

Imagine a Java project built using Maven for which I have:

  • some fast-running unit tests that:
    • developers should run before committing
    • my CI s
5条回答
  •  不思量自难忘°
    2020-12-31 21:56

    Maven profile that executes only the integration tests (as suggested here) is not sufficient. You also need to make sure that the configuration of maven-compiler-plugin has useIncrementalCompilation = false. Running the profile this way, will not automatically re-compile, e.g.:

    
        org.apache.maven.plugins
        maven-compiler-plugin
        3.3
        
            1.8
            1.8
            false
        
    
    

提交回复
热议问题