m2eclipse

Eclipse JRE System Library [J2SE-1.5]

本秂侑毒 提交于 2019-11-27 09:44:54
问题 I'm using Eclipse EE 3.7 with m2e plugin installed. I have JDK7 set in eclipse. When I import maven projects, the JRE is set to JRE System Library [J2SE-1.5] , So i have compilation issues with java 6 related stuff. Instead I want the JRE in eclipse to be by default set to JRE System Library [J2SE-1.6] When i try to open a new project in eclipse File -> new -> Java project on the first screen i have an option to choose JRE and the third option is Use default JRE (currently 'jdk1.7.0_03') From

Compiler error “archive for required library could not be read” - Spring Tool Suite

旧城冷巷雨未停 提交于 2019-11-27 06:47:03
I am starting to configure my development environment and I am using Spring Tool Suite 2.8.1 along with m2E 1.01. As far as I can tell, since this is a Maven Project (my first), my Maven POM is dictating (along with m2E smarts) my project build configuration and dependencies. What I would like to know is why my IDE is displaying Java Build Problems that read "Archive required for library library/path/somejar.jar cannot be read or is not a valid zip file" when I can see the jars in my .m2 repository? All the errors pertained to commons-logging:1.1.1 which I excluded in my parent-pom. This was a

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

强颜欢笑 提交于 2019-11-27 05:56:37
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? Wojciechu 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. This is a maven error. It says that it is expecting a web.xml file in your project because it is a web application, as indicated by <packaging>war</packaging> . However, for recent web applications a web.xml file

How to configure Eclipse build path to use Maven dependencies?

一世执手 提交于 2019-11-27 05:53:31
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"> <modelVersion>4.0.0</modelVersion> <groupId>com.jamesgoodwin.test</groupId> <artifactId>com.jamesgoodwin

How to solve maven 2.6 resource plugin dependency?

可紊 提交于 2019-11-27 04:47:27
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 download from REPO of maven. Tried putting perticular jar in that folder of .m2 repo. Can provide

Why can't maven find an osgi bundle dependency?

て烟熏妆下的殇ゞ 提交于 2019-11-27 03:52:54
问题 I have declared a OSGi bundle as a dependency in my maven project. ( It just happens to be the felix container. ) <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.framework</artifactId> <version>4.0.2</version> <type>bundle</type> <scope>compile</scope> </dependency> When I try to build, it says it can't find it. [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------

What exactly does Maven Update Project do in Eclipse?

你说的曾经没有我的故事 提交于 2019-11-27 03:52:12
问题 First of all, I am aware of this question, but I am interested in the details which are not provided there. I had a look at the documentation of m2eclipse and found it unsatisfactorily laconic. The only relevant part I could find is Alternatively you can run “Maven / Update project configuration” action from the project popup menu, which is configured to run “process-resources” by default and it can be also changed on the same preference page. but I could not make whether Update project

maven-archetype-webapp eclipse problem

大憨熊 提交于 2019-11-27 03:03:07
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. I can make stupid errors and no syntax highlighting comes up. It's like java isn't recognizing it.

m2eclipse and Eclipse WTP

北战南征 提交于 2019-11-27 02:54:25
问题 I have a very large workspace with about 30 projects all together. I am using Eclipse 3.5 with m2eclipse. I check out of my subversion repository using the defaults in order to import the projects into my workspace. I create a Tomcat server instance, and publish my web project to the tomcat server. Sounds easy enough. The problem is that it does not appear as though the transitive dependencies for my other projects are being automatically added to the container, so when the container starts

Maven: how to fill a variable in web.xml file

拈花ヽ惹草 提交于 2019-11-27 02:05:25
问题 I am working in a Maven web project through Eclipse. In the web.xml , I have a context-param which value should change according the profile I use when I run the Maven. <context-param> <param-name>producao</param-name> <param-value>${ambiente.producao}</param-value> </context-param> In the pom file for project I have the following configuration: <project> <profiles> <profile> <id>prod</id> <properties> <ambiente.producao>true</ambiente.producao> </properties> </profile> <profile> <id>desenv<