Netbeans 6.7RC and dependencies with version ranges.

View: New views
4 Messages — Rating Filter:   Alert me  

Netbeans 6.7RC and dependencies with version ranges.

by Magne Nordtveit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

I am having some problems with version dependencies with version ranges some of my projects...

 

When adding a dependency to a project with a version range both on junit at scope test, and a dependency with a version range at the compile scope. When expanding the dependency node, I get the following exception.

 

This is working fine in NB6.5  but not in any of the 6.7 releases. The artifact with the range, is NOT the artifact mentioned in the exception either, so I’m abit baffled...

 

I will try to reproduce it in a “controlled” environment for a bug report. Unless there is something that is already fixed, or something you guys (devs) are aware of.

 

java.lang.IllegalStateException: Artifact xml-apis:xml-apis:jar:1.3.04 is not resolved and is missing the file association in local repository. Please report at issue #140253.

                at org.netbeans.modules.maven.nodes.DependencyNode.<init>(DependencyNode.java:168)

                at org.netbeans.modules.maven.nodes.DependenciesNode$DependenciesChildren.createNodes(DependenciesNode.java:180)

                at org.netbeans.modules.maven.nodes.DependenciesNode$DependenciesChildren.createNodes(DependenciesNode.java:149)

                at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1609)

                at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:168)

                at org.openide.nodes.EntrySupport$Default$Info.nodes(EntrySupport.java:916)

                at org.openide.nodes.EntrySupport$Default.justComputeNodes(EntrySupport.java:244)

                at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:101)

                at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:173)

                at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:219)

                at org.openide.nodes.Children.getNodes(Children.java:440)

                at org.openide.nodes.Children.findChild(Children.java:385)

                at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:212)

                at org.openide.nodes.Children.getNodes(Children.java:472)

                at org.openide.nodes.FilterNode$Children$DefaultSupport.callGetNodesCount(FilterNode.java:1656)

                at org.openide.nodes.FilterNode$Children.getNodesCount(FilterNode.java:1608)

                at org.openide.explorer.view.TreeView$6.run(TreeView.java:912)

                at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)

[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)

 

 

With regards,

Magne

--

Magne Nordtveit <mn@...>

System Engineer

Offshore Simulator Centre AS

 


Re: Netbeans 6.7RC and dependencies with version ranges.

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

please try with the latest dailies and  file as issue if it persists, I've done a lot of fixing and hacking in the maven embedder before and after 6.7 beta, so might have broken something (or might have fixed since then)

Milos



On Mon, May 18, 2009 at 10:09 AM, Magne Nordtveit <Magne.Nordtveit@...> wrote:

Hi,

 

I am having some problems with version dependencies with version ranges some of my projects...

 

When adding a dependency to a project with a version range both on junit at scope test, and a dependency with a version range at the compile scope. When expanding the dependency node, I get the following exception.

 

This is working fine in NB6.5  but not in any of the 6.7 releases. The artifact with the range, is NOT the artifact mentioned in the exception either, so I’m abit baffled...

 

I will try to reproduce it in a “controlled” environment for a bug report. Unless there is something that is already fixed, or something you guys (devs) are aware of.

 

java.lang.IllegalStateException: Artifact xml-apis:xml-apis:jar:1.3.04 is not resolved and is missing the file association in local repository. Please report at issue #140253.

                at org.netbeans.modules.maven.nodes.DependencyNode.<init>(DependencyNode.java:168)

                at org.netbeans.modules.maven.nodes.DependenciesNode$DependenciesChildren.createNodes(DependenciesNode.java:180)

                at org.netbeans.modules.maven.nodes.DependenciesNode$DependenciesChildren.createNodes(DependenciesNode.java:149)

                at org.openide.nodes.Children$Keys$KE.nodes(Children.java:1609)

                at org.openide.nodes.ChildrenArray.nodesFor(ChildrenArray.java:168)

                at org.openide.nodes.EntrySupport$Default$Info.nodes(EntrySupport.java:916)

                at org.openide.nodes.EntrySupport$Default.justComputeNodes(EntrySupport.java:244)

                at org.openide.nodes.ChildrenArray.nodes(ChildrenArray.java:101)

                at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:173)

                at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:219)

                at org.openide.nodes.Children.getNodes(Children.java:440)

                at org.openide.nodes.Children.findChild(Children.java:385)

                at org.openide.nodes.EntrySupport$Default.getNodes(EntrySupport.java:212)

                at org.openide.nodes.Children.getNodes(Children.java:472)

                at org.openide.nodes.FilterNode$Children$DefaultSupport.callGetNodesCount(FilterNode.java:1656)

                at org.openide.nodes.FilterNode$Children.getNodesCount(FilterNode.java:1608)

                at org.openide.explorer.view.TreeView$6.run(TreeView.java:912)

                at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)

[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)

 

 

With regards,

Magne

--

Magne Nordtveit <mn@...>

System Engineer

Offshore Simulator Centre AS

 



RE: Netbeans 6.7RC and dependencies with version ranges.

by Magne Nordtveit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

From: Milos Kleint [mailto:mkleint@...]
Sent: 18 May 2009 10:41
To: user@...
Subject: Re: [mevenide-user] Netbeans 6.7RC and dependencies with version ranges.

 

please try with the latest dailies and  file as issue if it persists, I've done a lot of fixing and hacking in the maven embedder before and after 6.7 beta, so might have broken something (or might have fixed since then)

Milos


RE: Netbeans 6.7RC and dependencies with version ranges.

by Magne Nordtveit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>From: Milos Kleint [mailto:mkleint@...]
>Sent: 18 May 2009 10:41
>To: user@...
>Subject: Re: [mevenide-user] Netbeans 6.7RC and dependencies with version ranges.
>
>please try with the latest dailies and  file as issue if it persists, I've done a lot of fixing and hacking in >the maven embedder before and after 6.7 beta, so might have broken something (or might have fixed since then)
>
>Milos

Sorry about the last mail, stupid outlook mail client...

Anyway, the issue still persists, although in a different way. The exception is gone, but the dependency doesn't show up in the libraries list, and the classes is not available through NBs intellisense (lots of red squiglies appear). The code compiles just dandy, so the external maven compiler finds the correct classes and artifacts without any problems. I will see if I can get something filed in the issue tracker.

Thanks Milos!

Magne
--
Magne Nordtveit <mn@...>
System Engineer
Offshore Simulator Centre AS