run - NBANDROIDTEAM/NBANDROID-V2 GitHub Wiki

How to run/debug NBANDROID-V2 from Apache NetBeans

  1. Make copy of yours Apache NetBeans folder
  2. Change netbeans_default_userdir and netbeans_default_cachedir to custom location in the file etc/netbeans.conf
netbeans_default_userdir="/custom/location/user_nb_android"
netbeans_default_cachedir="/custom/location/user_nb_android/var/cache"
  1. Add new Profile to NBANDROID-V2 root project pom.xml
    <profiles>
        <profile>
            <id>your_name-NB100</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>nbm-maven-plugin</artifactId>
                        <version>${version.nb.plugin}</version>
                        <extensions>true</extensions>
                        <configuration>
                            <netbeansInstallation>FULL_PATH_TO_NB_COPY</netbeansInstallation>
                            <netbeansUserdir>FULL_PATH_TO_CUSTOM_USER_DIR</netbeansUserdir>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
            <properties>
                <version.nb>RELEASE100</version.nb>
                <asm.nb>asm-all-5.0.1</asm.nb>
                <nb.impl>yours_netbeans_build_implementation_version</nb.impl>
            </properties>
        </profile>
        ...
    <profiles>
  1. Open project properties of the NBANDROID-V2 root project
  2. Change Actions Run project and Debug project in your profile to:
  • Run project
    Execute goals: nbm:cluster nbm:run-ide
  • Debug project
    Execute goals: nbm:cluster nbm:run-ide
    Set properties:
    jpda.listen=true
    netbeans.run.params.debug=-J-Xdebug -J-Xrunjdwp:transport=dt_socket,suspend=n,server=n,address=${jpda.address}
  1. Select your profile and Run or Debug the NBANDROID-V2 plugin.
⚠️ **GitHub.com Fallback** ⚠️