Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

DuplicateProjectException when run mvn package

Hy,

I try to build my Talend Cloud API Services Platform but I encounter this error:

org.apache.maven.project.DuplicateProjectException: Project 'Job A' is duplicated in the reactor

Talend generates a pom structure like this:

Parent pom:
<Modules>
    <Module>Job A<Module>
    <Module>Service A<Module>
</Modules>

Job A pom:
// no reference to other module

Service A pom:
<Modules>
    <Module>Job A<Module>
    <Module>pom-control-bundle.xml<Module>
    <Module>pom-feature.xml<Module>
</Modules>

Any idea?


Viktor

Labels (3)
1 Reply
Anonymous
Not applicable
Author

I just recognised no need to build the whole project but the subproject. In Talend, you create jobs, services, route, and they are separated java projects. If they will publish somewhere you need to upload the job, service, route, not the whole project. So, I need to run the build flow on the job, service, route. So I need to point on the job's -also service, route, etc...- pom.xml not the parent project's pom.xml.
So you can avoid this error above, if you build the modules separate.