Tobias Oelgarte created NETBEANS-2197:
-----------------------------------------
Summary: Missing code completion and Javadocs in maven projects
with classifier.
Key: NETBEANS-2197
URL: https://issues.apache.org/jira/browse/NETBEANS-2197
Project: NetBeans
Issue Type: Bug
Components: editor - Completion & Templates
Affects Versions: 11.0
Environment: All platforms
Reporter: Tobias Oelgarte
Attachments: code-completion-failed.png, code-completion-ok.png
If a maven artifact project uses classifiers, then Netbeans isn't able to
provide code completion or to display Javadocs.
To avoid duplication, sources and javadocs usually belong to the 'parent'
artifact, which has no classifier. But the actually used jar archive (the
library) resides within the artifact with classifier.
A good example for this is JavaFX. The artifactÂ
[javafx-base|http://central.maven.org/maven2/org/openjfx/javafx-base/11.0.2/]
is an empty shell and depending on the operating system the platform dependent
library is used, by utilizing classifiers. In the case of linux this would be
the _javafx-base-11.0.2-linux.jar_.
Netbeans will not find the corresponding sources or javadoc archives, because
it looks for {color:#14892c}_javafx-base-11.0.2-linux-sources.jar_{color} and
{color:#14892c}_javafx-base-11.0.2-linux-javadoc.jar_{color}, but it won't look
for {color:#f79232}_javafx-base-11.0.2-sources.jar_{color} and
{color:#f79232}_javafx-base-11.0.2-javadoc.jar_{color}.
As a temporary solution i created symlinks to the existing sources and javadoc
archives. But this solution also doesn't work as excepted. The sources are
found, but the Javadocs for a field or method can only be displayed as long all
parameters and return types belong to the same artifact.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists