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.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

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

Download