Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Got this error:Project build error: For artifact {org.springframework.boot:null:2.2.6.RELEASE:jar}:

 
Ranch Hand
Posts: 87
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Sheriff
Posts: 4870
317
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the full text of the error you get?
 
martin codey
Ranch Hand
Posts: 87
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Project build error: For artifact {org.springframework.boot:null:2.2.6.RELEASE:jar}: The
artifactId cannot be empty.

Also following this tutorial: Baeldung
 
Tim Cooke
Sheriff
Posts: 4870
317
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have placeholders for multiple properties that you have not defined in the properties section.
 
martin codey
Ranch Hand
Posts: 87
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean I should do something like this


And how do i know what version should I use?
 
Saloon Keeper
Posts: 12165
258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you start a new project, usually you use the latest. You can find it in the Spring user guide or on Maven Central.

If you're using NetBeans you can use auto-complete inside the version element and it will give a list of versions it downloaded from the available repositories.
 
Sheriff
Posts: 21974
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

martin codey wrote:Do you mean I should do something like this


And how do i know what version should I use?


You should drop them all. Your parent POM is the spring-boot-starter-parent. This defines all the Spring, Spring Boot, Servlet and JSTL dependencies in its dependencyManagement section (indirectly). All you need to do is add the dependency using the groupId and artifactId, and omit the version completely.

I'm not sure this will solve the issue though, as the error shows that it's not the version that's undefined, but the artifactId.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic