m2eclipse

possible bug in Maven + plexus + eclipse compiler on case sensitive packages?

我是研究僧i 提交于 2020-01-16 03:26:09
问题 I encounter a very strange problem with Maven and Eclipse compiler. While in Eclipse+m2eclipse, I have no problem compiling a small project (archetype quick start) with the following single class. package test.test; import com.Ostermiller.util.CSVParser; public class TestCaseSensitive { CSVParser csvParser; } Ostermiller utils is added to pom.xml. Eclipse Kepler compiles the project. Next, mvn compile works out-of-the-box. Now the issue, I switch to compiler 3.1 and asks for Eclipse compiler

How do I create a JAR with m2e (m2eclipse)?

天大地大妈咪最大 提交于 2020-01-13 03:12:30
问题 I'm new to Maven and m2e. It frustrates me that I have to ask this question, but the sparse m2e documentation and Google are failing me. How do get m2e to build a JAR? I understand that this should happen during the maven package phase, but m2e doesn't seem to do this as part of the build process and I can't find a way to explicitly execute the package phase in Eclipse (nor any other phases that aren't part of the default build). Thanks. 回答1: As long as you have your POM.xml file with the

Checkout Maven project from SCM - no connectors

我怕爱的太早我们不能终老 提交于 2020-01-09 04:14:54
问题 I have a problem with checkout Maven project in Eclipse Indigo. I've installed m2e plugin, Subclipse, Git, but can't select appropriate SCM type ? How to solve this ? 回答1: Affan was correct. The connectors are all still there in Indigo, just hidden a little. Start Eclipse and open preferences. Find the Maven group and expand it. Select the "Discovery" item and click "Open Catalog". A dialog will pop up with all the goodies. The connectors are at the bottom. 回答2: I ran into this issue with

m2e lifecycle-mapping not found

谁说我不能喝 提交于 2020-01-08 19:42:24
问题 I am trying to use the solution described here to solve the annoying "Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source (execution: default, phase: generate-sources)" when I place the following plugin on my pom.xml: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <goals><goal>add-source</goal></goals> <configuration>

m2e lifecycle-mapping not found

不羁的心 提交于 2020-01-08 19:40:35
问题 I am trying to use the solution described here to solve the annoying "Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:build-helper-maven-plugin:1.7:add-source (execution: default, phase: generate-sources)" when I place the following plugin on my pom.xml: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <goals><goal>add-source</goal></goals> <configuration>

Jars Issues in Maven Spring Hibernate Project

可紊 提交于 2020-01-07 02:06:05
问题 I had made Web Application on Spring and Hibernate by taking reference from Vaannila When I specify lib name on pom.xml using eclipse, the maven repository could not include all the jars. How can I include the jars on my application? 回答1: you could use the maven install:install command which includes the jars into your maven repo mvn install:install-file -DgroupId=group_id -DartifactId=artifact_id -Dversion=version -Dpackaging=jar -Dfile=path_to_jar For this , you could try mvn package -

Adding JBoss repository to m2eclipse, no latest Hibernate version

和自甴很熟 提交于 2020-01-05 08:26:23
问题 I'm trying to add JBoss repository to m2eclipse, mainly for Hibernate. It seems to work, but it can't find the latest version of Hibernate (3.5.1), only 3.5.0beta. I looked at some other packages, and they all seem a couple of months behind. What could be causing this? I'm running latest m2eclipse, and i guess latest Eclipse (it just says 20100218-1602, eclipse people think it's funny to not include version in the about dialog), on ubuntu 9.10. This is my settings.xml <settings> <profiles>

help for use maven artifacts

吃可爱长大的小学妹 提交于 2020-01-05 05:09:33
问题 I'm learning Maven and I'd need a little help to get started. I use the m2eclipse plugin (Maven) and I would like to generate a project like Struts 2, Hibernate 3, MySQL. For now I just create a simple project with the archetype: maven-archetype-webapp What are the dependencies I need to add? 回答1: For now I just create a simple project with the archetype: maven-archetype-webapp My suggestion would be to use the struts2-archetype-blank archetype instead to bootstrap your Struts 2 application.

Dependency Error AspectJ Maven Plugin Installation For com:sun:tools:jar

蓝咒 提交于 2020-01-04 07:25:06
问题 I would like to run the Maven project that I have on https://github.com/ihsanhaikalz/testMaven in the Eclipse 4.5 (Mars) but it gave me an error in the pom.xml as follow: 1 problem was encountered while building the effective model for org.codehaus.mojo:aspectj-maven-plugin:1.8 [ERROR] 'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is ${toolsjarSystemPath} @ I already installed AJDT for Eclipse 4.5 through http://download.eclipse.org/tools/ajdt/45

Using maven outside of Eclipse

三世轮回 提交于 2020-01-03 17:01:10
问题 I am already using maven outside of eclipse, but would like to use Eclipse as my main editor. I don't want to use the maven already embedded with M2E. I want to use mine located at /usr/bin/mvn. Under Window > Preferences, I try to add a maven installation at /usr/bin/mvn (clicking Ok does nothing; stays at the same window) and at /usr/bin (gives the error: The selected directory is not a valid Maven directory. . 回答1: Ask your maven where is Maven Home $ mvn -V Apache Maven 3.0.5