Re: [mevenide-user] FW: Mevenide2 - Netbeans IDE 6 Integration Questions

"Milos Kleint" <[email protected]> Tue, 5 Feb 2008 19:28:48 +0100
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <[email protected]>
On Feb 4, 2008 11:09 PM, Alan May <[email protected]> wrote:
>
>
>
>
> IDE:  NetBeans IDE 6.0 (Build 200711261600) /GA
>
> Java:  1.5.0_14-b03
>
> System:  Windows XP
>
> Maven:  2.0.7
>
>
>
> Hi,
>
>
>
> First off, I have really enjoyed this plug-in with Netbeans 6.  Working on
> maven-based projects with a lot of dependencies, this plugin has been a big
> time saver.  I was shocked how easy it was to setup a large set of projects.
> Thanks to the developers!!
>
>
can I quote you at the testimonials page?
http://mevenide.codehaus.org/m2-site/mevenide2-netbeans/testimonials.html

>
> We recently split out two logical web sites from one into two war files.  To
> reuse common code(jsf pages, java classes, and various static content) that
> was shared in the web tier, we used the warpath type dependency in our two
> deployable .war files:
>
>
>
> <dependency>
>
>
> <groupId>${pom.parent.groupId}</groupId>
>
>
> <artifactId>WebCommon</artifactId>
>
>
> <version>${pom.parent.version}</version>
>
>                                                 <type>war</type>
>
>                                 </dependency>
>
>                                 <dependency>
>
>
> <groupId>${pom.parent.groupId}</groupId>
>
>
> <artifactId>WebCommon</artifactId>
>
>
> <version>${pom.parent.version}</version>
>
>                                                 <type>warpath</type>
>
>                                 </dependency>
>
>
>
>
>
> After doing this, we've been running into two problems,
>
>
>
> Issue 1)  We can no longer deploy to glassfish v2 from within IDE or other
>
> ----------------------------------------------------------------------------------------
>
> Error resolving version for 'org.appfuse:maven-warpath-plugin': Plugin
> requires Maven version 2.0.6
>
> ------------------------------------------------------------------------
>
> Trace
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Error resolving
> version for 'org.appfuse:maven-warpath-plugin': Plugin requires Maven
> version 2.0.6
>
>
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1337)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.findArtifactTypeHandlers(DefaultLifecycleExecutor.java:1247)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.findExtensions(DefaultLifecycleExecutor.java:176)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:141)
>
>         at
> org.codehaus.mevenide.netbeans.embedder.exec.MyLifecycleExecutor.execute(MyLifecycleExecutor.java:92)
>
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
>
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
>
>         at
> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:760)
>
>         at
> org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:196)
>
>         at
> org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
>
> Caused by: org.apache.maven.plugin.version.PluginVersionResolutionException:
> Error resolving version for 'org.appfuse:maven-warpath-plugin': Plugin
> requires Maven version 2.0.6
>
>         at
> org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:258)
>
>         at
> org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:183)
>
>         at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:163)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1328)
>
>         ... 9 more
>
> ------------------------------------------------------------------------
>
> Total time: 4 seconds
>
> Finished at: Mon Feb 04 13:56:20 CST 2008
>
> Final Memory: 72M/169M
>
> ------------------------------------------------------------------------
>
>
check the faq:
http://mevenide.codehaus.org/m2-site/faq.html

a workaround is to use the trunk version of mevenide (which uses new
version (current 2.1-SANPSHOT) of maven-embedder. ithe embedder still
not beta quality though.


>
>
>
> Issue 2) the java classes in the parent webcommon .war file project aren't
> recognized in the IDE.
>
> -----------------------------------------------------------------------------------------------------------
>
> It manifests itself as non-recognition of classes (no code completion, IDE
> wanting to import or create classes instead of recognizing them.)
>
>
>
> We are not having similar issues with our dependencies that are inheriting
> strictly java classes.  (our business layer projects for example)  The
> install target works as expected.  I was thinking about splitting out the
> java classes and having a webcommonjava project to try to overcome the above
> mentioned problems.
>

See
http://jira.codehaus.org/browse/MEVENIDE-484

The workaround is the same, use the trunk version of mevenide with new embedder.
http://deadlock.netbeans.org/hudson/jobs/mevenide

hope that helps

Milos

>
>
> I'd love any options anyone can come up with…  My apologies if I've missed
> something obvious… I'm very new to Maven and Netbeans.
>
>
>
>
>
> Thanks,
>
> Alan May
>
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email