Multi-module Maven project and jetty:run

后端 未结 6 545
无人共我
无人共我 2020-12-12 17:40

I\'m trying to split a Maven WAR project into two modules, so that I can build a separate JAR file with command line tools. The result has the following structure:

6条回答
  •  悲哀的现实
    2020-12-12 18:01

    There is no magical solution and the only one I know is a bit hacky and rely on the extraClasspath element that you can use to declare extra class directories, relatively. Like this (from JETTY-662):

    
      org.mortbay.jetty
      jetty-maven-plugin
      7.0.1.v20091125
      
        10
        
          /my-context
          target/classes;../my-jar-dependency/target/classes
        
        
          ../my-jar-dependency/target/classes
        
      
    
    

提交回复
热议问题