Zeeshan Rafique
Zeeshan Rafique

Reputation: 56

Package existing war in ear via maven

  1. I have a war file (binary - no source code) which I want to insert in my project
  2. My project is built into EAR file on Weblogic
  3. So, I want this external war file to be packaged within my project EAR and I can HIT this war file externally. IMPORTANT :
    1. I cannot deploy the war separately
    2. I cannot build the war file code within my project code
    3. I cannot add war as a dependency in my project pom.xml (It is not found by maven)

Upvotes: 0

Views: 65

Answers (1)

J Fabian Meier
J Fabian Meier

Reputation: 35805

Actually you can add it as dependency in your POM. But you need to install it first into your local repository, i.e. use mvn install:install-file to put it into your local repository.

Even better, if your company runs a Nexus or Artifactory, you can upload it there.

Upvotes: 1

Related Questions