m2e

In Eclipse m2e, how to reference workspace project?

喜欢而已 提交于 2019-11-29 19:47:18
How can I reference another workspace project using Eclipse m2e ? Do I have to add a project dependency in the project setting? But in that case the dependency is not shown in the pom. If I set them in the pom, it will not reference the project in workspace but reference the jar in the local repository. Quite annoying, anyone can help? nwinkler The correct way to do this is the following: Use the dependencies section in the POM file exclusively, don't fiddle with the Eclipse project references. Right-click the project, then select Maven > Update Project Configuration to reset the project to

java.lang.IllegalArgumentException: already added: Lorg/hamcrest/BaseDescription; Conversion to Dalvik format failed with error 1

落花浮王杯 提交于 2019-11-29 18:04:48
问题 First of all, there are at least 2 postings with the same problem but these solutions don't work anymore, at least not in my installation. I'm using m2e with Eclipse and Android and tried to run the application as "Android Application" by selecting run as->Android application, but I always get this error: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lorg/hamcrest/BaseDescription; . . . [2012-09-08 19:50:41 - net.mydomain.project-TRUNK] Conversion to

How does the m2e eclipse plugin interact with eclipse?

北慕城南 提交于 2019-11-29 16:03:30
问题 I am an eclipse power and who has ignored maven due to the historically poor maven / eclipse integration. m2e seems to be maturing and I am taking it out for a serious test drive. I want to understand how m2e works within eclipse, so I can better get the two working smoothly together and to understand the still cryptic error messages and problems that arise. I have tried googling for an explanation of the m2e eclipse integration architecture and found nothing that provides a good account of

tomcat-maven-plugin: Server returned HTTP response code: 403

坚强是说给别人听的谎言 提交于 2019-11-29 12:42:22
I'm trying to automatically deploy a Maven webapp from Eclipse Java EE to my local Tomcat server. I'm using Windows XP. This is the error: [ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project practicaIW: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 for URL: http://127.0.0.1:8080/manager/deploy?path=%2Fpractica-3&war= -> [Help 1] I think I know the reason of this error: If I run the Tomcat server inside eclipse, 127.0.0.1:8080 is my workspace/target. There is any manager folder and rest of classes on it, so it does not

How do you install m2e-android-plugin in Eclipse?

纵然是瞬间 提交于 2019-11-29 10:05:50
I am trying to get setup to use Maven and pom.xml files in Eclipse for my Android projects. I have Eclipse Indigo setup (m2e included), Android SDK installed, ADT installed. I am struggling to understand what it means to "Install the m2e-android-plugin" (I am always taken to this page which provides instructions on installing it, but which I cannot follow) Specifically, when I go through the instruction on that page, after I complete all the steps in part 2, my structure does not have "Maven Dependencies" and my pom.xml file shows the following error: Project build error: Unresolveable build

Failure to transfer dependency, was cached in the local repository

坚强是说给别人听的谎言 提交于 2019-11-29 06:44:58
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): Failed to create a selector. to http://repo1.maven.org/maven2/com/thoughtworks/xstream/ xstream/1.3.1

Usage of maven Build Helper Maven Plugin

只谈情不闲聊 提交于 2019-11-29 03:39:40
I'm attempting to add a source folder for maven java project to Eclipse using a maven plugin. When trying to use the org.codehaus.mojo plugin I receive the following error Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source (default-cli) on project application-framework: The parameters 'sources' for goal org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source are missing or invalid -> [Help 1] From reading the docs on http://mojo.codehaus.org/build-helper-maven-plugin/usage.html this should be correct ? The folder target/sources/mygeneratedfiles on exists.

How does one get JAXB-generated sources onto the Eclipse build path under m2e/Indigo?

痞子三分冷 提交于 2019-11-28 20:53:08
问题 Under Helios/m2eclipse, when I generated jaxb sources they would be put on the Eclipse source path when I did an "Update Project Configuration". This doesn't happen with Indigo/m2e (initial release of 22 June 2011). What do I need to do to fix this? I'm using the standard maven-jaxb2-plugin, version 0.75. 回答1: In Eclipse go to "Install New Software" add the software site: http://bitstrings.github.com/m2e-connectors-p2/releases/ Select the "m2e connector for jaxb2" Once you get that plugin

Maven Java EE Configuration Marker with Java Server Faces 1.2

雨燕双飞 提交于 2019-11-28 20:20:35
I'm having a weird configuration problem with Maven in Eclipse. Although I can build the project and deploy it to tomcat without any errors, The Marker tab keeps showing the following message: [-] Maven Java EE Configuration Problem (x) JavaServer Faces 1.2 can not be installed : One or more constraints have not been satisfied. (x) JavaServer Faces 1.2 requires Dynamic Web Module 2.5 or newer. I am in fact using Dynamic Web Module 2.4, which would be the source of the message. I would need to change it to at least 2.5 to work with JSF. Problem is, I'm not even using JSF. So, probably one of

Automatically generate Java from .proto with maven/m2e in Eclipse IDE

风流意气都作罢 提交于 2019-11-28 19:01:04
For my team, I'd like to configure maven/eclipse build to automatically generate Java code from *.proto files (in a project that uses gRPC ). Currently one needs to run mvn generate-source or mvn protobuf:compile (as in plugin usage page ). Or what is the same add Run configuration to invoke maven goal compile . Whenever Eclipse Maven project is refreshed ( Alt + F5 ) or IDE is restarted, project is rebuilt but without what should appear in target/generated , thus turning project into red. So one need to generate and refresh project ( F5 ). UPDATE Eclipse has needed source folders configured