• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 15510
363
  • 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: 27762
196
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.
 
Sheriff
Posts: 22783
131
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/....
 
reply
    Bookmark Topic Watch Topic
  • New Topic