How to create a jar from part of my project that is packaged as a war

前端 未结 4 1489
旧时难觅i
旧时难觅i 2020-12-07 02:55

I\'m a Maven newbie, so I apologize if this is something trivial. Basically, I am developing a webapp, and I am using Maven to manage the project. I have

4条回答
  •  长情又很酷
    2020-12-07 03:40

    Have you tried to generate the project with the mvn archetype:generate command? It builds you a fully working project structure for webapps with war packaging:

    mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp
    

提交回复
热议问题