srpraneeth / springsscala Goto Github PK
View Code? Open in Web Editor NEWSample Projects for Creating Springs Web services in Scala
Home Page: https://dzone.com/articles/spring-web-services-with-scala
Sample Projects for Creating Springs Web services in Scala
Home Page: https://dzone.com/articles/spring-web-services-with-scala
Hello ,
I am trying to build this package getting below issue
Also m seeing
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-scala ---
[INFO] No sources to compile
[INFO]
[INFO] --- scala-maven-plugin:3.1.3:compile (default) @ spring-scala ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO]
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.413 s
[INFO] Finished at: 2018-06-03T14:48:30+05:30
[INFO] Final Memory: 42M/503M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project spring-scala: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: There was an error in the forked process
[ERROR] java.lang.NoClassDefFoundError: org/springScala/UserTests (wrong name: org/springscala/UserTests)
[ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
[ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
[ERROR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
[ERROR] at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.loadClass(DefaultScanResult.java:131)
[ERROR] at org.apache.maven.surefire.util.DefaultScanResult.applyFilter(DefaultScanResult.java:95)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.scanClassPath(JUnit4Provider.java:222)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:107)
Plz help us to resolve this issue
In pom I am getting the error.
Please help me to solve
Plugin execution is not covered by lifecycle configuration
compile testcompileCloned from master.
When executing "mvn spring-boot:run" I get error :
[ERROR] /home/david/scala/SpringsScala/src/main/scala/org/springscala/config/H2Config.scala:6: error: object h2 is not a member of package org [ERROR] import org.h2.server.web.WebServlet [ERROR] ^ [ERROR] /home/david/scala/SpringsScala/src/main/scala/org/springscala/config/H2Config.scala:13: error: not found: type WebServlet [ERROR] val registrationBean = new ServletRegistrationBean(new WebServlet)
A SO page refers to the answer which work for me :
https://stackoverflow.com/questions/38151447/cannot-import-org-h2-server-web-webservlet
With Answer "Shouldn't h2 be a compile (instead of runtime) dependency?"
I changed pom.xml as below diff and then project built and ran :
`
git diff
diff --git a/pom.xml b/pom.xml
index d1a5a57..f804187 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,7 +53,7 @@
com.h2database
h2
<scope>runtime</scope>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.