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

前端 未结 24 2602
萌比男神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

    I alluded to some python code in a comment to the answer from @alex lehmann's , so am posting it here.

    def AddJars(jarList):
      s1 = ''
      for elem in jarList:
       s1+= """
         
            local.dummy
            %s
            0.0.1
            system
            ${project.basedir}/manual_jars/%s
         \n"""%(elem, elem)
      return s1
    

提交回复
热议问题