java - How to generate an ear file from a maven-archetype-webapp artifact? -


I currently have a project in which Maven-Archer-type-webapp artifact was created. This is the default packaging war for the project.

Is it possible to include the Maven-ears-plugin in this webpage? Pom.xml generates an ear file that contains this project war? I tried, but the war file was not embedded in the generated file. Everything in it except the war file.

I have read many Maven related articles, and possibly I can use Maven -Art-Type -J2-Simple Artifact. However, I refuse for two reasons for this reason: -

  • This artifact uses iJB and all the additional features that I do not use. This shows my project bloated.
  • Second, it seems that before I can create ear file, I must first install the web module in the repository. Is this the preferred way of creating an ear file?

How do I create an ear file containing the palm of my webpage? What is a war file using XML-Maven-ears-plugin? If this method is not possible, then what is the preferred method?

I'm sorry, if my questions seem a little novice, then I realized that I'm too much to know about Maven.

Many thanks.

Maven ears plugin assumes that any war is a separate project, so you need two projects Plus A basic project is a function of how Mewen packaging is done. Each project produces an artificiality, there are ways around it, but Maven will punish you for your sins. Some details go on this subject.


Comments