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.

Bug 198378 - If a directory has both maven and ant build files, allow the user to choose
Summary: If a directory has both maven and ant build files, allow the user to choose
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Autoproject (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@projects
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-06 11:31 UTC by jopet
Modified: 2016-07-07 08:39 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jopet 2011-05-06 11:31:25 UTC
If an automatic project processes a directory, maven seems to always take precedence over ant if both build systems are present. The automatic project should allow the user to choose which of them to use.
Comment 1 Jesse Glick 2011-05-06 12:08:57 UTC
The existence of a pom.xml means there is definitely Maven metadata. Automatic projects based on scanning build.xml are generally a poor second choice, so this project factory is registered with a lower priority. That said, it would make sense for autoproject.core to register _two_ factories: one with high priority that only recognizes folders explicitly selected as autoprojects in the New Project wizard; and one with low priority that recognizes folders with a build.xml, if that option is enabled.
Comment 2 jopet 2011-05-06 12:22:31 UTC
I agree with more metadata being available from mave from the point of view of the project detection software and in general, but I do have the situation that in the checked out subversion directory the (older) ant build process is the one that works and the (newer) maven based is the one that is incorrect and doesn't. The build is handled by somebody else in the project. 
There are not many options to deal with this (are there?) and being able to select the ant-based way for getting metadata on purpose for a specific project would therefore help tremendously.
Comment 3 Jesse Glick 2011-05-06 12:31:17 UTC
The general advice would be to move the pom.xml into a Subversion branch (or a subfolder) until it is stabilized, but where that is not an option, this RFE would be useful.
Comment 4 Martin Balin 2016-07-07 08:39:26 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss