m2eclipse

Eclipse WTP, maven and m2eclipse - not copying provided jars

混江龙づ霸主 提交于 2019-11-29 03:30:22
问题 When using Eclipse WTP and m2eclipse it is possible to copy all dependencies to WEB-INF/lib (by adding "maven dependencies" in the Deployment assembly). However, dependencies with scope "provided" are also copied, for example el-api and jsp-api. That disturbs the container and it fails to start. Any solution for not copying the "provided" jars? 回答1: You have to install the m2eclipse-wtp which is an extra plug-in for m2eclipse .It will do this job for you. After installing the m2eclipse-wtp ,

Eclipse Maven showing multiple paths for the same file

拥有回忆 提交于 2019-11-29 01:57:24
Is there any setting in Eclipse to show only the Maven project where the file resides? I have different Maven projects which are modules of a parent Maven project: projParent |-projWeb |-projModel |-projServices |-... If I look for a file using "Open Resource" (using Ctrl + Shift + r ) in Eclipse, it appears in many projects (E.g.: in projParent and in projWeb). Is there any way to show only relevant folder where that file is actually resided in? Try defining a Working Set that includes only the modules in which you want to search and then use that Working Set in the search. EDIT Actually I

m2eclipse cannot update index from central repo

安稳与你 提交于 2019-11-29 01:48:36
I have just downloaded and installed M2Eclipse, but it fails to update the index of the central repo. At the same time, Maven itself is able to download artifacts from the repo (via command line). I had the settings.xml file in maven/conf , and I copied it to .m2/ directory, but it didn't help. I have proxy, but proxy settings are given in settings.xml - commands from command line work fine, but not in Eclipse. In Eclipse it gives me this: Unable to update index for central|http://repo1.maven.org/maven2 UPDATE: This is what I get when I try to create a new Maven Project: Could not resolve

How to prevent duplicate servlet jar using eclipse+m2eclipse

感情迁移 提交于 2019-11-29 01:34:33
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) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class This

How do i remove m2eclipse from my eclipse installation?

冷暖自知 提交于 2019-11-29 01:07:50
I don't need m2eclipse to work properly, I just need to remove m2eclipse for now and let eclipse behave normally. how do i do this? Two solutions: Remove the plugin through the list of installed plugins (the illustrations are from the blog post " Install Eclipse UI Form Editor " written by Albert ATTARD ): The "about eclipse" menu will give you access to the list of installed Software: You can click on the right application (m2eclipse for you, Jiglo in this example), and click uninstall, and restart eclipse. A safer solution would be first to install a new fresh copy of Eclipse, and add your

Maven Project Builder is invoked every time I change a source file (GWT)

梦想与她 提交于 2019-11-28 22:02:09
Recently I converted my GWT web-app ( GWT 2.4.0 ) to a maven project. I am using maven 2.2.1, gwt-maven plugin (2.4.0), Eclipse Indigo (3.7) and the m2eclipse plugin. The dependencies and general configuration seem to be fine as the web-app compiles without any problems and also works in production mode. The same applies to hosted mode. However I have a strange behavior: When I change a single line in a Java/GWT source file, the Maven Project Builder is invoked and this steps takes painfully long (around 10 secs) and eclipse sometimes becomes unusable during this time. Is this a normal

Empty goals list in m2Eclipse

主宰稳场 提交于 2019-11-28 21:14:34
When I try to add a goal I don't get any goals. Is there any solution or I should manually add them.But in an example I saw it automatically lists all the available goals. The workaround described in m2eclipse JIRA worked for me: In Eclipse, open the view "Maven Repositories" and expand "Global Repositories". Right-click on your mirror of central (or "central" if no mirror defined) and select "Enable Full Index". Right-click again on the repository and select "Rebuild Index". Wait until "Updating indexes" finishes and vanishes from the Eclipse progress indicator in the lower right corner. 来源:

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 / M2Eclipse excludes my resources all the time

醉酒当歌 提交于 2019-11-28 20:50:52
I have two very annoying issues with Maven-Eclipse integration, from time to time it excludes all my resources in src/main/resources and src/test/resources from the build path. If I inspect "Properties >> Java Build Path >> Source" I can see that these two folders have "Excluded: **". The problem can be easily solved by clicking on "Remove" on the exclusions, but it is really-really frustrating. The project setup is very simple, it has some modules and sub-modules, but nothing fancy. I don't have any configuration options in my pom.xmls regarding resources, eclipse or whatever (maybe I should?

Maven/AJDT project in Eclipse

假如想象 提交于 2019-11-28 19:04:33
问题 I need to use aspectj in a maven project. I installed the maven plugin for eclipse (m2e), the maven aspectj plugin, and also AJDT for Eclipse. So now, when i open a new project i have "Maven Project" and "AspectJ Project". how can i make a new project that is Maven AspectJ project? I did not found any reference for that, so you are my only hope. thanks 回答1: Go to Help > Install New Software... Use this software repository: http://dist.springsource.org/release/AJDT/configurator/ Install the