Comments (5)
you might be using a new version of spring boot - with code that is based on old version of spring boot
or that you didn't import the spring boot libraries at all (use maven)
try creating a new spring project (using spring boot starter), and check out the maven dependencies on it. then go to your existing project and check if those spring boot dependencies are on it.
from spring-boot-intro.
Hi @cfaddict / All,
I'm getting this error in ECLIPSE IDE after importing as existing maven project in eclipse from the local repository that I cloned from this git.
I'm only posting the last part, instead of entire list of errors.
If needed I can also paste that here, or below.
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:55 min
[INFO] Finished at: 2018-12-01T20:05:19+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project crud-start: Could not resolve dependencies for project com.therealdanvega:crud-start:jar:0.0.1-SNAPSHOT: Could not transfer artifact org.aspectj:aspectjweaver:jar:1.8.7 from/to central (https://repo.maven.apache.org/maven2): /home/ashu/.m2/repository/org/aspectj/aspectjweaver/1.8.7/aether-90e8d34b-f3e4-4c28-8c47-708742180098-aspectjweaver-1.8.7.jar-in-progress (No such file or directory) -> [Help 1]
[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/DependencyResolutionException
from spring-boot-intro.
however, i can see that download sources and javadoc progress bar is showing now as 30% only.
At the time I ran this as maven build with goal spring-boot:run, it was even lesser.
So, I'll wait for sometime till it becomes 100 and try again !
from spring-boot-intro.
@cfaddict
So, in eclipse after 100% download of sources and java doc it is giving the following error:
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< com.therealdanvega:crud-start >--------------------
[INFO] Building crud-start 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.3.1.RELEASE:run (default-cli) > test-compile @ crud-start >>>
[WARNING] The POM for com.fasterxml:classmate:jar:1.1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[WARNING] The POM for org.thymeleaf:thymeleaf-spring4:jar:2.1.4.RELEASE is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ crud-start ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 10 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ crud-start ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 15 source files to /home/ashu/spring-boot-intro/crud/initial/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error reading /home/ashu/.m2/repository/org/aspectj/aspectjweaver/1.8.7/aspectjweaver-1.8.7.jar; invalid LOC header (bad signature)
[ERROR] error reading /home/ashu/.m2/repository/org/hibernate/hibernate-core/4.3.11.Final/hibernate-core-4.3.11.Final.jar; invalid LOC header (bad signature)
[ERROR] error reading /home/ashu/.m2/repository/org/codehaus/groovy/groovy/2.4.4/groovy-2.4.4.jar; invalid LOC header (bad signature)
[ERROR] /home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/service/AuthorService.java:[5,27] cannot find symbol
symbol: class boot
location: package org.springframework
[ERROR] /home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/service/AuthorService.java:[12,2] cannot find symbol
symbol: class Service
[ERROR] /home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/service/AuthorService.java:[17,10] cannot find symbol
symbol: class Autowired
location: class com.therealdanvega.service.AuthorService
[INFO] 6 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.940 s
[INFO] Finished at: 2018-12-01T20:13:55+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project crud-start: Compilation failure: Compilation failure:
[ERROR] error reading /home/ashu/.m2/repository/org/aspectj/aspectjweaver/1.8.7/aspectjweaver-1.8.7.jar; invalid LOC header (bad signature)
[ERROR] error reading /home/ashu/.m2/repository/org/hibernate/hibernate-core/4.3.11.Final/hibernate-core-4.3.11.Final.jar; invalid LOC header (bad signature)
[ERROR] error reading /home/ashu/.m2/repository/org/codehaus/groovy/groovy/2.4.4/groovy-2.4.4.jar; invalid LOC header (bad signature)
[ERROR] /home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/service/AuthorService.java:[5,27] cannot find symbol
[ERROR] symbol: class boot
[ERROR] location: package org.springframework
[ERROR] /home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/service/AuthorService.java:[12,2] cannot find symbol
[ERROR] symbol: class Service
[ERROR] /home/ashu/spring-boot-intro/crud/initial/src/main/java/com/therealdanvega/service/AuthorService.java:[17,10] cannot find symbol
[ERROR] symbol: class Autowired
[ERROR] location: class com.therealdanvega.service.AuthorService
[ERROR] -> [Help 1]
[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/MojoFailureException
Could you please help asap ?
Thanks and Regards,
Ashutosh Pathak
from spring-boot-intro.
The issue may be that you are missing the spring boot data jpa dependency, add that and see if the issue persists.
from spring-boot-intro.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot-intro.