question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2 JSLT build issues

See original GitHub issue

The project contains a pom.xml as well as a build.gradle.

The README.md file does not explicitly state which is the main build tool. There is but one clue, though.

Under Using the library it shows how to include JSLT into one’s project, by means of POM dependency. The other indirect clue, is that the gradle build cannot launch:

So, this is the smaller problem - which build tool is the main.

The second problem is that the tests are not run, neither on mvn test, let alone on mvn install.

Here’s the log of mvn test:

[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.schibsted.spt.data:jslt >---------------------
[INFO] Building jslt 0.1.11
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jslt ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/#########/workspace/java/jslt.git/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jslt ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jslt ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/#########/workspace/java/jslt.git/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jslt ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ jslt ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.371 s
[INFO] Finished at: 2020-12-14T09:20:20+01:00
[INFO] ------------------------------------------------------------------------

Mind the lines above BUILD SUCCESS:

...
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ jslt ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
...

This is a known problem when using JUnit w/ mvn 3.6 and above.

I do not have the option to downgrade.

I use JDK 11.0.9 on macOS 10.13.6. mvn version 3.6.3 gradle version 6.7.1

Which versions of the build tools are the lowest supported ?

gradle/wrapper/gradle-wrapper.properties pulls in version 4.10.3 from December 2018.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
larsgacommented, Dec 24, 2020

Great. Closing the issue, then.

0reactions
catullcommented, Dec 24, 2020

./gradlew jar works, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSLT Build · Discussion #201 · schibsted/jslt - GitHub
Consider using a lookahead of 2 or more for nested expansion. File "TokenMgrError.java" does not exist. Will create one. File "ParseException.java" does not ......
Read more >
JSTL Tutorial, JSTL Tags Example - DigitalOcean
JSTL is the standard tag library that provides tags to control the JSP page behavior. JSTL tags can be used for iteration and...
Read more >
Ask Question - Stack Overflow
This is a pretty common mistake among Tomcat users. The problem with Tomcat is that it does not offer JSTL out the box...
Read more >
JSLT Language Support - IntelliJ IDEs Plugin | Marketplace
Language Support for JSLT, a complete query and transformation language for JSON ... such as IntelliJ IDEA, CLion, PyCharm, or other IntelliJ-based IDEs;...
Read more >
jakarta.servlet.jsp.jstl-api : 2.0.0 - Maven Central
Home page, https://projects.eclipse.org/projects/ee4j.jstl. Source code, https://github.com/eclipse-ee4j/jstl-api. Developers ... Bazel bazel.build.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found