Maven plugin version in pom (seemingly) ignored

前端 未结 3 920

I\'m noticing that Maven output is reporting plugin version numbers different than what I\'m specifying in the pom file.

For example, in my pom I specify the compiler pl

3条回答
  •  日久生厌
    2021-01-25 04:51

    The best thing to define such thing is to use pluginManagement like this:

    
      ...
      
        ...
        
          
            
              org.apache.maven.plugins
              maven-compiler-plugin
              3.1
            
          
        
        ...
      
    
    

    This should solve you problem, but I'm not 100% sure, cause i don't have the full pom file.

提交回复
热议问题