
Maven
普通网友
这个作者很懒,什么都没留下…
展开
-
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
控制台输出的错误信息如下:[INFO] Scanning for projects...[INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1[INFO]原创 2015-01-21 20:29:33 · 24723 阅读 · 7 评论 -
java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
执行Maven Install打包的时候,出现以下错误信息: [proguard] java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options? [proguard] at proguard.shrink.Shrinker.execute(Shrinker.java:171原创 2015-05-11 11:26:27 · 9789 阅读 · 0 评论 -
Failed to execute goal com.github.wvengen:proguard-maven-plugin:2.0.10:proguard (default) on project
执行Maven Install打包的时候,出现以下错误信息:[ERROR] Failed to execute goal com.github.wvengen:proguard-maven-plugin:2.0.10:proguard (default) on project core: Can't find file F:\Workspaces\base-core\core\target\core原创 2015-05-11 11:53:33 · 20793 阅读 · 7 评论 -
Ignoring unused library classes...java.io.IOException: You have to specify '-keep' options for the s
执行Maven Install打包的时候,出现以下错误信息: Ignoring unused library classes…java.io.IOException: You have to specify ‘-keep’ options for the shrinking step. [proguard] Ignoring unused library classes...java.io.IOE原创 2015-05-12 16:34:26 · 4091 阅读 · 0 评论 -
Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in
执行Maven Install打包的时候,出现以下错误信息:[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project pro-test: Error assembling WAR: webxml attribute is required (or原创 2015-05-10 14:50:40 · 15146 阅读 · 1 评论 -
An internal error occurred during: "Loading descriptor for pro-test.".
在执行Maven Update的时候,提示以下错误: An error has occurred. See error log for more details. 详细错误: An error has occurred. See error log for more details. java.lang.NullPointerException重新启动Eclipse之后提示以下两个错误:原创 2015-05-13 10:39:10 · 31897 阅读 · 4 评论 -
CoreException: Could not get the value for parameter compilerId for plugin execution default-compile
CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its原创 2014-08-25 14:49:21 · 117825 阅读 · 22 评论 -
Maven打包 错误: 程序包org.junit不存在
最近开发的项目要部署到云服务器上,因此需要打个War放上去,但在打包的时候输出以下错误信息:[ERROR] /Users/aven/Documents/workspace/share/src/test/java/com/weixiao/share/test/TestMyBatis.java:[8,16] 错误: 程序包org.junit不存在[ERROR] /Users/aven/Documen原创 2017-04-15 14:13:48 · 28679 阅读 · 1 评论 -
从源码构建 MyBatis Generator(MBG)
从源码构建所有MyBatis Generator(MBG)发行版包括源代码,唯一的编译时间依赖关系在ant.jar上 - 用于成功编译包含的Ant任务。直接从源代码编译MBG - 只需将源解压缩到一个分发中,然后用你最喜欢的工具编译它。MBG分发不包含在构建过程中运行的测试,也不包含作为构建的必要部分的其他类。如果您想检查这些类,或者从GitHub的最新版本的源代码构建MBG,请按照下列步翻译 2017-09-09 20:56:55 · 1039 阅读 · 0 评论 -
Maven常用命令
Maven常用命令: 1. 创建Maven的普通java项目: mvn archetype:create -DgroupId=packageName -DartifactId=projectName 2. 创建Maven的Web项目: mvn archetype:create -DgroupId=packageName -DartifactId转载 2017-09-06 18:18:28 · 706 阅读 · 0 评论 -
IntelliJ IDEA CE Maven 使用方法
我们在使用 IntelliJ IDEA CE 版本时,明明创建的是一个 Maven 项目,但是在项目上点击鼠标右键时会发现,Run Maven Build 菜单是灰的,不能用!如下图:有的文章说是 Idea 对 Maven 支持的不好(真是不懂 Idea),给出的解决方法是:Run 运行 》Edit Configurations 编辑配置然后通过点击左上角的加号,添加一个 Maven 的配置项,C原创 2017-09-03 17:32:24 · 4310 阅读 · 2 评论 -
Maven 简介
Maven是一个项目管理工具,它包含了一个项目对象模型 (Project Object Model),一组标准集合,一个项目生命周期(Project Lifecycle),一个依赖管理系统(Dependency Management System),和用来运行定义在生命周期阶段(phase)中插件(plugin)目标(goal)的逻辑。当你使用Maven的时候,你用一个明确定义的项目对象模型来描述原创 2017-12-04 20:32:03 · 649 阅读 · 2 评论 -
Error: Expecting keyword 'class', 'interface', or 'enum' before '-optimizationpasses' in line 11 of
执行Maven Install打包的时候,出现以下错误信息: [proguard] Error: Expecting keyword 'class', 'interface', or 'enum' before '-optimizationpasses' in line 11 of file 'F:\Workspaces\pro-test\proguard.conf', [proguard]原创 2015-05-11 11:22:02 · 3813 阅读 · 0 评论 -
proguard.ParseException: Expecting keyword 'class', 'interface', or 'enum' before '-libraryjars' in
执行Maven Install打包的时候,出现以下错误信息: [proguard] proguard.ParseException: Expecting keyword 'class', 'interface', or 'enum' before '-libraryjars' in argument number 7 [proguard] at proguard.Configuration原创 2015-05-11 11:21:34 · 5900 阅读 · 0 评论 -
java.io.IOException: You have to specify '-keep' options for the shrinking step.
执行Maven Install打包的时候,出现以下错误信息:[proguard] java.io.IOException: You have to specify '-keep' options for the shrinking step. [proguard] at proguard.SeedPrinter.write(SeedPrinter.java:60) [proguard]原创 2015-05-11 11:18:39 · 6426 阅读 · 0 评论 -
proguard.ParseException: Unknown option '-keepdirectories' in line 57 of file
问题场景在使用Maven + Proguard打包项目进行混淆时,提示以下错误: [proguard] proguard.ParseException: Unknown option ‘-keepdirectories’ in line 57 of file ‘F:\Workspaces\middle\trunk\proguard.conf’, [proguard] included原创 2015-05-08 12:20:33 · 8434 阅读 · 0 评论 -
Failed to execute goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard (default) on project xunge-mi
Failed to execute goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard (default) on project xunge-middleware: Execution default of goal com.pyx4me:proguard-maven-plugin:2.0.4:proguard failed: Plugin co原创 2015-05-08 14:25:40 · 5635 阅读 · 0 评论 -
'build.plugins.plugin.version' for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12
‘build.plugins.plugin.version’ for com.pyx4me:proguard-maven-plugin is missing. @ line 42, column 12执行Maven Install的时候提示如下警告信息:[WARNING] [WARNING] Some problems were encountered while building the eff原创 2015-05-08 16:34:53 · 6844 阅读 · 0 评论 -
java.io.IOException: The input doesn't contain any classes. Did you specify the proper '-injars' opt
问题场景在使用Maven + Proguard打包项目进行混淆时,提示以下错误:[proguard] ProGuard, version 4.4 [proguard] Reading input... [proguard] java.io.IOException: The input doesn't contain any classes. Did you specify the proper原创 2015-05-08 18:03:43 · 10772 阅读 · 0 评论 -
Unrecognised tag: 'encoding' (position: START_TAG seen ...</version>\r\n\t\t\t\t<encoding>... @12:15
执行Maven Install打包的时候,出现以下错误信息:[INFO] Scanning for projects...[ERROR] The build could not read 1 project -> [Help 1][ERROR] [ERROR] The project pro.test:pro-test:0.0.1-SNAPSHOT (F:\Workspaces\pro原创 2015-05-10 14:26:56 · 26408 阅读 · 0 评论 -
Error: The input doesn't contain any classes. Did you specify the proper '-injars' options?
执行Maven Install打包的时候,出现以下错误信息:[proguard] ProGuard, version 4.4 [proguard] Reading program war [F:\Workspaces\pro-test\target\pro-test-0.0.1-SNAPSHOT.war] (filtered) [proguard] Error: The input doesn'原创 2015-05-10 15:07:39 · 8875 阅读 · 2 评论 -
java.io.IOException: The same input jar [E:\Jre\lib\rt.jar] is specified twice.
执行Maven Install打包的时候,出现以下错误信息:[INFO] proguard jar: E:\maven\mvnRespo\net\sf\proguard\proguard-base\5.2\proguard-base-5.2.jar [proguard] ProGuard, version 5.2 [proguard] java.io.IOException: The same原创 2015-05-10 18:05:34 · 8818 阅读 · 0 评论 -
Error: Unsupported java version '1.8' in line 2 of file 'proguard.conf'
执行Maven Install打包的时候,出现以下错误信息:[proguard] Error: Unsupported java version '1.8' in line 2 of file 'F:\Workspaces\pro-test\proguard.conf', [proguard] included from argument number 6这是因为在proguard.conf文原创 2015-05-10 17:08:59 · 5168 阅读 · 0 评论 -
java.io.IOException: Can't read [proguard.ClassPathEntry@5ef04b5] (Can't process class [WEB-INF/clas
执行Maven Install打包的时候,出现以下错误信息:[proguard] ProGuard, version 4.4 [proguard] Reading input... [proguard] Reading program war [F:\Workspaces\pro-test\target\pro-test-0.0.1-SNAPSHOT.war] (filtered) [prog原创 2015-05-10 18:22:15 · 8994 阅读 · 1 评论 -
Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
执行Maven Install打包的时候,提示以下警告信息: [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!解决方法: 打开项目属性》Resources,按下图修改就好了。原创 2015-05-08 18:46:49 · 43469 阅读 · 3 评论 -
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
执行Maven Install打包的时候,出现以下错误信息:[ERROR] COMPILATION ERROR : [INFO] -------------------------------------------------------------[ERROR] No compiler is provided in this environment. Perhaps you are runn原创 2015-05-10 15:10:45 · 8007 阅读 · 0 评论 -
将 jar 包加入到 Maven 库
有时候,我们用到的 jar 包可能并不存在于某个仓库中,而我们却需要在 Maven 项目中引用它,那应该怎么做呢?这就需要我们将 jar 包加入到 Maven 库中。命令:mvn install:install-file-Dfile=jar文件所在路径-DgroupId=包名-DartifactId=项目名-Dversion=版本号-Dpackaging=jar...原创 2018-08-01 11:00:21 · 7477 阅读 · 0 评论