Hello,
Using the github samples , ran these commands
mvn apigee-enterprise:configure & mvn apigee-enterprise:deploy commands.
They both fail, deploy as expected as configure failed.
==================debug output from configure===============
[DEBUG] Configuring mojo io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.6:
configure from plugin realm ClassRealm[plugin>io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.6, parent:
sun.misc.Launcher$AppClassLoader@55f96302]
[DEBUG] Configuring mojo 'io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.6:configure' with basic configurator -->
[DEBUG] (f) apiType = sharedflow
[DEBUG] (f) apiVersion = v1
[DEBUG] (f) artifactId = security-sharedflow
[DEBUG] (f) authType = basic
[DEBUG] (s) baseDirectory = C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security
[DEBUG] (f) buildDirectory = C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security\target
[DEBUG] (f) deploymentEnv = test
[DEBUG] (f) hostURL = https://api.enterprise.apigee.com
[DEBUG] (s) id = test
[DEBUG] (s) options = validate
[DEBUG] (f) orgName = amer-mint-partner06
[DEBUG] (f) password = ***********
[DEBUG] (f) projectName = security-sharedflow
[DEBUG] (f) projectVersion = 1.0
[DEBUG] (s) skip = false
[DEBUG] (f) tokenURL = https://login.apigee.com/oauth/token
[DEBUG] (f) userName = test123@aol.com
[DEBUG] -- end configuration --
[DEBUG]
=============Now updating the configuration values for the App Bundle================
[INFO] ============= Reading the config file located at ================
C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security\config.json
[DEBUG] =============Searching for XML files in the following directory ================
C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security\target\sharedflowbundle\policies
[DEBUG] =============
Error Encountered in Searching files
[C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security\target\sharedflowbundle\policies]================
java.lang.NullPointerException
[DEBUG] =============Searching for XML files in the following directory ================
C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security\target\apiproxy\stepdefinitions
[DEBUG] =============
Error Encountered in Searching files
[C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security\target\apiproxy\stepdefinitions]================
java.lang.NullPointerException
[DEBUG] =============Searching for XML files in the following directory ================
C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security\target\sharedflowbundle
[DEBUG] =============
Error Encountered in Searching files
[C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security\target\sharedflowbundle]================
java.lang.NullPointerException
[ERROR] Index: 0, Size: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
Please review and comment,
Thanks
Solved! Go to Solution.
HI Mehedi
The reason why its failing is the code is not available in the target directory. For that the "copy-resources" goal which is in the pom should be invoked. You can try one of the following:
Shared-Flow.xml file is not found in C:\Users\mhash\Documents\INTIENTRepos\apigee-patient\src\sharedflows\security\target\sharedflowbundle directory.
[https://github.com/apigee/apigee-deploy-maven-plugin/blob/master/samples/security-sharedflow/src/sha...]
HI Mehedi
The reason why its failing is the code is not available in the target directory. For that the "copy-resources" goal which is in the pom should be invoked. You can try one of the following:
That worked , Thanks
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |