Can I add jars to maven 2 build classpath without installing them?

前端 未结 24 2598
萌比男神i
萌比男神i 2020-11-22 01:41

Maven2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.

I have a pom.xml file that defines the dependenc

24条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 02:02

    What seems simplest to me is just configure your maven-compiler-plugin to include your custom jars. This example will load any jar files in a lib directory.

            
                org.apache.maven.plugins
                maven-compiler-plugin
                
                    
                        lib/*.jar
                    
                
            
    

提交回复
热议问题