Creation of distributed maven project

Common packaging methods of Maven : jar , war , pom

Pom projects are generally parent projects that manage the version of the jar package, the version of the maven plugin, and unified dependency management. Aggregate Engineering.

|--parent : parent project, packaging method pom , manages the version number of the jar package.

         All projects in the project should inherit the parent project.

|--common : Common tool class common pojo . Packaging method jar

|--manager : Service layer engineering. Aggregate Engineering. Pom Engineering

    |--manager-dao : packaging method jar

    |--manager-pojo : Packaging jar

    |--manager-interface : Packaging jar

    |--manager-service : Packaging method: war (only the spring container needs to be configured in web.xml, no front-end controller needs to be configured )

|--manager-web : Presentation layer project. Packaging method war

The project packaged as jar needs to be maven install to the local warehouse when running.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325722065&siteId=291194637