Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.80 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/xsd/maven-4.0.0.xsd">
  3.   <modelVersion>4.0.0</modelVersion>
  4.  
  5.   <groupId>com.example</groupId>
  6.   <artifactId>mybatis2</artifactId>
  7.   <version>0.0.1-SNAPSHOT</version>
  8.   <packaging>jar</packaging>
  9.  
  10.   <name>mybatis2</name>
  11.   <url>http://maven.apache.org</url>
  12.  
  13.   <properties>
  14.     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15.   </properties>
  16.  
  17.   <dependencies>
  18.     <dependency>
  19.       <groupId>junit</groupId>
  20.       <artifactId>junit</artifactId>
  21.       <version>3.8.1</version>
  22.       <scope>test</scope>
  23.     </dependency>
  24.     <dependency>
  25.         <groupId>org.mybatis</groupId>
  26.         <artifactId>mybatis</artifactId>
  27.         <version>3.3.1</version>
  28.     </dependency>
  29.     <dependency>
  30.         <groupId>mysql</groupId>
  31.         <artifactId>mysql-connector-java</artifactId>
  32.         <version>5.1.38</version>
  33.     </dependency>  
  34.   </dependencies>
  35.   <build>
  36.         <pluginManagement>
  37.             <plugins>
  38.                 <plugin>
  39.                     <groupId>org.apache.maven.plugins</groupId>
  40.                     <artifactId>maven-compiler-plugin</artifactId>
  41.                     <configuration>
  42.                         <source>1.8</source>
  43.                         <target>1.8</target>
  44.                     </configuration>
  45.                 </plugin>
  46.                 <plugin>
  47.                 <groupId>org.mybatis.generator</groupId>
  48.                 <artifactId>mybatis-generator-maven-plugin</artifactId>
  49.                 <version>1.3.0</version>
  50.                 <executions>
  51.                     <execution>
  52.                       <id>Generate MyBatis Artifacts</id>
  53.                     <goals>
  54.                         <goal>generate</goal>
  55.                       </goals>                 
  56.                     </execution>
  57.           </executions>
  58.                
  59.             </plugin>
  60.             </plugins>         
  61.         </pluginManagement>
  62.    </build>
  63. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement