【2017-01-03 更新】将基础的pom抽离成一个项目无关的parent pom,euler-framework的pom继承这个parent pom

今天在家折腾了一下怎么把Jar包发布到Maven的中央仓库,基本步骤百毒一堆,但基本上都是让引用sonatype的parent pom,个人感觉这份pom并不好用,于是自己写了一个,同时这个pom也是Spring MVC + Hibernate + Spring Security开发的基本pom,有兴趣的童鞋可以参考一下。

euler-parent/pom.xml

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4.  
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>net.eulerframework</groupId>
  7. <artifactId>euler-parent</artifactId>
  8. <version>0.0.2-SNAPSHOT</version>
  9. <packaging>pom</packaging>
  10. <name>net.eulerframework:euler-parent</name>
  11. <url>https://eulerproject.io</url>
  12. <description>Parent POM for all Euler projects.</description>
  13.  
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. </properties>
  17.  
  18. <profiles>
  19. <!-- <profile>
  20. <id>java8-doclint-disabled</id>
  21. <activation>
  22. <jdk>[1.8,)</jdk>
  23. </activation>
  24. <properties>
  25. <javadoc.opts>-Xdoclint:none</javadoc.opts>
  26. </properties>
  27. </profile> -->
  28.  
  29. <profile>
  30. <id>sonatype-oss-release</id>
  31. <distributionManagement>
  32. <snapshotRepository>
  33. <id>sonatype-nexus-snapshots</id>
  34. <name>Sonatype Nexus Snapshots</name>
  35. <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  36. </snapshotRepository>
  37. <repository>
  38. <id>sonatype-nexus-staging</id>
  39. <name>Nexus Release Repository</name>
  40. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  41. </repository>
  42. </distributionManagement>
  43.  
  44. <build>
  45. <pluginManagement>
  46. <plugins>
  47. <plugin>
  48. <groupId>org.apache.maven.plugins</groupId>
  49. <artifactId>maven-release-plugin</artifactId>
  50. <version>2.1</version>
  51. <configuration>
  52. <mavenExecutorId>forked-path</mavenExecutorId>
  53. <useReleaseProfile>false</useReleaseProfile>
  54. <arguments>-Psonatype-oss-release</arguments>
  55. </configuration>
  56. </plugin>
  57. </plugins>
  58. </pluginManagement>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-enforcer-plugin</artifactId>
  63. <version>1.0</version>
  64. <executions>
  65. <execution>
  66. <id>enforce-maven</id>
  67. <goals>
  68. <goal>enforce</goal>
  69. </goals>
  70. <configuration>
  71. <rules>
  72. <requireMavenVersion>
  73. <version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
  74. <message>Maven 2.1.0 and
  75. 2.2.0 produce incorrect
  76. GPG signatures and
  77. checksums respectively.</message>
  78. </requireMavenVersion>
  79. </rules>
  80. </configuration>
  81. </execution>
  82. </executions>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-gpg-plugin</artifactId>
  87. <version>1.1</version>
  88. <executions>
  89. <execution>
  90. <id>sign-artifacts</id>
  91. <phase>verify</phase>
  92. <goals>
  93. <goal>sign</goal>
  94. </goals>
  95. </execution>
  96. </executions>
  97. </plugin>
  98. </plugins>
  99. </build>
  100. </profile>
  101.  
  102. <profile>
  103. <id>eulerproject-repo-release</id>
  104. <distributionManagement>
  105. <repository>
  106. <id>releases</id>
  107. <url>http://repo.eulerproject.io/content/repositories/maven-releases/</url>
  108. </repository>
  109. <snapshotRepository>
  110. <id>snapshots</id>
  111. <url>http://repo.eulerproject.io/content/repositories/maven-snapshots/</url>
  112. </snapshotRepository>
  113. </distributionManagement>
  114. </profile>
  115. </profiles>
  116.  
  117. <build>
  118. <pluginManagement>
  119. <plugins>
  120. <!-- This plugin's configuration is used to store Eclipse
  121. m2e settings only. It has no influence on the Maven build itself. -->
  122. <plugin>
  123. <groupId>org.eclipse.m2e</groupId>
  124. <artifactId>lifecycle-mapping</artifactId>
  125. <version>1.0.0</version>
  126. <configuration>
  127. <lifecycleMappingMetadata>
  128. <pluginExecutions>
  129. <pluginExecution>
  130. <pluginExecutionFilter>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-enforcer-plugin</artifactId>
  133. <versionRange>[1.0.0,)</versionRange>
  134. <goals>
  135. <goal>enforce</goal>
  136. </goals>
  137. </pluginExecutionFilter>
  138. <action>
  139. <ignore />
  140. </action>
  141. </pluginExecution>
  142. </pluginExecutions>
  143. </lifecycleMappingMetadata>
  144. </configuration>
  145. </plugin>
  146.  
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-deploy-plugin</artifactId>
  150. <version>2.7</version>
  151. </plugin>
  152. </plugins>
  153. </pluginManagement>
  154.  
  155. <plugins>
  156. <plugin>
  157. <groupId>org.apache.maven.plugins</groupId>
  158. <artifactId>maven-resources-plugin</artifactId>
  159. <version>2.7</version>
  160. <configuration>
  161. <encoding>UTF-8</encoding>
  162. </configuration>
  163. </plugin>
  164. <plugin>
  165. <groupId>org.apache.maven.plugins</groupId>
  166. <artifactId>maven-jar-plugin</artifactId>
  167. <version>2.6</version>
  168. <configuration>
  169. <archive>
  170. <addMavenDescriptor>false</addMavenDescriptor>
  171. </archive>
  172. </configuration>
  173. </plugin>
  174. <plugin>
  175. <groupId>org.apache.maven.plugins</groupId>
  176. <artifactId>maven-war-plugin</artifactId>
  177. <version>2.6</version>
  178. <configuration>
  179. <archive>
  180. <addMavenDescriptor>false</addMavenDescriptor>
  181. </archive>
  182. </configuration>
  183. </plugin>
  184. <plugin>
  185. <groupId>org.apache.maven.plugins</groupId>
  186. <artifactId>maven-source-plugin</artifactId>
  187. <version>3.0.1</version>
  188. <executions>
  189. <execution>
  190. <id>attach-sources</id>
  191. <goals>
  192. <goal>jar-no-fork</goal>
  193. </goals>
  194. </execution>
  195. </executions>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-javadoc-plugin</artifactId>
  200. <version>2.10.4</version>
  201. <executions>
  202. <execution>
  203. <id>attach-javadocs</id>
  204. <goals>
  205. <goal>jar</goal>
  206. </goals>
  207. <!-- <configuration>
  208. <additionalparam>${javadoc.opts}</additionalparam>
  209. </configuration> -->
  210. </execution>
  211. </executions>
  212. </plugin>
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-release-plugin</artifactId>
  216. <version>2.5.3</version>
  217. </plugin>
  218. </plugins>
  219. </build>
  220.  
  221. <licenses>
  222. <license>
  223. <name>MIT License</name>
  224. <url>https://opensource.org/licenses/MIT</url>
  225. </license>
  226. </licenses>
  227.  
  228. <scm>
  229. <connection>scm:git:https://github.com/euler-projects/euler-parent.git</connection>
  230. <developerConnection>scm:git:git@github.com:euler-projects/euler-parent.git</developerConnection>
  231. <url>https://github.com/euler-projects/euler-parent</url>
  232. </scm>
  233.  
  234. <developers>
  235. <developer>
  236. <name>cFrost Sun</name>
  237. <email>cfrost@eulerproject.io</email>
  238. <organization>Euler Project</organization>
  239. <organizationUrl>https://eulerproject.io</organizationUrl>
  240. </developer>
  241. </developers>
  242.  
  243. </project>

euler-framework/pom.xml

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5.  
  6. <parent>
  7. <groupId>net.eulerframework</groupId>
  8. <artifactId>euler-parent</artifactId>
  9. <version>0.0.2-SNAPSHOT</version>
  10. <relativePath></relativePath>
  11. </parent>
  12.  
  13. <artifactId>euler-framework</artifactId>
  14. <version>0.2.0-SNAPSHOT</version>
  15. <packaging>pom</packaging>
  16. <name>net.eulerframework:euler-framework</name>
  17. <url>https://euler-projects.github.io/euler-framework</url>
  18. <description>Parent POM for Euler Framework projects.</description>
  19.  
  20. <modules>
  21. <module>euler-web-core</module>
  22. <module>euler-web-authentication</module>
  23. <module>euler-web-basic</module>
  24. <module>euler-web-config-provider</module>
  25. </modules>
  26.  
  27. <properties>
  28. <jdk.version>1.7</jdk.version>
  29.  
  30. <commons-codec.version>1.10</commons-codec.version>
  31.  
  32. <jsp.version>2.2</jsp.version>
  33. <servlet.version>3.0.1</servlet.version>
  34. <jstl.version>1.2</jstl.version>
  35. <inject.version>1</inject.version>
  36. <validation-api.version>1.1.0.Final</validation-api.version>
  37. <jta.version>1.1</jta.version>
  38. <jaxb-api.version>2.2.12</jaxb-api.version>
  39. <java-mail.version>1.5.5</java-mail.version>
  40.  
  41. <springframework.version>4.2.5.RELEASE</springframework.version>
  42. <springsecurity.version>4.0.4.RELEASE</springsecurity.version>
  43. <springsecurity.oauth.version>2.0.9.RELEASE</springsecurity.oauth.version>
  44. <springsecurity.oauth.jwt.version>1.0.4.RELEASE</springsecurity.oauth.jwt.version>
  45.  
  46. <AspectJ.version>1.8.9</AspectJ.version>
  47. <jasig.version>3.2.2</jasig.version>
  48. <quartz.version>2.2.3</quartz.version>
  49.  
  50. <hibernate.version>5.0.5.Final</hibernate.version>
  51. <hibernate.validator.version>5.2.4.Final</hibernate.validator.version>
  52. <c3p0.version>0.9.5.2</c3p0.version>
  53. <mysqljdbc.version>5.1.38</mysqljdbc.version>
  54.  
  55. <!-- <jersey.version>2.22.2</jersey.version> -->
  56.  
  57. <jackson.version>2.7.3</jackson.version>
  58.  
  59. <slf4j-api.version>1.7.21</slf4j-api.version>
  60. <log4j.version>1.2.17</log4j.version>
  61. <log4j2.version>2.5</log4j2.version>
  62. <jboss.logging.version>3.3.0.Final</jboss.logging.version>
  63. <commons-logging.version>1.2</commons-logging.version>
  64.  
  65. <junit.version>3.8.1</junit.version>
  66. </properties>
  67.  
  68. <dependencyManagement>
  69. <dependencies>
  70. <!-- Basic Jars -->
  71. <dependency>
  72. <groupId>commons-codec</groupId>
  73. <artifactId>commons-codec</artifactId>
  74. <version>${commons-codec.version}</version>
  75. </dependency>
  76.  
  77. <!-- J2EE -->
  78. <dependency>
  79. <groupId>javax.servlet</groupId>
  80. <artifactId>javax.servlet-api</artifactId>
  81. <version>${servlet.version}</version>
  82. <scope>provided</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>javax.servlet.jsp</groupId>
  86. <artifactId>jsp-api</artifactId>
  87. <version>${jsp.version}</version>
  88. <scope>provided</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>javax.servlet</groupId>
  92. <artifactId>jstl</artifactId>
  93. <version>${jstl.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>javax.inject</groupId>
  97. <artifactId>javax.inject</artifactId>
  98. <version>${inject.version}</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>javax.validation</groupId>
  102. <artifactId>validation-api</artifactId>
  103. <version>${validation-api.version}</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>javax.transaction</groupId>
  107. <artifactId>jta</artifactId>
  108. <version>${jta.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>javax.xml.bind</groupId>
  112. <artifactId>jaxb-api</artifactId>
  113. <version>${jaxb-api.version}</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>javax.mail</groupId>
  117. <artifactId>javax.mail-api</artifactId>
  118. <version>${java-mail.version}</version>
  119. </dependency>
  120.  
  121. <!-- Spring -->
  122. <dependency>
  123. <groupId>org.springframework</groupId>
  124. <artifactId>spring-context-support</artifactId>
  125. <version>${springframework.version}</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.springframework</groupId>
  129. <artifactId>spring-webmvc</artifactId>
  130. <version>${springframework.version}</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.springframework</groupId>
  134. <artifactId>spring-orm</artifactId>
  135. <version>${springframework.version}</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springframework</groupId>
  139. <artifactId>spring-oxm</artifactId>
  140. <version>${springframework.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.aspectj</groupId>
  144. <artifactId>aspectjweaver</artifactId>
  145. <version>${AspectJ.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.quartz-scheduler</groupId>
  149. <artifactId>quartz</artifactId>
  150. <version>${quartz.version}</version>
  151. <exclusions>
  152. <exclusion>
  153. <groupId>c3p0</groupId>
  154. <artifactId>c3p0</artifactId>
  155. </exclusion>
  156. <exclusion>
  157. <groupId>org.slf4j</groupId>
  158. <artifactId>slf4j-api</artifactId>
  159. </exclusion>
  160. </exclusions>
  161. </dependency>
  162.  
  163. <!-- Spring Security -->
  164. <dependency>
  165. <groupId>org.springframework.security</groupId>
  166. <artifactId>spring-security-core</artifactId>
  167. <version>${springsecurity.version}</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.springframework.security</groupId>
  171. <artifactId>spring-security-web</artifactId>
  172. <version>${springsecurity.version}</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.springframework.security</groupId>
  176. <artifactId>spring-security-taglibs</artifactId>
  177. <version>${springsecurity.version}</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.springframework.security</groupId>
  181. <artifactId>spring-security-config</artifactId>
  182. <version>${springsecurity.version}</version>
  183. </dependency>
  184.  
  185. <!-- Spring Security LDAP -->
  186. <dependency>
  187. <groupId>org.springframework.security</groupId>
  188. <artifactId>spring-security-ldap</artifactId>
  189. <version>${springsecurity.version}</version>
  190. </dependency>
  191.  
  192. <!-- Spring Security CAS -->
  193. <dependency>
  194. <groupId>org.springframework.security</groupId>
  195. <artifactId>spring-security-cas</artifactId>
  196. <version>${springsecurity.version}</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.jasig.cas.client</groupId>
  200. <artifactId>cas-client-core</artifactId>
  201. <version>${jasig.version}</version>
  202. <exclusions>
  203. <exclusion>
  204. <groupId>commons-logging</groupId>
  205. <artifactId>commons-logging</artifactId>
  206. </exclusion>
  207. </exclusions>
  208. </dependency>
  209.  
  210. <!-- Spring Security OAuth2.0 -->
  211. <dependency>
  212. <groupId>org.springframework.security.oauth</groupId>
  213. <artifactId>spring-security-oauth2</artifactId>
  214. <version>${springsecurity.oauth.version}</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.springframework.security</groupId>
  218. <artifactId>spring-security-jwt</artifactId>
  219. <version>${springsecurity.oauth.jwt.version}</version>
  220. </dependency>
  221.  
  222. <!-- Hibernate ... -->
  223. <dependency>
  224. <groupId>org.hibernate</groupId>
  225. <artifactId>hibernate-core</artifactId>
  226. <version>${hibernate.version}</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>org.hibernate</groupId>
  230. <artifactId>hibernate-validator</artifactId>
  231. <version>${hibernate.validator.version}</version>
  232. </dependency>
  233. <dependency>
  234. <groupId>com.mchange</groupId>
  235. <artifactId>c3p0</artifactId>
  236. <version>${c3p0.version}</version>
  237. </dependency>
  238. <dependency>
  239. <groupId>mysql</groupId>
  240. <artifactId>mysql-connector-java</artifactId>
  241. <version>${mysqljdbc.version}</version>
  242. </dependency>
  243.  
  244. <!-- Jersey bean-validator与Hibernate5冲突 -->
  245. <!-- <dependency>
  246. <groupId>org.glassfish.jersey.containers</groupId>
  247. <artifactId>jersey-container-servlet</artifactId>
  248. <version>${jersey.version}</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.glassfish.jersey.ext</groupId>
  252. <artifactId>jersey-spring3</artifactId>
  253. <version>${jersey.version}</version>
  254. <exclusions>
  255. <exclusion>
  256. <groupId>org.glassfish.hk2.external</groupId>
  257. <artifactId>bean-validator</artifactId>
  258. </exclusion>
  259. </exclusions>
  260. </dependency>
  261. <dependency>
  262. <groupId>org.glassfish.jersey.media</groupId>
  263. <artifactId>jersey-media-json-jackson</artifactId>
  264. <version>${jersey.version}</version>
  265. </dependency> -->
  266.  
  267. <!-- Jackson -->
  268. <dependency>
  269. <groupId>com.fasterxml.jackson.core</groupId>
  270. <artifactId>jackson-core</artifactId>
  271. <version>${jackson.version}</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>com.fasterxml.jackson.core</groupId>
  275. <artifactId>jackson-databind</artifactId>
  276. <version>${jackson.version}</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>com.fasterxml.jackson.core</groupId>
  280. <artifactId>jackson-annotations</artifactId>
  281. <version>${jackson.version}</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>com.fasterxml.jackson.datatype</groupId>
  285. <artifactId>jackson-datatype-jsr310</artifactId>
  286. <version>${jackson.version}</version>
  287. </dependency>
  288.  
  289. <!-- Too many loggers ... -->
  290. <dependency>
  291. <groupId>org.slf4j</groupId>
  292. <artifactId>slf4j-api</artifactId>
  293. <version>${slf4j-api.version}</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>org.apache.logging.log4j</groupId>
  297. <artifactId>log4j-core</artifactId>
  298. <version>${log4j2.version}</version>
  299. </dependency>
  300. <dependency>
  301. <groupId>log4j</groupId>
  302. <artifactId>log4j</artifactId>
  303. <version>${log4j.version}</version>
  304. </dependency>
  305. <dependency>
  306. <groupId>org.jboss.logging</groupId>
  307. <artifactId>jboss-logging</artifactId>
  308. <version>${jboss.logging.version}</version>
  309. </dependency>
  310. <dependency>
  311. <groupId>commons-logging</groupId>
  312. <artifactId>commons-logging</artifactId>
  313. <version>${commons-logging.version}</version>
  314. </dependency>
  315.  
  316. <dependency>
  317. <groupId>junit</groupId>
  318. <artifactId>junit</artifactId>
  319. <version>${junit.version}</version>
  320. <scope>test</scope>
  321. </dependency>
  322.  
  323. <dependency>
  324. <groupId>net.eulerframework</groupId>
  325. <artifactId>euler-cache</artifactId>
  326. <version>0.2.0-SNAPSHOT</version>
  327. </dependency>
  328.  
  329. <dependency>
  330. <groupId>net.eulerframework</groupId>
  331. <artifactId>euler-common</artifactId>
  332. <version>0.2.0-SNAPSHOT</version>
  333. </dependency>
  334. </dependencies>
  335. </dependencyManagement>
  336.  
  337. <build>
  338. <plugins>
  339. <plugin>
  340. <groupId>org.apache.maven.plugins</groupId>
  341. <artifactId>maven-compiler-plugin</artifactId>
  342. <version>3.3</version>
  343. <configuration>
  344. <source>${jdk.version}</source>
  345. <target>${jdk.version}</target>
  346. </configuration>
  347. </plugin>
  348. </plugins>
  349. </build>
  350.  
  351. <scm>
  352. <connection>scm:git:https://github.com/euler-projects/euler-framework.git</connection>
  353. <developerConnection>scm:git:git@github.com:euler-projects/euler-framework.git</developerConnection>
  354. <url>https://github.com/euler-projects/euler-framework</url>
  355. </scm>
  356.  
  357. </project>

更多关于Euler Framework的资料请访问eulerproject.io

一份可以发布jar包到MAVEN中央仓库的POM的更多相关文章

  1. 如何发布jar包到maven中央仓库

    自使用maven以来,没少使用maven中央仓库中的各种jar包,方便有效,但是咱们也不能总是只取不予,也应该懂得奉献,当你写好了一个十分好用的jar包,想贡献出去给大家使用的时候,应该怎么做呢?当然 ...

  2. 发布Jar包到maven中央仓库

    什么是maven中央仓库 maven是java世界最流行的构建工具,构建内容囊括了一个java项目的整个生命周期.其中最重要的功能就是依赖管理,maven通过一个类似云的ftp站点统一管理所有java ...

  3. 如何发布自己的 jar 包到 maven 中央仓库(待更新...)

    参考链接 如何发布自己的 jar 包到 maven 中央仓库

  4. maven插件上传本地jar包到maven中央仓库

    settings配置(如果设置后有问题,可以重启idea,保证重新加载settings文件): <!-- 上传jar包到maven中央仓库配置start --> <server> ...

  5. 上传jar包到maven中央仓库过程中遇到的一些问题总结!

    网上有很多相关教程, 我按步骤一步步走下来, 都还算顺利, 简单列举一下步骤以及其中需要注意的几个点(不详细, 不适合当教程) 第一步: 到https://issues.sonatype.org/se ...

  6. 发布jar包到远端github仓库使用(将github仓库当作maven仓库)

    今天把单点登陆的core模块搬到了github仓库 并且利用github仓库作为maven仓库 在项目中进行了引用 1. 起初看技术博客没有完全引入进来,调整了一下OK了 2. 还可以将其他模块或者工 ...

  7. 如何将 jar 包导入Maven 本地仓库

    案例:oracle jar包由于在maven 远程仓库中找不到,需要先将oracle jar 文件下载到本地,然后导入maven本地仓库,就可以通过 pom 进行依赖 例如:下载后的 jar 地址 D ...

  8. 手动安装jar包到Maven本地仓库

    接手别人的一个项目,Maven工程,导入后,某些jar包找不到,然后从同事那复制Maven本地仓库的文件夹到我的电脑,发现依旧找不到.问题大致总结为:本地maven仓库存在jar,但是依然报Missi ...

  9. 将jar包导入maven本地仓库

    https://blog.csdn.net/lvdaan/article/details/79760976 一.首先配置环境变量 在path 中添加 maven的bin 的路径 例如:D:\soft\ ...

随机推荐

  1. 百度搜索 “Java面试题” 前200页(面试必看)

    前言 本文中的题目来源于网上的一篇文章<百度搜索 "Java面试题" 前200页>,但该文章里面只有题目,没有答案.因此,我整理了一些答案发布于本文.本文整理答案的原则 ...

  2. 未处理的异常 stack overflow

    今天在编译程序时遇到“0x00e304f7 处有未经处理的异常: 0xC00000FD: Stack overflow”的错误,也就是栈溢出了,google了一下,原来是我申请的一个变量太大了,con ...

  3. (转)Maven学习总结(五)——聚合与继承

    孤傲苍狼只为成功找方法,不为失败找借口! Maven学习总结(五)——聚合与继承 一.聚合 如果我们想一次构建多个项目模块,那我们就需要对多个项目模块进行聚合 1.1.聚合配置代码 1 <mod ...

  4. Eclipse配置Maven的一些问题

    问题1:连接私服 build项目非常缓慢 配置好本地的setting文件后,发现build非常缓慢,照显示的进度,可能要一天才会build后一个项目,同事指导解决方法如下: MyEclipse2017 ...

  5. yolo-v2只识别person

    一.修改源代码 (1)修改cfg/voc.data classess=20    改成 classes = 1 (2)修改data/voc.names 只留下person这一类 (3)修改exampl ...

  6. idea中的pom文件中的jar包下载不了,手动下载jar包的方法

    问题描述: 在pom文件中添加依赖的时候,程序怎么着都是下载不了,而且实验了各种方式: IDEA引MAVEN项目jar包依赖导入问题解决 https://www.cnblogs.com/a845701 ...

  7. SqlServer在视图上创建索引

    在视图上创建索引需要三个条件: 一.视图必须绑定到架构. 要做到这点,在 CREATE VIEW 语句中,必须加上 WITH SCHEMABINDING,如果是使用企业管理器,则在设计界面的空白处点击 ...

  8. spark DataFrame 常见操作

    spark dataframe派生于RDD类,但是提供了非常强大的数据操作功能.当然主要对类SQL的支持. 在实际工作中会遇到这样的情况,主要是会进行两个数据集的筛选.合并,重新入库. 首先加载数据集 ...

  9. Javascript你不知道的那些事!(数字计算篇-变态篇)无意中聊天发现的一些奇怪的事情

    javascript:alert(0.1 + 0.2) 如果看到这样一道题你会怎么思考了!大家肯定第一反应0.3,但是考虑到我已经这样问了!那么幼稚的答案我会专门写篇文章吗 然后人就开始折磨自己了会不 ...

  10. HDU 1176 免费馅饼 DP类似数塔题

    解题报告: 小明走在一条小路上,这条小路的长度是10米,从左到右依次是0到10一共十个点,现在天上会掉馅饼,给出馅饼掉落的坐标和时间,一开始小明的位置是在坐标为5的位置, 他每秒钟只能移动一米的距离, ...