[m2e-users] Creating and editing a parent POM in the workspace directory?

2012-09-25 Thread Steinar Bang
Platform: debian testing ("wheezy"), eclipse 3.8.0, m2e 0.12.1.20110112-1712 (installed from http://m2eclipse.sonatype.org/sites/m2e ) The natural thing for maven projects in a workspace, would be to have a parent POM in the workspace itself. Is there a way to create and main

Re: [m2e-users] Creating and editing a parent POM in the workspace directory?

2012-09-26 Thread Steinar Bang
> "KARR, DAVID" : > If you want to resolve to a pom in the workspace, you have to have a > project that contains that pom. You simply have to have a project > with a single file, being that pom file. If you mean having a project alongside all of the other projects that holds the parent pom.x

Re: [m2e-users] Creating and editing a parent POM in the workspace directory?

2012-09-26 Thread Steinar Bang
> Igor Fedorenko : > Typical workspace filesystem directory structure looks like > workspace/ > parentA/ > moduleA1/ > pom.xml > moudleA1/ > pom.xml > pom.xml > parentB/ > ... Hm... the directory structure I have used previously, using the mav

Re: [m2e-users] Creating and editing a parent POM in the workspace directory?

2012-09-26 Thread Steinar Bang
> Igor Fedorenko : > Not sure what you mean. The structure on filesystem is the conventional > layout of a multi-module maven project. There are plenty of archetypes > that will generate projects with this structure. Yes, I know. What I meant, was: can I go to New->Project... and create this

[m2e-users] tycho eclipe-plugin and m2e: where to specify dependencies

2012-10-14 Thread Steinar Bang
The tycho eclipse plugin on the eclipse wiki http://wiki.eclipse.org/Tycho/Packaging_Types#eclipse-plugin says: "Since Tycho uses OSGi bundle manifest to determine project dependencies, pom.xml file should NOT contain section, and any dependencies inherited from parent project will be ign

[m2e-users] Can't search for dependencies in "Add..." of dependencies

2013-08-16 Thread Steinar Bang
Platform: Intel Core i7 Windows 7 Java SDK 1.7.0.210 (64 bits) Eclipse SDK 4.2.2.M20130204-1200 m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 If I put in GroupId, ArtifactId, and version for a new artifact, and save the pom.xml, the dependency and

[m2e-users] Project generated from tycho-eclipse-plugin-archetype is missing JUnit

2013-11-08 Thread Steinar Bang
The short form if this question, is: If I create a project using the tycho-eclipse-plugin-archetype, do I have do do it inside eclipse? And do I have to put the resulting .project, .classpath etc. files under version control? Here is the long story behind the question: What I did initially wa

[m2e-users] tycho project in m2e not picking up testSourceDirectory setting

2014-05-01 Thread Steinar Bang
I am trying to add regular JUnit tests to a tycho project, to be able to TDD the business logic (right now the underlying model for a GEF editor). I have added the settings from http://mukis.de/pages/simple-junit-tests-with-tycho-and-surefire/ (and the mailing list post linked to from that blog p

Re: [m2e-users] tycho project in m2e not picking up testSourceDirectory setting

2014-05-02 Thread Steinar Bang
> Igor Fedorenko : > No, this is not expected to work. m2e/tycho projects are essentially pde > projects inside workspace and pde does not support concept of test > sources and test dependencies. Right! So what I have done for now, is to create a new maven module project, called modeler.core

[m2e-users] m2e in eclipse Mars fails to start

2015-12-26 Thread Steinar Bang
Platform: Windows 7 Java SE DK 8 Update 65 (64 bit) 8.0.650.17 Java 8 Update 66 (64-bit) 8.0.660.18 Windows Mars 64-bit installed with installer m2e 1.6.2.20150902-0002 I have installed eclipse Mars and am trying to import some maven projects, using File->Im

Re: [m2e-users] m2e in eclipse Mars fails to start

2015-12-27 Thread Steinar Bang
> Anton Tanasenko : > Hi, please provide a full stack trace of this error as found in Window -> > Show View -> Error log. Here is the stack trace for the error: org.osgi.framework.BundleException: Error starting module. at org.eclipse.osgi.container.Module.doStart(Module.java:580)

Re: [m2e-users] m2e in eclipse Mars fails to start

2015-12-28 Thread Steinar Bang
> Anton Tanasenko : > This is probably related to > https://bugs.eclipse.org/bugs/show_bug.cgi?id=438161 Note: this is not a custom/proprietary eclipse installation. This is the Mars installer directly from here: https://www.eclipse.org/downloads (I followed "Try the Eclipse Installer" at t

Re: [m2e-users] m2e in eclipse Mars fails to start

2015-12-28 Thread Steinar Bang
> Anton Tanasenko : > Can you share your eclipse config? > Help -> Installation details -> Configuration The configuration was 400k, which is a bit big to inline in an email. So I put it in a gist: https://gist.github.com/steinarb/7c42b8475ce191c851c0 ___

Re: [m2e-users] m2e in eclipse Mars fails to start

2015-12-28 Thread Steinar Bang
> Anton Tanasenko : > Can you try it without installing Komma? > It does include some weird-looking library bundles in its sources [1] which > might affect m2e. I uninstalled Komma, and now m2e project import works in Eclipse Mars. Thanks! What I did to uninstall, was: - Opened Help->Eclips

[m2e-users] Is there a way for a JUnit test to trigger the generate-test-sources phase in m2e?

2017-09-23 Thread Steinar Bang
I have a JUnit test that tests that some files in a directory has been deleted. The directory where the test does the deletion is in the target/test-classes/repository directory, and this directory is copied from the src/test/resources/repository directory by maven defaults. Running "mvn clean in

[m2e-users] Can m2e pick up surefire and failsafe settings?

2017-10-31 Thread Steinar Bang
Is it possible to make m2e pick up settings from the surefire and failsafe settings and use them when running JUnit tests in eclipse? In maven I use the maven-surefire-plugin to run unit tests, and and the maven-failsafe-plugin to run integration tests, and I use a profile to decide if integration

[m2e-users] OpenAM problem: The import com.sun.identity cannot be resolved

2018-04-30 Thread Steinar Bang
Platform: Windows 9 Java JDK 1.8.0_172 eclipse Oxygen 3a Release (4.7.3a) m2e 1.8.3.20180227-21 maven 3.5.2 (the command line maven) I have some code that uses this import (and the Debug class it imports) in generated code: import com.sun.identity.shared.de

[m2e-users] m2e doesn't pick the right profile for the current JRE

2019-06-13 Thread Steinar Bang
Platform: debian 9.9 "stretch", amd64 eclipse 2019-03 (4.11.0) m2e 1.11.0.20190220-2119 I have created profiles to set the source and target levels of the compiler plugin, depending on the JRE used. However, m2e always picks Java-11, even though: 1. Eclipse has just a single