6 Replies Latest reply on Jul 22, 2011 12:01 PM by stephen.brooks

    Maven dependency errors while building teiid trunk.

    adupa

      Hello:

       

      I am setting up eclipse dev environment, downloaded teiid trunk..facing below maven dependency errors..is this due to incorrect settings.xml? can some please share a correct settings.xml? attaching my current settings.xml.

       

      [INFO] ------------------------------------------------------------------------

      [INFO] Building teiid-jboss-integration 7.5.0.Beta2-SNAPSHOT

      [INFO] ------------------------------------------------------------------------

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml

      918 B  

             

      Downloaded: https://repository.jboss.org/nexus/content/groups/developer/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml (918 B at 0.8 KB/sec)

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/jpl-pattern/jpl-pattern/1.0/jpl-pattern-1.0.pom

             

      [WARNING] The POM for jpl-pattern:jpl-pattern:jar:1.0 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/jpl-util/jpl-util/1.0/jpl-util-1.0.pom

             

      [WARNING] The POM for jpl-util:jpl-util:jar:1.0 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/trove/trove/2.1.1/trove-2.1.1.pom

             

      [WARNING] The POM for trove:trove:jar:2.1.1 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/apache-xerces/xml-apis/2.7.1/xml-apis-2.7.1.pom

             

      [WARNING] The POM for apache-xerces:xml-apis:jar:2.7.1 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/apache-httpclient/commons-httpclient/2.0.2/commons-httpclient-2.0.2.pom

             

      [WARNING] The POM for apache-httpclient:commons-httpclient:jar:2.0.2 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/apache-slide/webdavlib/2.0/webdavlib-2.0.pom

             

      [WARNING] The POM for apache-slide:webdavlib:jar:2.0 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/apache-log4j/log4j/1.2.14/log4j-1.2.14.pom

             

      [WARNING] The POM for apache-log4j:log4j:jar:1.2.14 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/quartz/quartz/1.6.0/quartz-1.6.0.pom

             

      [WARNING] The POM for quartz:quartz:jar:1.6.0 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.pom

             

      [WARNING] The POM for sun-jaxws:jaxws-api:jar:2.1.1 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/sun-jaxws/jsr181-api/2.1.1/jsr181-api-2.1.1.pom

             

      [WARNING] The POM for sun-jaxws:jsr181-api:jar:2.1.1 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/sun-jaxb/jaxb-api/2.0.5/jaxb-api-2.0.5.pom

             

      [WARNING] The POM for sun-jaxb:jaxb-api:jar:2.0.5 is missing, no dependency information available

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/javax/security/jaas/1.0.01/jaas-1.0.01.jar

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/trove/trove/2.1.1/trove-2.1.1.jar

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/javax/security/jacc/1.0/jacc-1.0.jar

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/jpl-util/jpl-util/1.0/jpl-util-1.0.jar

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/jpl-pattern/jpl-pattern/1.0/jpl-pattern-1.0.jar

             

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.jar

             

      Downloading: https://repository.jboss.org/nexus/content/groups/developer/sun-jaxws/jsr181-api/2.1.1/jsr181-api-2.1.1.jar

             

             

             

             

             

      [INFO] ------------------------------------------------------------------------

      [INFO] Reactor Summary:

      [INFO]

      [INFO] Teiid ............................................. SUCCESS [1:41.067s]

      [INFO] Common Core ....................................... SUCCESS [4.441s]

      [INFO] Client ............................................ SUCCESS [5.366s]

      [INFO] Teiid API ......................................... SUCCESS [3.693s]

      [INFO] Engine ............................................ SUCCESS [15.935s]

      [INFO] Metadata .......................................... SUCCESS [4.912s]

      [INFO] Connectors ........................................ SUCCESS [4.667s]

      [INFO] JDBC Translator ................................... SUCCESS [4.306s]

      [INFO] LDAP Translator ................................... SUCCESS [2.610s]

      [INFO] Loopback Translator ............................... SUCCESS [2.274s]

      [INFO] File Translator ................................... SUCCESS [2.600s]

      [INFO] Salesforce API .................................... SUCCESS [3.718s]

      [INFO] Salesforce Translator ............................. SUCCESS [3.140s]

      [INFO] File Connector .................................... SUCCESS [3.075s]

      [INFO] Salesforce Connector .............................. SUCCESS [6.242s]

      [INFO] LDAP Connector .................................... SUCCESS [3.313s]

      [INFO] Web Service Connector ............................. SUCCESS [2.338s]

      [INFO] Sandbox ........................................... SUCCESS [5.161s]

      [INFO] Yahoo Translator .................................. SUCCESS [3.256s]

      [INFO] Web service Translator ............................ SUCCESS [2.486s]

      [INFO] OLAP Translator ................................... SUCCESS [1.724s]

      [INFO] Console ........................................... SUCCESS [6.021s]

      [INFO] Runtime Engine .................................... SUCCESS [10.888s]

      [INFO] Adminshell ........................................ SUCCESS [5.023s]

      [INFO] JBoss Cache ....................................... SUCCESS [3.089s]

      [INFO] Hibernate Dialect ................................. SUCCESS [3.515s]

      [INFO] teiid-jboss-integration ........................... FAILURE [39.277s]

      [INFO] Integration Tests ................................. SKIPPED

      [INFO] Common Integration Tests .......................... SKIPPED

      [INFO] DB Dependent Integration Tests .................... SKIPPED

      [INFO] Client JDK15 ...................................... SKIPPED

      [INFO] Build ............................................. SKIPPED

      [INFO] ------------------------------------------------------------------------

      [INFO] BUILD FAILURE

      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 4:14.470s

      [INFO] Finished at: Thu Jul 07 12:06:07 EDT 2011

      [INFO] Final Memory: 148M/355M

       

      thanks,

      Praveen

        • 1. Re: Maven dependency errors while building teiid trunk.
          adupa

          Also, when i import the code into eclipse, I see below errors with most of pom.xml files. any pointers on how to resolve these..

            

            

          Plugin execution not covered by lifecycle configuration: org.jboss.maven.plugins:maven-jdocbook-plugin:2.1.2:generate (execution: default-generate, phase: compile)

          Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-jar-plugin:2.2:jar (execution: build_jar,phase: process-classes)

          Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:javacc-maven-plugin:2.4:javacc (execution: javacc, phase: generate-sources)

            

          Appreciate your help.

          thanks,

          Praveen

          • 2. Re: Maven dependency errors while building teiid trunk.
            rareddy

            Praveen,

             

            Did you try to follow the procedures defined here in setting up your Eclipse environment?

             

            http://community.jboss.org/wiki/TeiidEclipseDevEnvironmentSetUpAndBuildingRuntimeArtifacts

             

            see the Generating Maven Sources section for the eclipse import errors. Also it is not apparent from your log about the failure maven is error is having. Your settings.xml looks fine.

             

            Thanks.

             

            Ramesh..

            • 3. Re: Maven dependency errors while building teiid trunk.
              adupa

              Thanks for the reply Ramesh. yes..I was actually using that link you mentioned for my setup. Below is extension of the log related to maven build failure.

               

              [INFO] JBoss Cache ....................................... SUCCESS [3.089s]
              [INFO] Hibernate Dialect ................................. SUCCESS [3.515s]
              [INFO] teiid-jboss-integration ........................... FAILURE [39.277s]
              [INFO] Integration Tests ................................. SKIPPED
              [INFO] Common Integration Tests .......................... SKIPPED
              [INFO] DB Dependent Integration Tests .................... SKIPPED
              [INFO] Client JDK15 ...................................... SKIPPED
              [INFO] Build ............................................. SKIPPED
              [INFO] ------------------------------------------------------------------------
              [INFO] BUILD FAILURE
              [INFO] ------------------------------------------------------------------------
              [INFO] Total time: 4:14.470s
              [INFO] Finished at: Thu Jul 07 12:06:07 EDT 2011
              [INFO] Final Memory: 148M/355M
              [INFO] ------------------------------------------------------------------------
              [ERROR] Failed to execute goal on project teiid-jboss-integration: Could not resolve dependencies for project org.jboss.teiid:teiid-jboss-integration:jar:7.5.0.Beta2-SNAPSHOT: The following artifacts could not be resolved: javax.security:jaas:jar:1.0.01, trove:trove:jar:2.1.1, javax.security:jacc:jar:1.0, jpl-util:jpl-util:jar:1.0, jpl-pattern:jpl-pattern:jar:1.0, sun-jaxws:jaxws-api:jar:2.1.1, sun-jaxws:jsr181-api:jar:2.1.1: Could not find artifact javax.security:jaas:jar:1.0.01 in jboss-developer-repository-group (https://repository.jboss.org/nexus/content/groups/developer/) -> [Help 1]
              [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.

              • 4. Re: Maven dependency errors while building teiid trunk.
                rareddy

                try this settings.xml file, see if this helps. make a backup of your original.

                 

                <settings>
                  <mirrors>
                    <mirror>
                      <id>jboss-developer-repository-group</id>
                      <mirrorOf>*,!jboss-deprecated</mirrorOf>
                      <name>JBoss.org Developer Repository Group</name>
                      <url>https://repository.jboss.org/nexus/content/groups/developer/</url>
                    </mirror>
                  </mirrors>
                  <profiles>
                    <!-- Redefine the Maven central repository to enable snapshots.  The url will be replaced by the mirror -->
                    <profile>
                      <id>jboss-nexus</id>
                      <repositories>
                        <repository>
                          <id>central</id>
                          <name>Central repository proxy</name>
                          <url>replaced by mirror settings</url>
                          <layout>default</layout>
                          <releases>
                            <enabled>true</enabled>
                          </releases>
                          <snapshots>
                            <enabled>true</enabled>
                            <updatePolicy>never</updatePolicy>
                          </snapshots>
                        </repository>
                      </repositories>
                      <pluginRepositories>
                        <pluginRepository>
                          <id>central</id>
                          <url>replaced by mirror settings</url>
                          <releases>
                            <enabled>true</enabled>
                          </releases>
                          <snapshots>
                            <enabled>true</enabled>
                          </snapshots>
                        </pluginRepository>
                      </pluginRepositories>
                    </profile>
                  </profiles>
                  <activeProfiles>
                    <activeProfile>jboss-nexus</activeProfile>
                  </activeProfiles>
                </settings>
                
                • 5. Re: Maven dependency errors while building teiid trunk.
                  rareddy

                  This settings.xml will fix the issue. I have tested on a new machine with a empty local maven repository.

                   

                  <settings>
                    <mirrors>
                      <mirror>
                        <id>jboss-developer-repository-group</id>
                        <mirrorOf>*,!jboss-deprecated</mirrorOf>
                        <name>JBoss.org Developer Repository Group</name>
                        <url>https://repository.jboss.org/nexus/content/groups/developer/</url>
                      </mirror>
                    </mirrors>
                    <profiles>
                      <!-- Redefine the Maven central repository to enable snapshots.  The url will be replaced by the mirror -->
                      <profile>
                        <id>jboss-nexus</id>
                        <repositories>
                          <repository>
                            <id>central</id>
                            <name>Central repository proxy</name>
                            <url>replaced by mirror settings</url>
                            <layout>default</layout>
                            <releases>
                              <enabled>true</enabled>
                            </releases>
                            <snapshots>
                              <enabled>true</enabled>
                              <updatePolicy>never</updatePolicy>
                            </snapshots>
                          </repository>
                        </repositories>
                        <pluginRepositories>
                          <pluginRepository>
                            <id>central</id>
                            <url>replaced by mirror settings</url>
                            <releases>
                              <enabled>true</enabled>
                            </releases>
                            <snapshots>
                              <enabled>true</enabled>
                            </snapshots>
                          </pluginRepository>
                        </pluginRepositories>
                      </profile>
                      <profile>
                        <id>jboss-deprecated</id>
                        <repositories>
                          <repository>
                            <id>jboss-deprecated</id>
                            <name>JBoss Deprecated</name>
                            <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
                            <layout>default</layout>
                            <releases>
                              <enabled>true</enabled>
                              <updatePolicy>never</updatePolicy>
                            </releases>
                            <snapshots>
                              <enabled>false</enabled>
                            </snapshots>
                          </repository>
                        </repositories>
                      </profile>
                    </profiles>
                    <activeProfiles>
                      <activeProfile>jboss-nexus</activeProfile>
                      <activeProfile>jboss-deprecated</activeProfile>
                    </activeProfiles>
                  </settings>
                  
                  • 6. Re: Maven dependency errors while building teiid trunk.
                    stephen.brooks

                    Ramesh,

                     

                    The settings.xml that you posted on 7/20/2011 work great for me when building the 7.1.1CP3 branch.

                     

                    Thanks!