Advertisement
hivefans

maven-pom.xml

Apr 10th, 2019
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.82 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3.     <!-- 常规设置 -->
  4.     <modelVersion>4.0.0</modelVersion>
  5.     <groupId>my</groupId>
  6.     <artifactId>s</artifactId>
  7.     <packaging>jar</packaging>
  8.     <version>1.0-SNAPSHOT</version>
  9.     <name>s</name>
  10.     <url>http://maven.apache.org</url>
  11.     <!-- 设置资源目录,打包时资源目录的资源被加载到classes路径下 -->
  12.     <properties>
  13.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  14.         <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  15.     </properties>
  16.     <build>
  17.         <resources>
  18.             <resource>
  19.                 <directory>src/main/resources</directory>
  20.                 <includes>
  21.                     <include>*.properties</include>
  22.                     <include>*.xml</include>
  23.                 </includes>
  24.                 <filtering>true</filtering>
  25.             </resource>
  26.         </resources>
  27.         <plugins>
  28.             <plugin>
  29.                 <groupId>org.apache.maven.plugins</groupId>
  30.                 <artifactId>maven-compiler-plugin</artifactId>
  31.                 <version>3.6.1</version>
  32.                 <configuration>
  33.                     <source>1.7</source>
  34.                     <target>1.7</target>
  35.                     <encoding>UTF-8</encoding>
  36.                 </configuration>
  37.             </plugin>
  38.         </plugins>
  39.     </build>
  40.     <!--配置除中央仓库以外的个别仓库-->
  41.     <repositories>
  42.         <repository>
  43.             <id>奇葩</id>
  44.             <url>https://奇葩/repo/</url>
  45.         </repository>
  46.     </repositories>
  47.    
  48.     <dependencies>
  49.         <dependency>
  50.             <groupId>org.apache.hadoop</groupId>
  51.             <artifactId>hadoop-common</artifactId>
  52.             <version>2.6.0</version>
  53.         </dependency>
  54.        
  55.         <dependency>
  56.             <groupId>jdk.tools</groupId>
  57.             <artifactId>jdk.tools</artifactId>
  58.             <version>1.7</version>
  59.             <scope>system</scope>
  60.             <systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
  61.         </dependency>
  62.  
  63.     </dependencies>
  64.  
  65. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement