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 182975 - Allow usage of source directory in more than one project
Summary: Allow usage of source directory in more than one project
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-26 22:58 UTC by tkellerer
Modified: 2010-12-06 16:24 UTC (History)
0 users

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 tkellerer 2010-03-26 22:58:30 UTC
NetBeans should allow me to use a source directory even if it's referenced in a pom.xml in the same directory. Especially if the Maven project is not opened in NetBeans and I create a "normale" NetBeans project.

Sometimes it's more convenient to use a NetBeans project than to open a Maven Project. But as NetBeans stubbornly insists that I cannot add the source directory because it's owned by the pom, I need to delete the pom manually before adding the directory. 

This is an unnecessary and very user unfriendly restriction, please remove this.
Comment 1 Jesse Glick 2010-03-31 03:09:14 UTC
Bug #51810 might help in this regard by making it easier for NB to ignore the Maven project, but in general it is by design that one and only one project may "own" a given source root. Changing this is not possible.
Comment 2 tkellerer 2010-12-05 09:26:57 UTC
I have again be annoyed by this. 

Could this restriction at least be changed to _open_ projects? 
So that not two open projects can share the same source directories? But any project that might reside on disk and is not currently open in NetBeans is ignored? 

I wanted to create a new project in NetBeans 7.0 beta in order to not mess with my existing project in NB 6.9.1. 

7.0 simply refused to add the source directory because of the existing NB 6.9.1 project which is silly
Comment 3 Jesse Glick 2010-12-06 16:24:14 UTC
(In reply to comment #2)
> I wanted to create a new project in NetBeans 7.0 beta in order to not mess with
> my existing project in NB 6.9.1. 

Should be able to simply open the original project. Or use a separate VCS checkout.