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

前端 未结 24 2578
萌比男神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 01:59

    For throw away code only

    set scope == system and just make up a groupId, artifactId, and version

    
        org.swinglabs
        swingx
        0.9.2
        system
        ${project.basedir}/lib/swingx-0.9.3.jar
    
    

    Note: system dependencies are not copied into resulted jar/war
    (see How to include system dependencies in war built using maven)

提交回复
热议问题