On 8/12/05, Alexander Azarov <[EMAIL PROTECTED]> wrote: > 1. How may I make maven2 plugin from jars? I mean I have no source code, but > need to build up a plugin from the jar files I have. Is it possible?
You are building an Eclipse plugin? I think you'll want to use the upcoming Maven2 OSGi plugin (it is being developed externally to this project) for that, if I understand correctly. You probably can't do what you need to "out of the box" just yet. The assembly plugin can create a jar from dependencies, but has no way to modify the resulting manifest. That could certainly be added, however. > 2. A complex question about developing Maven2 support in Eclipse. We are > developing a kind of build system that have to run Maven2 build process from > Eclipse and need access to the Eclipse platform, i.e. have to run Eclipse > methods. I managed to develop MavenRunner (alike AntRunner in Eclipse), that > launches under Eclipse and starts Maven2 build procedure in the same Java VM > for the Eclipse classloader to be available in Maven2, but my Maven plugin > does not recognize Eclipse as running. It sees Eclipse classes, but > Eclipse methods indicate Eclipse is not running. What could be the reason > for that? I'm not really familiar with how Eclipse does it's classloading, but there's a chance that that is not compatible with the Maven classloader that is created to manage plugins. It may be a good idea to work with the MevenIDE team (http://mevenide.codehaus.org) as well as the Maven team if you are intending to build a Maven2 plugin for Eclipse. They have some experience in this area building a plugin for Maven1, and we're really interested to see how this progresses. Cheers, Brett --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
