• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
Ranch Hand
Posts: 90
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Marshal
Posts: 5746
349
IntelliJ IDE Python TypeScript Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the full text of the error you get?
 
martin codey
Ranch Hand
Posts: 90
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 5746
349
IntelliJ IDE Python TypeScript Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 90
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you mean I should do something like this


And how do i know what version should I use?
 
Bartender
Posts: 15737
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22818
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Let nothing stop you! Not even this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic