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: | Distribution build pitfall | ||
---|---|---|---|
Product: | projects | Reporter: | cbulcu <cbulcu> |
Component: | Ant Project | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
cbulcu
2010-02-13 10:11:57 UTC
Workaround is for MainProject to include [xyzw].jar as at least runtime dependencies (see Libraries panel). See issue #47507 - NetBeans Java SE projects do not perform transitive dependency management. The dist folder is also intended only as a convenience for simple projects, not as a substitute for a project-specific Ant target to create a complete distribution in an idiosyncratic format. Maven may be the better choice for large project setups where you want full dependency management. Then you can pick a tool for creating a self-contained runnable: JarJar, Classworlds, etc. Plain old Java SE execution does not define any standard way of packaging dependencies; JNLP ("Web Start") comes closer, but does not define any interaction with a development & build system. JSR 294 _may_ improve the situation. *** This bug has been marked as a duplicate of bug 47507 *** Thanks. I didn't mention your workaround on purpose, because it's more ugly, due to its nature, having to change the project's settings. I think that you can find such opinions in the #47507 issue. It's a good thing though that the target is set for 6.9 :-) |