Maven Git Repository -
i'm newbie both git , maven.
i need in building war file through maven buy getting maven project in git repository.
currently have maven project in local git repository , i'm running mvn tomcat7:deploy command on project root directory bulid , deploy on tomcat server , succeded in that.
but wanted know how maven project remote git repository , update local git repository , build war file.
my current pom.xml this
<plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-compiler-plugin</artifactid> <version>2.4</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupid>org.apache.tomcat.maven</groupid> <artifactid>tomcat7-maven-plugin</artifactid> <version>2.0</version> <configuration> <url>http://localhost:8080/manager/text</url> <server>tomcatserver</server> <path>/test</path> </configuration> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-war-plugin</artifactid> <version>2.4</version> <configuration> <failonmissingwebxml>false</failonmissingwebxml> </configuration> </plugin> <plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>buildnumber-maven-plugin</artifactid> <version>1.2</version> <executions> <execution> <phase>validate</phase> <goals> <goal>create</goal> </goals> </execution> </executions> <configuration> <docheck>true</docheck> <doupdate>true</doupdate> <shortrevisionlength>5</shortrevisionlength> </configuration> </plugin> <dependencies> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupid>org.apache.poi</groupid> <artifactid>poi-ooxml</artifactid> <version>3.9</version> </dependency> </dependencies> <scm> <connection>scm:git:git://serverip/repository</connection> <developerconnection>scm:git:git://serverip/repository</developerconnection> <url>scm:git:git://serverip/repository</url> </scm>
you mean when example mvn clean install
want done maven in 1 step. is, not have maven build , deploy code, have pull latest version of code git , build, deploy.
if case have here: how can git pull in maven?
Comments
Post a Comment