This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Option to use embedded Maven by default | ||
---|---|---|---|
Product: | projects | Reporter: | Jesse Glick <jglick> |
Component: | Maven | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | anebuzelsky, chikkala, hanasaki, theanuradha, vkraemer |
Priority: | P1 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 188913 | ||
Bug Blocks: |
Description
Jesse Glick
2010-07-26 15:41:16 UTC
(In reply to comment #0) > Another option would be to used the JARs from the embedded Maven but fork the > Java process. M3 does not seem to use the ClassWorlds "überjar" so we could > perhaps bundle a complete M3 distribution inside NB. In fact it seems it is possible to use the existing layout! Create ---%<--- .../m3.conf main is org.apache.maven.cli.MavenCli from plexus.core [plexus.core] load ${maven.home}/*.jar ---%<--- and run java -cp .../java/modules/ext/maven/plexus-classworlds-2.2.3.jar -Dclassworlds.conf=.../m3.conf -Dmaven.home=.../java/modules/ext/maven org.codehaus.plexus.classworlds.launcher.Launcher <usual args...> and it seems to work fine. Of course this is not loading ~/.mavenrc etc., which might be significant for some users. Simpler would however be to rearrange the JARs NB uses into the standard layout. Need to be careful since NB uses a patched version of xbean-reflect-3.4.jar. (In reply to comment #0) > use the JARs from the embedded Maven but fork the Java process core-main #6aeef20f698d *** Bug 165635 has been marked as a duplicate of this bug. *** *** Bug 180769 has been marked as a duplicate of this bug. *** *** Bug 169504 has been marked as a duplicate of this bug. *** Integrated into 'main-golden', will be available in build *201008250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/6aeef20f698d User: Jesse Glick <jglick@netbeans.org> Log: #188959: disable embedded Maven executor; use bundled Maven installation by default rather than checking $PATH. |