This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I do Android development and have a project with a packaging type of "apk" (FYI, "apk" projects should be treated as "jar" projects). This seems to be busted in the latest 6.10 DEV 201009190000. In NetBeans 6.9.1 AND NetBeans 6.10 DEV 201009130000, this packaging type worked just fine. Something changed in the code in to since 2010009130000 to break support for this project type. (If I close 201009190000 and launch 2010009130000, this problem goes away) When I right-click on the project and select "Show and Resolve problems..." I get the following: Problems: Unable to properly load project Description: 2 problems were encountered while building the effective model for com.jdc.android:hello-flashlight:1.0-SNAPSHOT [ERROR] Unresolveable build extension: Plugin com.jayway.maven.plugins.android.generation2:maven-android-plugin:2.5.2 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven.plugins:maven-dependency-plugin:jar:2.1, org.codehaus.plexus:plexus-utils:jar:2.0.1, org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-12, org.codehaus.plexus:plexus-io:jar:1.0-alpha-5, commons-jxpath:commons-jxpath:jar:1.3, commons-io:commons-io:jar:1.4, asm:asm:jar:3.2, commons-lang:commons-lang:jar:2.4: The repository system is offline but the artifact org.apache.maven.plugins:maven-dependency-plugin:jar:2.1 is not available in the local repository. @ [ERROR] Unknown packaging: apk @ line 7, column 16 for project com.jdc.android:hello-flashlight:1.0-SNAPSHOT at /home/jcampbell/src/jdc/android test/flashlight/pom.xml NOTES: I did wipe my ~/.netbeans/dev directory before trying 201009190000
Created attachment 102073 [details] Sample Maven Android project This is a sample Maven Android project that has a packaging type of apk
Just build the project and then right-click it and Reload. The Android plugin is missing locally and Maven will not load the POM without it. We are looking into ways of making this UI more automatic as it was with the old Maven embedder. *** This bug has been marked as a duplicate of bug 189833 ***
Building and Reloading the project has no effect on resolving this issue ("misconfigured Maven project" does not go away). The Android plugin was not missing. When I load NetBeans 6.10-201009130000, there are no issues (the Android apk projects load with no problems). With NetBeans 6.10-201009190000 the project will never show properly (even after building and reloading, it always shows "misconfigured Maven project"). I believe the real issue comes from the second error (When I right-click on the project and select "Show and Resolve problems..."): "Unknown packaging: apk @ line 7, column 16" I believe the issue is that NetBeans no longer recognizes the packaging "apk" (which should just be treated the same as a "jar" packaging project). As I indicated before, when I switch back to NetBeans 6.10-201009130000 or even go back to NetBeans 6.9.1, the issue goes away completely. If you open the attached project file, you will be able to reproduce the issue (http://netbeans.org/bugzilla/attachment.cgi?id=102073).
After the fix of bug #189833, it initially shows problems for me - as I would expect, since I did not have the plugin for this packaging type in my local repository, and an offline project load is impossible without having the packaging type plugin - and then after a few seconds of network activity fixes itself, displaying Source Packages etc. with no error or warning badges. (In reply to comment #0) > "apk" projects should be treated as "jar" projects The IDE only hardcodes support for a handful of packaging types, certain not apk. Since the packaging type plugin gives no indication that it is "similar to" some another better-known packaging type, there is no way for the IDE to handle it other than as a Maven project of unknown type. *** This bug has been marked as a duplicate of bug 189833 ***
Bug reappears with NetBeans 7.4. Code to test it: https://code.google.com/p/maven-android-plugin/wiki/Samples --> Download samples from the stable branch
Netbeans 8 RC is affected, too.
Please do not reopen bugs marked with duplicate resolution. Beside that do not change version/TM. After all please do report new issue for this problem, thanks in advance. *** This bug has been marked as a duplicate of bug 189833 ***