karthikvee

first-maven-pom

Oct 10th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.20 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0    http://maven.apache.org/xsd/maven-4.0.0.xsd">
  2.    <modelVersion>4.0.0</modelVersion>
  3.    <groupId>com.javatpoint.application1</groupId>
  4.    <artifactId>my-app</artifactId>
  5.    <version>1</version>
  6.    <!--<dependencies>
  7.     <dependency>
  8.         <groupId>org.jfrog.buildinfo</groupId>
  9.         <artifactId>artifactory-maven-plugin</artifactId>
  10.         <version>2.2.1</version>
  11.         <type>pom</type>
  12.     </dependency>
  13.   </dependencies> -->
  14.    <build>
  15.      <plugins>
  16.        <plugin>
  17.           <groupId>org.codehaus.mojo</groupId>
  18.           <artifactId>exec-maven-plugin</artifactId>
  19.           <version>1.1.1</version>
  20.           <executions>
  21.              <execution>
  22.                 <id>some-execution</id>
  23.                 <phase>compile</phase>
  24.                 <goals>
  25.                    <goal>exec</goal>
  26.                 </goals>
  27.              </execution>
  28.           </executions>
  29.           <configuration>
  30.              <executable>hostname</executable>
  31.           </configuration>
  32.        </plugin>
  33.        <plugin>
  34.           <groupId>org.jfrog.buildinfo</groupId>
  35.           <artifactId>artifactory-maven-plugin</artifactId>
  36.           <version>2.2.1</version>
  37.           <inherited>false</inherited>
  38.           <executions>
  39.               <execution>
  40.                   <id>build-info</id>
  41.                   <goals>
  42.                       <goal>publish</goal>
  43.                   </goals>
  44.                   <configuration>
  45.                       <deployProperties>
  46.                           <gradle>awesome</gradle>
  47.                           <review.team>qa</review.team>
  48.                       </deployProperties>
  49.                       <publisher>
  50.                           <contextUrl>https://jfrog-repo.url/artifactory/REPO_NAME</contextUrl>
  51.                           <username>user-id</username>
  52.                           <password>user-password</password>
  53.                       </publisher>
  54.                   </configuration>
  55.               </execution>
  56.           </executions>
  57.        </plugin>
  58.      </plugins>
  59.     </build>
  60. </project>
Add Comment
Please, Sign In to add comment