Install local jar dependency as part of the lifecycle, before Maven attempts to resolve it

后端 未结 3 2080
Happy的楠姐
Happy的楠姐 2020-12-28 17:04

Because of some incompatibilities between two dependencies, I was forced to make a shaded version of one of my dependencies. This means my project now depends on a local .ja

3条回答
  •  星月不相逢
    2020-12-28 17:21

    Use phase clean on maven-install-plugin

    
      maven-install-plugin
      2.5.2
      
        
          **clean**
          
            install-file
          
          
            lib/my-custom-jar-1.0.0.jar
          
        
      
    
    

    Execute mvn clean to install local dependencies before resolution

    mvn clean
    

    note: mvn clean install doesn't work (run clean only)

提交回复
热议问题