apigee / apigee-deploy-maven-plugin

Apache License 2.0
80 stars 167 forks source link

Validate option #156

Closed imroca closed 3 years ago

imroca commented 3 years ago

Updating to 2.1.0 from 1.1.7 generates this error.

<profile>
            <id>****</id>
            <properties>
                <org>****</org> <!-- default org, replace with default org to avoid passing parameter e.g. -Dorg testmyapi -->
                <options>validate</options> <!-- default org, replace with default org to avoid passing parameter e.g. -Dorg testmyapi -->
                <apigee.profile>test</apigee.profile>
                <apigee.env>test</apigee.env>
                <apigee.hosturl>https://api.enterprise.apigee.com</apigee.hosturl>
                <apigee.apiversion>v1</apigee.apiversion>
                <apigee.org>${org}</apigee.org>
                <apigee.username>${username}</apigee.username>
                <apigee.password>${password}</apigee.password>
                <apigee.options>${options}</apigee.options>
                <apigee.revision>${revision}</apigee.revision> <!-- used while trying to update revision, use when option=update only -->
                <apigee.tokenurl>${tokenurl}</apigee.tokenurl> <!-- optional: oauth -->
                <apigee.mfatoken>${mfatoken}</apigee.mfatoken> <!-- optional: mfa -->
                <apigee.authtype>${authtype}</apigee.authtype> <!-- optional: oauth|basic(default) -->
                <apigee.bearer>${bearer}</apigee.bearer> <!-- optional: Bearer token override -->
                <apigee.refresh>${refresh}</apigee.refresh> <!-- optional: Refresh token override -->
                <apigee.clientid>${clientId}</apigee.clientid> <!-- optional: Oauth Client Id - Default is edgecli-->
                <apigee.clientsecret>${clientSecret}</apigee.clientsecret> <!-- optional: Oauth Client Secret Default is edgeclisecret-->
                <!--apigee.override.delay>10</apigee.override.delay-->
                <!--apigee.delay>1000</apigee.delay-->
            </properties>
        </profile>

[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:2.1.0:deploy (install-bundle-step) on project tigoid_app: : MojoExecutionException: No enum constant io.apigee.buildTools.enterprise4g.mavenplugin.DeployMojo.OPTIONS.validate -> [Help 1]

How should I proceed?

ssvaidyanathan commented 3 years ago

@imroca - Version 2.x is for the latest Apigee X release and Apigee hybrid versions. If you are using the older version of Apigee, please use version 1.x (v1.2.3 is the latest)

The same is described in the README as well. Please include the version in your pom file

imroca commented 3 years ago

Oh, I totally missed that on the readme.

ssvaidyanathan commented 3 years ago

Closing the issue