m2eclipse

Failure to transfer dependency, was cached in the local repository

烈酒焚心 提交于 2019-12-29 06:48:19
问题 I am working on maven 2 project on eclipse, and I have the m2e plugin, and I am getting the following error in Eclipse: Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.thoughtworks.xstream:xstream:pom:1.3.1 from/to central (http:// repo1.maven.org/maven2):

How to prevent duplicate servlet jar using eclipse+m2eclipse

不打扰是莪最后的温柔 提交于 2019-12-29 05:13:07
问题 I'm using Eclipse + Maven + m2eclipse to build and test a web application in Apache Tomcat. I've configured a Tomcat server inside Eclipse, and configured the deployment assembly for my web app, including "Maven Dependencies" (specialization of Java Build Path Entries). When I deploy and start the server, Tomcat/Catalina always warns me: INFO: validateJarFile(/projects/src/main/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/webapp/WEB-INF/lib/servlet-api-2.5.jar) -

How to solve maven 2.6 resource plugin dependency?

删除回忆录丶 提交于 2019-12-28 02:06:42
问题 ERROR: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 Solutions Tried: Updated project: not able to

Eclipse plugin: how to read the “settings.xml” file path which is configured in M2Eclipse plugin

廉价感情. 提交于 2019-12-25 08:00:14
问题 Now I'm developing a new Eclipse plugin, in this plugin I need to get the settings.xml file which is configured in m2Eclipse plugin and update it. I want to know whether the m2eclipse plugin has provided the related extension point so that I can use directly. I've researched its user guide and the website, I cannot find any useful information for resolving my problem. P.s: I'm not saying how to configure the settings.xml in maven plugin but developing a new plugin to read the settings.xml in

Groovy and grails tool suite marketplace Maven Integration install error

空扰寡人 提交于 2019-12-25 02:31:19
问题 Use the marketplace in Groovy Grails Tool Suite to install Maven Integration for eclipse. But when confirming selected features, no matter I choose "Maven Integration for eclipse" ,the error remains :Cannot complete the provisioning operation. Please change your selection and try again. See below for details. Cannot complete the install because one or more required items could not be found. Software being installed: Maven Development Tools 0.2.0.201401071755 (com.ifedorenko.m2e.mavendev

Unable to update index for zk(http://www.zkoss.org) repository

≯℡__Kan透↙ 提交于 2019-12-25 02:22:29
问题 In the pom.xml,I add the repository like this: zk repository http://mavensync.zkoss.org/maven2 when i update index for the zk repository,maven console said like this: 2/28/11 9:46:48 AM CST: Updating index zk repository|http://mavensync.zkoss.org/maven2 2/28/11 9:46:49 AM CST: Unable to update index for zk repository|http://mavensync.zkoss.org/maven2 I tested on eclipse 3.6.2 with m2clipse, java1.6&java1.7,maven 3.0.2 Is there somebody have the same problem? I have put this question in the zk

maven and unit testing - combining maven surefire plugin AND testNG eclipse plugin

让人想犯罪 __ 提交于 2019-12-25 01:37:21
问题 could you please share your way of unit testing in eclipse ? Are you using surefire plugin, m2eclipse & maven, or only testNG eclipse plugin ? Do you combine these alternatives ? I'm using testNG + maven surefire-plugin and I had been using the testNG eclipse plugin a year ago so that I could see the results in testNG view. Then I started using Maven, but when I do "maven test phase" using m2eclipse, there is only console output and surefire reports that I can check in browser and to choose

Scala/ Eclipse - Files not compiling

微笑、不失礼 提交于 2019-12-24 09:19:32
问题 I added a Maven project with the "scala-archetype-simple" but post project creation, Scala source files are not being recognized by the compiler and i'm getting errors such as "Syntax error on token ClassHeader expected instead" and a lot of compilation errors saying "Java Problem" How should this be fixed? 回答1: "Add Scala Nature" might not be enough. after that if you don't see "Scala Library" in your project, you can right click the project and go to "Scala" menu then click "Add Scala

Why doesn't commenting a dependency in the pom.xml (with m2eclipse) delete the jar in the tomcat server deploy directory?

泄露秘密 提交于 2019-12-24 09:18:10
问题 I started using Maven 2.2.1 and downloaded the latest m2eclipse plugin version 0.12.0. I am using Eclipse 3.5.1 and Tomcat 6.0.26. I checked out the mvc-ajax project (in eclipse: File>New>Project>SVN>Project from SVN) and when I ran the server, I came upon the following exception: org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld" from JAR file "file:/tomcatDeployDirectory/mvc-ajax/WEB-INF/lib/jstl-1.2.jar" which required deleting the jsp-api2.1.jar (as I found out from

Sensibility of combined Maven/Ant+Ivy build management for dual platform Desktop/Android deployment?

China☆狼群 提交于 2019-12-24 03:23:55
问题 I'm currently preparing to start a new project and wondering about the choice of build management tools (non-exclusive alternatives of Maven and Ant+Ivy). The general scenario is as follows: small, several-person project, all developers use Eclipse as the IDE, two targets: Android (primary), and Java SE, we'll be in CI (Jenkins specifically), so some sort of build management is required. Regarding the envisioned project structure: one general module, with most of the code and common