java - How to tell IntelliJ to use folder "web" instead of "webapp" for maven when building a war file? -
What am I doing:
- A new project with intelliases with the Maven module Create / Li>
- Add Framework support for this project and select: JSF.
- Go to pom.xml and add: Packaging: War .
- And I click in the MyWain window in Knowledge: Clean install.
Good build fails, because the web instead of the Meowen webpage directory. For the construction of the project
Therefore, if I change the name of the folder for Web to WebApp then it is OK
However, I want to know more about IntelliJ and maven, so I want to force the folder to use the web how can I do this properly
- Using the command line? IntelliJ means absolutely without invvolving?
- Using Intellij? Regards You can configure in the file.
& lt; Plugins & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven War Plugin & lt; / ArtifactId> & Lt; Configuration & gt; & Lt; WarSourceDirectory & gt; Web & lt; / WarSourceDirectory & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt; & Lt; / Plugins & gt;
You can find the documentation
If IntelliJ behaves as expected, then he should choose this new configuration.
- And I click in the MyWain window in Knowledge: Clean install.
Comments
Post a Comment