DuplicateProjectException when run mvn package

Highlighted
Six Stars

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

Tags (1)
Six Stars

Re: DuplicateProjectException when run mvn package

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.

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads