8 Replies Latest reply on Feb 16, 2015 11:00 AM by Sebastian Faulhaber

    Issues with "Ticket-Monster"

    Andre Dieball Newbie

      Hi Guys

       

      I'm completely new to jboss and will probably never program, but I need a jboss based web application running for something completely different (monitoring).

       

      I installed jboss EAP 6.2 and have it running so far.

       

      I downloaded ticket-monster from git and in the "demo" directory I ran mvn clean package but get the following error:

       

      ---cut---

      root@ticket demo]# mvn clean package

      [INFO] Scanning for projects...

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

      [ERROR]  

      [ERROR]   The project org.jboss.examples:ticket-monster:2.6.0-SNAPSHOT (/tmp/ticket-monster-f2f4fe2bd67cc8b22f27b33631c39ab1de8535c3/demo/pom.xml) has 16 errors

      [ERROR]     Non-resolvable import POM: Failure to find org.jboss.bom.wfk:jboss-javaee-6.0-with-tools:pom:2.6.0-redhat-1 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ line 52, column 25 -> [Help 2]

      [ERROR]     Non-resolvable import POM: Failure to find org.jboss.bom.eap:jboss-javaee-6.0-with-hibernate:pom:6.2.2.GA in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced @ line 59, column 25 -> [Help 2]

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

      [ERROR]     'dependencies.dependency.version' for javax.inject:javax.inject:jar is missing. @ line 82, column 21

      [ERROR]     'dependencies.dependency.version' for javax.validation:validation-api:jar is missing. @ line 88, column 21

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

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

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

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

      [ERROR]     'dependencies.dependency.version' for org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar is missing. @ line 128, column 21

      [ERROR]     'dependencies.dependency.version' for org.hibernate:hibernate-validator:jar is missing. @ line 137, column 21

      [ERROR]     'dependencies.dependency.version' for org.hibernate:hibernate-jpamodelgen:jar is missing. @ line 154, column 21

      [ERROR]     'dependencies.dependency.version' for junit:junit:jar is missing. @ line 161, column 21

      [ERROR]     'dependencies.dependency.version' for org.jboss.arquillian.junit:arquillian-junit-container:jar is missing. @ line 170, column 21

      [ERROR]     'dependencies.dependency.version' for org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar is missing. @ line 176, column 21

      [ERROR]     'dependencies.dependency.version' for org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom is missing. @ line 182, column 21

      [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

      [root@ticket demo]#

       

       

      ---cut---

       

      As mentioned, I'm completely new to this stuff and a bit overwhelmed now :-)

       

      Any suggestion / help is highly appreciated.

       

      thanks a lot in advance

       


      Andre

        • 1. Re: Issues with "Ticket-Monster"
          flame liu Newbie

          Try "mvn -U clean package".

          • 2. Re: Issues with "Ticket-Monster"
            Kyuha yi Newbie
            1. Add two profiles into ~/.m2/settings.xml
              • See the snippet below
            2. Replace 2.6.0-redhat-1 with 2.5.0-redhat-1 in pom.xml
              • because 2.6.0 is not available here

             

             

              <profiles>

                <!-- Configure the JBoss GA Maven repository -->

                <profile>

                  <id>jboss-ga-repository</id>

                  <repositories>

                    <repository>

                      <id>jboss-ga-repository</id>

                      <url>http://maven.repository.redhat.com/techpreview/all</url>

                      <releases>

                        <enabled>true</enabled>

                      </releases>

                      <snapshots>

                        <enabled>false</enabled>

                      </snapshots>

                    </repository>

                  </repositories>

                  <pluginRepositories>

                    <pluginRepository>

                      <id>jboss-ga-plugin-repository</id>

                      <url>http://maven.repository.redhat.com/techpreview/all</url>

                      <releases>

                        <enabled>true</enabled>

                      </releases>

                      <snapshots>

                        <enabled>false</enabled>

                      </snapshots>

                    </pluginRepository>

                  </pluginRepositories>

                </profile>

                <!-- Configure the JBoss Early Access Maven repository -->

                <profile>

                  <id>jboss-earlyaccess-repository</id>

                  <repositories>

                    <repository>

                      <id>jboss-earlyaccess-repository</id>

                      <url>http://maven.repository.redhat.com/earlyaccess/all/</url>

                      <releases>

                        <enabled>true</enabled>

                      </releases>

                      <snapshots>

                        <enabled>false</enabled>

                      </snapshots>

                    </repository>

                  </repositories>

                  <pluginRepositories>

                    <pluginRepository>

                      <id>jboss-earlyaccess-plugin-repository</id>

                      <url>http://maven.repository.redhat.com/earlyaccess/all/</url>

                      <releases>

                        <enabled>true</enabled>

                      </releases>

                      <snapshots>

                        <enabled>false</enabled>

                      </snapshots>

                    </pluginRepository>

                  </pluginRepositories>

                </profile>

              </profiles>

             

              <activeProfiles>

                <activeProfile>jboss-ga-repository</activeProfile>

                <activeProfile>jboss-earlyaccess-repository</activeProfile>

              </activeProfiles>

            • 3. Re: Issues with "Ticket-Monster"
              Marek Novotny Master

              You don't need to replace 2.6.0-redhat-1 version as WFK were released and BOMs are available now at http://maven.repository.redhat.com/techpreview/all

              • 4. Re: Issues with "Ticket-Monster"
                Alexander Draxler Newbie

                i have exactly the same problem.

                added the 2 maven profiles to my settings xml. in eclipse the dependencies are all loaded, but it's not working by running maven with a goal.

                and i was wondering why there are images missing in this ticket-monster demo. if it may be caused by my inability to build it 'correctly' with maven...

                • 5. Re: Issues with "Ticket-Monster"
                  Congmin Min Newbie

                  After adding the two profiles, my demo on local machine is mostly right. There are some pictures missing compared to the one hosted by Redhat. In particular, the passing pictures in "Events" section can't be shown.

                  • 6. Re: Issues with "Ticket-Monster"
                    Cyrus Moazami-Vahid Newbie

                    Hi,

                    Just a few additions to the pom file and it runs:

                    1- add repositories

                    2- add dependency

                     

                     

                    1- add repos.

                    This  goes to the pom file at the same level as <properties>. It can also be added to the ~/.m2/settings.xml, but then it needed to be added to <activeRepositories>

                        <repositories>
                                <repository>
                                    <id>jboss-ga-repository</id>
                                    <url>http://maven.repository.redhat.com/techpreview/all</url>
                                    <releases>
                                        <enabled>true</enabled>
                                    </releases>
                                    <snapshots>
                                        <enabled>false</enabled>
                                    </snapshots>
                                </repository>
                            </repositories>
                            <pluginRepositories>
                                <pluginRepository>
                                    <id>jboss-ga-plugin-repository</id>
                                    <url>http://maven.repository.redhat.com/techpreview/all</url>
                                    <releases>
                                        <enabled>true</enabled>
                                    </releases>
                                    <snapshots>
                                        <enabled>false</enabled>
                                    </snapshots>
                                </pluginRepository>
                            </pluginRepositories>

                     

                    2- add dependency

                    add the following to pom.xml

                                    <dependency>
                                        <groupId>org.jboss.spec</groupId>
                                        <artifactId>jboss-javaee-all-6.0</artifactId>
                                        <version>3.0.0.Final</version>
                                    </dependency>

                    • 7. Re: Issues with "Ticket-Monster"
                      Marek Novotny Master

                      You don't need to add org.jboss.spec:jboss-javaee-all-6.0:3.0.0.Final.

                      • 8. Re: Issues with "Ticket-Monster"
                        Sebastian Faulhaber Newbie

                        I solved this by editing the following line of code in my pom.xml:

                         

                        <version.jboss.bom.eap>6.3.3.GA</version.jboss.bom.eap>

                         

                        In my case the ID was not existing in the techpreview repo. Hope that helps.

                         

                        Cheers,

                        Sebastian