Maven offline - problem with mvn-plugins

前端 未结 6 1903
滥情空心
滥情空心 2021-01-12 06:49

I\'m using maven in my project and I need to run the build in a non-internet-access machine.

When I test my project build everything is working, bu

6条回答
  •  执念已碎
    2021-01-12 07:24

    After some debugging I found that maven-dependency-plugin (version 3.1.1 at the time of writing) is unable to resolve plugin's dependencies when specified like:

    
     org.apache.maven.plugins
     maven-surefire-plugin
     3.0.0-M3
     
          <--- this is not going to be resolved by dependency:go-offline command !!!
       org.apache.maven.surefire
       surefire-junit4
       3.0.0-M3
      
     
    
    

    After that I found go-offline-maven-plugin which just works! Pls see https://github.com/qaware/go-offline-maven-plugin for more info.

    
     de.qaware.maven
     go-offline-maven-plugin
     x.y.z
    
    

    Current version could be found here https://mvnrepository.com/artifact/de.qaware.maven/go-offline-maven-plugin and Maven issue here https://issues.apache.org/jira/browse/MDEP-82

提交回复
热议问题