Expand my Community achievements bar.

SOLVED

Why doesn't the Sightly REPL work?

Avatar

Level 4

The REPL for Sightly HTML templating system mentioned in the AEM docs page http://docs.adobe.com/content/docs/en/aem/6-0/develop/sightly.html doesnt seem to work since there is an unresolved dependency.

http://repo.adobe.com/nexus/content/groups/public/com/adobe/granite/parent/33/parent-33.pom dependency not found in repo.

Would really appreciate it If someone can help. 

Complete maven error stack trace,

D:\Learning\aem-sightly-repl-master>mvn clean install content-package:install
[INFO] Scanning for projects...
Downloading: http://repo.maven.apache.org/maven2/com/adobe/granite/parent/33/parent-33.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.adobe.granite:com.adobe.granite.sightly.repl:0.0.1-SNAPSHOT (D:\Learning\aem-sightly-repl-master\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not find artifact com.adobe.granite:parent:pom:33 in central (http://repo.maven.apache.org/maven2) and 'parent.relativePath' point
s at no local POM @ line 23, column 13 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
D:\Learning\aem-sightly-repl-master>mvn -e clean install content-package:install
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM: Failure to find com.adobe.granite:parent:pom:33 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will n
ot be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 23, column 13

        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:364)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:672)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:663)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:250)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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)
[ERROR]
[ERROR]   The project com.adobe.granite:com.adobe.granite.sightly.repl:0.0.1-SNAPSHOT (D:\Learning\aem-sightly-repl-master\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find com.adobe.granite:parent:pom:33 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution wi
ll not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 23, column 13 -> [Help 2]
org.apache.maven.model.resolution.UnresolvableModelException: Failure to find com.adobe.granite:parent:pom:33 in http://repo.maven.apache.org/maven2 was cached in the local re
pository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
        at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:159)
        at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:817)
        at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:669)
        at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:307)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:411)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
        at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:344)
        at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:672)
        at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:663)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:250)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:213)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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.eclipse.aether.resolution.ArtifactResolutionException: Failure to find com.adobe.granite:parent:pom:33 in http://repo.maven.apache.org/maven2 was cached in the
local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:295)
        at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
        ... 21 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find com.adobe.granite:parent:pom:33 in http://repo.maven.apache.org/maven2 was cached in the loca
l repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
        at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:232)
        at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:599)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:518)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:436)
        ... 25 more
[ERROR]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
 

Looks like there is already an open issue on GitHub regarding this but no one seems to have replied.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Yes, there is a issue with the build. You can raise the same with adobe

View solution in original post

2 Replies

Avatar

Level 4

The issue has now been fixed by Adobe.

The working version of the repl can be downloaded from GitHub.

https://github.com/Adobe-Marketing-Cloud/aem-sightly-repl

Avatar

Correct answer by
Level 10

Yes, there is a issue with the build. You can raise the same with adobe