1. 打包或clean时报错:To see the full stack trace of the errors, re-run Maven with the -e switch [WARNING] The requested profile "test" could not be activated because it does not exist. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clea…
在国内使用maven下载jar包非常慢的解决方法 1.原因: 很多jar包在国外环境,所以会很慢. 2.解决方法 maven支持镜像环境下载,所以首先找到maven的conf目录中的settings.xml文件,其中有 <mirrors> <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serve…
报错:Error resolving version for plugin 'org.apache.maven.plugins:maven-eclipse-plugin' from the repositories,查找后发现本地用户目录仓库下只有maven-eclipse-plugin文件夹,并没有jar包 本地仓库没有maven-eclipse-plugin jar包,没装上maven-eclipse-plugin,解决 在项目的根目录添加: 修改pop.xml <build> <p…
我们在做maven项目时,有时项目会显示红叉,但是项目本身并没有错误,如何去掉呢? 下面是我的解决方法 1.点击项目再右键,在搜索框中输入facets 2.把Dynamic Web Module的版本改为2.5,如果你的版本显示更高的话 3.如果Dynamic Web Module的版本已经是2.5了,那么修改java的版本为1.6或更高,默认maven采用的是自带的jdk配置版本,自带的是jdk1.5的 到这里基本都可以解决红叉的问题了,终于项目看起来没那么别扭了.…
Maven install失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project autotest_fchtgl: Compilation failure[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE r…
新建Maven工程步骤: 1.打开eclipse,File-New-Other-Maven-Maven project 点击Finish,即可创建一个Maven工程.Maven是内置的,不需要额外下载并配置Maven路径. 报错:在pom.xml文件的开始位置 Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of.... 原因: 相关插件下载有问题…
越来越多的人去安装Visual Studio 2015,也会去试试其中的C#跨平台开发利器Xamarin,但是也会发现很多问题. 我相信我不会是唯一遇到以下问题的,也不会是最后一个,特此记录. 微软的VS2015会自带微软的模拟器(UPDATE1开始),VS Emulator for Android,本人一开始使用的是GOOGLE自带的模拟器,但是异常的卡,所以想尝试一下新的组合. 我相信会有不少人遇到XAMARIN与VSEA的兼容问题,这个最大的原因可能还在于HYPER-V本身的兼容性很差.…
一直对于maven中解决jar包依赖问题的解决方法纠结不清: 下面这个例子可以说明一个很简单的解决方法: 项目启动报错: Connected to the target VM, address: '127.0.0.1:59412', transport: 'socket' SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/D:/document/repository/org…