m2eclipse

web.xml is missing and <failOnMissingWebXml> is set to true

时间秒杀一切 提交于 2019-12-17 08:04:15
问题 Consider: When I create a simple Maven project in Eclipse I am getting this error: web.xml is missing and <failOnMissingWebXml> is set to true How can I fix this problem? 回答1: You can do it also like this: Right click on Deployment Descriptor in Project Explorer . Select Generate Deployment Descriptor Stub . It will generate WEB-INF folder in src/main/webapp and an web.xml in it. 回答2: This is a maven error. It says that it is expecting a web.xml file in your project because it is a web

web.xml is missing and <failOnMissingWebXml> is set to true

核能气质少年 提交于 2019-12-17 08:04:05
问题 Consider: When I create a simple Maven project in Eclipse I am getting this error: web.xml is missing and <failOnMissingWebXml> is set to true How can I fix this problem? 回答1: You can do it also like this: Right click on Deployment Descriptor in Project Explorer . Select Generate Deployment Descriptor Stub . It will generate WEB-INF folder in src/main/webapp and an web.xml in it. 回答2: This is a maven error. It says that it is expecting a web.xml file in your project because it is a web

How to configure Eclipse build path to use Maven dependencies?

China☆狼群 提交于 2019-12-17 08:01:41
问题 I would like to take advantage of the features that Maven provides for managing dependencies in a project. My brief understanding of how Maven works is that it will aquire the JARs needed and then build the project with these libraries. Currently I have a simple POM file set up as a test: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

How to configure Eclipse build path to use Maven dependencies?

六月ゝ 毕业季﹏ 提交于 2019-12-17 08:01:05
问题 I would like to take advantage of the features that Maven provides for managing dependencies in a project. My brief understanding of how Maven works is that it will aquire the JARs needed and then build the project with these libraries. Currently I have a simple POM file set up as a test: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

maven-archetype-webapp eclipse problem

旧街凉风 提交于 2019-12-17 07:09:31
问题 I'm trying to create a very simple webapp with maven and eclipse, but I'm having no joy at all, in fact the reverse of joy. I go to File -> New Project, select Maven Project, and select the maven-archetype-webapp. When I finish the wizard, a webapp structure gets generated but with no 'java' directory under main, just resources and webapp. So I right click on main and select new Class. The class gets created under resources (?!), and furthermore, there seems to be no compilation of it by java

How to update maven repository in Eclipse?

纵然是瞬间 提交于 2019-12-17 05:41:27
问题 Assuming you're already using the m2eclipse plugin, what can you do when it doesn't update the dependencies to the latest in your repo? For example, on the command line, you can just add the -U flag as in mvn clean install -U …to force the dependencies to be updated. Is there something like this within Eclipse? (It doesn't always seem to pick up the latest updates.) 回答1: You can right-click on your project then Maven > Update Snapshots . 回答2: In newer versions of Eclipse that use the M2E

m2eclipse is unable to locate C:\Program Files\Java\jre6\..\lib\tools.jar

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:39:50
问题 I have a problem, concerning the jdk/jre usage of my eclipse. I know that this question was asked and answered a lot of times here and I researched what could be wrong for quite a while. I actually didn't find anything so I'm going to ask you again. Maybe I'm missing something (if yes, I hope it's not to embarrasing :) My problem is, that when I'm running mvn clean install I get an error which says that the m2eclipse plugin is "Unable to locate the Javac Compiler in: C:\Program Files\Java

Eclipse Indigo cannot import maven android that builds OK on command line

为君一笑 提交于 2019-12-14 01:01:29
问题 I created a maven android project from the command line using this archetype: 19: remote -> android-quickstart (-) I can call "mvn install" on it with success. When I try to import the same project into Eclipse Indigo, I see this: No marketplace entries found to handle maven-android-plugin:2.8.3:generate-sources in Eclipse. Please see Help for more information. and this: No marketplace entries found to handle maven-android-plugin:2.8.3:unpack in Eclipse. Please see Help for more information.

Can't find the “org.eclipse.persistence” Maven dependency

匆匆过客 提交于 2019-12-13 13:27:31
问题 I installed Eclipse Helios with the m2eclipse maven plugin. I want to create an application using JPA. So, what I do is: New > Maven Project then I select the maven default archetype. The problem is that I want to add the "org.eclipse.persistence" dependency that I can't find. Where is it? Can we add it manually? Should I update a sort of "repository"? Then, is it the right archetype that I'm using? 回答1: EclipseLink is not available in Maven central repository, you need to add its repository

Absent Code attribute in method that is not native or abstract in class file javax/persistence/InheritanceType

夙愿已清 提交于 2019-12-13 08:36:25
问题 Hi i try to write a pomfile wich supports running unittests + running on server in eclipse. But m2eclipse ignores the scopes and always deployes everything to the server. either i get java.lang.NoClassDefFoundError: javax/servlet/jsp/el/ELException because i've not included the "javaee-web-api" with code or i get Caused by: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el