[ 
https://issues.apache.org/jira/browse/SLING-4436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14329901#comment-14329901
 ] 

Radu Cotescu commented on SLING-4436:
-------------------------------------

I've renamed my {{settings.xml}} file and the build still works for me:

{noformat}
~/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine (master) 
🍺  rm -rf ~/.m2/repository/org/apache/sling/org.apache.sling.commons.compiler/
~/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine (master) 
🍺  rm -rf ~/.m2/repository/org/eclipse/core/resources/
~/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine (master) 
🍺  subl ~/.m2/settings.xml
~/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine (master) 
🍺  mv ~/.m2/settings.xml ~/.m2/settings-exp.xml
~/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine (master) 
🍺  mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Apache Sling Scripting Sightly Engine 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.commons.compiler/2.0.0/org.apache.sling.commons.compiler-2.0.0.pom
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.commons.compiler/2.0.0/org.apache.sling.commons.compiler-2.0.0.pom
 (6 KB at 11.7 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/eclipse/core/resources/maven-metadata.xml
Downloading: 
http://repository.apache.org/snapshots/org/eclipse/core/resources/maven-metadata.xml
Downloaded: 
https://repo.maven.apache.org/maven2/org/eclipse/core/resources/maven-metadata.xml
 (367 B at 13.8 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/eclipse/core/resources/3.2.1-R32x_v20060914/resources-3.2.1-R32x_v20060914.pom
Downloaded: 
https://repo.maven.apache.org/maven2/org/eclipse/core/resources/3.2.1-R32x_v20060914/resources-3.2.1-R32x_v20060914.pom
 (2 KB at 29.0 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.pom
Downloaded: 
https://repo.maven.apache.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.pom
 (2 KB at 37.4 KB/sec)
Downloading: 
https://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.commons.compiler/2.0.0/org.apache.sling.commons.compiler-2.0.0.jar
Downloading: 
https://repo.maven.apache.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar
Downloaded: 
https://repo.maven.apache.org/maven2/org/eclipse/core/resources/3.3.0-v20070604/resources-3.3.0-v20070604.jar
 (663 KB at 2619.6 KB/sec)
Downloaded: 
https://repo.maven.apache.org/maven2/org/apache/sling/org.apache.sling.commons.compiler/2.0.0/org.apache.sling.commons.compiler-2.0.0.jar
 (3833 KB at 3678.4 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ 
org.apache.sling.scripting.sightly ---
[INFO] Deleting 
/Users/radu/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine/target
...
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running 
org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerServiceTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.383 sec - in 
org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerServiceTest
Running 
org.apache.sling.scripting.sightly.impl.engine.runtime.RenderContextImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec - in 
org.apache.sling.scripting.sightly.impl.engine.runtime.RenderContextImplTest
Running org.apache.sling.scripting.sightly.impl.html.dom.HtmlParserTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in 
org.apache.sling.scripting.sightly.impl.html.dom.HtmlParserTest
Running org.apache.sling.scripting.sightly.impl.utils.PathInfoTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec - in 
org.apache.sling.scripting.sightly.impl.utils.PathInfoTest

Results :

Tests run: 16, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.11:check (default) @ 
org.apache.sling.scripting.sightly ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0
[INFO]
[INFO] --- maven-bundle-plugin:2.4.0:bundle (default-bundle) @ 
org.apache.sling.scripting.sightly ---
[INFO]
[INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) > generate-sources @ 
org.apache.sling.scripting.sightly >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-java) @ 
org.apache.sling.scripting.sightly ---
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run 
(set-bundle-required-execution-environment) @ 
org.apache.sling.scripting.sightly ---
[INFO] Executing tasks

main:
Setting Bundle-RequiredExecutionEnvironment=JavaSE-1.6 from sling.java.version=6
[INFO] Executed tasks
[INFO]
[INFO] --- antlr4-maven-plugin:4.1:antlr4 (default) @ 
org.apache.sling.scripting.sightly ---
[INFO] ANTLR 4: Processing source directory 
/Users/radu/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine/src/main/antlr4
[INFO] Processing grammar: 
org/apache/sling/scripting/sightly/impl/parser/expr/generated/SightlyLexer.g4
[INFO] Processing grammar: 
org/apache/sling/scripting/sightly/impl/parser/expr/generated/SightlyParser.g4
[INFO]
[INFO] --- build-helper-maven-plugin:1.8:add-source (add-antlr-source) @ 
org.apache.sling.scripting.sightly ---
[INFO] Source directory: 
/Users/radu/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine/src/main/antlr4
 added.
[INFO] Source directory: 
/Users/radu/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine/target/generated-sources/antlr4
 added.
[INFO]
[INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) < generate-sources @ 
org.apache.sling.scripting.sightly <<<
[INFO]
[INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ 
org.apache.sling.scripting.sightly ---
[INFO] Building jar: 
/Users/radu/workspace/adobe/code/sling-git-svn/contrib/scripting/sightly/engine/target/org.apache.sling.scripting.sightly-1.0.0-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-site-plugin:3.3:attach-descriptor (attach-descriptor) @ 
org.apache.sling.scripting.sightly ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
{noformat}

> org.apache.sling.scripting.sightly does not compile
> ---------------------------------------------------
>
>                 Key: SLING-4436
>                 URL: https://issues.apache.org/jira/browse/SLING-4436
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>    Affects Versions: Scripting Sightly Engine 1.0.0
>            Reporter: Konrad Windszus
>
> The current 1.0.0-SNAPSHOT version of the 
> {{org.apache.sling.scripting.sightly}} Maven module doesn't compile, as it 
> can't find the {{org.eclipse.core:resources:jar:3.4.0}} transitive dependency 
> included in {{org.apache.sling.commons.compiler:2.0.0}}.
> In order to reproduce, clean your local Maven repository and try to compile 
> the aforementioned module.
> The fix would be to increase that dependency to 
> {{org.apache.sling.commons.compiler:2.2.0}}. Compare with SLING-4379.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to