• maven工程多依赖情况下 程序包 不存在问题

    maven工程多依赖配置的时候,一些需要注意的小问题。

    2021-04-22[java]

    阅读更多
  • maven: Failed to read artifact descriptor for

    最近切换开发工具到 ideal , 同样的maven项目,同样的配置方式,在eclipse里面能运行,却不能在ideal 里面正常跑起来,老报一个依赖错: Failed to read artifact descriptor for xxx,  Failed to collect dependencies at xxx, 这里的XXX 其实是自己的依赖包,我做了一个parent工程,下面有几个子工程,相互依赖.

    2016-06-14[Architect]

    阅读更多
  • 取得maven工程的版本号方法之一

    当我们在package一个maven工程的时候,会自动生成一个pom.properties文件,这个文件里面包含了version,artifactid,groupid 等信息。有一个方法可以在运行时去取得这些信息:代码片段, 请查看文章详情 ...

    2015-06-09[java]

    阅读更多
  • 利用maven的profile功能直接打包不同环境的配置文件(附例子下载)

    最近刚接手一个历史遗留的应用,打包的时候采用了很古老的方式,用maven 打包成war包,然后到生产环境解压之后,逐个替换配置文件中的值,但这个应用是分布式的,是有几个小应用组成的,所以一旦修改配置文件,得分别到几个应用里面修改。而且几个系统有依赖关系的。毕竟是分布式部署的。姑且不管如何部署,就修改配置文件这点来说,我就不满意了。因为产品生产环境也是我们自己可以控制的,所以完全可以在打包前就准备好。但由于生产环境与开发环境的配置是不一样的。所以完全可以提前准备好需要变化的值作为属性,在打包时去替换配置文件中的变量就好了,maven 的  profile 就具备这样的功能,所以做了一个例子,给team 成员,让他们去效仿完成.

    2015-01-15[java]

    阅读更多
  • maven 工程启动找不到 Spring ContextLoaderListener 的解决办法

    用maven 工程搭建项目,在搭建好之后,运行时却抛出了这样的错误:  Error configuring application listener of class org.springframework.web.context.ContextLoaderListener  java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener, 这说明根本没有找到我们在 web.xml 里面配置的 listener, 但maven 的pom.xml  里面已经配置相应的包,而且可以在java 工程的maven dependency jar 包里面找到, 这说明maven是没有问题的,在网上搜索了很多答案,最多的就是类似这个文章: http://www.cnblogs.com/zhouyalei/archive/2011/11/30/2268606.html 基本都是这样去解决,但是貌似对我来说不行,而且比较麻烦,需要修改 .project , .classpath 等文件。其实有更简单的办法

    2014-02-02[java]

    阅读更多
  • 用maven 创建基于spring的可执行的jar

    在工作中,常常用到用maven 去创建j可执行的jar 文件,当然这会用到maven的插件.maven-assembly-plugin ,在通常的情况下,这是一个简单的好用的插件,但是一旦我们的工程中使用了spring 相关的一些jar 包,这时候问题就出现了; 通常的错误如下:Unable to create application context: Unable to locate Spring NamespaceHandler

    2013-09-09[java]

    阅读更多
  • MAVEN 入门系列一(转)

    1.  Maven 的构建方式和 Ant 有所不同,同出于 Apache. 一个比较入门的资料        (这样的资料一般都有个小例子,Helloworld 型的)        http://www.360doc.com/showWeb/0/0/242367.aspx        2. 比较偏理论一点介绍的(这样的资料一般比较长,概述型的)        http://www.360doc.com/showWeb/0/0/232631.aspx

    2010-07-15[java]

    阅读更多
  • Maven, JAVA_HOME is not defined correctly on Mac OSX

    Apple recommends to set JAVA_HOME to “/usr/libexec/java_home“, for example :

    2019-08-18[Java]

    阅读更多
  • Maven + Cobertura code coverage example

    Maven + Cobertura code coverage example

    Cobertura is a free Java code coverage tool – calculates the percentage of code accessed by unit tests. In this tutorial, we will show you how to use Maven to generate the Cobertura code coverage report for your project.

    2019-08-18[Java]

    阅读更多
  • Emma Class x appears to be instrumented already

    Review the “maven-emma-plugin” in pom.xml :

    2019-08-17[Java]

    阅读更多
  • Maven site build is very slow dependency report

    Creating a Maven site, but the build is very slow to generate the dependency report.

    2019-08-17[Java]

    阅读更多
  • Maven + Emma code coverage example

    Maven + Emma code coverage example

    Emma is a free Java code coverage tool. In this tutorial, we will show you how to use Maven to generate the Emma code coverage report for your project, and also how to integrate the Emma report into the Maven project site.

    2019-08-17[Java]

    阅读更多
  • Maven Exclude logback.xml in Jar file

    This example shows you how to use Maven to exclude the logback.xml file from the final Jar file.

    2019-08-17[Java]

    阅读更多
  • Create a fat Jar file Maven Shade Plugin

    Create a fat Jar file  Maven Shade Plugin

    In this tutorial, we will show you how to use Maven Shade Plugin to create a Jar together with its dependency Jars into a single executable Jar file, so called fat Jar or uber Jar.

    2019-08-17[Java]

    阅读更多
  • Maven – Create a fat Jar file One-JAR example

    Maven – Create a fat Jar file  One-JAR example

    In this tutorial, we will show you how to use Maven build tool, One-JAR plugin to create a single Jar together with its dependency Jars into a single executable Jar file, so called fat Jar.

    2019-08-17[Java]

    阅读更多
共有 31 条记录 12末页

 


  • 微信公众号

  • 我的微信

站点声明:

1、一号门博客CMS,由Python, MySQL, Nginx, Wsgi 强力驱动

2、部分文章或者资源来源于互联网, 有时候很难判断是否侵权, 若有侵权, 请联系邮箱:summer@yihaomen.com, 同时欢迎大家注册用户,主动发布无版权争议的 文章/资源.

3、鄂ICP备14001754号-3, 鄂公网安备 42280202422812号