-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sackmesser - Deploy always fails if config.json is present #533
Comments
Hi @vitor-a-pinto, can you confirm you're using the config.json you linked? Because the linked file is the Apigee Edge config.json file and some of the resources might not be 100% compatible with the X/hybrid API you target with |
hi @danistrebel the config.json i'm using is on the zip file. The one linked in the 1st sentence is just for context (still I updated the link to avoid confusion). |
Got it thanks, I'll take a look to see what's missing. |
Thanks for bringing this up @vitor-a-pinto! He's where I am currently at: Apigee Sackmesser's intention was to remove the need for writing a manifest and the complexity that comes with Maven. So far this has worked out nicely but it breaks a few features that are dependent on some maven constructs. The config.json is one of them because it depends on a match of the key in the config.json and the profile used. Because the pom.xml is auto generated the profile functionality is not used. I see the following options in this trade off between flexibility and simplicity:
@OmidTahouri @seymen what do you think? |
Hi @danistrebel Just a quick note on your 2nd option: the idea behind the config.json is to be able to customize configs per profile. Speaking of experience, profiles usually match with the different environments (e.g. dev, quality assurance, production, etc). So to have a single profile (the default) wont address the issue completely. Just my 2 cents |
Yeah I fully agree. Let me elaborate on 2 a bit more. The motivation would be to make it such that you could have a Alternatively (maybe an in-between 2&3) we could do I am not yet convinced this is a great idea so any input is very welcome. |
Ok got it, thanks for your detailed explanation. |
If config.json (supported by apigee-deploy-maven-plugin config.json ) is present, using sackmesser to deploy the proxy with
sackmesser deploy --googleapi -d <path to proxy> -t $(gcloud auth print-access-token) -e $ENV -o $ORG
Fails with the error
[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:2.3.1:configure (configure-bundle-step) on project apigee-deployer: null: MojoExecutionException -> [Help 1]
If I remove config.json everything works just fine. This feature of the maven plugin should work when using sackmesser
Attached proxy to reproduce the issue.
mockapiSack.zip
The text was updated successfully, but these errors were encountered: