Want more features on Pastebin? Sign Up, it's FREE!
Guest

include library-jars in maven

By: a guest on Sep 18th, 2010  |  syntax: XML  |  size: 1.87 KB  |  views: 1,660  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  3.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4.     <modelVersion>4.0.0</modelVersion>
  5.     <groupId>org.example</groupId>
  6.     <artifactId>shared-libs</artifactId>
  7.     <version>1.0-SNAPSHOT</version>
  8.     <name>shared-libs</name>
  9.     <url>http://maven.apache.org</url>
  10.     <build>
  11.         <plugins>
  12.             <plugin>
  13.                 <groupId>org.apache.maven.plugins</groupId>
  14.                 <artifactId>maven-install-plugin</artifactId>
  15.                 <version>2.3.1</version>
  16.                 <executions>
  17.                     <execution>
  18.                         <id>install metawidget</id>
  19.                         <goals><goal>install-file</goal></goals>
  20.                         <phase>validate</phase>
  21.                         <configuration>
  22.                             <file>${basedir}/src/main/lib/metawidget-0.99/metawidget.jar</file>
  23.                             <groupId>org.metawidget</groupId>
  24.                             <artifactId>metawidget</artifactId>
  25.                             <version>0.99</version>
  26.                             <packaging>jar</packaging>
  27.                             <javadoc>${basedir}/src/main/lib/metawidget-0.99/doc/api/api.zip</javadoc>
  28.                             <!--<sources>no source available</sources>-->
  29.                         </configuration>
  30.                     </execution>
  31.                 </executions>
  32.             </plugin>
  33.         </plugins>
  34.     </build>
  35.     <dependencies>
  36.         <!-- optional, see comment -->
  37.         <dependency>
  38.             <groupId>org.metawidget</groupId>
  39.             <artifactId>metawidget</artifactId>
  40.             <version>0.99</version>
  41.         </dependency>
  42.     </dependencies>
  43. </project>
clone this paste RAW Paste Data