5 Replies Latest reply on Jul 15, 2013 9:47 AM by rareddy

    teiid embedded maven configuration

    capoorhimanshu

      Hi ,

       

      Till now i had manually downloaded the artifacts of teiid embedded and was manually installing them in my maven repository.

      However since teiid embedded new version is out. So i tried to put the teiid embedded dependency in my projects pom file

       

      <dependency>

        <groupId>org.jboss.teiid</groupId>

        <artifactId>teiid-admin</artifactId>

        <version>8.4.0.Final</version>

        </dependency>

       

         <dependency>

        <groupId>org.jboss.teiid</groupId>

        <artifactId>teiid-api</artifactId>

        <version>8.4.0.Final</version>

        </dependency>

       

      when i ran the mvn install , it downloaded the artifacts but it also downloaded the other dependencies like  jboss artifacts like jboss-dmr-1.1.6.Final.jar , jboss-common-core-2.2.10.GA.jar and so on.

      Where as when i was doing the things manualy  , they were not required.

       

      So i believe its pointing to teiid - standalone . Do we have some separate artifact id for the embedded , so that only the teiid jars and required dependencies which are there in teiid embedded

      package gets downloaded and not the other  stuff as mentioned above.

       

      Thanks

      Himanshu Kapoor

        • 1. Re: teiid embedded maven configuration
          rareddy

          Himanshu,

           

          There are no separate dependencies for embedded. What you are getting is correct. Please understand that a mvn project like "teiid/common-core" does not necessarily mean that it is developed for one deployment profile vs other. They are common projects/modules, the kitting where we build the zip files for JBoss AS and Embedded Teiid,  we analyze what is already supplied and what is not needed. Also, they may be compile time dependencies, not runtime. Maven I believe downloads all the dependencies for its repository. Just because it downloaded does not always mean that you need to include with your runtime kit.

           

          Ramesh..

          • 2. Re: teiid embedded maven configuration
            capoorhimanshu

            Hi ,

             

            Thanks for the explanation Ramesh , i get it that they are common projects and dependencies i mentione above might be complie time dependencies.

            It have put them in exclusions list in the pom and for the time being i am not getting any compliation errors.

             

            Thanks

            Himanshu Kapoor

            • 3. Re: teiid embedded maven configuration
              rareddy

              Post your exclusions in POM file, if they are OK, I will update the pom.xml files.

              • 4. Re: teiid embedded maven configuration
                capoorhimanshu

                Hi,

                 

                I have put these in exclusion list in the pom file of the project where i am calling/using teiid embedded api's

                 

                <dependency>

                                              <groupId>org.jboss.teiid</groupId>

                                              <artifactId>teiid-admin</artifactId>

                                              <version>${teiidVersion}</version>

                                              <exclusions>

                                                        <exclusion>

                                                                  <groupId>org.jboss</groupId>

                                                                  <artifactId>jboss-dmr</artifactId>

                                                        </exclusion>

                                                        <exclusion>

                                                                  <groupId>org.jboss.as</groupId>

                                                                  <artifactId>jboss-as-cli</artifactId>

                                                        </exclusion>

                                                        <exclusion>

                                                                  <groupId>org.jboss.as</groupId>

                                                                  <artifactId>jboss-as-controller</artifactId> 

                                                        </exclusion>

                                              </exclusions>

                </dependency>

                 

                 

                 

                <dependency>

                                              <groupId>org.jboss.teiid</groupId>

                                              <artifactId>teiid-client</artifactId>

                                              <version>${teiidVersion}</version>

                                              <exclusions>

                                                        <exclusion>

                                                                  <groupId>org.jboss.modules</groupId>

                                                                  <artifactId>jboss-modules</artifactId>

                                                        </exclusion>

                                              </exclusions>

                </dependency>

                 

                 

                 

                 

                Thanks

                Himanshu Kapoor


                • 5. Re: teiid embedded maven configuration
                  rareddy

                  Sorry, I should be been more explicit of my request. That does not give me much interms of fixing the Teiid. Obviously you will not have any compilation issues, as you are not compiling the Teiid code, you are just using the JAR files. If you added pom exclusions to the Teiid projects, and also compiled them without any errors and ran unit tests, then I am interested in those exclusions.

                   

                  Ramesh..