I’m new to both maven and git and wanted to get some help in setting a project.
Is there a way to define a goal in the pom to push/pull from git during linked to a maven phase? For example, can I pull from git during the maven install phase?
If yes, how can that be accomplished? I would appreciate any code examples.
Good idea or not, here’s how you could do a checkout (
pullclone from Github) using Maven. Have your pom.xml look like this:Then use
mvn scm:checkout. When I ran this, it pulled the code to foldertarget/engesoft. There’s probably a way to configure it to place it somewhere else. Check out the following pages: