• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

How to run spring boot /maven project without compiling it

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

i need one info. I have maven project which I am starting in Intellij and it runs ok.
How can I run this project from command line? If I do "mvn spring:boot run" it download me everything and create again new clasess (wsdl links in pom file). I do not want that as wsdl files are not ok and I need evrytime to do some manually work on classes to get everything working.

I also tried to do "mvn package" to get jar files but this also generate new classes from wsdl files.


thank you
miha


 
Saloon Keeper
Posts: 13248
291
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could consider first using the repackage goal to generate an executable, and then launch that executable using the exec plugin.
 
Saloon Keeper
Posts: 24283
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once you've created a package with Maven for Spring Boot, it should exist as an executable JAR file in the project's /target directory. You should then be able to execute it directly from the command line without Maven using the java -jar target/jarname.jar command.
 
Marshal
Posts: 22445
121
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

miha zoubek wrote:If I do "mvn spring:boot run" it download me everything and create again new clasess (wsdl links in pom file). I do not want that as wsdl files are not ok and I need evrytime to do some manually work on classes to get everything working.


That should be your first focus. A mvn clean package command should always succeed without any manual steps. If the WSDLs are incorrect, then download them, tweak them, put them in your repository (e.g. in src/main/resources) and link to the workspace location: ${project.basedir}/src/....
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic