[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17130457#comment-17130457 ] Alessandro Falappa commented on NETBEANS-4341: -- Great job [~oyarzun]! I confirm that adding the property you mention in {{netbeans.conf}} solves my use cases (both the reproduction steps and the wizard in my plugin). This can be considered as a workaround. I also thank [~matthiasblaesing] for working on a proper fix on master. > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > Time Spent: 1h 50m > Remaining Estimate: 0h > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17129401#comment-17129401 ] Christian Oyarzun commented on NETBEANS-4341: - [~matthiasblaesing] & [~skygo] After some debugging it seems that the newer Maven uses a global cache which prevents the updates from the parent pom from showing up in the child. Adding `-J-Dmaven.defaultProjectBuilder.disableGlobalModelCache=true` to `netbeans_default_options` in netbeans.conf solves the regression. [https://marc.info/?l=maven-dev=154695759532149=2] [https://youtrack.jetbrains.com/issue/IDEA-216851] > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128993#comment-17128993 ] Eric Barboni commented on NETBEANS-4341: Hi, I have no idea what break. There was a new signature in ModelResolver I try to call the previous method from the new one. But maybe some other change that just not notify or just do nothing ;/ > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128571#comment-17128571 ] Matthias Bläsing commented on NETBEANS-4341: Or it is an behavioral change in maven. There is an maven update from 3.3.9 to 3.6.3 hidden in here. > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128569#comment-17128569 ] Alessandro Falappa commented on NETBEANS-4341: -- [~matthiasblaesing] My educated guess would be {{java/maven.embedder/src/org/netbeans/modules/maven/embedder/NBRepositoryModelResolver.java}}. The other modifications are mainly adaptations to a refactoring in the MavenCli class. > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128520#comment-17128520 ] Matthias Bläsing commented on NETBEANS-4341: [~errael] [~AlexFalappa] thank you both for providing a reproducer. I bisected this now to 4e436738f59a2746efcc8d84d9c1e287814d0330: [https://github.com/apache/netbeans/commit/4e436738f59a2746efcc8d84d9c1e287814d0330] [~skygo]any idea what might have broken here? > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128362#comment-17128362 ] Ernie Rael commented on NETBEANS-4341: -- Another example, probably same problem, works on 11.3 # create new pom project "parent" # expand parent node # select "create new module" from "parent > Modules" context menu # create new java project in parent subdirectory "child" # open parent's pom, add {code:java} com.mastfrog simplevalidation 1.14 {code} # write parent's pom.xml # open child's pom, add {code} com.mastfrog simplevalidation {code} # write child's pom observe, after pom is written - "" has error badge about missing version. - in project window, there is "child[unloadable]" Closing and re-opening IDE fixes the issue. Note: at this point add another item to parent's dependencyManagement, and similarly add it to child's (without version). Problem re-occurs. > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128158#comment-17128158 ] Geertjan Wielenga commented on NETBEANS-4341: - We need to figure out what changed between 11.3 and 12.0 to cause this and if possible probide a patch for 12.0 for this. > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128145#comment-17128145 ] Michal Hlavac commented on NETBEANS-4341: - Thanks [~AlexFalappa], this is exactly what I meant. > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128049#comment-17128049 ] Geertjan Wielenga commented on NETBEANS-4341: - I wonder what can have changed between 11.3 and 12.0 in this area. This situation does indicate that we need to do these kinds of tests much (much much) earlier -- i.e., we've been testing 12.0 for many weeks now, to have this come in so late is something we can easily avoid in future. :-) > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128009#comment-17128009 ] Alessandro Falappa commented on NETBEANS-4341: -- These steps show the problem on a linux box: # Remove the local maven cache ($HOME/.m2/repository folder) # Go to [https://start.spring.io/] and click on _Generate_, this should download a basic Spring Boot project in a zip archive named {{demo.zip}} # Open NetBeans 12.0 and choose File > Import Project > From Zip select the downloaded archive, this should open a maven project named _demo_ in unloadable state and offer to _Resolve Problems_ # Click on _Resolve_ to start the priming build # After the build completes the project remains in unloadable state On NetBeans 11.3 after the last step a reindex is triggered ({{org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater}}. Likely this is what is also missing in the use case of the original reporter. > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Commented] (NETBEANS-4341) Maven project reload does not work from [unloadable] state
[ https://issues.apache.org/jira/browse/NETBEANS-4341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17127371#comment-17127371 ] Alessandro Falappa commented on NETBEANS-4341: -- Confirmed. NetBeans 12.0 on Oracle JDK 8 on Ubuntu 18.04. I am the author of NBSpringBoot plugin and this manifests when creating new projects with the plugin "new project from Initializr" wizard. Somehow after a clean & build the maven model is not refreshed and the project remains unloadable. > Maven project reload does not work from [unloadable] state > -- > > Key: NETBEANS-4341 > URL: https://issues.apache.org/jira/browse/NETBEANS-4341 > Project: NetBeans > Issue Type: Bug >Affects Versions: 12.0 >Reporter: Michal Hlavac >Priority: Major > > I did these steps in spring boot maven application: > # Changed version of spring boot in {{}} element from > {{2.2.7.RELEASE}} to {{2.3.0.RELEASE}}. This makes project unloadable. > # Then I did clean & build, all dependencies were downloaded. > # Project is still unloadable and right click -> reload pom.xml do nothing. > # I have to close & run netbeans. Then project is back to normal -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists