m2eclipse

m2eclipse filtering test resources

我与影子孤独终老i 提交于 2019-12-24 02:22:41
问题 I am using m2eclipse and I want to right click and run tests from inside eclipse while the test resources get filtered from Maven. How can I do this? From eclipse when I right click on a test I do not get any m2eclipse options Julia. Similar to: Debugging maven junit tests with filtered resources? 回答1: Setup filtering in your pom.xml (and you'll get filtering under Eclipse with m2eclipse, m2eclipse runs process-resources after a change of any resource). Run your test as any other test ( right

Changes in dependent modules cannot be seen in other module in Maven Eclipse

南笙酒味 提交于 2019-12-24 02:08:09
问题 I am working on a multi module project with m2eclipse. I set the maven to take care of resolving workspace dependencies. But when I make change on, say, service module, change is not visible on other modules immediately. If I make new method in Service layer, it is not visible in WebApp layer. Sometimes even Run/maven install and refresh and Project/clean and Maven/Update Dependencies doesn't work. Can someone give me an idea on this problem? My project structure looks like as follows: parent

Setting up output directory of TestNG eclipse plugin

拜拜、爱过 提交于 2019-12-24 00:34:42
问题 I'd like to use both testNG eclipse plugin and maven surefire plugin together. And I was told here, that I can listen to the output folder "target/surefire-reports" when running maven test and the testNG plugin view takes the data and displays the results. But the view doesn't do anything after my "maven test" ends. And after I apply the testNG settings with "output folder", this error appears in eclipse error view Anyway the output directory is really set to target/surefire-reports but the

Trouble with Eclipse

混江龙づ霸主 提交于 2019-12-23 17:41:27
问题 I installed Eclipse Helios and m2eclipse. Next I created a maven project. Now Eclipse goes crazy. It leaks all the time, goes in endless loops (continously 50% CPU), throws PermGen Space Errors and crashes. I can't work. I tried to substitute the JDK with an older version, the same with maven and the same with eclipse. I also changed the size of my PermGen Space. Has somebody an Idea what's wrong? Or does that remembers somebody about a known bug? May there be a problem with my Windows XP?

How do I import an alternative pom.xml file in m2eclipse

邮差的信 提交于 2019-12-23 12:38:22
问题 The only possible input is a directory where m2eclipse will automatically scan for pom.xml. What if you want to import an alternative file (say abc.xml)? can it be done and how? Thank you for your time. 回答1: No, it's not possible. m2e relies on the presence of a pom.xml. The only way to have a different behaviour in m2e is to use maven profiles. The following will be activated automatically when using m2e : <profile> <id>m2e</id> <activation> <property> <name>m2e.version</name> </property> <

m2Eclipse dependencyManagement section doesn't show graph

纵然是瞬间 提交于 2019-12-23 10:14:09
问题 I don't know if this is a bug or intended functionality, but the POM editor for m2Eclipse has a wonderful graph representation ('Dependency Graph' tab) and tree ('Dependency Heirarchy' tab) if the dependencies are in the dependency section all by themselves. However, when you move them into the 'dependencyManagement' node (useful for module based projects) these tabs no longer work. Does anyone know if this is a bug, intended functionality, etc? EDIT #1: The dependencies in the dependency

Using Jython with M2Eclipse

泪湿孤枕 提交于 2019-12-23 09:38:16
问题 I currntly use M2Eclipse for the majority of my Java development and Pydev for Python/Jython development within Eclipse. I would like to use Jython to prototype and test classes within my Java projects. The M2Eclipse plugin manages all the dependencies defined in the Maven pom.xml file automatically. Is there anyway for Pydev to utilise these dependencies without having to import each jar separately? 回答1: Actually, I didn't get how you are working with Jython under Eclipse and where you need

Maven, GWT and Eclipse project

寵の児 提交于 2019-12-23 02:33:45
问题 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

Eclipse fails to update Maven index while behind company proxy

旧巷老猫 提交于 2019-12-23 02:28:22
问题 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

Unable to download jars using M2Eclipse (0.10.0, using Maven 3)

南笙酒味 提交于 2019-12-23 02:17:21
问题 I am using M2Eclipse (0.10.0, Maven 3)in projects. I can add Maven dependency using m2eclipse. But dependency jars couldn't be downloaded. Instead, it created a file in each local repo folder named [JAR_Name].jar.lastupdate. The content of this file is some thing like : http://[REPO_URL]/central/=1276221188566 Even using Maven 3 command line. Jars couldn't be downloaded. Any idea about how could this happen? 回答1: First off, the presence of "lastupdated" file is irrelevant. We need to know the