This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Maven Setup  RSS feed

 
Mike London
Ranch Hand
Posts: 1476
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a simple "SparkJava" web service today using Maven.

When I created the project, I used the simple Maven setup from Intellij.

Yet, although that simple Maven setup choice worked fine to run the service within Intelij, it didn't include the required Maven piece to do the executable jar.

My question, then, is whether there is a standard Maven type project in Intellij that will let me get an executable jar using the package goal.

I ended up posting questions and then manually adding a <plugin> section to the pom.xml.

Look forward to any suggestions.

- mike
 
Knute Snortum
Sheriff
Posts: 4073
112
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think your best bet is to find or create a Maven archetype like this and use that to build your project.
 
Mike London
Ranch Hand
Posts: 1476
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Knute Snortum wrote:I think your best bet is to find or create a Maven archetype like this and use that to build your project.


Thanks very much. It doesn't seem that Intellij 2016 has this basic archetype unless it's assumed in one of the others, like web app.

With SpringBoot, all it takes is the @SpringBootApplication and you're good.

Thanks again.

- mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!