Re: [m2e-users] 'cannot output to distinct source folder' error in custom m2e connector

2011-06-28 Thread Rafał Krzewski
I've also run into this problem. You extend org.eclipse.m2e.jdt.AbstractJavaProjectConfigurator, right? IMO the name of this class is misleading, it should be something like AbstracJavaSourceGeneratorProjectConfiguration. Take a look at http://git.eclipse.org/c/m2e/m2e-core.git/tree/org.ecli

[m2e-users] webby: Could not locate configuration for maven-war-plugin

2011-07-05 Thread Rafał Krzewski
Hi, I've just tried running a web application with webby 0.1.0.201106240305 and it failed to start with message "Could not locate configuration for maven-war-plugin". Here's POM for the war project I was trying to launch: http://objectledge.org/fisheye/browse/cyklotron/trunk/cyklotron-webapp

Re: [m2e-users] m2e-wtp temporary removed from m2e marketplace catalog

2011-07-05 Thread Rafał Krzewski
A little tip to those trying to install m2e-wtp from the update site below - if the update site looks empty, uncheck 'Group items by category' option :) cheers, Rafał On 07/02/2011 07:22 AM, Igor Fedorenko wrote: For reasons explained in [1], m2e-wtp and wtp were being installed for all proje

Re: [m2e-users] webby: Could not locate configuration for maven-war-plugin

2011-07-05 Thread Rafał Krzewski
1 01:23 PM, Fred Bricon wrote: m2e-wtp doesn't support overlays of projects handled as attached artifacts. Regards, Fred Bricon 2011/7/5 Rafał Krzewski <mailto:rafal.krzew...@caltha.pl>> Hi, I've just tried running a web application with webby 0.1.0.20110624030

Re: [m2e-users] webby: Could not locate configuration for maven-war-plugin

2011-07-05 Thread Rafał Krzewski
cope well with this kind of packaging change. 2011/7/5 Rafał Krzewski <mailto:rafal.krzew...@caltha.pl>> I've switched my projects to war packaging with attached jars and now I'm getting the following two errors for each project: Utility Module and Dynamic Web Modul

Re: [m2e-users] webby: Could not locate configuration for maven-war-plugin

2011-07-05 Thread Rafał Krzewski
icon 2011/7/5 Rafał Krzewski <mailto:rafal.krzew...@caltha.pl>> That worked, and the application got deployed _almost_ correctly. I have two files in src/main/webapp/WEB-INF/ - web.xml for regular deployment and eclipse-web.xml for running the application in development

Re: [m2e-users] webby: Could not locate configuration for maven-war-plugin

2011-07-05 Thread Rafał Krzewski
y into target/m2e-webby/war directory, before getting derailed by non-standard overlays... cheers, Rafał Any pointers will be appreciated. On 07/05/2011 02:25 PM, Benjamin Bentmann wrote: Rafał Krzewski wrote: I've just tried running a web application with webby 0.1.0.201106240305 and

Re: [m2e-users] webby: Could not locate configuration for maven-war-plugin

2011-07-05 Thread Rafał Krzewski
rride seems a convenient alternative, but of course feasibility of each option depends on the size of the team, complexity of the projects etc. cheers, Rafał On 07/05/2011 07:52 PM, Benjamin Bentmann wrote: Rafał Krzewski wrote: When I tried running my application I got the follwing error me

[m2e-users] webby server classpath, running on external Jetty

2011-07-05 Thread Rafał Krzewski
Hi, I have more questions regarding webby :) My applications needs a JDBC driver on it's classpath but I don't package one in the war for obvious reasons. Webby run configuration page does not have classpath tab where I could add the driver, therefore I'm unable to run my application on embedd

Re: [m2e-users] webby server classpath, running on external Jetty

2011-07-06 Thread Rafał Krzewski
so I see no way how to get around this. I'm fine with running on Tomcat for now. When classpath management through run configuration UI is added to Webby I'll be happy to give Jetty another try. thanks, Rafał On 07/06/2011 02:06 PM, Benjamin Bentmann wrote: Rafał Krzewski wrote:

Re: [m2e-users] Dev build of m2e-wtp 0.13.1 available for testing

2011-07-08 Thread Rafał Krzewski
ServletContext.getRealPath(String) is generally not portable and not reliable method of accessing the contents of the web application. For example when running from a non-expanded war this method returns null for all paths. On the other hand, ServletContext.getResource(String) should work irreg

Re: [m2e-users] Setting up a fresh development environment for Eclipse RCP projects

2011-07-08 Thread Rafał Krzewski
I think you are right, I'm doing the same thing with Eclipse plugins that need dependencies that are not OSGi bundles, and I've learned the technique from m2e-core :) Thing is that maven-dependency-plugin is not supported by m2e out of the box. It is on my radar for the further work on m2e con

Re: [m2e-users] Setting up a fresh development environment for Eclipse RCP projects

2011-07-08 Thread Rafał Krzewski
ate after checking out the project sources from SVN. But I cannot succeed to copy bundle-classpath dependencies from repo to local lib folder. copy-dependencies tries to find the Require-Bundle dependencies which I do not need. Do you have a solution? 2011/7/8 Rafał Krzewski <mailto:raf

Re: [m2e-users] Setting up a fresh development environment for Eclipse RCP projects

2011-07-08 Thread Rafał Krzewski
dencies by adding the following part to maven-dependency-plugin configuration: p2.osgi.bundle I have a limited knowledge of Tycho, so I don't know if it will actually work :) Give it a try and see. cheers, Rafał On 07/08/2011 04:38 PM, Rafał Krzewski wrote: Kerem, I don't understand what

Re: [m2e-users] The reasons I feel disappointed with m2e 1.0

2011-07-08 Thread Rafał Krzewski
Regarding plugin & dependency search - did you notice how autocomplete works in POM source editor? When you type in a groupId, you can easily choose between available artifacts and versions, and also insert known plugin configuration parameters. If you can't remember a groupId / artifactId, the

[m2e-users] new connectors available

2011-07-09 Thread Rafał Krzewski
Hi, I've finished the first release of the connectors I've been working on for the past few weeks. While the requests to include them in discovery catalog are pending you can try them by installing them directly from an Eclipse update site: http://objectledge.github.com/maven-extensions/conn

Re: [m2e-users] Missing SVN SCM handler

2011-07-10 Thread Rafał Krzewski
Here's an example set of features that work together: org.eclipse.platform (3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f) "Eclipse Platform" org.eclipse.m2e.feature (1.0.0.20110607-2117) "Maven Integration for Eclipse" org.eclipse.team.svn (0.7.9.I20110602-1700) "Subversive SVN Team

Re: [m2e-users] new connectors available

2011-07-10 Thread Rafał Krzewski
Hi, I've updated documentation for my connectors & plugins: http://objectledge.org/confluence/display/TOOLS/M2E+Connectors I think it's pretty much complete, but if you have any suggestions regarding what may be missing, I'd love to hear them. cheers, Rafał On 07/10/2

Re: [m2e-users] new connectors available

2011-07-11 Thread Rafał Krzewski
ppreciated. thanks, jeff 2011/7/10 Rafał Krzewski: Hi, I've updated documentation for my connectors& plugins: http://objectledge.org/confluence/display/TOOLS/M2E+Connectors I think it's pretty much complete, but if you have any suggestions regarding what may be missing, I'd love

Re: [m2e-users] Autocompletion and nested configuration tags

2011-07-11 Thread Rafał Krzewski
Right now m2e supports contextual completion of mojo parameter names. It is very convenient. Sometimes the parameters are not simple strings but are strongly typed. Maven Mojo API has very definte semantics how Mojo parameters are mapped [1], [2], so this could be done in a fully deterministic

Re: [m2e-users] m2e connector tests

2011-07-11 Thread Rafał Krzewski
You don't need to do that. Just remove local repository override from settings.xml in your test project. Artifacts from your local repo will be used or downloaded from repo1 as necessary. See example test project [1] One thing to note though, when using this approach is that you need to disabl

Re: [m2e-users] Autocompletion and nested configuration tags

2011-07-12 Thread Rafał Krzewski
edorenko wrote: For this to work in "fully deterministic way", m2e would have to load mojo instance, which I am not sure is feasible to implement in efficient manner. -- Regards, Igor On 11-07-11 6:34 PM, Rafał Krzewski wrote: Right now m2e supports contextual completion of mojo paramete

Re: [m2e-users] Autocompletion and nested configuration tags

2011-07-12 Thread Rafał Krzewski
On 07/12/2011 06:42 PM, Igor Fedorenko wrote: On 11-07-12 12:29 PM, Rafał Krzewski wrote: Well, definitely you would have to load Mojo class in order to introspect it. Which means the ClassRealm for the plugin would have to be populated, which means all plugin dependencies need to be resolved

[m2e-users] running web applications with JRebel

2011-07-18 Thread Rafał Krzewski
Hello all, I wanted to share my experiences with running web applications with m2e-wtp and Webby combined with JRebel [1] JRebel is a tool that enhances JVM Hot Swap mechanism, so that most changes can be applied dynamically to classes already loaded in memory. It aims to fix the very common pr

Re: [m2e-users] source:jar-no-fork doesn't seem to work on eclipse-plugin

2011-07-20 Thread Rafał Krzewski
I've also run into this problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=351908 It's fixed now in the master branch: https://github.com/sonatype/sonatype-tycho/commit/9ffdaa719deeaa63fd5f478fcc8e9f3ded2feda3 You shouldn't be getting it any more if you are using tycho 0.13.0-SNAPSHOT. cheers

Re: [m2e-users] Reducing build times of web application

2011-08-05 Thread Rafał Krzewski
Definetely, you don't need to do a Maven build to have the changes reflected in /WEB-INF when using Webby or M2E-WTP. That happens automagically. From my experience Webby is 5 to 10x faster than M2E-WTP for a project with a dozen modules, several thousand classes and ~0.5 million lines of code.

Re: [m2e-users] Webby & Tomcat

2011-08-05 Thread Rafał Krzewski
Right now I'm working on a SSO functionality for my application and for that I needed a non-standard Tomcat configuration. First I need a HTTPS connector, second I need to run two instances of my application using the same codebase in my workspace but with distinct configurations (one is acting

Re: [m2e-users] specify where ZIP files are stored in a product build

2011-08-05 Thread Rafał Krzewski
Lars, There's an overlap between m2e & tycho developers, but still I think you should post that question to tycho-users list :) regards, Rafał On 08/05/2011 02:30 PM, Lars Heinemann wrote: Hi, I am wondering if there is a possibility to define where the zip files from a product build are st

Re: [m2e-users] Reducing build times of web application

2011-08-08 Thread Rafał Krzewski
things don't need so I really don't see how could it be faster ;) Cheers, Rafał On 08/05/2011 05:25 PM, Max Rydahl Andersen wrote: On Aug 5, 2011, at 14:19, Rafał Krzewski wrote: Definetely, you don't need to do a Maven build to have the changes reflected in /WEB-INF when usi

Re: [m2e-users] Long term outlook for 'M2E plugin executionnotcovered'

2011-08-16 Thread Rafał Krzewski
I'd like to add my 2c to the discussion, from the perspective of a developer of a few m2e connectors. You need to realize that writing a connector is easy. In fact it is _a lot_ easier than writing a maven plugin that is actually useful. You don't need to be the developer of a maven plugin to c

Re: [m2e-users] Could not get the value for staleFile param with jaxws-maven-plugin

2011-09-04 Thread Rafał Krzewski
From my experience, this error message appears when m2e's embedded Maven runtime has trouble resolving the plugin artifact or one of it's dependencies. If you have m2e logback support plugin installed, you can check WORKSPACE/.metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log for mo

Re: [m2e-users] Cannot create class by using plugin wsimport

2011-09-05 Thread Rafał Krzewski
Hi Thomas, I think you've put the configuration in the wrong place. Try this: org.codehaus.mojo jaxws-maven-plugin 1.10 src/main/resources/wsdl MyWebService.wsdl http://172.23.17.40:8080/TestWebService/mywebservice?wsdl com.me.jaxws.stub org.eclipse.m2e lifecycle-mapping 1.0.0 org.co

Re: [m2e-users] maven web apps not loading in Eclipse with M2E

2011-09-13 Thread Rafał Krzewski
Hi Steve, m2e by itself does not support web application development. You need an additional integration module. At this point there are two alternatives available: m2e-wtp and webby. Search the list archives for more information. If you are using one of those modules already, you need to tel

Re: [m2e-users] maven web apps not loading in Eclipse with M2E

2011-09-13 Thread Rafał Krzewski
one? I learn that wtp is more full-featured but sometimes painfully slow and webby is faster but lacks some things. I am doing development of a web service. No presentation layer in this project. Can webby handle this or does it need the JEE support of m2e-wtp? On 09/13/2011 10:34 AM, R

Re: [m2e-users] Dumb newbie archetype question

2011-09-13 Thread Rafał Krzewski
Well, I can see the archetype jar on Maven Central: http://search.maven.org/#browse%7C1710771789 If your Nexus instance claims it does not exist, something is amiss there. Also note that Nexus maintains archetype-catalog.xml metadata file at the root of each Maven2 repository. Have you looked at

Re: [m2e-users] Cannot create the wsdl by using plugin wsgen

2011-09-14 Thread Rafał Krzewski
ime embeds maven and aether which are available to other bundles. Matthew 2011/9/13 Rafał Krzewski <mailto:rafal.krzew...@caltha.pl>> Indeed, stuffing a jar into the plugin bundle is probably the easiest approach, but it has an obvious deficiency - you cannot share a depe

Re: [m2e-users] What is this Eclipse error message trying to tell me?

2011-09-14 Thread Rafał Krzewski
The error does not refer to a file (other than pom.xml that is) but the entire project. To run project configuration update, use the context menu for the project and select Maven > Update Project Configuration ... Cheers, Rafał On 09/14/2011 10:41 PM, Steve Cohen wrote: Project configuration i

Re: [m2e-users] Configuring the web.xml file with m2e-wtp

2011-09-15 Thread Rafał Krzewski
Greg, Have you tried using profiles? Project properties > Maven > Activate Maven Profiles allows you to activate a specific profile when building the project under eclipse. This way you can have distinct maven-war-plugin configurations for distribution and development builds. Cheers, Rafał

Re: [m2e-users] Configuring the web.xml file with m2e-wtp

2011-09-15 Thread Rafał Krzewski
Yes, and no. In the "Check out as Maven projects" dialog contributed by m2e scm connectors, in Advanced section, there's Profiles input element that allows you to enter the names of the profiles that should be activated on the imported projects. That's convenient when you are importing a bunch

Re: [m2e-users] Configuring the web.xml file with m2e-wtp

2011-09-15 Thread Rafał Krzewski
Posted too quickly... I meant no way to tell it to m2e through the POM. On 09/15/2011 07:01 PM, Rafał Krzewski wrote: Yes, and no. In the "Check out as Maven projects" dialog contributed by m2e scm connectors, in Advanced section, there's Profiles input element that allows y

Re: [m2e-users] Configuring the web.xml file with m2e-wtp

2011-09-15 Thread Rafał Krzewski
Now, that's a neat trick! Thanks, R. On 09/15/2011 09:23 PM, Fred Bricon wrote: You can use the m2e activated profile like : m2e m2e.version ... m2e automatically enables this profile by setting the m2e.version property. HIH. Re

Re: [m2e-users] Repository index large file

2011-09-16 Thread Rafał Krzewski
Igor, Lucene is designed from grounds up for concurrent read / write access to the index. It uses file system based write lock so the index can be shared safely among different VMs. Cheers, R. On 09/16/2011 02:58 PM, Igor Fedorenko wrote: Yes, these are lucene indexes for remote repositories.

Re: [m2e-users] multimodule setup

2011-10-08 Thread Rafał Krzewski
The "native" module layout in Eclipse is flat -parent pom -ear -war 1 -war 2 -utilty jar 1 ... Maven's native layout is nested -parent pom -ear -war -war -utilty jar 1 ... In my opinion flat layout is less hassle, but m2e can handle both. For nested structure, you may want to use 'hide

Re: [m2e-users] multimodule setup

2011-10-09 Thread Rafał Krzewski
You start with capturing an existing module structure: http://maven.apache.org/archetype/maven-archetype-plugin/create-from-project-mojo.html And then you clean it up and tweak it until you're happy with it. But first you need to get your prototype project working :) Cheers, Rafał Steve On 10/08/20

Re: [m2e-users] What does Maven ->Download Source do?

2011-10-13 Thread Rafał Krzewski
When things work correctly, m2e downloads the attached sources from remote repository and configures Eclipse classpath so that you can browse the sources for the class. Now, for that to work the sources must be available in the repository! If you are trying to fetch sources for something in Mav

Re: [m2e-users] Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile)

2011-11-02 Thread Rafał Krzewski
On 11/02/2011 12:24 PM, Vegard B. Havdal wrote: On Nov 2, 2011, at 12:14 PM, Guillaume Polet wrote: * Is there a way to simply remove all these Errors M2E reports (again a setting in Eclipse, a preference somewhere)? See this ticket: https://bugs.eclipse.org/bugs/show_bug.cgi?id=350414 I real

Re: [m2e-users] Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (execution: default-compile, phase: compile)

2011-11-04 Thread Rafał Krzewski
avdal a écrit : On Nov 2, 2011, at 12:52 PM, Rafał Krzewski wrote: get it preinstalled in their Eclipse when they start working on a project, and everything will be fine. All the scary error markers will go away :) They mask out other ones in the Package Explorer and Problems panes. If there were

Re: [m2e-users] Webby updated

2011-11-28 Thread Rafał Krzewski
Hi Benjamin, Those changes are all great, but I'm having a problem to run my applications now! I also can't rollback to 0.1.0 because it's not available in the update site anymore... Here's what I was able to determine so far: 0.1.0 used to generate tag in /target/m2e-webby/container/conf/

Re: [m2e-users] Webby updated

2011-11-28 Thread Rafał Krzewski
Thanks, Benjamin I was able to roll back the upgrade and my application starts up OK. This confirms that the issues was caused by the upgrade to 0.2.0. Cheers, Rafał On 11/28/2011 10:31 PM, Benjamin Bentmann wrote: Rafał Krzewski wrote: I also can't rollback to 0.1.0 because it&

Re: [m2e-users] [m2e-dev] m2e Connectors and dependence on plugin

2011-11-29 Thread Rafał Krzewski
out any special configuration or anything special really. -- Regards, Igor On 11-11-29 2:20 PM, Rafał Krzewski wrote: Igor, I was looking into web application development using OSGi tools (Eclipse Virgo, Gemini, Libra etc) and m-b-p / Tycho / PDE integration is very relevant in this context. Is

Re: [m2e-users] Tomcat 7 getting incomplete webapp

2011-11-30 Thread Rafał Krzewski
Or you could use Webby https://docs.sonatype.org/display/M2ECLIPSE/Integration+with+Maven+WAR+Plugin instead, it can handle arbitrary dynamic overlay structure, straight from the workspace and is really fast. I had a class loading issues with recently released version 0.2.0 so you might want

Re: [m2e-users] [m2e-dev] m2e Connectors and dependence on plugin

2011-11-30 Thread Rafał Krzewski
Hi Igor, you forgot to mention that Tycho Project Configurators connector is necessary to have this integration working. Surprisingly, when Tycho connector was not installed, I was not getting the infamous "Plugin execution not covered..." errors. maven-bundle-plugin was not invoked on incremen

Re: [m2e-users] Webby updated

2011-12-13 Thread Rafał Krzewski
Hi Benjamin, I'd like to confirm that the new version is working fine for me. thanks! Rafał On 12/10/2011 07:54 PM, Benjamin Bentmann wrote: Hi Rafał, 0.1.0 used to generate tag in /target/m2e-webby/container/conf/server.xml, with embedded tag using VirtualWebappClassloader serving classes

Re: [m2e-users] Update conflict in STS 2.8.1

2012-01-03 Thread Rafał Krzewski
You'd need to install pre-release preview of m2e 1.1 from the following update site in order to upgrade build-helper-maven-plugin: http://download.eclipse.org/technology/m2e/milestones/1.1 Cheers, Rafał On 01/03/2012 03:59 PM, KARR, DAVID wrote: How does that information help me? *From:*m2

Re: [m2e-users] Update conflict in STS 2.8.1

2012-01-03 Thread Rafał Krzewski
m2e 1.1 will be released in June, as a part of Juno simultaneous release. It's supposed to be backward compatible with m2e 1.0 and 1.0.100, so you could give it a spin. If things go south, you can always roll back the upgrade using Eclipse Installation Details > Installation history > Revert.

Re: [m2e-users] Missing artifacts / non-existing libraries - please assist

2012-01-15 Thread Rafał Krzewski
Antony, my guess is that something is not right with the proxy settings. Are you able to build the project outside of Eclipse, using standalone Maven that you've installed? Is the proxy in Eclipse actually working? For example can you browse Eclipse update sites in the "Install new software" sc

Re: [m2e-users] Building PDE Projects using Tycho automatically

2012-01-18 Thread Rafał Krzewski
Try https://dev.eclipse.org/mailman/listinfo/tycho-user Cheers, Rafał On 01/18/2012 01:36 PM, PIYUSH BAJAJ wrote: Hi Experts, I have a use case in which a plug-in project (PDE) needs to be build using maven. I am following these steps: --

Re: [m2e-users] Maven 3.0.4 runtime

2012-01-25 Thread Rafał Krzewski
You don't need to start from scratch, take a look at Maven 3.0.2 runtime embedded in m2e-core: http://git.eclipse.org/c/m2e/m2e-core.git/tree/m2e-maven-runtime I imagine that setting up dependency versions correctly might be a tricky business :) Cheers, Rafał On 01/25/2012 11:50 AM, Julien

Re: [m2e-users] Copying MANIFEST.MF to generated bundle

2012-02-02 Thread Rafał Krzewski
Why don't you use org.apache.felix:maven-bundle-plugin? m-b-p / BND makes OSGi development easier in many ways :) Cheers, Rafał On 02/02/2012 08:16 AM, PIYUSH BAJAJ wrote: Hi Experts, I have a OSGi plugin project and I'm creating a jar using 'mvn install' Packaging type = 'jar' I have done

Re: [m2e-users] external resources - issue?

2012-02-06 Thread Rafał Krzewski
I recently had to perform this kind of equilibristics. I was able to work around it by creating a linked source folder in Eclipse (Build path > link source). This way I got the project to build both in Eclipse/m2e and command line Maven. m2e preserves classpath entries added by hand so it worke

Re: [m2e-users] Where should tomcat base configuration be located in Eclipse using Sonatype Webby Plugin?

2012-02-08 Thread Rafał Krzewski
If I understand correctly you need put some resources (config files) on the runtime classpath of your application, but you don't want them to be packaged in WAR. If this is so, here's a simple solution: create a configuration directory in your WAR project and include it as resource conditional

Re: [m2e-users] Frustrated with another string of "Failed to read artifact descriptor" errors

2012-02-17 Thread Rafał Krzewski
You could try delteing $M2_HOME/repository/org/apache/maven/plugins/maven-jar-plugins directory manually and then invoking Update dependencies + Force from m2e. Cheers, Rafał On 02/17/2012 05:03 PM, KARR, DAVID wrote: -Original Message- From: m2e-users-boun...@eclipse.org [mailto:m2e-

Re: [m2e-users] Needing to hint Javadoc to m2e

2012-03-28 Thread Rafał Krzewski
On 03/28/2012 06:26 PM, Ian Robertson wrote: Maybe the solution is to get javadoc jars onto Maven central, thereby solving it for everyone... Yeah, that's the OSS spirit! http://www.sonatype.org/central/participate cheers, Rafał On 03/28/2012 01:29 AM, Thorbjørn Ravn Andersen wrote: We do

Re: [m2e-users] Debugging plugin execution errors

2012-04-01 Thread Rafał Krzewski
Hi Alan, have you checked that the project builds cleanly under command line maven & embedded maven through Run as ... > maven install to eliminate "easy" problems? Do you have "m2e lfl4j over logback logging" feature installed? If you do, have checked the logs in .metadata/.plugins/org.ecl

Re: [m2e-users] Needing to hint Javadoc to m2e

2012-04-04 Thread Rafał Krzewski
Yes, I believe OSSRH is the only way to put artifacts on Maven Central. In case of projects that disbanded, or don't provide Maven packaging and are not interested in doing so, you can upload the artifacts yourself, but you need to write the POMs yourself. Since the POMs should specify all depen

Re: [m2e-users] Best way to have one project looking at a subset of another project

2012-04-17 Thread Rafał Krzewski
http://wiki.eclipse.org/M2E_plugin_execution_not_covered http://wiki.eclipse.org/M2E/Extension_Development regards, Rafał On 04/17/2012 06:09 PM, KARR, DAVID wrote: -Original Message- From: m2e-users-boun...@eclipse.org [mailto:m2e-users- boun...@eclipse.org] On Behalf Of Igor Fedorenko

Re: [m2e-users] Any way to share the repository index between workspaces?

2012-04-25 Thread Rafał Krzewski
See here for a discussion of Lucene index sharing: http://www.quora.com/How-can-two-applications-share-the-index-built-by-Lucene In theory it should be possible to share an index among multiple appplications running in separate JVMs, as long as only one would modify it at any given time. Lucene

Re: [m2e-users] M2E Update Project issue

2012-06-22 Thread Rafał Krzewski
I’d also be interested in details of how to create the maven-generated p2 repository from a collection of libraries as it might be a good alternative to the repackaging. You could use P2 plugin for Nexus. Just deploy bundles to Maven repository and it will generate P2 metadata files on the

Re: [m2e-users] Best practices for including resources outside of project base directory [Cont'd]

2012-06-26 Thread Rafał Krzewski
My piece of advice is to restructure your project in such way that including resources from external directories is no longer necessary. It's beneficial in the long run, because your build will be simpler and less confusing, easier to maintain and less likely to break in the future. That's a les

Re: [m2e-users] Cannot edit filtered source files

2012-07-03 Thread Rafał Krzewski
Well, you are asking for the raw (unfiltered) source files to be on the classpath (so that JDT can work on them) and NOT be on the classpath at the same time, so that they don't clash with the filtering output. Obviously this cannot work. Why are you trying to filter the sources in the first pl

Re: [m2e-users] Eclipse builds again and again and again

2012-07-03 Thread Rafał Krzewski
Which m2e version are you using? Do you have custom lifecycle mappings defined in your POM that use action "execute"? They are a likely culprit. Regards, Rafał On Tue 03 Jul 2012 09:24:47 AM CEST, Markus Karg wrote: Hello m2e Community, I have a strange problem with m2e. Since I enabled the

Re: [m2e-users] javacc m2e connector?

2012-07-03 Thread Rafał Krzewski
Hi Peter, I have contributed javacc connector for m2e 1.0. I was planning to release an update because I would like to upgrade my workspaces to Eclipse Juno too :) I'll try to get it done some time this week and publish it into a P2 repository hosted on Github. Then'll try to get it in the dis

Re: [m2e-users] javacc m2e connector?

2012-07-03 Thread Rafał Krzewski
Hi Peter, I've done the necessary changes to get my connectors building with m2e 1.1. I've pushed a binary release to Github. You can install JavaCC connector directly from P2 repository at http://objectledge.github.com/maven-extensions/connectors/updates/development I'd appreciate if you coul

Re: [m2e-users] Eclipse Juno how to get Subversion to checkoutmavenprojects

2012-07-04 Thread Rafał Krzewski
On 07/04/2012 09:53 AM, Markus Karg wrote: Interesting! Seems to be a regional problem. Ping www.tesla.io (207.223.250.230) fails with timeout (South-Western Germany), even with a timeout of one minute. I'll phone my provider. Thanks for the test! :-) It appears that the routing problem is so

Re: [m2e-users] m2e 1.2 is released

2012-09-19 Thread Rafał Krzewski
Given the tedious (yet necessary!) intellectual property rights clearance process at Eclipse, this is not likely to ever happen. The whole discovery catalog is designed to keep the whole thing scalable: only the catalog with pointers to 3rd party provided p2 repositories is supposed to be hosted

Re: [m2e-users] (no subject)

2012-09-22 Thread Rafał Krzewski
Hi Vijay, another thing you should keep in mind is to always use Sun/Oracle JDK for any Java development, not Open JDK distributed with Ubuntu. You'll save yourself from all sorts of "interesting" problems... Excellent automated installation script for Ubuntu can be found here: https://github.

Re: [m2e-users] Any way to use project specific settings.xml?

2012-09-22 Thread Rafał Krzewski
On 09/22/2012 07:30 AM, Alex Chaphiv wrote: Yeah, that's what we do now. It becomes problematic when we share the project with other parties. Plus, it seems to be frowned upon to put repositories in poms. When you are releasing to Maven Central, you are not supposed to put in your POM, becau

Re: [m2e-users] Best practices for includes resources outside of project base directory

2012-09-25 Thread Rafał Krzewski
On 09/25/2012 12:45 PM, Igor Fedorenko wrote: Resource references across different projects are not supported by design. This is definitely a feature. Resource references across different modules of the same project are not supported because of eclipse workspace limitations -- there is no easy w

Re: [m2e-users] Excluding duplicate resources in a hierarchical project?

2012-10-03 Thread Rafał Krzewski
You'll need remove & reimport project whenever you add a new module or move a module to different place... It would be a little more usable if the folder hiding hack could be reapplied to an existing project during Update Configuration action. I have no idea if it's feasible, and sadly I don't ha

Re: [m2e-users] m2e specific actions

2012-10-10 Thread Rafał Krzewski
How about a profile that is enabled automatically whenever the build occurs under control of m2e, without meddling with .m2/settings.xml? The trick is to use: m2e m2e.version The profile is activated automatically when m2e.version system

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

2012-10-15 Thread Rafał Krzewski
The purpose of Tycho is to build Eclipse PDE projects outside of Eclipse and that's why it strictly following PDE project configuration practices. It's also useful to deliver Eclipse specific artifacts like P2 update sites from a Maven build. Cheers, Rafał On 10/14/2012 06:39 PM, Steinar Bang

Re: [m2e-users] Generating OSGi manifest in maven build

2012-10-18 Thread Rafał Krzewski
You need to install Tycho connector to integrate maven-bundle-plugin with m2e. Cheers, Rafał On 10/18/2012 09:55 PM, Andrew Mak wrote: Hi, I'm new to m2e and Maven in general. I'm trying to generate an OSGi manifest file as part of my build. Here's what I have done so far: I configured i

Re: [m2e-users] Generating OSGi manifest in maven build

2012-10-19 Thread Rafał Krzewski
. But I would like to generate a manifest from the POM, which seems to work but I am running into the problem of it being overwritten during auto-build. Thanks, Andrew From: Rafał Krzewski To: Maven Integration for Eclipse users mailing list Date: 10/18/2012 06:05 PM Subject: Re: [m2e-u

Re: [m2e-users] [IMPORTANT] Unable to build system into configurable directory

2012-11-20 Thread Rafał Krzewski
You are using Maven in completely non-standard way. Buliding two projects into the same directory is can fail in many "interesting" ways, and I can't even imagine the mess resulting from mixing a 100 builds! This is definetely not something that Maven or m2e developers would endorse or support.

Re: [m2e-users] "org.codehaus.plexus.archiver.jar.Manifest.merge(org.codehaus.plexus.archiver.jar.Manifest)"

2012-12-03 Thread Rafał Krzewski
Nat, have you checked the "secret" m2e log in .metadata/.plugins/org.eclipse.m2e.logback.configuration/0.log? Cheers, Rafał On 11/30/2012 09:34 PM, Nathaniel Mishkin wrote: I have a m2e-imported project that produces this error in the Eclipse "Problems" view: org.codehaus.plexus.archiver.j

Re: [m2e-users] Update Project resets my .classpath if local libraries are included

2013-01-15 Thread Rafał Krzewski
Tony, just to clarify, are you using Tycho [1], or are you trying to build a PDE project that has JAR files stored locally? Cheers, Rafał [1] http://eclipse.org/tycho/ On 01/15/2013 01:24 PM, Tonny Madsen wrote:

Re: [m2e-users] Handling binary-only jars

2013-01-30 Thread Rafał Krzewski
Keeping jars OUT of revision control systems was one of the original motivations for creating Maven, AFAIK. When you are trying to circumvent that, you are basically on your own. The "Maven way" of solving this would be changing the build process in such way that the said jar would be published

Re: [m2e-users] Handling binary-only jars

2013-01-30 Thread Rafał Krzewski
Keith, this is possible, but it does not mix well with m2e / build dependency resolution in Eclipse classpath, which I believe as the problem reported by OP Cheers, Rafał On 01/30/2013 04:53 PM, Keith Barlow wrote: Rafal is right but to save you from such rigor, you might be able to use a c

Re: [m2e-users] Handling binary-only jars

2013-01-30 Thread Rafał Krzewski
On 01/30/2013 04:35 PM, Marcel Schutte wrote: Well said, please listen to this advise. Try not to 'fight' the maven conventions. I'd say if you find yourself fighting with Maven conventions you need to rethink your approach. If you insist on doing the build 'your way' there are other tools

Re: [m2e-users] Running single JUnit tests with maven in Eclipse

2013-02-20 Thread Rafał Krzewski
You can use Run as > Maven build ... on your project, enter test as the goal and define parameter test with value XxxxYTest#testAbc using Add ... button on the right side next to Parameter name / Value table. (I'm not sure about # separator, if it does not work, try to use a .) hope this he

Re: [m2e-users] Problem with M2E and OSGi runtime launch config

2013-07-13 Thread Rafał Krzewski
Hi Philipp, maven-bundle-plugin is not compatible with Eclipse PDE. If you need to use PDE because are developing an Eclipse plugin, RCP or RAP application but you would like to have an CI / release build with maven you should be using Eclipse Tycho. If you are doing OSGi development unrelated

Re: [m2e-users] Is Webby will be compatible with m2e 1.4.0 ?

2013-07-19 Thread Rafał Krzewski
Hi, have you tried doing what the message says? I get it occassionaly but refreshing and & cleaning the affected project helps. Also make sure you have "Project > Build automatically" option enabled. Cheers, Rafał On 07/18/2013 11:58 AM, COLLIGNON, Thomas wrote: Hello, I have recently get

Re: [m2e-users] DataNucleus Plugin not running

2013-12-05 Thread Rafał Krzewski
First of all, does your build run correctly under command line Maven? Second, think that m2e only concerns itself with plugings that run up to and including compile / test-compile phase. Am I right, Igor? cheers, Rafał On 12/05/2013 05:31 PM, Eric Stein wrote: I'm trying to run the datanucl

Re: [m2e-users] Transforming class files in an M2E extension

2014-01-20 Thread Rafał Krzewski
On 01/20/2014 01:32 PM, Emond Papegaaij wrote: I've changed the maven plugin to use BuildContext, but Eclipse is still having issues. It no longer triggers an endless build (even with runOnIncremental), but Eclipse does not see the generated classes. The transformed class files are visible i

Re: [m2e-users] eclipse lunar not copying my war's class files over

2014-09-01 Thread Rafał Krzewski
m2e is not compatible with maven-eclipse-plugin if it ever worked for you in the past, it was only by accident :) To use your project with m2e / m2e-wtp you should remove the project from workspace, delete .project, .classpath, and .settings/ and then use File > Import > Maven > Existing Maven p

Re: [m2e-users] Skinnywars support

2014-11-18 Thread Rafał Krzewski
I'm using skinny wars with M2E-WTP and JBoss 7 and 8 without problems. One thing you should pay attention to is adding JAR dependencies to WARs with "provided" scope, which prevents them from being packaged into WEB-INF/lib. Cheers, Rafał On 11/18/2014 02:59 PM, Emond Papegaaij wrote: Hi, I

Re: [m2e-users] 533 MB in .plugins/org.eclipse.m2e.core/nexus directory

2015-09-29 Thread Rafał Krzewski
We've had this conversation many times already. The conclusion was that diskspace is cheap. :) As people kept complaining, download was eventually switched off. Regards, Rafał On 09/29/2015 03:53 PM, Lars Vogel wrote: Hi Matthew, thanks for the information. Does this index have to be downloa

Re: [m2e-users] Question about the New Maven project

2015-12-16 Thread Rafał Krzewski
Maven build profiles: http://books.sonatype.com/mvnref-book/reference/profiles.html The entry allows you to define which profiles should be activated whenever the project is built by the IDE. You can change it later in Project properties > Maven dialog. Cheers, Rafał On 12/16/2015 10:11 AM,