java - How to tell IntelliJ to use folder "web" instead of "webapp" for maven when building a war file? -


What am I doing:

  1. A new project with intelliases with the Maven module Create / Li>
  2. Add Framework support for this project and select: JSF.
  3. Go to pom.xml and add: Packaging: War .
  4. 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.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -