Hi Malintha, It needs the version 2.0.1-SNAPSHOT and you need to build[1] before building product-apim. [1] - https://github.com/wso2/carbon-apimgt/tree/release-2.0.1
Thanks, Madusanka On Mon, Dec 7, 2015 at 2:38 PM, Malintha Adikari <malin...@wso2.com> wrote: > Hi, > > I have already built carbon-apimgt branch release-1.10.x > <https://github.com/wso2/carbon-apimgt/tree/release-1.10.x> but I am > getting following build failure in APIM 1.10.x branch. What is the reason > for this ? > > [ERROR] Error occured when processing the Feature Artifact: > org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:2.0.1-SNAPSHOT > org.apache.maven.plugin.MojoExecutionException: Error occured when > processing the Feature Artifact: > org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:2.0.1-SNAPSHOT > at > org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:322) > at > org.wso2.maven.p2.RepositoryGenMojo.createRepo(RepositoryGenMojo.java:197) > at org.wso2.maven.p2.RepositoryGenMojo.execute(RepositoryGenMojo.java:191) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) > Caused by: org.apache.maven.plugin.MojoExecutionException: ERROR > at > org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:60) > at > org.wso2.maven.p2.RepositoryGenMojo.getProcessedFeatureArtifacts(RepositoryGenMojo.java:319) > ... 23 more > Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: > Could not find artifact > org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:2.0.1-SNAPSHOT > in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.wso2.carbon.apimgt > -DartifactId=org.wso2.carbon.forum.server.feature -Dversion=2.0.1-SNAPSHOT > -Dpackaging=zip -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=org.wso2.carbon.apimgt > -DartifactId=org.wso2.carbon.forum.server.feature -Dversion=2.0.1-SNAPSHOT > -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > > > > org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:2.0.1-SNAPSHOT > > from the specified remote repositories: > wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/, > releases=true, snapshots=true), > wso2.releases ( > http://maven.wso2.org/nexus/content/repositories/releases/, > releases=true, snapshots=true), > wso2.snapshots ( > http://maven.wso2.org/nexus/content/repositories/snapshots/, > releases=false, snapshots=true), > central (http://repo.maven.apache.org/maven2, releases=true, > snapshots=false) > > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525) > at > org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:56) > ... 24 more > Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: > Could not find artifact > org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:2.0.1-SNAPSHOT > in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216) > at > org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193) > at > org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286) > at > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:213) > ... 27 more > Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could > not find artifact > org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:2.0.1-SNAPSHOT > in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) > at > org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:947) > at > org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941) > at > org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669) > at > org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at java.lang.Thread.run(Thread.java:745) > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] WSO2 API Manager - Aggregator Module .............. SUCCESS > [1:10.961s] > [INFO] WSO2 API Manager - Styles Parent .................. SUCCESS [0.038s] > [INFO] WSO2 API Manager - Styles ......................... SUCCESS > [22.305s] > [INFO] WSO2 Stratos API Manager - UI styles ............. SUCCESS > [10.910s] > [INFO] WSO2 Stratos API Manager - Dashboard UI .......... SUCCESS [7.788s] > [INFO] WSO2 AM - Login User Interface .................... SUCCESS [4.091s] > [INFO] WSO2 API Manager - Features Parent ................ SUCCESS [0.026s] > [INFO] WSO2 API Manager - Features Aggregator Module ..... SUCCESS [0.028s] > [INFO] WSO2 API Manager - Styles Features ................ SUCCESS [0.327s] > [INFO] WSO2 Stratos API Manager - Features Aggregator Module SUCCESS > [0.019s] > [INFO] WSO2 Stratos API Manager - Style Features ........ SUCCESS [0.330s] > [INFO] WSO2 Stratos API Manager - Utils Features ........ SUCCESS > [12.442s] > [INFO] WSO2 Stratos API Manager - Dashboard UI Features . SUCCESS > [12.056s] > [INFO] WSO2 Stratos API Manager - Deployment Features ... SUCCESS [0.349s] > [INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS [0.050s] > [INFO] WSO2 API Manager - P2 Profile Generation .......... FAILURE > [1:58.143s] > [INFO] WSO2 API Manager - BAM Toolbox .................... SKIPPED > [INFO] WSO2 API Manager - Distribution Parent ............ SKIPPED > [INFO] WSO2 API Manager - Distribution ................... SKIPPED > [INFO] WSO2 API Manager - P2 Profile Repository Generation Parent SKIPPED > [INFO] WSO2 Carbon - Nested Feature Category Parent ...... SKIPPED > [INFO] WSO2 APIManager - Nested Feature Categories ....... SKIPPED > [INFO] Gateway Manager ................................... SKIPPED > [INFO] Gateway Worker .................................... SKIPPED > [INFO] Key Manager ....................................... SKIPPED > [INFO] Publisher ......................................... SKIPPED > [INFO] Store ............................................. SKIPPED > [INFO] WSO2 Carbon - APIM Feature Repository Generation .. SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 6:55.503s > [INFO] Finished at: Mon Dec 07 14:32:30 IST 2015 > [INFO] Final Memory: 37M/508M > [INFO] > ------------------------------------------------------------------------ > [ERROR] Failed to execute goal > org.wso2.maven:carbon-p2-plugin:1.5.4:p2-repo-gen (2-p2-repo-generation) on > project am-p2-profile: Error occured when processing the Feature Artifact: > org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:2.0.1-SNAPSHOT: > ERROR: Could not find artifact > org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:2.0.1-SNAPSHOT > in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/) > > > Regards, > Malintha > > > On Mon, Sep 21, 2015 at 2:10 PM, Irham Iqbal <iq...@wso2.com> wrote: > >> Hi All, >> >> It solved by building repo carbon-apimgt branch release-1.10.x >> <https://github.com/wso2/carbon-apimgt/tree/release-1.10.x> >> >> Thanks, >> Iqbal >> >> On Mon, Sep 21, 2015 at 1:40 PM, Madusanka Premaratne < >> madusan...@wso2.com> wrote: >> >>> Hi Iqbal, >>> As Udara mentioned you need to build, carbon-apimgt[1] first. The >>> mentioned product-apim needs components and features of the version >>> 4.3.0-SNAPSHOT, which are not released yet. So please build carbon-apimgt >>> first. >>> >>> [1] - https://github.com/wso2/carbon-apimgt/tree/release-1.10.x >>> >>> Thanks, >>> Madusanka >>> >>> On Mon, Sep 21, 2015 at 1:20 PM, Udara Rathnayake <uda...@wso2.com> >>> wrote: >>> >>>> try building https://github.com/wso2/carbon-apimgt/ repository first. >>>> I think release-1.10.x is the branch you have to build. >>>> This is where we have apim related components/features. >>>> >>>> On Mon, Sep 21, 2015 at 1:12 PM, Irham Iqbal <iq...@wso2.com> wrote: >>>> >>>>> Hi, >>>>> >>>>> When I am trying to build apim git repo[1] 1.10.x branch I am getting >>>>> the following exception. Any ideas on this ? >>>>> >>>>> [INFO] WSO2 Stratos API Manager - Deployment Features ... SUCCESS >>>>> [0.431s] >>>>> >>>>> [INFO] WSO2 API Manager - P2 Profile Generation Parent ... SUCCESS >>>>> [0.028s] >>>>> >>>>> [INFO] WSO2 API Manager - P2 Profile Generation .......... FAILURE >>>>> [53.228s] >>>>> >>>>> [INFO] WSO2 API Manager - BAM Toolbox .................... SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Distribution Parent ............ SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Distribution ................... SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Integration Tests .............. SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Integration Test Common Module . SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Integration Admin Clients Module SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Integration Common Test Module . SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - RestFul Backend Module for Integration >>>>> Tests SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Integration Extensions Module .. SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Integration UI Pages Module .... SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Integration New Test Module .... SKIPPED >>>>> >>>>> [INFO] WSO2 API Manager - Based on product backend Test Module SKIPPED >>>>> >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> >>>>> [INFO] BUILD FAILURE >>>>> >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> >>>>> [INFO] Total time: 1:08.412s >>>>> >>>>> [INFO] Finished at: Mon Sep 21 13:04:12 IST 2015 >>>>> >>>>> [INFO] Final Memory: 35M/94M >>>>> >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> >>>>> [ERROR] Failed to execute goal >>>>> org.wso2.maven:carbon-p2-plugin:1.5.4:p2-repo-gen (2-p2-repo-generation) >>>>> on >>>>> project am-p2-profile: Error occured when processing the Feature Artifact: >>>>> org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:4.3.0-SNAPSHOT: >>>>> ERROR: Could not find artifact >>>>> org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:4.3.0-SNAPSHOT >>>>> in wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/ >>>>> ) >>>>> >>>>> [ERROR] >>>>> >>>>> [ERROR] Try downloading the file manually from the project website. >>>>> >>>>> [ERROR] >>>>> >>>>> [ERROR] Then, install it using the command: >>>>> >>>>> [ERROR] mvn install:install-file -DgroupId=org.wso2.carbon.apimgt >>>>> -DartifactId=org.wso2.carbon.forum.server.feature -Dversion=4.3.0-SNAPSHOT >>>>> -Dpackaging=zip -Dfile=/path/to/file >>>>> >>>>> [ERROR] >>>>> >>>>> [ERROR] Alternatively, if you host your own repository you can deploy >>>>> the file there: >>>>> >>>>> [ERROR] mvn deploy:deploy-file -DgroupId=org.wso2.carbon.apimgt >>>>> -DartifactId=org.wso2.carbon.forum.server.feature -Dversion=4.3.0-SNAPSHOT >>>>> -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] >>>>> >>>>> [ERROR] >>>>> >>>>> [ERROR] >>>>> >>>>> [ERROR] >>>>> org.wso2.carbon.apimgt:org.wso2.carbon.forum.server.feature:zip:4.3.0-SNAPSHOT >>>>> >>>>> [ERROR] >>>>> >>>>> [ERROR] from the specified remote repositories: >>>>> >>>>> [ERROR] wso2-nexus ( >>>>> http://maven.wso2.org/nexus/content/groups/wso2-public/, >>>>> releases=true, snapshots=true), >>>>> >>>>> [ERROR] wso2.releases ( >>>>> http://maven.wso2.org/nexus/content/repositories/releases/, >>>>> releases=true, snapshots=true), >>>>> >>>>> [ERROR] wso2.snapshots ( >>>>> http://maven.wso2.org/nexus/content/repositories/snapshots/, >>>>> releases=false, snapshots=true), >>>>> >>>>> [ERROR] central (http://repo.maven.apache.org/maven2, releases=true, >>>>> snapshots=false) >>>>> >>>>> [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 >>>>> >>>>> [ERROR] >>>>> >>>>> [ERROR] After correcting the problems, you can resume the build with >>>>> the command >>>>> >>>>> [ERROR] mvn <goals> -rf :am-p2-profile >>>>> [1] https://github.com/wso2/product-apim/ >>>>> >>>>> Thanks, >>>>> Iqbal >>>>> -- >>>>> Irham Iqbal >>>>> Software Engineer - Test Automation >>>>> WSO2, Inc.: http://wso2.com >>>>> lean. enterprise. middleware >>>>> phone: +94 777888452 >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> *Madusanka Premaratne* | Associate Software Engineer >>> WSO2, Inc | lean. enterprise. middleware. >>> #20, Palm Grove, Colombo 03, Sri Lanka >>> Mobile: +94 71 835 70 73| Work: +94 112 145 345 >>> Email: madusan...@wso2.com | Web: www.wso2.com >>> >>> [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter] >>> <https://twitter.com/rmmpremaratne> [image: Google Plus] >>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image: >>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram] >>> <http://instagram.com/madusankapremaratne> [image: Skype] >>> <http://@rmmpremaratne> >>> >>> >> >> >> -- >> Irham Iqbal >> Software Engineer - Test Automation >> WSO2, Inc.: http://wso2.com >> lean. enterprise. middleware >> phone: +94 777888452 >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Malintha Adikari* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > Mobile: +94 71 2312958 > Blog: http://malinthas.blogspot.com > Page: http://about.me/malintha > -- *Madusanka Premaratne* | Associate Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 835 70 73| Work: +94 112 145 345 Email: madusan...@wso2.com | Web: www.wso2.com [image: Facebook] <https://www.facebook.com/maduzanka> [image: Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus] <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image: Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram] <http://instagram.com/madusankapremaratne> [image: Skype] <http://@rmmpremaratne>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev