1 Reply Latest reply on Dec 16, 2011 11:52 AM by rhusar

    Running the kitchensink example

    ziggy25

      I am trying to run one of jboss examples namely the one in jboss-as-quickstarts-7.1.0.Beta1b\kitchensink

      According to the instructions in https://docs.jboss.org/author/display/AS7/Kitchensink+quickstart , i should be able to build and deploy the example by just issuing the command

       

      mvn package jboss-as:deploy

       

      I tried the above command but i am getting this error:

       

      C:\jboss-as-quickstarts-7.1.0.Beta1b\kitchensink>mvn package jboss-as:deploy

      [INFO] Scanning for projects...

      "Downloading: http://repo1.maven.org/maven2/org/jboss/spec/jboss-javaee-web-6.0/2.0.0.Final/jboss-javaee-web-6.0-2.0.0.Final.pom"

      [ERROR] The build could not read 1 project -> [Help 1]

      [ERROR]

      [ERROR]   The project org.jboss.as.quickstarts:jboss-as-kitchensink:7.1.0.Beta1b (C:\jboss-as-quickstarts-7.1.0.Beta1b\kitchensink\pom.xml) has 6 errors

      [ERROR]     Non-resolvable import POM: Could not transfer artifact org.jboss.spec:jboss-javaee-web-6.0:pom:2.0.0.Final from/to central (http://repo1.maven.org/maven2): Error transferring file: Connection timed out: connect @ line 50, column 22 -> [Help 2]

      [ERROR]     'dependencies.dependency.version' for javax.enterprise:cdi-api:jar is missing. @ line 67, column 19

      [ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar is missing. @ line 75, column 19

      [ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec:jar is missing. @ line 83, column 19

      [ERROR]     'dependencies.dependency.version' for org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar is missing. @ line 91, column 19

      [ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar is missing. @ line 99, column 19

      [ERROR]

      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

      [ERROR] Re-run Maven using the -X switch to enable full debug logging.

      [ERROR]

      [ERROR] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException

      [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

       

      It looks like it is trying to download something but times out. This is expected as there is a proxy so it wont be allowed to access the outside. Why does it need to download anything and how can i bypass this download?

       

      I already had jboss running when i issued the above command.

       

      Thanks