2 Replies Latest reply on Oct 31, 2012 12:37 PM by Rafael Soares (Tuelho)

    Error during Startup event "java.lang.NullPointerException"

    Rafael Soares (Tuelho) Novice

      Hello.

       

      I'm facing the following issue using Forge:

       

      JBoss Forge, version [ 1.1.1.Final ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]

      Error during Startup event

      java.lang.NullPointerException

                at java.lang.String.contains(String.java:2076)

                at org.apache.maven.model.building.DefaultModelBuilder.containsCoordinates(DefaultModelBuilder.java:1047)

                at org.apache.maven.model.building.DefaultModelBuilder.importDependencyManagement(DefaultModelBuilder.java:948)

                at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:403)

                at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:374)

                at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:365)

                at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)

                at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:141)

                at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:102)

                at org.jboss.forge.maven.facets.MavenCoreFacetImpl.getPartialProjectBuildingResult(MavenCoreFacetImpl.java:86)

       

       

      My env is:

       

      Apache Maven 3.0.3 (r1075438; 2011-02-28 14:31:09-0300)

      Maven home: /Users/rafaeltuelho/java/tools/maven

      Java version: 1.7.0_07, vendor: Oracle Corporation

      Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre

      Default locale: en_US, platform encoding: UTF-8

      OS name: "mac os x", version: "10.7.5", arch: "x86_64", family: "mac"

       

       

      In my first attempt I could start Forge and create a project skeleton. But after try to run forge 'scaffold setup' it seems to broke my Forge installation. I also tried to use Forge with proxy setup [1] and with no proxy (direct internet connection), but not works.

       

      What can be wrong?

       

      [1] http://forge.jboss.org/docs/using/configure-proxy.html

       

      Thanks.