Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
While compiling the CI-Builder generated sources, compilation failure due to missing components-api.jar happens.
Trace
[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] C:\Users\development\workspaces\talend\projectSources\COMPLIANCEFEED\src\main\java\routines\system\ComponentRuntimeContainerBase.java:[18,40] error: package org.talend.components.api.runtime does not exist [ERROR] C:\Users\development\workspaces\talend\projectSources\COMPLIANCEFEED\src\main\java\routines\system\ComponentRuntimeContainerBase.java:[19,40] error: package org.talend.components.api.runtime does not exist [ERROR] C:\Users\development\workspaces\talend\projectSources\COMPLIANCEFEED\src\main\java\routines\system\ComponentRuntimeContainerBase.java:[21,54] error: cannot find symbol [ERROR] symbol: class ComponentRuntimeContainer C:\Users\development\workspaces\talend\projectSources\COMPLIANCEFEED\src\main\java\routines\system\ComponentRuntimeContainerBase.java:[24,8] error: cannot find symbol [ERROR] symbol: class ComponentDynamicHolder location: class ComponentRuntimeContainerBase C:\Users\development\workspaces\talend\projectSources\COMPLIANCEFEED\src\main\java\routines\system\BufferedOutput.java:[67,100] GetPropertyAction is internal proprietary API and may be removed in a future release [ERROR] C:\Users\development\workspaces\talend\projectSources\COMPLIANCEFEED\src\main\java\routines\system\ComponentRuntimeContainerBase.java:[23,1] error: method does not override or implement a method from a supertype [ERROR] C:\Users\development\workspaces\talend\projectSources\COMPLIANCEFEED\src\main\java\routines\system\ComponentRuntimeContainerBase.java:[28,1] error: method does not override or implement a method from a supertype [ERROR] C:\Users\development\workspaces\talend\projectSources\COMPLIANCEFEED\src\main\java\routines\system\ComponentRuntimeContainerBase.java:[33,1] error: method does not override or implement a method from a supertype [INFO] 8 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] COMPLIANCEFEED Codes Master ..................... SUCCESS [ 1.522 s] [INFO] COMPLIANCEFEED Routines ......................... FAILURE [ 7.585 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9.514 s [INFO] Finished at: 2018-11-01T11:16:11+05:30 [INFO] Final Memory: 18M/208M [INFO] ------------------------------------------------------------------------
The missing package and classes are in components-api.jar, which is not in the dependency of the generated pom.xml.
How can this dependency issue can be solved?
Please let me know if more details are required.
Sources generated with org.talend:ci.builder:6.1.1
Best Regards,
Prerak Jain
Hello,
Here exists a jira issue:https://jira.talendforge.org/browse/TUP-5676 and it is fixed on 6.1.2, 6.2.0 .
Have you tried to modify by yourself the pom file of the project itself, from the project settings.
Normally there is:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin>
You just need to update this to set:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <configuration> <excludes> <exclude>routines/system/ComponentRuntimeContainerBase.java</exclude> </excludes> <source>1.7</source> <target>1.7</target> </configuration> </plugin>
Best regards
Sabrina