Four Stars

Talend CI Builder 6.1.1 dependencies issue

Hi All,

 

I am using talend ci-builder maven plugin 6.1.1 to build my talend jobs.

I am getting below exception due to some missing dependency or wrong version of a dependency:

C:\Users\development\workspaces\tac_test2\ETLBuild>mvn clean install -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - com.equatex.etl:ETLBuild:pom:1.0
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [ci.builder:generate {execution: default}]
[INFO] List projects from:C:/Users/development/workspaces/tac_test2
[INFO] not valid folder (no talend project) in:.Java
[INFO] not valid folder (no talend project) in:.JETEmitters
[INFO] not valid folder (no talend project) in:.metadata
[INFO] not valid folder (no talend project) in:ETLBuild
[INFO] Found project:TEST_PRERAK
[INFO] Found project:UTIL
[INFO] Create project (base on existing folder): TEST_PRERAK
[INFO] Logon project TEST_PRERAK
[INFO] Generate sources...
[INFO] Logoff project
[INFO] Copy project sources from: C:\Users\development\workspaces\tac_test2\.Java
[INFO] To: C:\Users\development\workspaces\tac_test2\ETLBuild\projectSources\TEST_PRERAK
[INFO] Create project (base on existing folder): UTIL
[INFO] Logon project UTIL
[INFO] Generate sources...
[INFO] Logoff project
[INFO] Copy project sources from: C:\Users\development\workspaces\tac_test2\.Java
[INFO] To: C:\Users\development\workspaces\tac_test2\ETLBuild\projectSources\UTIL
[INFO] Create pom aggregator for all projects in: C:\Users\development\workspaces\tac_test2\ETLBuild\projectSources\pom.xml
[FATAL ERROR] org.talend.jobbuilder.JobBuilder#execute() caused a linkage error (java.lang.NoSuchMethodError) and may be out-of-date. Check the realms:
[FATAL ERROR] Plugin realm = app0.child-container[org.talend:ci.builder:6.1.1]
urls[0] = file:/C:/Users/development/mavenRepo/org/talend/ci.builder/6.1.1/ci.builder-6.1.1.jar
urls[1] = file:/C:/Users/development/mavenRepo/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
urls[2] = file:/C:/Users/development/mavenRepo/log4j/log4j/1.2.16/log4j-1.2.16.jar
urls[3] = file:/C:/Users/development/mavenRepo/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar
urls[4] = file:/C:/Users/development/mavenRepo/org/codehaus/plexus/plexus-utils/3.0.21/plexus-utils-3.0.21.jar
urls[5] = file:/C:/Users/development/mavenRepo/commons-codec/commons-codec/1.9/commons-codec-1.9.jar
[FATAL ERROR] Container realm = plexus.core
urls[0] = file:/C:/Programs/maven/maven/maven/lib/maven-2.2.1-uber.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org.apache.maven.model.io.xpp3.MavenXpp3Writer.write(Ljava/io/OutputStream;Lorg/apache/maven/model/Model;)V
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NoSuchMethodError: org.apache.maven.model.io.xpp3.MavenXpp3Writer.write(Ljava/io/OutputStream;Lorg/apache/maven/model/Model;)V
        at org.talend.jobbuilder.JobBuilder.execute(JobBuilder.java:152)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47 seconds
[INFO] Finished at: Wed Sep 20 15:53:48 IST 2017
[INFO] Final Memory: 8M/156M
[INFO] ------------------------------------------------------------------------

Can anyone please help here.

 

My POM file looks as below:

<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>com.alpha.etl</groupId>
	<artifactId>ETLBuild</artifactId>
	<packaging>pom</packaging>
	<version>1.0</version>
	<description>Base POM for Equate ETL projects</description>
	
	<properties>
		<!-- Required. Commandline application workspace and Studio path, only for local(script) mode -->
		<commandline.workspace>C:/Users/development/workspaces/tac_test2</commandline.workspace>   
		<product.path>C:/Users/development/temp/Talend-Tools-Studio-20151214_1327-V6.1.1/Talend-Tools-Studio-20151214_1327-V6.1.1</product.path>
		<!-- Optional. Specify target directory where generated sources will be stored -->
		<projectsTargetDirectory>${basedir}/projectSources</projectsTargetDirectory> 
		<!-- Optional. Specify version for the artifact to be built. Can be set for each Job independently -->
		<deploy.version>1.0-SNAPSHOT</deploy.version>
	</properties>

	<build>
		<plugins>
			<plugin>
				<groupId>org.talend</groupId>
				<artifactId>ci.builder</artifactId>
				<version>6.1.1</version>
				<executions>
					<execution>
						<phase>generate-sources</phase>
						<goals>
							<!-- server mode -->
							<goal>generate</goal>
						</goals>
						<configuration>
						</configuration>
					</execution>
				</executions>
				<dependencies>
					<dependency>
						<groupId>commons-lang</groupId>
						<artifactId>commons-lang</artifactId>
						<version>2.6</version>
					</dependency>
					<dependency>
						<groupId>log4j</groupId>
						<artifactId>log4j</artifactId>
						<version>1.2.16</version>
					</dependency>
					<dependency>
						<groupId>xpp3</groupId>
						<artifactId>xpp3_min</artifactId>
						<version>1.1.4c</version>
					</dependency>
				</dependencies>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-site-plugin</artifactId>
				<version>3.3</version>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<version>2.5</version>
			</plugin>
		</plugins>
	</build>
</project>

Thanks in advance!!

 

Regards,

Prerak

1 ACCEPTED SOLUTION

Accepted Solutions
Four Stars

Re: Talend CI Builder 6.1.1 dependencies issue

I solved my problem myself. The issue was in the maven version compatibility with the talend ci builder plugin.

With ci-builder 6.1.1, maven 3.2.1 and higher version are compatible.

2 REPLIES
Four Stars

Re: Talend CI Builder 6.1.1 dependencies issue

I solved my problem myself. The issue was in the maven version compatibility with the talend ci builder plugin.

With ci-builder 6.1.1, maven 3.2.1 and higher version are compatible.

Moderator

Re: Talend CI Builder 6.1.1 dependencies issue

Hello,

Great this issue has been fixed. Thanks for posting that you have resolved it by yourself.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.