m2eclipse

Eclipse fails to update Maven index while behind company proxy

爷,独闯天下 提交于 2019-12-08 13:05:29
Eclipse Mars m2e plugin fails to download repository index updates on startup. I run Eclipse behind a company firewall but the proxy settings work fine for "check for updates", "eclipse marketplace", and eclipse's built-in browser. I have tried the following: Deleting the cache directory \eclipse\p2\org.eclipse.equinox.p2.repository\cache and then refreshing the repositories. Preferences -> Install Update -> Available Software Sites => select the entry and click "Reload" Adding -Djava.net.preferIPv4Stack=true to -vmargs in eclipse.ini Edit: Proxy configurations are correctly set in $HOME/.m2

Issue in executing Spring Web project in Eclipse on Tomcat server

纵饮孤独 提交于 2019-12-08 12:03:39
问题 I have a Spring web project that uses Maven to compile/build. There is no issue in building the project. I am trying to run the project in Eclipse (3.3.2) on Tomcat (v6) server. As part of Spring project, I have a spring-servlet.xml file in WEB-INF directory. This file includes another resource xml file that has datasource configuration. <import resource="classpath:${datasourceInclude}.xml"/> Now when the project is compiled using Maven, it resolves the variable ${datasourceInclude} and set

mvn package command doesn't run successfully after mvn clean command if done from command prompt

爱⌒轻易说出口 提交于 2019-12-08 11:19:03
问题 Hi I get a weird error when I run mvn package command from the command line after executing mvn clean command. The error is a compilation failure error. This is a trace: annotations are not supported in -source 1.3 06.04.2011 17.06.59 (use -source 5 or higher to enable annotations) 06.04.2011 17.06.59 @Override at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:715) 06.04.2011 17.06.59 at org.apache.maven.lifecycle.DefaultLifecycleExecutor

Eclipse adds an exclusion pattern of ** to src/main/resources: how to read a resource file?

﹥>﹥吖頭↗ 提交于 2019-12-08 09:06:54
问题 I created a simple Maven project with Eclipse (Oxygen.2 Release (4.7.2)) with the standard src/main/resources folder and added it to the classpath. The problem is that Eclipse adds an exclusion pattern of ** to the src/main/resources folder. Here are some pics to better explicate the situation: You can reproduce the situation yourself, just remember to run Maven -> Update project... According to this answer this is not a bug but it's the correct behaviour. So the question is: how do i read a

How to create maven module for Spring Roo project?

≡放荡痞女 提交于 2019-12-08 08:15:47
问题 I have Spring Roo project. It is maven project. So I would like to use maven modules to make my growing project modular. However when I try to create module project( with m2eclipse right-click project, then Maven -> New Maven Module Project). It is created OK, it get's all maven dependencies/libraries from parent project. But: 1) I cannot use classes from parent project (even though "Resolve dependencies from Workspace projects" is checked) 2) I cannot use Roo shell. I can run shell, but

How do I make running a JUnit test in Eclipse behave like running the test through Maven on the command line

吃可爱长大的小学妹 提交于 2019-12-08 02:07:12
问题 I’m using Eclipse Kepler and Maven 3.2.3. I have imported my projects using the M2Eclipse plugin. Normally, when I run a JUnit test on the command line, like mvn clean test -Dtest=MyJunitTest there are some things that run in the “process-resources” and “process-classes” phases before my test is executed. In Eclipse, when I open the JUnit test file in an editor, right click the class name (e.g. “MyJUnitTest”) and right click on “Run As” and “JUnit Test”, those phases do not seem to be getting

Maven archetypes not appearing in m2eclipse Nexus indexer

。_饼干妹妹 提交于 2019-12-08 00:29:30
问题 I'm setting up a new workstation for Java development in Eclipse. On my previous machine, I don't recall having to do anything special to see the standard collection of archetypes under ' New > Other > Maven project > select archetype ' with Nexus Indexer selected. On this machine, the list of archetypes is empty. I can create archetype-based projects from the command line, so it's not a show-stopper, but I just don't understand why the archetypes are missing (and it makes me wonder what else

how to run many maven goals from eclipse in one click

╄→гoц情女王★ 提交于 2019-12-07 23:59:59
问题 i want to know, if it's possible to run many maven goals from eclipse at the same time ,in other way in one click. for example i have 3 project project1 ,project2 ,project3. i want for example to clean them all ,and install project1 and project2 then project3 and deploy the 3 projects (in one click) . it's possible to do such a thing ? notice : Maven Integration Plugin for Eclipse is already installed. thanks 回答1: You cannot run goals for multiple projects using m2e. I suggest the following:

Maven, GWT and Eclipse project

穿精又带淫゛_ 提交于 2019-12-07 23:41:34
I'm trying to setup new web project using newest Maven, GWT and Eclipse. I'm trying to generate it with available archetype from GWT Maven Plugin with command: mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-plugin -DarchetypeVersion=2.4.0 -DarchetypeRepository=repo1.maven.org Running mvn gwt:run builds project, appication starts and everything seems to be ok. The problem appears when I'm trying to import this project as "Maven Project" into Eclipse Indigo. I'm getting mvn warning Description Resource Path Location Type maven-war-plugin goals

How to package plugin and feature into OSGI bundle using p2-maven-plugin

﹥>﹥吖頭↗ 提交于 2019-12-07 23:11:59
问题 I have created one plugin and feature project(for the plugin).I am using tycho (maven) to build it. i am able to build it successfully.Now I want to package into osgi bundle (plugin.jar, feature.jar,artifacts.jar,content.jar).For that, I am using p2-maven-plugin but I dont know how to specify plugin.jar and feature.jar into pom.xml of osgi project(that creates osgi bundle). Below is my pom.xml that creates osgi bundle: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www