APIGEE Maven Deployment- APIGEE Maven plugin eror

Hi,

Hope everyone is doing well.

I would like to request your help in getting this problem solved. My Pom.xml ran into error while deploying to prod environment using Jenkins and GIT.I tried manytimes using with other plugins aswell, but the result is same.

I also went through the github apigee maven reference but somehow i couldnot make it.

Can someone shed light into issue?

Please find the attachment pom.xml and error screen in jenkins job.

My jenkins version is Jenkins ver. 2.222.3

Thanks and Regards,

Mani

0 4 234
4 REPLIES 4

H @manikanta ponneri

Two things to fix in your pom

  1. Update the url of the plugin Repo to "https" (https://repo1.maven.org/maven2) You have it as "http"
  2. Please use the latest version of the Apigee Maven plugin. So update
<plugin>
	<groupId>io.apigee.build-tools.enterprise4g</groupId>
	<artifactId>apigee-edge-maven-plugin</artifactId>
	<version>1.0.0</version>
</plugin>

to

<plugin>
	<groupId>io.apigee.build-tools.enterprise4g</groupId>
	<artifactId>apigee-edge-maven-plugin</artifactId>
	<version>1.2.1</version>
</plugin>

Hi @Sai Saran Vaidyanathan

Thanks for your response.

Im glad to say that pom parsing error got fixed, but main task left behind. It didnot deploy to specified environment.

[INFO] 
[INFO] --- replacer:1.5.2:replace (default) @ cacheLookup ---
[INFO] Replacement run on 2 files.
[INFO] 
[INFO] --- apigee-edge-maven-plugin:1.2.1:configure (configure-bundle) @ cacheLookup ---
[INFO] No config.json found. Skipping package configuration.
[INFO] Checking for node.js app
[INFO] Create Apigee App Bundle C:\Program Files (x86)\Jenkins\workspace\cacheLookup\target\cacheLookup---test.zip
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ cacheLookup ---
[INFO] Installing C:\Program Files (x86)\Jenkins\workspace\cacheLookup\pom.xml to C:\Windows\system32\config\systemprofile\.m2\repository\apigee\cacheLookup\-\cacheLookup--.pom
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (auto-clean-install) @ cacheLookup ---
[INFO] Deleting C:\Program Files (x86)\Jenkins\workspace\cacheLookup\target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.052 s
[INFO] Finished at: 2020-05-29T10:41:19+05:30
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[JENKINS] Archiving C:\Program Files (x86)\Jenkins\workspace\cacheLookup\pom.xml to apigee/cacheLookup/-/cacheLookup--.pom
channel stopped
Finished: SUCCESS

pom.txt

its saying that no config.json found. what does it have to do? Its a simple proxy iam implementing it via jenkins.

Can you you please check again and let me know where i went wrong, also i updated the pom with modifications i was asked to made.

Can you help me walk through this?if possible can you share me updated pom file incase if there something to add on.

Thanks and Regards,

Mani

@manikanta ponneri - Can you share the mvn command that is called in your pipeline ?

cachelookup.zip

Please find the attached sample bundle i was trying to deploy to test env.