Skip to content

IrynaUkr/maven-gradle-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to build project via Maven

mvn -pl +admin,+web clean install

to run test via Maven

mvn -pl +admin,+web clean test

to build project via Gradle

To let gradle know about all modules in project run in Terminal: gradle projects gradle clean build

to run test via Gradle

gradle testClasses

Maven

The Maven WAR plugin is responsible for collecting and compiling all the dependencies, classes, and resources of the web application into a web application archive. war: This is the default goal that is invoked during the packaging phase of the project. It builds a WAR file if the packaging type is war.

Inclusion and exclusion

Using --projects you can specify which modules to build. You can do this by specifying a comma-delimited list of project selectors. A project selector is a string that is composed of the groupId:artifactId, only :artifactId or the relative path to a module.

A module can be selected (default), or excluded from the build. You exclude a module by prefixing the selector with a ! or -. To explicitly select a module, prefix it with a +.

mvn -pl +admin,+web clean install

About

configuring multi-modules java project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages