Hi Thusitha,

Use java8support branch. You need to build following repo's to build AS,

carbon-commons
carbon-identity
carbon-deployment
carbon-multitenancy
carbon-registry
jaggery
carbon-platform-integration-utils
product-as

Regards,
Manoj


*Manoj Kumara*
Software Engineer
WSO2 Inc. http://wso2.com/
*lean.enterprise.middleware*
Mobile: +94713448188

On Tue, Mar 24, 2015 at 6:04 PM, Thusitha Thilina Dayaratne <
[email protected]> wrote:

> Hi,
>
> After upgrading the Carbon kernel to Tomcat 8.0.20, when I'm trying to
> build the WSO2 AS I'm getting following error
>
> [ERROR] Error occured when processing the Feature Artifact:
>> org.wso2.carbon.commons:org.wso2.carbon.ntask.feature:4.3.6-SNAPSHOT
>> org.apache.maven.plugin.MojoExecutionException: Error occured when
>> processing the Feature Artifact:
>> org.wso2.carbon.commons:org.wso2.carbon.ntask.feature:4.3.6-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:62)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:497)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> 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:
>> Failure to find
>> org.wso2.carbon.commons:org.wso2.carbon.ntask.feature:zip:4.3.6-SNAPSHOT in
>> http://maven.wso2.org/nexus/content/repositories/releases/ was cached in
>> the local repository, resolution will not be reattempted until the update
>> interval of wso2.releases has elapsed or updates are forced
>> Try downloading the file manually from the project website.
>> Then, install it using the command:
>>     mvn install:install-file -DgroupId=org.wso2.carbon.commons
>> -DartifactId=org.wso2.carbon.ntask.feature -Dversion=4.3.6-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.commons
>> -DartifactId=org.wso2.carbon.ntask.feature -Dversion=4.3.6-SNAPSHOT
>> -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>>   org.wso2.carbon.commons:org.wso2.carbon.ntask.feature:zip:4.3.6-SNAPSHOT
>> from the specified remote repositories:
>>   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),
>>   wso2-nexus (http://maven.wso2.org/nexus/content/groups/wso2-public/,
>> releases=true, 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:
>> Failure to find
>> org.wso2.carbon.commons:org.wso2.carbon.ntask.feature:zip:4.3.6-SNAPSHOT in
>> http://maven.wso2.org/nexus/content/repositories/releases/ was cached in
>> the local repository, resolution will not be reattempted until the update
>> interval of wso2.releases has elapsed or updates are forced
>> 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:
>> Failure to find
>> org.wso2.carbon.commons:org.wso2.carbon.ntask.feature:zip:4.3.6-SNAPSHOT in
>> http://maven.wso2.org/nexus/content/repositories/releases/ was cached in
>> the local repository, resolution will not be reattempted until the update
>> interval of wso2.releases has elapsed or updates are forced
>> at
>> org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
>> at
>> org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
>> at
>> org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
>> ... 31 more
>
>
> As I understand I must build the carbon commons before building the AS. I
> checked the git repository of carbon-commons[1]. In that there are 2
> branches relate to java8
> java8support
> java8-support
>
> What is the the correct branch version that I should use?
> Please correct me if my assumption is wrong.
>
>
> Thanks
> Best Regards
> /Thusitha
>
> [1] - https://github.com/wso2/carbon-commons
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog      alokayasoya.blogspot.com
> About    http://about.me/thusithathilina
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to