What kind of error is MojoException : 404 Not Found in maven proxy deployment ?

Not applicable

What does the following error indicate in deploying the Apigee Proxy with Maven on dev environment in enterprise account ?

[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.1.5:deploy (deploy-bundle) on project custom-sharedflow: MojoExecutionException: 404 Not Found
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] <!DOCTYPE html>
[ERROR] <html>
[ERROR] <head>
[ERROR] <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
[ERROR] <title>Apigee</title>
[ERROR] <meta charset="${_response_encoding}">
[ERROR] 
[ERROR] <link rel="shortcut icon" type="image/icon" href="https://community.apigee.com/favicon.ico">
[ERROR] 
[ERROR] <link rel="stylesheet" media="screen" href="https://community.apigee.com/public/stylesheets/bootstrapThemeOrange.css">
[ERROR] 
[ERROR] <link rel="stylesheet" media="screen" href="https://community.apigee.com/public/stylesheets/accountStatic.css">
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] <link rel="stylesheet" media="screen" href="https://community.apigee.com/public/stylesheets/apigee404.css">
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] <script src="/public/javascripts/jquery-1.7.1.min.js" type="text/javascript" charset="${_response_encoding}"></script>
[ERROR] <script src="/public/javascripts/underscore-min.js" type="text/javascript" charset="${_response_encoding}"></script>
[ERROR] 
[ERROR] <script type="text/javascript">
[ERROR] window.ACCOUNT_CONFIG = {
[ERROR] pwdMinLength: 8,
[ERROR] pwdValidationRegex: ''
[ERROR] };
[ERROR] </script>
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] <script src="/platform/components/bootstrap/js/bootstrap-dropdown.js" type="text/javascript"></script>
[ERROR] </head>
[ERROR] <body>
[ERROR] 
[ERROR] 
[ERROR] <script src="/public/javascripts/jquery-custom.js" type="text/javascript"></script>
[ERROR] 
[ERROR] 
[ERROR] <!--[if lte IE 8]>
[ERROR] <div style="margin-top: 40px">
[ERROR] <strong>Warning</strong>
[ERROR] <![if lt IE 8]>
[ERROR] You are using an outdated, insecure browser. <a href="http://whatbrowser.org/">Upgrade your browser</a>
[ERROR] to access this site.
[ERROR] <![endif]>
[ERROR] <![if IE 8]>
[ERROR] Apigee doesn't work well with IE 8. Please <a href="http://windows.microsoft.com/ie/">
[ERROR] upgrade to the latest version of Internet Explorer</a>
[ERROR] or use a recent version of another <a href="http://browsehappy.com/">modern browser</a>.
[ERROR] <![endif]>
[ERROR] </div>
[ERROR] 
[ERROR] <script type="text/javascript">
[ERROR] $(document).ready(function() {
[ERROR] $('#loginContainer').hide();
[ERROR] });
[ERROR] </script>
[ERROR] <![endif]-->
[ERROR] <!--[if lt IE 9]>
[ERROR] <script src="components/es5-shim/es5-shim.js" type="text/javascript"></script>
[ERROR] <![endif]-->
[ERROR] ;
[ERROR] 
[ERROR] <div org="${organization}">
[ERROR] <div>
[ERROR] <div>
[ERROR] <span></span>
[ERROR] <span><span></span></span>
[ERROR] 
[ERROR] </div>
[ERROR] </div>
[ERROR] </div>
[ERROR] 
[ERROR] <div>
[ERROR] <div></div>
[ERROR] 
[ERROR] <div>
[ERROR] <h1>Oops, something went wrong!</h1>
[ERROR] <div>
[ERROR] <div>404</div>
[ERROR] <div>
[ERROR] Sorry, but the page you're looking for can't be found.<br/>
[ERROR] Try checking the URL for errors and refresh your browser.<br/><br/>
[ERROR] Keep getting this page? Report this to our
[ERROR] 
[ERROR] <a href="mailto:support@apigee.com">support team</a>.
[ERROR] 
[ERROR] </div>
[ERROR] </div>
[ERROR] </div>
[ERROR] <script type="text/javascript">
[ERROR] if (window.dataLayer) {
[ERROR] window.dataLayer.push({
[ERROR] 'target': 'Edge_notFound',
[ERROR] 'action': 'Page Not Found'
[ERROR] });
[ERROR] }
[ERROR] </script>
[ERROR] 
[ERROR] 
[ERROR] </div>
[ERROR] 
[ERROR] 
[ERROR] <div>
[ERROR] <div>
[ERROR] <div>
[ERROR] <div>
[ERROR] <p>© <script>document.write(new Date().getFullYear());</script> Apigee Corp. All rights reserved. Version 4.17.01.01</p>
[ERROR] </div>
[ERROR] </div>
[ERROR] </div>
[ERROR] </div>
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] 
[ERROR] </body>
[ERROR] </html>
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

If anyone knows, please given any idea as its solution.

0 7 726
7 REPLIES 7

Hi @Harsh Sharma

I would need you to share your pom file and the command you are executing to provide more assistance.

@Harsh Sharma MojoExecutionException comes when you deploy with a different path from the actual path

Not applicable

Hello @Sai Saran Vaidyanathan

Please find below pom file of apigee proxy,

<!--
    Copyright (C) 2014 Apigee Corporation
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
            http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>apigee</groupId>
<artifactId>parent-pom</artifactId>
<packaging>pom</packaging>
<version>1.0</version>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>Maven Plugin Repository</name>
<url>http://repo1.maven.org/maven2</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</pluginRepository>
</pluginRepositories>
<properties>
<main.basedir>${project.basedir}</main.basedir>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<overwrite>true</overwrite>
<encoding>UTF-8</encoding>
<echo message="basedir parent : ${basedir}"/>
<outputDirectory>${basedir}/target/apiproxy</outputDirectory>
<resources>
<resource>
<directory>apiproxy</directory>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.apigee.build-tools.enterprise4g</groupId>
<artifactId>apigee-edge-maven-plugin</artifactId>
<version>1.1.5</version>
<executions>
<execution>
<id>configure-bundle</id>
<phase>package</phase>
<goals>
<goal>configure</goal>
</goals>
</execution>
<execution>
<id>deploy-bundle</id>
<phase>install</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dev</id>
<properties>
<org>test</org>
<options>validate</options>
<apigee.profile>dev</apigee.profile>
<apigee.env>dev</apigee.env>
<apigee.hosturl></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>
<apigee.tokenurl>${tokenurl}</apigee.tokenurl>
<apigee.mfatoken>${mfatoken}</apigee.mfatoken>
<apigee.authtype>${authtype}</apigee.authtype>
<apigee.bearer>${bearer}</apigee.bearer>
<apigee.refresh>${refresh}</apigee.refresh>
<apigee.clientid>${clientId}</apigee.clientid>
<apigee.clientsecret>${clientSecret}</apigee.clientsecret>
</properties>
</profile>
<profile>
<id>cloud-test</id>
<properties>
<org>test</org>
<options>validate</options>
<apigee.profile>dev</apigee.profile>
<apigee.env>dev</apigee.env>
<apigee.hosturl></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>
<apigee.tokenurl>${tokenurl}</apigee.tokenurl>
<apigee.mfatoken>${mfatoken}</apigee.mfatoken>
<apigee.authtype>${authtype}</apigee.authtype>
<apigee.bearer>${bearer}</apigee.bearer>
<apigee.refresh>${refresh}</apigee.refresh>
<apigee.clientid>${clientId}</apigee.clientid>
<apigee.clientsecret>${clientSecret}</apigee.clientsecret>
</properties>
</profile>
<profile>
<id>ship-test</id>
<properties>
<org>test</org>
<options>validate</options>
<apigee.profile>ship-test</apigee.profile>
<apigee.env>shiplab</apigee.env>
<apigee.hosturl></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>
<apigee.tokenurl>${tokenurl}</apigee.tokenurl>
<apigee.mfatoken>${mfatoken}</apigee.mfatoken>
<apigee.authtype>${authtype}</apigee.authtype>
<apigee.bearer>${bearer}</apigee.bearer>
<apigee.refresh>${refresh}</apigee.refresh>
<apigee.clientid>${clientId}</apigee.clientid>
<apigee.clientsecret>${clientSecret}</apigee.clientsecret>
</properties>
</profile>
<profile>
<id>cloud-stage</id>
<properties>
<org>test</org>
<options>validate</options>
<apigee.profile>cloud-stage</apigee.profile>
<apigee.env>aws-stg</apigee.env>
<apigee.hosturl></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>
<apigee.tokenurl>${tokenurl}</apigee.tokenurl>
<apigee.mfatoken>${mfatoken}</apigee.mfatoken>
<apigee.authtype>${authtype}</apigee.authtype>
<apigee.bearer>${bearer}</apigee.bearer>
<apigee.refresh>${refresh}</apigee.refresh>
<apigee.clientid>${clientId}</apigee.clientid>
<apigee.clientsecret>${clientSecret}</apigee.clientsecret>
</properties>
</profile>
<profile>
<id>ship-stage</id>
<properties>
<org>test</org>
<options>validate</options>
<apigee.profile>ship-stage</apigee.profile>
<apigee.env>prd</apigee.env>
<apigee.hosturl></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>
<apigee.tokenurl>${tokenurl}</apigee.tokenurl>
<apigee.mfatoken>${mfatoken}</apigee.mfatoken>
<apigee.authtype>${authtype}</apigee.authtype>
<apigee.bearer>${bearer}</apigee.bearer>
<apigee.refresh>${refresh}</apigee.refresh>
<apigee.clientid>${clientId}</apigee.clientid>
<apigee.clientsecret>${clientSecret}</apigee.clientsecret>
</properties>
</profile>
<profile>
<id>cloud-production</id>
<properties>
<org>test</org>
<options>validate</options>
<apigee.profile>cloud-production</apigee.profile>
<apigee.env>aws-prd</apigee.env>
<apigee.hosturl></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>
<apigee.tokenurl>${tokenurl}</apigee.tokenurl>
<apigee.mfatoken>${mfatoken}</apigee.mfatoken>
<apigee.authtype>${authtype}</apigee.authtype>
<apigee.bearer>${bearer}</apigee.bearer>
<apigee.refresh>${refresh}</apigee.refresh>
<apigee.clientid>${clientId}</apigee.clientid>
<apigee.clientsecret>${clientSecret}</apigee.clientsecret>
</properties>
</profile>
<profile>
<id>production-allure</id>
<properties>
<org>test</org>
<options>validate</options>
<apigee.profile>production-allure</apigee.profile>
<apigee.env>prd</apigee.env>
<apigee.hosturl></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>
<apigee.tokenurl>${tokenurl}</apigee.tokenurl>
<apigee.mfatoken>${mfatoken}</apigee.mfatoken>
<apigee.authtype>${authtype}</apigee.authtype>
<apigee.bearer>${bearer}</apigee.bearer>
<apigee.refresh>${refresh}</apigee.refresh>
<apigee.clientid>${clientId}</apigee.clientid>
<apigee.clientsecret>${clientSecret}</apigee.clientsecret>
</properties>
</profile>
</profiles>
</project>

And below are the commands i am using to deploy it,

mvn apigee-enterprise:deploy -Pdev -Dusername=************* -Dpassword=************

and

mvn install -Pdev -Dusername=************* -Dpassword=************

HI @Harsh Sharma

Thanks for the info

In the pom file, the apigee.hosturl is not provided. If you are using Apigee Cloud (public), the value is https://api.enterprise.apigee.com

If you are using Apigee Private cloud (OPDK), then please provide the Management Server host info.

I see the org name provided is "test", hope that is correct. If you want to externalize that property, please pass it as an argument just like username, password. In this case -Dorg=something

Please try the change and let me know if it worked.

@harsh Sharma

are you able to solve this? I'm also having the same issue with apigee private cloud

,

@harsh Sharma,

are you able to solve this ? I'm also having same issue with private cloud

@Suresh Yarra

Please open a new post if you are facing issues. This is an old post

are you able to solve this ?