感激开源,jeewx 是一款开源免费的微信运营平台。地址是:https://gitee.com/jeecg/jeewx
由于maven配置,点击直接启动。但是我想要war包怎么办呐?
接下来开始改造。
- 修改start.bat
#新增命令
call mvn clean compile package -Dmaven.test.skip=true -P base-build
#call mvn tomcat:run #这里注释掉
- 修改h5huodong\P3-Web\pom.xml
配置编码防止乱码
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
增加war包配置
<profiles>
<profile>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<id>base-build</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<webResources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<targetPath>WEB-INF/classes</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>