maven中常用各类配置文件及查找方法

Maven设置utf8编码格式            -----百度 mvn utf8

<properties>

    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

</properties>

Maven设置jdk1.8编码格式                          -----à 百度 mvn jdk1.8

<build>

              <finalName>pp</finalName>  

              <plugins>

                     <plugin>

                            <groupId>org.apache.maven.plugins</groupId>

                            <artifactId>maven-compiler-plugin</artifactId>

                            <version>3.7.0</version>

                            <configuration>

                                   <source>1.8</source>

                                   <target>1.8</target>

                            </configuration>

                     </plugin>

              </plugins>

       </build>

MyBatis » 3.4.5 à配置文件                   ------mvnrepository    mybatis

<dependency>

    <groupId>org.mybatis</groupId>

    <artifactId>mybatis</artifactId>

    <version>3.4.5</version>

</dependency>

 

Struts 2 配置文件                              ------mvnrepository    struts2 core

        <dependency>

                    <groupId>org.apache.struts</groupId>

                    <artifactId>struts2-core</artifactId>

                    <version>2.5.16</version>

              </dependency>

       

Oracle6                                            ------mvnrepository        ojdbc6

<dependency>

                 <groupId>com.oracle</groupId>

                 <artifactId>ojdbc6</artifactId>

                 <version>11.2.0.3</version>

                 <scope>runtime</scope>

           </dependency>

MySQL Connector/J         ------mvnrepository      mysql

<dependency>

    <groupId>mysql</groupId>

    <artifactId>mysql-connector-java</artifactId>

    <version>8.0.11</version>

</dependency>

JUnit » 4.12           ----- mvnrepository   junit

<dependency>

    <groupId>junit</groupId>

    <artifactId>junit</artifactId>

    <version>4.12</version>

    <scope>test</scope>

</dependency>

Java Servlet API                                       -----àmvnrepository             servlet-api       

<dependency>

    <groupId>javax.servlet</groupId>

    <artifactId>javax.servlet-api</artifactId>

    <version>3.0.1</version>

    <scope>provided</scope>

</dependency>

Systempath                         --- 百度 systempath

<dependency>

      <groupId>com.oracle</groupId>

<artifactId>ojdbc6</artifactId>

      <version>6.0.0</version>

      <scope>system</scope>

      <systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/ojdbc6.jar</systemPath>

</dependency>

 

Beanutils                                   -----mvnrepository  commons-beanutils

<dependency>                     

                 <groupId>commons-beanutils</groupId>

                 <artifactId>commons-beanutils</artifactId>

                 <version>1.9.3</version>

</dependency>

C标签                                               --- 百度 jstl1.2

<dependency>

                 <groupId>javax.servlet</groupId>

                 <artifactId>jstl</artifactId>

                 <version>1.2</version>

           </dependency>

 

 

 

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值