Re: [m2] maven embedder
On 2/14/07, Jason van Zyl [EMAIL PROTECTED] wrote: On the IDEA side the Maven Reloaded Plugin by Brian Kate, and the Maven 2.x Integration by Ralf Quebbemann. I am also working on this in addition to the embedder as it's the IDE I use. Thanks! I didn't see the Reloaded plugin when I did the initial search. Sounds like it's exactly what I wanted to do. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven embedder
On 15 Feb 07, at 1:32 AM 15 Feb 07, Jochen Wiedmann wrote: On 2/15/07, Jason van Zyl [EMAIL PROTECTED] wrote: live. That's where we're planning the official IDE integration for Maven. What about M2Eclipse? What about it? I work on that too and that's what we're planning on moving to Mevenide. You call this official? Yes, given it's the first and there isn't anything else. Jason. -- How fast can a year go? As fast as your childs first year. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven embedder
On 2/15/07, Jason van Zyl [EMAIL PROTECTED] wrote: live. That's where we're planning the official IDE integration for Maven. What about M2Eclipse? You call this official? -- How fast can a year go? As fast as your childs first year. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven embedder
Hi Franz, I'm looking at the 2.0.4 sources (that's what I'm using) and I see MavenEmbedder.readModel() declaring throws XmlPullParserException D. On 2/12/07, franz see [EMAIL PROTECTED] wrote: Good day, Odd. I just tried it and it works fine with me. Also, I have just checked the source code of MavenEmbedder() and it does not use XmlPullParserException, so I am not sure why it was looking for that. Are you sure your debugging the right line? Cheers, Franz Dmitry Beransky-3 wrote: Hi Franz, If I only add the embedder, i get a long list of NoClassDefFoundError, which goes away only when I counter balance by an equally long list of included jars. The very first error I get is this: Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/pull/XmlPullParserException at org.dembel.maven.MavenUtils.createEmbedder(MavenUtils.java:53) at Main.main(Main.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Where MavenUtils.createEmbedder() looks like this: public static MavenEmbedder createEmbedder() { MavenEmbedder embedder = new MavenEmbedder(); return embedder; } thanks Dmitry On 2/11/07, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more appropriate here or on the dev list. Please advise for future messages. What other maven run-time libraries do I need in order to use the embedder? Thanks Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8938749 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven embedder
On 13 Feb 07, at 10:32 AM 13 Feb 07, Dmitry Beransky wrote: Hi Franz, I'm looking at the 2.0.4 sources (that's what I'm using) and I see MavenEmbedder.readModel() declaring throws XmlPullParserException The folks I'm directly supporting for the embedder are the IDE folks. They are using the embedder from trunk. I will attempt to merge the trunk into the 2.0.6 release of Maven. If you want something then use these: http://idisk.maven.org/jvanzyl/Public/embedder/ Use the first version, that's what was used in the last release of the Maven Eclipse Integration. We're just about to release 2.0.5 and I don't have time to merge it into 2.0.5. Jason. D. On 2/12/07, franz see [EMAIL PROTECTED] wrote: Good day, Odd. I just tried it and it works fine with me. Also, I have just checked the source code of MavenEmbedder() and it does not use XmlPullParserException, so I am not sure why it was looking for that. Are you sure your debugging the right line? Cheers, Franz Dmitry Beransky-3 wrote: Hi Franz, If I only add the embedder, i get a long list of NoClassDefFoundError, which goes away only when I counter balance by an equally long list of included jars. The very first error I get is this: Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/pull/XmlPullParserException at org.dembel.maven.MavenUtils.createEmbedder (MavenUtils.java:53) at Main.main(Main.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main (AppMain.java:90) Where MavenUtils.createEmbedder() looks like this: public static MavenEmbedder createEmbedder() { MavenEmbedder embedder = new MavenEmbedder(); return embedder; } thanks Dmitry On 2/11/07, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more appropriate here or on the dev list. Please advise for future messages. What other maven run-time libraries do I need in order to use the embedder? Thanks Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder- tf3209782s177.html#a8938749 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven embedder
Good day to you, Dmitry, You may want to take a look at your dependency tree ( do mvn project-info-reports:dependencies then go to target\site\dependencies.html ) and search for what version of plexus-utils your project is using. I checked the dependency tree of org.apache.maven:maven-embedder:2.0.4 ( see [1] ), and it's using org.codehaus.plexus:plexus-utils:1.1. If according to your dependency tree, you are not using that plexus version, you may want to declare org.codehaus.plexus:plexus-utils:1.1 as a direct dependency of your maven project ( ensuring that maven will get that version of plexus-utils instead of relying on the version it will from its transitive dependencies ). Cheers, Franz [1] http://maven.apache.org/ref/2.0.4/maven-embedder/dependencies.html Dmitry Beransky-3 wrote: Hi Franz, I'm looking at the 2.0.4 sources (that's what I'm using) and I see MavenEmbedder.readModel() declaring throws XmlPullParserException D. On 2/12/07, franz see [EMAIL PROTECTED] wrote: Good day, Odd. I just tried it and it works fine with me. Also, I have just checked the source code of MavenEmbedder() and it does not use XmlPullParserException, so I am not sure why it was looking for that. Are you sure your debugging the right line? Cheers, Franz Dmitry Beransky-3 wrote: Hi Franz, If I only add the embedder, i get a long list of NoClassDefFoundError, which goes away only when I counter balance by an equally long list of included jars. The very first error I get is this: Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/pull/XmlPullParserException at org.dembel.maven.MavenUtils.createEmbedder(MavenUtils.java:53) at Main.main(Main.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Where MavenUtils.createEmbedder() looks like this: public static MavenEmbedder createEmbedder() { MavenEmbedder embedder = new MavenEmbedder(); return embedder; } thanks Dmitry On 2/11/07, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more appropriate here or on the dev list. Please advise for future messages. What other maven run-time libraries do I need in order to use the embedder? Thanks Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8938749 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8957702 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven embedder
Jason, Thanks. That worked great, however I ran into another problem. I'm using embedder to write an IntelliJ IDEA plugin and IDEA insists on using it's own JDOM library. See this discussion for reference: http://intellij.net/forums/thread.jspa?messageID=3441989 I was able to work around the problem temporarily by removing all JDOM classes from the embedder jar. I'm hoping for a more permanent solution, though. Is that possible? Thanks Dmitry The folks I'm directly supporting for the embedder are the IDE folks. They are using the embedder from trunk. I will attempt to merge the trunk into the 2.0.6 release of Maven. If you want something then use these: http://idisk.maven.org/jvanzyl/Public/embedder/ Use the first version, that's what was used in the last release of the Maven Eclipse Integration. We're just about to release 2.0.5 and I don't have time to merge it into 2.0.5. Jason. D. On 2/12/07, franz see [EMAIL PROTECTED] wrote: Good day, Odd. I just tried it and it works fine with me. Also, I have just checked the source code of MavenEmbedder() and it does not use XmlPullParserException, so I am not sure why it was looking for that. Are you sure your debugging the right line? Cheers, Franz Dmitry Beransky-3 wrote: Hi Franz, If I only add the embedder, i get a long list of NoClassDefFoundError, which goes away only when I counter balance by an equally long list of included jars. The very first error I get is this: Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/pull/XmlPullParserException at org.dembel.maven.MavenUtils.createEmbedder (MavenUtils.java:53) at Main.main(Main.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main (AppMain.java:90) Where MavenUtils.createEmbedder() looks like this: public static MavenEmbedder createEmbedder() { MavenEmbedder embedder = new MavenEmbedder(); return embedder; } thanks Dmitry On 2/11/07, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more appropriate here or on the dev list. Please advise for future messages. What other maven run-time libraries do I need in order to use the embedder? Thanks Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder- tf3209782s177.html#a8938749 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven embedder
Good day, Odd. I just tried it and it works fine with me. Also, I have just checked the source code of MavenEmbedder() and it does not use XmlPullParserException, so I am not sure why it was looking for that. Are you sure your debugging the right line? Cheers, Franz Dmitry Beransky-3 wrote: Hi Franz, If I only add the embedder, i get a long list of NoClassDefFoundError, which goes away only when I counter balance by an equally long list of included jars. The very first error I get is this: Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/pull/XmlPullParserException at org.dembel.maven.MavenUtils.createEmbedder(MavenUtils.java:53) at Main.main(Main.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Where MavenUtils.createEmbedder() looks like this: public static MavenEmbedder createEmbedder() { MavenEmbedder embedder = new MavenEmbedder(); return embedder; } thanks Dmitry On 2/11/07, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more appropriate here or on the dev list. Please advise for future messages. What other maven run-time libraries do I need in order to use the embedder? Thanks Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8938749 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven embedder
Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more appropriate here or on the dev list. Please advise for future messages. What other maven run-time libraries do I need in order to use the embedder? Thanks Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [m2] maven embedder
Hi Franz, If I only add the embedder, i get a long list of NoClassDefFoundError, which goes away only when I counter balance by an equally long list of included jars. The very first error I get is this: Exception in thread main java.lang.NoClassDefFoundError: org/codehaus/plexus/util/xml/pull/XmlPullParserException at org.dembel.maven.MavenUtils.createEmbedder(MavenUtils.java:53) at Main.main(Main.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Where MavenUtils.createEmbedder() looks like this: public static MavenEmbedder createEmbedder() { MavenEmbedder embedder = new MavenEmbedder(); return embedder; } thanks Dmitry On 2/11/07, franz see [EMAIL PROTECTED] wrote: Good day to you, Dmitry, AFAIK, It should be enough to add the maven-embedder artifact to your pom's dependencies for it to run. Why, what error are you getting? Cheers, Franz Dmitry Beransky-3 wrote: Hi, I'm not sure if this message is more appropriate here or on the dev list. Please advise for future messages. What other maven run-time libraries do I need in order to use the embedder? Thanks Dmitry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/maven-embedder-tf3209782s177.html#a8917783 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]