首页 > 代码库 > maven依赖本地包

maven依赖本地包

http://www.cfei.net/archives/535


依赖项目外包

<dependencies>

       <dependency>  

   <groupId>com.polites.android</groupId>  

   <artifactId>gesture-imageview</artifactId>  

       <version>1.1.1</version>  

       <scope>system</scope>  

       <!--本地jar的路径,相对或者绝对都可以-->  

       <systemPath>E:/workspace-android/juxing-all/gesture-imageview/bin/gesture-imageview.jar</systemPath>  

</dependency>



依赖项目内包


< build >
         < plugins >
             < plugin >
               < artifactId >maven-compiler-plugin</ artifactId >
               < configuration >
                   < source >1.6</ source >
                   < target >1.6</ target >
                   < encoding >UTF-8</ encoding >
                   < compilerArguments >
                    < extdirs >src\main\webapp\WEB-INF\lib</ extdirs >
                  </ compilerArguments >
               </ configuration >
             </ plugin >
         </ plugins >
     </ build >


maven依赖本地包