You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Bayless Kirtley <bk...@cox.net> on 2021/05/23 19:35:34 UTC
Cannot remove library from project
I have an old Java 1.8 project that needs a few updates. I cannot remove
any of its libraries. The option is grayed out and Delete key does
nothing. Just tried and this seems to be the case with all my projects.
Cannot delete any libraries and most projects are using Java 11, if that
makes a difference. This comes up because I made a change in one of the
libraries which did not appear to work so I tried to debug and found
that the new code is skipped over in debug as if it were not there. I
thought I would remove and reinstall the library but cannot.
I have tried restarting NB a couple of times with no change. How can I
remove old libraries?
NB 12.0
Linux mint 20
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Cannot remove library from project
Posted by Bayless Kirtley <bk...@cox.net>.
I think I found a better solution, for me anyway. I managed to reinstall
Netbeans 8.2 and so far have reverted the one project that was causing a
problem and everything now works as expected, including removing
libraries as well as debugging libraries. Suddenly life is good again.
Having been retired almost 20 years now, I have limited my projects to
Java and html. I will keep NB 12.0 for html since I recall it working
better but all my Java will probably be going back to 8.2 as the need
arises.
Long Live Ant.
Bayless
On 5/24/21 8:06 PM, Mark A. Flacy wrote:
>
> No, it just means that I've never created a "sister project" that I
> would never want to use upon a different computer than the one upon
> which it was built. I assume that if I make a library, I might want
> to share it and if I want to share it, I need to publish it somewhere
> (even to the same machine until I push it somewhere else). I didn't
> always assume that, but personal usage pushed me to do that.
>
>
> _My_ use cases aren't _your_ use cases and just because I can't see a
> reason to do *X* doesn't mean that no other humans can see a reason to
> do *X*.
>
>
> I have 5 computers (well, 4 and one VM) within 6 feet of me as I write
> this; if I've written a library that I find useful, I'd like it to be
> available on other machines in my network without having those
> machines recompile that library from scratch. That's why one of those
> computers is running a Nexus server to serve such libraries to any
> other machines that are running in my local network.
>
> Just because I do things a certain way does not make that way "best",
> "optimal" or even "sane".
>
>
> --
>
> Mark A. Flacy
>
> mflacy@verizon.net
>
>
> On Monday, May 24, 2021 6:28:21 AM CDT Bayless Kirtley wrote:
>
> > Does this mean that maven won't let me set a dependency on a sister
>
> > project right here on the same computer?
>
> >
>
> > On 5/23/21 6:43 PM, Mark A. Flacy wrote:
>
> > > Right-click on the project's Dependencies folder. Add the maven
>
> > > coordinates of the library in question and good things should happen.
>
> > >
>
> > > If the library you want to use isn't published with maven coordinates,
>
> > > then
>
> > > you will have a problem until you do that. Please note that you can
>
> > > publish stuff locally or to a Nexus server (as an example) of your
> own.
>
> >
>
> > ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>
> > For additional commands, e-mail: users-help@netbeans.apache.org
>
> >
>
> > For further information about the NetBeans mailing lists, visit:
>
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
Re: Cannot remove library from project
Posted by Bayless Kirtley <bk...@cox.net>.
Have to work on other stuff now but will look into Nexus in a few days.
On 5/24/21 8:06 PM, Mark A. Flacy wrote:
>
> No, it just means that I've never created a "sister project" that I
> would never want to use upon a different computer than the one upon
> which it was built. I assume that if I make a library, I might want
> to share it and if I want to share it, I need to publish it somewhere
> (even to the same machine until I push it somewhere else). I didn't
> always assume that, but personal usage pushed me to do that.
>
>
> _My_ use cases aren't _your_ use cases and just because I can't see a
> reason to do *X* doesn't mean that no other humans can see a reason to
> do *X*.
>
>
> I have 5 computers (well, 4 and one VM) within 6 feet of me as I write
> this; if I've written a library that I find useful, I'd like it to be
> available on other machines in my network without having those
> machines recompile that library from scratch. That's why one of those
> computers is running a Nexus server to serve such libraries to any
> other machines that are running in my local network.
>
> Just because I do things a certain way does not make that way "best",
> "optimal" or even "sane".
>
>
> --
>
> Mark A. Flacy
>
> mflacy@verizon.net
>
>
> On Monday, May 24, 2021 6:28:21 AM CDT Bayless Kirtley wrote:
>
> > Does this mean that maven won't let me set a dependency on a sister
>
> > project right here on the same computer?
>
> >
>
> > On 5/23/21 6:43 PM, Mark A. Flacy wrote:
>
> > > Right-click on the project's Dependencies folder. Add the maven
>
> > > coordinates of the library in question and good things should happen.
>
> > >
>
> > > If the library you want to use isn't published with maven coordinates,
>
> > > then
>
> > > you will have a problem until you do that. Please note that you can
>
> > > publish stuff locally or to a Nexus server (as an example) of your
> own.
>
> >
>
> > ---------------------------------------------------------------------
>
> > To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>
> > For additional commands, e-mail: users-help@netbeans.apache.org
>
> >
>
> > For further information about the NetBeans mailing lists, visit:
>
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
Re: Cannot remove library from project
Posted by "Mark A. Flacy" <mf...@verizon.net.INVALID>.
No, it just means that I've never created a "sister project" that I would never want to use
upon a different computer than the one upon which it was built. I assume that if I make a
library, I might want to share it and if I want to share it, I need to publish it somewhere (even
to the same machine until I push it somewhere else). I didn't always assume that, but
personal usage pushed me to do that.
_My_ use cases aren't _your_ use cases and just because I can't see a reason to do *X*
doesn't mean that no other humans can see a reason to do *X*.
I have 5 computers (well, 4 and one VM) within 6 feet of me as I write this; if I've written a
library that I find useful, I'd like it to be available on other machines in my network without
having those machines recompile that library from scratch. That's why one of those
computers is running a Nexus server to serve such libraries to any other machines that are
running in my local network.
Just because I do things a certain way does not make that way "best", "optimal" or even
"sane".
--
Mark A. Flacy
mflacy@verizon.net
On Monday, May 24, 2021 6:28:21 AM CDT Bayless Kirtley wrote:
> Does this mean that maven won't let me set a dependency on a sister
> project right here on the same computer?
>
> On 5/23/21 6:43 PM, Mark A. Flacy wrote:
> > Right-click on the project's Dependencies folder. Add the maven
> > coordinates of the library in question and good things should happen.
> >
> > If the library you want to use isn't published with maven coordinates,
> > then
> > you will have a problem until you do that. Please note that you can
> > publish stuff locally or to a Nexus server (as an example) of your own.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Cannot remove library from project
Posted by Claus Lüthje <cl...@thetop.ch>.
If the other project is Maven based, you can use it in your project too. We do this heavily.
We also use Artifactory to share projects in our team (aka projects on different machines)
Regards
Claus
> Am 24.05.2021 um 13:28 schrieb Bayless Kirtley <bk...@cox.net>:
>
> Does this mean that maven won't let me set a dependency on a sister project right here on the same computer?
>
>
>> On 5/23/21 6:43 PM, Mark A. Flacy wrote:
>> Right-click on the project's Dependencies folder. Add the maven coordinates
>> of the library in question and good things should happen.
>>
>> If the library you want to use isn't published with maven coordinates, then
>> you will have a problem until you do that. Please note that you can publish
>> stuff locally or to a Nexus server (as an example) of your own.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: users-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Cannot remove library from project
Posted by Bayless Kirtley <bk...@cox.net>.
Does this mean that maven won't let me set a dependency on a sister
project right here on the same computer?
On 5/23/21 6:43 PM, Mark A. Flacy wrote:
> Right-click on the project's Dependencies folder. Add the maven coordinates
> of the library in question and good things should happen.
>
> If the library you want to use isn't published with maven coordinates, then
> you will have a problem until you do that. Please note that you can publish
> stuff locally or to a Nexus server (as an example) of your own.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Cannot remove library from project
Posted by "Mark A. Flacy" <mf...@verizon.net.INVALID>.
Right-click on the project's Dependencies folder. Add the maven coordinates
of the library in question and good things should happen.
If the library you want to use isn't published with maven coordinates, then
you will have a problem until you do that. Please note that you can publish
stuff locally or to a Nexus server (as an example) of your own.
--
Mark A. Flacy
mflacy@verizon.net
On Sunday, May 23, 2021 5:03:42 PM CDT Bayless Kirtley wrote:
> I did that on the one project I need right now. It then let me add it
> but the source still does not correspond to the binary so cannot debug.
> Then I tried again to remove the library and the option was disabled again.
>
> I tried with a small existing project to create as Maven project then
> copied source files to it. It uses that same library and I cannot seem
> to add it as a dependency. What is the secret for adding a dependency on
> a local library to a new Maven project?
>
> bayless
>
> On 5/23/21 4:22 PM, Geertjan Wielenga wrote:
> > Look in the project.properties file in the nbproject folder and delete
> > those references.
> >
> > Gj
> >
> > On Sun, 23 May 2021 at 23:18, Bayless Kirtley <bkirt@cox.net
> >
> > <ma...@cox.net>> wrote:
> > Surely NB has not suddenly decided that I can no longer remove
> > libraries from an ANT project. There must be something wrong here
> > that displays but disables that option from any libraries on any
> > projects.
> >
> > On 5/23/21 2:45 PM, Pieter van den Hombergh wrote:
> >> The libraries are defined in a properties file in the nb project
> >> folder. You can find and edit in the files view. You are also
> >> advised to convert the project to a maven project. That way you
> >> can future proof it.
> >>
> >> Op zo 23 mei 2021 21:35 schreef Bayless Kirtley <bkirt@cox.net
> >>
> >> <ma...@cox.net>>:
> >> I have an old Java 1.8 project that needs a few updates. I
> >> cannot remove
> >> any of its libraries. The option is grayed out and Delete key
> >> does
> >> nothing. Just tried and this seems to be the case with all my
> >> projects.
> >> Cannot delete any libraries and most projects are using Java
> >> 11, if that
> >> makes a difference. This comes up because I made a change in
> >> one of the
> >> libraries which did not appear to work so I tried to debug
> >> and found
> >> that the new code is skipped over in debug as if it were not
> >> there. I
> >> thought I would remove and reinstall the library but cannot.
> >>
> >> I have tried restarting NB a couple of times with no change.
> >> How can I
> >> remove old libraries?
> >>
> >> NB 12.0
> >>
> >> Linux mint 20
> >>
> >>
> >> -----------------------------------------------------------------
> >> ----
> >> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> >> <ma...@netbeans.apache.org>
> >> For additional commands, e-mail:
> >> users-help@netbeans.apache.org
> >> <ma...@netbeans.apache.org>
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+list
> >> s
> >> <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lis
> >> ts>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Cannot remove library from project
Posted by Bayless Kirtley <bk...@cox.net>.
BTW, one should not have to manually edit files created by NB just to
exercise an option that the IDE offers but for some strange reason has
suddenly disabled. I have been a NB user since version 5.0 actually just
before we got the GUI designer. I have loved it, even with its
occasional quirks and burps. Some of these latest "features" are getting
a little tiresome though.
Bayless
On 5/23/21 4:22 PM, Geertjan Wielenga wrote:
> Look in the project.properties file in the nbproject folder and delete
> those references.
>
> Gj
>
> On Sun, 23 May 2021 at 23:18, Bayless Kirtley <bkirt@cox.net
> <ma...@cox.net>> wrote:
>
> Surely NB has not suddenly decided that I can no longer remove
> libraries from an ANT project. There must be something wrong here
> that displays but disables that option from any libraries on any
> projects.
>
>
> On 5/23/21 2:45 PM, Pieter van den Hombergh wrote:
>> The libraries are defined in a properties file in the nb project
>> folder. You can find and edit in the files view. You are also
>> advised to convert the project to a maven project. That way you
>> can future proof it.
>>
>> Op zo 23 mei 2021 21:35 schreef Bayless Kirtley <bkirt@cox.net
>> <ma...@cox.net>>:
>>
>> I have an old Java 1.8 project that needs a few updates. I
>> cannot remove
>> any of its libraries. The option is grayed out and Delete key
>> does
>> nothing. Just tried and this seems to be the case with all my
>> projects.
>> Cannot delete any libraries and most projects are using Java
>> 11, if that
>> makes a difference. This comes up because I made a change in
>> one of the
>> libraries which did not appear to work so I tried to debug
>> and found
>> that the new code is skipped over in debug as if it were not
>> there. I
>> thought I would remove and reinstall the library but cannot.
>>
>> I have tried restarting NB a couple of times with no change.
>> How can I
>> remove old libraries?
>>
>> NB 12.0
>>
>> Linux mint 20
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> <ma...@netbeans.apache.org>
>> For additional commands, e-mail:
>> users-help@netbeans.apache.org
>> <ma...@netbeans.apache.org>
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
>>
Re: Cannot remove library from project
Posted by Richard Grin <Ri...@univ-cotedazur.fr>.
Hello Bayless Kirtley,
Perhaps this link will help you:
https://stackoverflow.com/questions/5692256/maven-best-way-of-linking-custom-external-jar-to-my-project
Richard
Le 24/05/2021 à 00:03, Bayless Kirtley a écrit :
>
> What is the secret for adding a dependency on a local library to a new
> Maven project?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: Cannot remove library from project
Posted by Bayless Kirtley <bk...@cox.net>.
I did that on the one project I need right now. It then let me add it
but the source still does not correspond to the binary so cannot debug.
Then I tried again to remove the library and the option was disabled again.
I tried with a small existing project to create as Maven project then
copied source files to it. It uses that same library and I cannot seem
to add it as a dependency. What is the secret for adding a dependency on
a local library to a new Maven project?
bayless
On 5/23/21 4:22 PM, Geertjan Wielenga wrote:
> Look in the project.properties file in the nbproject folder and delete
> those references.
>
> Gj
>
> On Sun, 23 May 2021 at 23:18, Bayless Kirtley <bkirt@cox.net
> <ma...@cox.net>> wrote:
>
> Surely NB has not suddenly decided that I can no longer remove
> libraries from an ANT project. There must be something wrong here
> that displays but disables that option from any libraries on any
> projects.
>
>
> On 5/23/21 2:45 PM, Pieter van den Hombergh wrote:
>> The libraries are defined in a properties file in the nb project
>> folder. You can find and edit in the files view. You are also
>> advised to convert the project to a maven project. That way you
>> can future proof it.
>>
>> Op zo 23 mei 2021 21:35 schreef Bayless Kirtley <bkirt@cox.net
>> <ma...@cox.net>>:
>>
>> I have an old Java 1.8 project that needs a few updates. I
>> cannot remove
>> any of its libraries. The option is grayed out and Delete key
>> does
>> nothing. Just tried and this seems to be the case with all my
>> projects.
>> Cannot delete any libraries and most projects are using Java
>> 11, if that
>> makes a difference. This comes up because I made a change in
>> one of the
>> libraries which did not appear to work so I tried to debug
>> and found
>> that the new code is skipped over in debug as if it were not
>> there. I
>> thought I would remove and reinstall the library but cannot.
>>
>> I have tried restarting NB a couple of times with no change.
>> How can I
>> remove old libraries?
>>
>> NB 12.0
>>
>> Linux mint 20
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> <ma...@netbeans.apache.org>
>> For additional commands, e-mail:
>> users-help@netbeans.apache.org
>> <ma...@netbeans.apache.org>
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
>>
Re: Cannot remove library from project
Posted by Geertjan Wielenga <ge...@googlemail.com.INVALID>.
Look in the project.properties file in the nbproject folder and delete
those references.
Gj
On Sun, 23 May 2021 at 23:18, Bayless Kirtley <bk...@cox.net> wrote:
> Surely NB has not suddenly decided that I can no longer remove libraries
> from an ANT project. There must be something wrong here that displays but
> disables that option from any libraries on any projects.
>
>
> On 5/23/21 2:45 PM, Pieter van den Hombergh wrote:
>
> The libraries are defined in a properties file in the nb project folder.
> You can find and edit in the files view. You are also advised to convert
> the project to a maven project. That way you can future proof it.
>
> Op zo 23 mei 2021 21:35 schreef Bayless Kirtley <bk...@cox.net>:
>
> I have an old Java 1.8 project that needs a few updates. I cannot remove
>> any of its libraries. The option is grayed out and Delete key does
>> nothing. Just tried and this seems to be the case with all my projects.
>> Cannot delete any libraries and most projects are using Java 11, if that
>> makes a difference. This comes up because I made a change in one of the
>> libraries which did not appear to work so I tried to debug and found
>> that the new code is skipped over in debug as if it were not there. I
>> thought I would remove and reinstall the library but cannot.
>>
>> I have tried restarting NB a couple of times with no change. How can I
>> remove old libraries?
>>
>> NB 12.0
>>
>> Linux mint 20
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
>> For additional commands, e-mail: users-help@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
Re: Cannot remove library from project
Posted by Bayless Kirtley <bk...@cox.net>.
Surely NB has not suddenly decided that I can no longer remove libraries
from an ANT project. There must be something wrong here that displays
but disables that option from any libraries on any projects.
On 5/23/21 2:45 PM, Pieter van den Hombergh wrote:
> The libraries are defined in a properties file in the nb project
> folder. You can find and edit in the files view. You are also advised
> to convert the project to a maven project. That way you can future
> proof it.
>
> Op zo 23 mei 2021 21:35 schreef Bayless Kirtley <bkirt@cox.net
> <ma...@cox.net>>:
>
> I have an old Java 1.8 project that needs a few updates. I cannot
> remove
> any of its libraries. The option is grayed out and Delete key does
> nothing. Just tried and this seems to be the case with all my
> projects.
> Cannot delete any libraries and most projects are using Java 11,
> if that
> makes a difference. This comes up because I made a change in one
> of the
> libraries which did not appear to work so I tried to debug and found
> that the new code is skipped over in debug as if it were not there. I
> thought I would remove and reinstall the library but cannot.
>
> I have tried restarting NB a couple of times with no change. How
> can I
> remove old libraries?
>
> NB 12.0
>
> Linux mint 20
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
> <ma...@netbeans.apache.org>
> For additional commands, e-mail: users-help@netbeans.apache.org
> <ma...@netbeans.apache.org>
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> <https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
>