简体   繁体   中英

maven-war-plugin does not change .war default directory

I try to change default .war directory by using maven-war-plugin

<plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-war-plugin</artifactId>
      <version>3.2.2</version>
      <configuration>
        <warSourceDirectory>${project.basedir}/src</warSourceDirectory>
      </configuration>
</plugin>

But it does not work. In the sense of my .war creates in the defaul (target) directory. I tried to use , but with the same result. What am I do wrong?

You can use warSourceDirectory to configure additional directories to be packaged into the WAR file.


The outputDirectory property should do what you want to achieve:

The directory for the generated WAR.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM