Seventeen Stars

[resolved] Continuous Integration : The POM for org.talend.libraries:log4j-1.2.1

Talend DI 6.2.1
hi,
We've trying to implement Continuous integration with Talend CI Builder but still have some error while running test.

 The POM for org.talend.libraries:log4j-1.2.16:jar:6.0.0 is missing, no dependency information available
The POM for org.talend.libraries:dom4j-1.6.1:jar:6.0.0 is missing, no dependency information available
The POM for org.talend.libraries:talend_file_enhanced_20070724:jar:6.0.0 is missing, no dependency information available

Following instructions from Talend Help https://help.talend.com/pages/viewpage.action?pageId=268988010
we buid job with success (no error from jenkins console)

Executing Maven:  -B -f /opt/maven/scripts/pom/BuildJob_pom.xml org.talend:ci.builder:6.2.1:generate
Scanning for projects...
                                                                       
------------------------------------------------------------------------
Building buildsources 0.1
------------------------------------------------------------------------

--- ci.builder:6.2.1:generate (default-cli) @ buildsources ---
List projects from:/opt/jenkinsworkspace/testmaven/projects
not valid folder (no talend project) in:.metadata
not valid folder (no talend project) in:.git
not valid folder (no talend project) in:.JETEmitters
not valid folder (no talend project) in:.Java
Found project:TEST_IC
Create project (base on existing folder): TEST_IC
Logon project TEST_IC
Generate sources...
Logoff project
Copy project sources from: /opt/jenkinsworkspace/testmaven/projects/.Java
To: /opt/jenkinsworkspace/RunTests/projectSource/TEST_IC
Create pom aggregator for all projects in: /opt/jenkinsworkspace/RunTests/projectSource/pom.xml
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 27.288 s
Finished at: 2016-11-21T16:52:05+01:00
Final Memory: 9M/174M
------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
Archiving /opt/maven/scripts/pom/BuildJob_pom.xml to org.talend/buildsources/0.1/buildsources-0.1.pom
/opt/maven/scripts/pom/BuildJob_pom.xml is not inside /opt/jenkinsworkspace/testmaven/projects/opt/maven/scripts/pom/; will archive in a separate pass
channel stopped
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Triggering a new build of runTests
Finished: SUCCESS

but always same error on POM dependencies

 Building aggregator 6.0.0
------------------------------------------------------------------------
------------------------------------------------------------------------
Reactor Summary:

TEST_IC Codes Master ............................... SUCCESS
TEST_IC Routines ................................... FAILURE
TEST_IC hello_word (Job Designs) ................... FAILURE
TEST_IC test_tmap1 (TestCase) ...................... FAILURE
TEST_IC testHelloWorld (TestCase) .................. FAILURE
aggregator ......................................... SUCCESS
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.827 s
Finished at: 2016-11-21T16:59:01+01:00
Final Memory: 11M/150M
------------------------------------------------------------------------
Failed to execute goal on project routines: Could not resolve dependencies for project org.talend.code.test_ic:routines:jar:6.2.1: The following artifacts could not be resolved: org.talend.libraries:log4j-1.2.16:jar:6.0.0, org.talend.libraries:dom4j-1.6.1:jar:6.0.0, org.talend.libraries:talend_file_enhanced_20070724:jar:6.0.0: Failure to find org.talend.libraries:log4j-1.2.16:jar:6.0.0 in https://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 ->

The pom.xml generated by the build is :

-sh-4.1$ vim pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 <modelVersion>4.0.0</modelVersion>
 <groupId>org.talend.master.test_ic</groupId>
 <artifactId>code.Master</artifactId>
 <version>6.2.1</version>
 <packaging>pom</packaging>
 <name>TEST_IC Codes Master</name>
 <url>http://www.talend.org/</url>
 <modules>
   <module>pom_routines.xml</module>
   <module>pom_hello_word_1.0.xml</module>
   <module>pom_test_tmap1_0.1.xml</module>
   <module>pom_testHelloWorld_0.1.xml</module>
 </modules>
 <properties>
   <encoding>UTF-8</encoding>
 </properties>
 <build>
   <pluginManagement>
     <plugins>
       <plugin>
         <artifactId>maven-clean-plugin</artifactId>
         <version>2.6.1</version>
       </plugin>
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
         <version>2.5.1</version>
         <configuration>
           <source>1.7</source>
           <target>1.7</target>
         </configuration>
       </plugin>
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
         <version>2.7</version>
       </plugin>
       <plugin>
         <artifactId>maven-jar-plugin</artifactId>
         <version>2.6</version>
         <configuration>
           <archive>
             <addMavenDescriptor>false</addMavenDescriptor>
           </archive>
         </configuration>
       </plugin>
       <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <version>2.5.5</version>
       </plugin>
       <plugin>
         <artifactId>maven-surefire-plugin</artifactId>
         <version>2.12.4</version>
       </plugin>
     </plugins>
   </pluginManagement>
 </build>
</project>

Any help will be appreciated Smiley Wink

regards
laurent
1 ACCEPTED SOLUTION

Accepted Solutions
Seventeen Stars

Re: [resolved] Continuous Integration : The POM for org.talend.libraries:log4j-1.2.1

<user_home>/.m2/settings.xml
You've to tell where is your local library  repository (is the m2 repository of the command line which use also maven and is synchronized with Nexus repository)
our settings.xml file looks like :
 
<settings>
        <localRepository>/opt/talend621/cmdline/studio/configuration/.m2/repository/</localRepository>
        <servers>
                <server>
                        <id>tac</id>
                        <username>admin</username>
                        <password>Talend123</password>
                </server>
        </servers>
</settings>

and it's work
regards
2 REPLIES
Seventeen Stars

Re: [resolved] Continuous Integration : The POM for org.talend.libraries:log4j-1.2.1

some precisions :
using mvn -X test some DEBUG informations

 =======================================================================
Verifying availability of /home/tomcatci/.m2/repository/org/talend/libraries/log4j-1.2.16/6.0.0/log4j-1.2.16-6.0.0.pom from
The POM for org.talend.libraries:log4j-1.2.16:jar:6.0.0 is missing, no dependency information available

but
-rw-r--r-- 1 tomcatci tomcatci    684 21 nov.  12:10 log4j-1.2.16-6.0.0.pom

in
/home/tomcatci/.m2/repository/org/talend/libraries/log4j-1.2.16/6.0.0/
Seventeen Stars

Re: [resolved] Continuous Integration : The POM for org.talend.libraries:log4j-1.2.1

<user_home>/.m2/settings.xml
You've to tell where is your local library  repository (is the m2 repository of the command line which use also maven and is synchronized with Nexus repository)
our settings.xml file looks like :
 
<settings>
        <localRepository>/opt/talend621/cmdline/studio/configuration/.m2/repository/</localRepository>
        <servers>
                <server>
                        <id>tac</id>
                        <username>admin</username>
                        <password>Talend123</password>
                </server>
        </servers>
</settings>

and it's work
regards