Hi Kasun,
I followd the maven release guide[1], created a release branch[release-1.3.0] and I could be able to to the release:prepare and it pushed my changes to github too. But when I did the release:perform, I'm getting Unauthorized 401. I'm using the username, password given in the bottom of the guide. [INFO] [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) > on project carbon-apimgt: Failed to deploy artifacts: Could not transfer > artifact org.wso2.carbon.apimgt:carbon-apimgt:pom:1.3.0 from/to > wso2.releases (http://maven.wso2.org/nexus/content/repositories/releases/): > Failed to transfer file: > http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/apimgt/carbon-apimgt/1.3.0/carbon-apimgt-1.3.0.pom. > Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1] > [INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to > execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy > (default-deploy) on project carbon-apimgt: Failed to deploy artifacts: > Could not transfer artifact org.wso2.carbon.apimgt:carbon-apimgt:pom:1.3.0 > from/to wso2.releases ( > http://maven.wso2.org/nexus/content/repositories/releases/): Failed to > transfer file: > http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/apimgt/carbon-apimgt/1.3.0/carbon-apimgt-1.3.0.pom. > Return code is: 401, ReasonPhrase: Unauthorized. I have attached my error herewith. Can you please look on this issue. I have double checked my username and passowrd in the maven setting.xml 1: https://docs.google.com/a/wso2.com/document/d/1hDbB_FKAbMGT7PKOH3FFKAHhumaLPEJMA2nVCyExJIc/edit -- Thanks Abimaran Kugathasan Software Engineer | WSO2 Inc Data & APIs Technologies Team Mobile : +94 773922820 <http://stackoverflow.com/users/515034> <http://lk.linkedin.com/in/abimaran> <http://www.lkabimaran.blogspot.com/> <https://github.com/abimaran> <https://twitter.com/abimaran>
abimaran:carbon-apimgt$ mvn release:perform [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.handlers.security.stub:bundle:1.3.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 85, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 65, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt.stub:bundle:1.3.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 94, column 21 [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 74, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt:bundle:1.3.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 83, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt.client:bundle:1.3.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 75, column 12 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.usage.publisher:bundle:1.3.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 60, column 21 [WARNING] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.usage.client:bundle:1.3.1-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 52, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] WSO2 Carbon - API Management Aggregator Pom [INFO] API Management [INFO] WSO2 Carbon - API Security Handler Service Stub [INFO] WSO2 Carbon - API Key Management Stub [INFO] API Management [INFO] WSO2 Carbon - Api for API Management [INFO] WSO2 Carbon - API Key Mgt Client [INFO] WSO2 Carbon - API Management Implementation [INFO] WSO2 Carbon - API Gateway [INFO] WSO2 Carbon - API Management Usage Aggregator Module [INFO] WSO2 Carbon - API Management Usage Publisher [INFO] WSO2 Carbon - API Management Usage Client [INFO] WSO2 Carbon - HostObject for API management [INFO] WSO2 Carbon - API Key Mgt [INFO] WSO2 Carbon - API Management Core [INFO] WSO2 Carbon - API Management Interceptor [INFO] WSO2 Carbon - API Management Startup Publisher [INFO] Forum [INFO] WSO2 Carbon - Forum Component [INFO] WSO2 Carbon - API management Feature Aggregator Module [INFO] WSO2 Carbon - Api management Core Feature [INFO] WSO2 Carbon - Api management Gateway Feature [INFO] WSO2 Carbon - API Publisher Feature [INFO] WSO2 Carbon - API Store Feature [INFO] WSO2 Carbon - Api management Server Interceptor Feature [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature [INFO] WSO2 Carbon - Api management Feature [INFO] WSO2 Carbon - Forum Feature Aggregator Module [INFO] WSO2 Carbon - Forum Server Feature [INFO] WSO2 Carbon - Forum Feature [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building WSO2 Carbon - API Management Aggregator Pom 1.3.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-release-plugin:2.5.1:perform (default-cli) @ carbon-apimgt --- [INFO] Checking out the project to perform the release ... [INFO] Executing: /bin/sh -c cd /home/abimaran/sources/wso2/git/carbon-apimgt/target && git clone --branch carbon-apimgt-1.3.0 https://abimarank:marangith...@github.com/wso2/carbon-apimgt.git /home/abimaran/sources/wso2/git/carbon-apimgt/target/checkout [INFO] Working directory: /home/abimaran/sources/wso2/git/carbon-apimgt/target [INFO] Executing: /bin/sh -c cd /tmp && git ls-remote https://abimarank:marangith...@github.com/wso2/carbon-apimgt.git [INFO] Working directory: /tmp [INFO] Executing: /bin/sh -c cd /home/abimaran/sources/wso2/git/carbon-apimgt/target/checkout && git fetch https://abimarank:marangith...@github.com/wso2/carbon-apimgt.git [INFO] Working directory: /home/abimaran/sources/wso2/git/carbon-apimgt/target/checkout [INFO] Executing: /bin/sh -c cd /home/abimaran/sources/wso2/git/carbon-apimgt/target/checkout && git checkout carbon-apimgt-1.3.0 [INFO] Working directory: /home/abimaran/sources/wso2/git/carbon-apimgt/target/checkout [INFO] Executing: /bin/sh -c cd /home/abimaran/sources/wso2/git/carbon-apimgt/target/checkout && git ls-files [INFO] Working directory: /home/abimaran/sources/wso2/git/carbon-apimgt/target/checkout [INFO] Invoking perform goals in directory /home/abimaran/sources/wso2/git/carbon-apimgt/target/checkout [INFO] Executing goals 'deploy'... [WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance. [INFO] [INFO] Scanning for projects... [INFO] [WARNING] [INFO] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.handlers.security.stub:bundle:1.3.0 [INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 85, column 21 [INFO] [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 65, column 21 [INFO] [WARNING] [INFO] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt.stub:bundle:1.3.0 [INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 94, column 21 [INFO] [WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:build-helper-maven-plugin is missing. @ line 74, column 21 [INFO] [WARNING] [INFO] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt:bundle:1.3.0 [INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 83, column 12 [INFO] [WARNING] [INFO] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.keymgt.client:bundle:1.3.0 [INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 75, column 12 [INFO] [WARNING] [INFO] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.usage.publisher:bundle:1.3.0 [INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 60, column 21 [INFO] [WARNING] [INFO] [WARNING] Some problems were encountered while building the effective model for org.wso2.carbon.apimgt:org.wso2.carbon.apimgt.usage.client:bundle:1.3.0 [INFO] [WARNING] 'build.plugins.plugin.version' for org.apache.felix:maven-bundle-plugin is missing. @ line 52, column 21 [INFO] [WARNING] [INFO] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [INFO] [WARNING] [INFO] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [INFO] [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Reactor Build Order: [INFO] [INFO] [INFO] [INFO] WSO2 Carbon - API Management Aggregator Pom [INFO] [INFO] API Management [INFO] [INFO] WSO2 Carbon - API Security Handler Service Stub [INFO] [INFO] WSO2 Carbon - API Key Management Stub [INFO] [INFO] API Management [INFO] [INFO] WSO2 Carbon - Api for API Management [INFO] [INFO] WSO2 Carbon - API Key Mgt Client [INFO] [INFO] WSO2 Carbon - API Management Implementation [INFO] [INFO] WSO2 Carbon - API Gateway [INFO] [INFO] WSO2 Carbon - API Management Usage Aggregator Module [INFO] [INFO] WSO2 Carbon - API Management Usage Publisher [INFO] [INFO] WSO2 Carbon - API Management Usage Client [INFO] [INFO] WSO2 Carbon - HostObject for API management [INFO] [INFO] WSO2 Carbon - API Key Mgt [INFO] [INFO] WSO2 Carbon - API Management Core [INFO] [INFO] WSO2 Carbon - API Management Interceptor [INFO] [INFO] WSO2 Carbon - API Management Startup Publisher [INFO] [INFO] Forum [INFO] [INFO] WSO2 Carbon - Forum Component [INFO] [INFO] WSO2 Carbon - API management Feature Aggregator Module [INFO] [INFO] WSO2 Carbon - Api management Core Feature [INFO] [INFO] WSO2 Carbon - Api management Gateway Feature [INFO] [INFO] WSO2 Carbon - API Publisher Feature [INFO] [INFO] WSO2 Carbon - API Store Feature [INFO] [INFO] WSO2 Carbon - Api management Server Interceptor Feature [INFO] [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature [INFO] [INFO] WSO2 Carbon - Api management Feature [INFO] [INFO] WSO2 Carbon - Forum Feature Aggregator Module [INFO] [INFO] WSO2 Carbon - Forum Server Feature [INFO] [INFO] WSO2 Carbon - Forum Feature [INFO] [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Building WSO2 Carbon - API Management Aggregator Pom 1.3.0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ carbon-apimgt --- [INFO] [INFO] [INFO] [INFO] >>> maven-source-plugin:2.4:jar (attach-sources) @ carbon-apimgt >>> [INFO] [INFO] [INFO] [INFO] <<< maven-source-plugin:2.4:jar (attach-sources) @ carbon-apimgt <<< [INFO] [INFO] [INFO] [INFO] --- maven-source-plugin:2.4:jar (attach-sources) @ carbon-apimgt --- [INFO] [INFO] [INFO] [INFO] --- maven-javadoc-plugin:2.10.1:jar (attach-javadocs) @ carbon-apimgt --- [INFO] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package [INFO] [INFO] [INFO] [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ carbon-apimgt --- [INFO] [INFO] Installing /home/abimaran/sources/wso2/git/carbon-apimgt/target/checkout/pom.xml to /home/abimaran/.m2/repository/org/wso2/carbon/apimgt/carbon-apimgt/1.3.0/carbon-apimgt-1.3.0.pom [INFO] [INFO] [INFO] [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ carbon-apimgt --- [INFO] Uploading: http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/apimgt/carbon-apimgt/1.3.0/carbon-apimgt-1.3.0.pom [INFO] 2/29 KB [INFO] 4/29 KB [INFO] 6/29 KB [INFO] 8/29 KB [INFO] 10/29 KB [INFO] 12/29 KB [INFO] 14/29 KB [INFO] 16/29 KB [INFO] 18/29 KB [INFO] 20/29 KB [INFO] 22/29 KB [INFO] 24/29 KB [INFO] 26/29 KB [INFO] 28/29 KB [INFO] 29/29 KB [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Reactor Summary: [INFO] [INFO] [INFO] [INFO] WSO2 Carbon - API Management Aggregator Pom ....... FAILURE [5.848s] [INFO] [INFO] API Management .................................... SKIPPED [INFO] [INFO] WSO2 Carbon - API Security Handler Service Stub ... SKIPPED [INFO] [INFO] WSO2 Carbon - API Key Management Stub ............. SKIPPED [INFO] [INFO] API Management .................................... SKIPPED [INFO] [INFO] WSO2 Carbon - Api for API Management .............. SKIPPED [INFO] [INFO] WSO2 Carbon - API Key Mgt Client .................. SKIPPED [INFO] [INFO] WSO2 Carbon - API Management Implementation ....... SKIPPED [INFO] [INFO] WSO2 Carbon - API Gateway ......................... SKIPPED [INFO] [INFO] WSO2 Carbon - API Management Usage Aggregator Module SKIPPED [INFO] [INFO] WSO2 Carbon - API Management Usage Publisher ...... SKIPPED [INFO] [INFO] WSO2 Carbon - API Management Usage Client ......... SKIPPED [INFO] [INFO] WSO2 Carbon - HostObject for API management ....... SKIPPED [INFO] [INFO] WSO2 Carbon - API Key Mgt ......................... SKIPPED [INFO] [INFO] WSO2 Carbon - API Management Core ................. SKIPPED [INFO] [INFO] WSO2 Carbon - API Management Interceptor .......... SKIPPED [INFO] [INFO] WSO2 Carbon - API Management Startup Publisher .... SKIPPED [INFO] [INFO] Forum ............................................. SKIPPED [INFO] [INFO] WSO2 Carbon - Forum Component ..................... SKIPPED [INFO] [INFO] WSO2 Carbon - API management Feature Aggregator Module SKIPPED [INFO] [INFO] WSO2 Carbon - Api management Core Feature ......... SKIPPED [INFO] [INFO] WSO2 Carbon - Api management Gateway Feature ...... SKIPPED [INFO] [INFO] WSO2 Carbon - API Publisher Feature ............... SKIPPED [INFO] [INFO] WSO2 Carbon - API Store Feature ................... SKIPPED [INFO] [INFO] WSO2 Carbon - Api management Server Interceptor Feature SKIPPED [INFO] [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature SKIPPED [INFO] [INFO] WSO2 Carbon - Api management Feature .............. SKIPPED [INFO] [INFO] WSO2 Carbon - Forum Feature Aggregator Module ..... SKIPPED [INFO] [INFO] WSO2 Carbon - Forum Server Feature ................ SKIPPED [INFO] [INFO] WSO2 Carbon - Forum Feature ....................... SKIPPED [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] BUILD FAILURE [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [INFO] Total time: 6.925s [INFO] [INFO] Finished at: Tue Feb 03 09:58:04 IST 2015 [INFO] [INFO] Final Memory: 18M/300M [INFO] [INFO] ------------------------------------------------------------------------ [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project carbon-apimgt: Failed to deploy artifacts: Could not transfer artifact org.wso2.carbon.apimgt:carbon-apimgt:pom:1.3.0 from/to wso2.releases (http://maven.wso2.org/nexus/content/repositories/releases/): Failed to transfer file: http://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/apimgt/carbon-apimgt/1.3.0/carbon-apimgt-1.3.0.pom. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1] [INFO] [ERROR] [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [INFO] [ERROR] [INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles: [INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] WSO2 Carbon - API Management Aggregator Pom ....... FAILURE [3:48.233s] [INFO] API Management .................................... SKIPPED [INFO] WSO2 Carbon - API Security Handler Service Stub ... SKIPPED [INFO] WSO2 Carbon - API Key Management Stub ............. SKIPPED [INFO] API Management .................................... SKIPPED [INFO] WSO2 Carbon - Api for API Management .............. SKIPPED [INFO] WSO2 Carbon - API Key Mgt Client .................. SKIPPED [INFO] WSO2 Carbon - API Management Implementation ....... SKIPPED [INFO] WSO2 Carbon - API Gateway ......................... SKIPPED [INFO] WSO2 Carbon - API Management Usage Aggregator Module SKIPPED [INFO] WSO2 Carbon - API Management Usage Publisher ...... SKIPPED [INFO] WSO2 Carbon - API Management Usage Client ......... SKIPPED [INFO] WSO2 Carbon - HostObject for API management ....... SKIPPED [INFO] WSO2 Carbon - API Key Mgt ......................... SKIPPED [INFO] WSO2 Carbon - API Management Core ................. SKIPPED [INFO] WSO2 Carbon - API Management Interceptor .......... SKIPPED [INFO] WSO2 Carbon - API Management Startup Publisher .... SKIPPED [INFO] Forum ............................................. SKIPPED [INFO] WSO2 Carbon - Forum Component ..................... SKIPPED [INFO] WSO2 Carbon - API management Feature Aggregator Module SKIPPED [INFO] WSO2 Carbon - Api management Core Feature ......... SKIPPED [INFO] WSO2 Carbon - Api management Gateway Feature ...... SKIPPED [INFO] WSO2 Carbon - API Publisher Feature ............... SKIPPED [INFO] WSO2 Carbon - API Store Feature ................... SKIPPED [INFO] WSO2 Carbon - Api management Server Interceptor Feature SKIPPED [INFO] WSO2 Carbon - Api management Server Startup Publisher Feature SKIPPED [INFO] WSO2 Carbon - Api management Feature .............. SKIPPED [INFO] WSO2 Carbon - Forum Feature Aggregator Module ..... SKIPPED [INFO] WSO2 Carbon - Forum Server Feature ................ SKIPPED [INFO] WSO2 Carbon - Forum Feature ....................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3:49.914s [INFO] Finished at: Tue Feb 03 09:58:04 IST 2015 [INFO] Final Memory: 18M/300M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:perform (default-cli) on project carbon-apimgt: Maven execution failed, exit code: '1' -> [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
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev