0

I am facing one issue. I need to build a maven java spring application inside one VM. That VM is completely isolated and have no internet connectivity. Now to support build process , i places the repository folder from external sources(where this java application was building and executing perfectly) containing all required dependencies by this application , inside .m2 folder. So it looks like below

My VM
|- .m2
     |- reposirory , settings.xml

But problem is on giving command build process is failing, as its trying to download existing dependencies. Where exactly i am missing

KCS
  • 2,937
  • 4
  • 22
  • 32

1 Answers1

0

Working in offline mode

Try to Run the following command: mvn –o clean package

Rajkumar
  • 134
  • 2
  • Unknown lifecycle phase "–o". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, – KCS May 20 '20 at 10:59
  • @KCS Did you ran `mvn -o`? This message occurs when ran only this command – João Zarate May 20 '20 at 11:08
  • As @Rajkumar told you, run `mvn –o clean package` – João Zarate May 20 '20 at 11:09
  • its giving same error – KCS May 20 '20 at 11:22
  • Refer link -- https://stackoverflow.com/questions/13606794/maven-build-failure-when-calling-mvn-without-lifecycle-phase-or-goal/33290497 – Rajkumar May 20 '20 at 11:33