Maven: Uncategorized problems with NetBeans dependency verification
"Lusito" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi everybody,
I'm new to NB Platform and I can't figure out how to solve this:
I've been trying to add a new filetype using this tutorial:
https://platform.netbeans.org/tutorials/nbm-maven-modulesingle.html
At this point I was using RELEASE80 and got this error message:
> Failure to find org.netbeans.api:org-openide-util-ui:jar:RELEASE80 in http://bits.netbeans.org/nexus/content/groups/netbeans/ was cached in the local repository, resolution will not be reattempted until the update interval of netbeans has elapsed or updates are forced -> [Help 1]
I tried to autocomplete the version and noticed that the dependency was only available for RELEASE81.
So I changed to RELEASE81 and got a different error:
> Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:manifest (default-manifest) on project My-View: Uncategorized problems with NetBeans dependency verification (maybe MNBMODULE-102 or wrong maven dependency metadata). Supposedly external classes are used in the project's binaries but the classes are not found on classpath. Class usages: [org.objectweb.asm.tree.analysis.Frame, org.objectweb.asm.tree.analysis.AnalyzerException, org.objectweb.asm.Opcodes, org.objectweb.asm.tree.TypeInsnNode, org.objectweb.asm.tree.IntInsnNode, org.objectweb.asm.tree.analysis.SimpleVerifier, org.objectweb.asm.tree.FieldNode, org.objectweb.asm.ClassWriter, org.objectweb.asm.Type, org.objectweb.asm.tree.analysis.BasicValue, org.objectweb.asm.tree.AbstractInsnNode, org.objectweb.asm.tree.MethodInsnNo
de, org.objectweb.asm.MethodVisitor, org.objectweb.asm.ClassReader, org.objectweb.asm.tree.analysis.Analyzer, org.objectweb.asm.ClassVisitor, org.objectweb.asm.util.TraceClassVisitor, org.o!
bjectweb.asm.FieldVisitor, org.objectweb.asm.tree.LdcInsnNode, org.objectweb.asm.tree.VarInsnNode, org.objectweb.asm.tree.AnnotationNode, org.objectweb.asm.tree.InsnNode, org.objectweb.asm.tree.InsnList, org.objectweb.asm.tree.MethodNode, org.objectweb.asm.tree.FieldInsnNode] -> [Help 1]
After a bit of trial and error, I found that there seem to be conflicts between a dependency I have and two netbeans dependencies:
Code:
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-openide-util-ui</artifactId>
<version>${netbeans.version}</version>
</dependency>
<dependency>
<groupId>org.netbeans.api</groupId>
<artifactId>org-netbeans-api-templates</artifactId>
<version>${netbeans.version}</version>
</dependency>
<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-backend-lwjgl</artifactId>
<version>${libgdx.version}</version>
</dependency>
Removing lwjgl fixes the problem, but I kinda need it.
Tracking it further down brings me to this one:
Code:
<dependency>
<groupId>org.lwjgl.lwjgl</groupId>
<artifactId>lwjgl_util</artifactId>
<version>${lwjgl.version}</version>
</dependency>
And that's where I lose the trail.. The pom looks like this:
http://central.maven.org/maven2/org/lwjgl/lwjgl/lwjgl_util/2.9.2/lwjgl_util-2.9.2.pom
There is only a dependency for the lwjgl core, but adding it works without problem. Just the lwjgl_util artifact is problematic.
Does anyone have any idea how to fix this?
The versions:
Code:
<libgdx.version>1.9.1</libgdx.version>
<lwjgl.version>2.9.2</lwjgl.version>
Thanks in advance.