<plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <encoding>utf-8</encoding>
                    <compilerArguments>
                        <extdirs>WebRoot\WEB-INF\lib</extdirs>
                    </compilerArguments>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <webResources>
                        <resource>
                            <directory>WebRoot</directory>         
                            <targetPath>/</targetPath>         
                            <includes>             
                                <include>**/*</include>         
                            </includes>
                        </resource>
                        <resource>
                            <directory>WebRoot/WEB-INF/lib</directory>         
                            <targetPath>WEB-INF/lib/</targetPath>         
                            <includes>             
                                <include>**/*.jar</include>         
                            </includes>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
        </plugins>

 

相关文章:

  • 2022-12-23
  • 2021-04-15
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2021-05-09
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2021-11-26
  • 2021-10-28
  • 2021-07-24
  • 2021-08-23
相关资源
相似解决方案