Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
JReynard
Contributor
Contributor

Error when I tried to deploy component with Maven

Hello,

I start recently learned how to create my own component with Talend by following this tutorial => https://talend.github.io/component-runtime/main/1.42.0/tutorial-create-my-first-component.html

But when I tried to deploy my component with this command : mvn talend-component:deploy-in-studio -Dtalend.component.studioHome="C:\Users\reyna\Documents\TOS_DI-V7.3.1"

I have this error:

0695b00000PLkRAAA1.png

I do exactly the same things than the tutorial so I don't understand what happened here.

pom.xml in attachment for more details.

Can you help me ?

Labels (2)
7 Replies
undx
Creator
Creator

Hi @Jérémy Reynard​,

I think that your issue is specific to powershell, try to quote the `--define` part. ie smtg like `-D"talend.component.studioHome=C:/xxxxxx"`.

Best regards

JReynard
Contributor
Contributor
Author

Thank you @Emmanuel GALLOIS​ , it's seems to work (build success) but I don't see the component in the palette as I should.

 

The JAR file is now in : C:\Users\reyna\Documents\TOS_DI-V7.3.1\configuration\.m2\repository\com\tutorial\tutorial-component\0.0.1-SNAPSHOT

 

Any idea ?

undx
Creator
Creator

Hi,

hum that's strange... Maybe inspect Studio's log for any issue on startup (eventually join it here is suspicious messages).

Otherwise, you can specify your connector's coordinates with the `config.ini`. See property in the following table: https://talend.github.io/component-runtime/main/latest/studio.html#_configuring_the_component_server

BR

JReynard
Contributor
Contributor
Author

Hi,

 

I try to add this in my config.ini

maven.repository = global

component.java.m2=C\:/TOS_DI-8.0.1/studio/configuration/.m2/repository/

component.environment = dev

 

But without success.

 

No logs in my studio home directory.

 

Maybe it's my setup, I will try with a different environment.

 

 

 

 

JReynard
Contributor
Contributor
Author

It works on my other computer so I have a problem with my installation I think

JReynard
Contributor
Contributor
Author

Hi,

seems to work with JDK version <= 15.

undx
Creator
Creator

Hi ,

with jdk15+ you'll certainly need to add extra jvm open parameters...

```

--add-modules=ALL-SYSTEM

--add-opens java.base/java.io=ALL-UNNAMED

--add-opens java.base/java.lang.invoke=ALL-UNNAMED

--add-opens java.base/java.lang.reflect=ALL-UNNAMED

--add-opens java.base/java.lang=ALL-UNNAMED

--add-opens java.base/java.net=ALL-UNNAMED

--add-opens java.base/java.nio=ALL-UNNAMED

--add-opens java.base/java.util=ALL-UNNAMED

--add-opens java.base/java.util.concurrent=ALL-UNNAMED

--add-opens java.base/sun.nio.ch=ALL-UNNAMED

--add-opens java.base/sun.nio.cs=ALL-UNNAMED

--add-opens java.base/sun.security.action=ALL-UNNAMED

--add-opens java.base/sun.security.x509=ALL-UNNAMED

--add-opens java.base/sun.util.calendar=ALL-UNNAMED

```

to put in your Talend-Studio-<platform>.ini. (See format in ini to adapt flags).

 

BR