m2eclipse

Using multiple source folders (as intermediate step in a conversion of a large Java project to Maven)

人走茶凉 提交于 2019-12-10 17:36:02
问题 I am converting a large Java project to use maven. I have a LOT of inter dependencies to work out, but I would like to get it off the ground with maven before I do the real cleanup work. I have broken it up into a few modules plus one giant module; let's call that module monolith. Monolith has regular Java classes and some gwt classes (with interdependencies). I separated the two parts to have a directory structure like this: ./src/main/java/... ./src/client/gwt/... So, I can easily get this

maven-dependency-plugin target/classes - Access is denied

旧街凉风 提交于 2019-12-10 15:38:53
问题 I have a multi module project with a parent project A, and two childs project B and C. Project B has a dependency on project C. I use the maven-dependency-plugin to copy the dependencies of B to a lib/ directory in the target/ directory. So, I can use the maven-assembly-plugin to include this lib/ directory in the final zip. The problem is I get the following error when I run mvn clean package on project B: at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ...

Where did Eclipse's Run As > Maven Package go?

依然范特西╮ 提交于 2019-12-10 14:53:07
问题 In an older version of Eclipse, the number of which I can't remember, there was an option when right-clicking a project under Run As of Maven Package . In Springsource Tool Suite 2.9.0 built on Eclipse 3.7.2, this option is no longer there. I could create specific run configurations per project to quickly do a Maven package, but I found it rather handy having the one shortcut for doing a package no matter which project was selected without having to set it all up first. Is there a way to get

How to exclude a Maven test-scoped dependency from Eclipse (but keep it in the path for unit tests)

邮差的信 提交于 2019-12-10 12:45:54
问题 I am having some problems getting Eclipse to honour a test-scoped Maven dependency - it is showing up on the build path and messing with eclipse's compilation / javadoc resolution. An example with Java EE libs I have been using the javaee-api-6.0 library to compile my Java EE application against. However, for unit testing purposes, I wanted to have access to more than just the api - I needed an implementation. So I included the embedded glassfish libs with a test scope like so: <repositories>

Maven: No marketplace entries found to handle castor, antrun, and ear plugins

喜欢而已 提交于 2019-12-10 12:43:03
问题 I am importing a maven project into Eclipse. I have the m2e plugin installed and it is pointing to maven 2.2.1 on my machine. I am getting these three errors: No marketplace entries found to handle castor-maven-plugin:1.0:generate in Eclipse No marketplace entries found to handle maven-antrun-plugin:1.1:run in Eclipse No marketplace entries found to handle maven-ear-plugin:2.3.1:generate-application-xml in Eclipse Any resources provided would be greatly appreciated. Thanks 回答1: You can define

Eclipse build loop caused by protobuf generated code (related to Maven Project Builder)

China☆狼群 提交于 2019-12-10 12:30:56
问题 Development Environment I am working on a Maven Java client/server project that relies on Protocol Buffers (protobuf) for sending RPCs between the clients and server. I use Eclipse for Java EE as my primary IDE. Since I use Maven in my project, I am using the m2eclipse plugin for Eclipse. I configure my project in Eclipse to use the "Maven Nature". The Problem Basically, with the workspace setup described above, I am running into INFINITE BUILD LOOPS if Eclipse is configured to Build

Why does Maven is looking in the wrong repo?

半腔热情 提交于 2019-12-10 10:35:56
问题 I'm trying to get the newest hibernate version for my project, for this purpose I've added the jboss repo into my settings.xml <repository> <id>jboss-releases</id> <url>http://repository.jboss.org/maven2</url> </repository> but when I do the depency search from my m2eclipse plugin I see only results from the official maven repo, why? Why I don't see the latest release 3.5.1? Instead only 3.3.2 is shown 回答1: Maven isn't looking in the wrong repository and dependencies on hibernate 3.5.1

How to convert maven project to web application project?

馋奶兔 提交于 2019-12-10 10:08:28
问题 I want to convert a maven project to a web application project, which should contain web.xml. I am using eclipse juno 4.2 with m2e (maven integration for eclipse) plugin software. Any reply would be appreciated. 回答1: Install m2e-wtp In your pom.xml, change or add the war packaging right-click on project > Maven > Update project m2e-wtp will create the src/main/webapp folder and add the Dynamic Web project Facet¤ manually add a WEB-INF folder under src/main/webapp right-click on project > Java

How to make M2E eclipse plugin understand Bundle packaging

时光怂恿深爱的人放手 提交于 2019-12-10 03:29:06
问题 I'm almost new with Osgi. I'm using Eclipse 3.6 Helios for building my first Felix Bundle but find out that M2E don't understand bundle packaging... Project build error: Unknown packaging: bundle Project build error: Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.0.0 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.felix:maven-bundle-plugin:jar:2.0.0 () As I done google searches, it was an error in Maven 2 but fixed

Single command to build all Eclipse maven projects in current workspace?

拥有回忆 提交于 2019-12-10 02:16:10
问题 Does anyone know any simple yet effective way to build all Maven projects in current workspace, for example, maven clean install for each such project. Is it for example possible to select multiple projects and use something similar to ${project_loc} or get a popup with possible projects to use for the run configuration? Or any other way? I'm using Eclipse Juno. 回答1: Can you give them all a parent pom.xml and then mvn compile the parent pom.xml? Look for project inheritance here. If you can