cancel
Showing results for 
Search instead for 
Did you mean: 

How to create RFC Destinations using NEO's mojo.connectivity.PutDestinationMojo in Java

0 Kudos

Hello,

I am trying to create a cloud destination through Java program using com.sap.core.sdk.cmd.mojo.connectivity.PutDestinationMojo. I am able to create the destination using neo tool through command prompt. as per requirement I should be able to put the destination dynamically. It would be good if some one can share any example.

Accepted Solutions (0)

Answers (1)

Answers (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

You could use this maven goal to upload the destination file you create locally.

<build>
<plugins>
  <plugin>
	<groupId>com.sap.cloud</groupId>
	<artifactId>neo-java-web-maven-plugin</artifactId>
....
	<executions>
	  <execution>
		<id>put-destination-ABC</id>
		<phase>process-classes</phase>
		<goals>
		  <goal>put-destination</goal>
		</goals>
		<configuration>
		  <localpath>${project.build.directory}/destinations/abc</localpath>
		</configuration>
	  </execution>
....

Regards,
Ivan