bodgeit测试平台
下载war安装包:https://code.google.com/archive/p/bodgeit/downloads
http://resources.infosecinstitute.com/the-bodgeit-store-part-1-1/
在编译 Red5 时,一般会生产2种包:
1,可以直接独立运行的安装包;
2,放到 tomcat 等容器中的发布包 war (依赖于maven war plugin );
先看 Red5 的 pom.xml
<defaultGoal>install</defaultGoal> <directory>${build.dir}</directory> <finalName>${finalName}</finalName> <resources> <resource> <directory>src/main/resources</directory> </resource> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
如果我们用 mvn -Dmaven.test.skip=true install,那么打包的内容就只有 class 和xml。
如果要生成可以直接运行的,要看到这里
mvn -Dmaven.test.skip=true package -P assemble 这样可以生产发布版<profile> <id>assemble</id> <build> <plugins> <plugin> <artifactId>maven-dependency-plugin</artifactId> <version>2.8</version> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/lib</outputDirectory> <includeScope>compile</includeScope> <excludeScope>test</excludeScope> <excludeTransitive>false</excludeTransitive> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.6</version> <configuration> <descriptors> <descriptor>src/main/assembly/server.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> <!-- this is used for inheritance merges --> <phase>package</phase> <!-- bind to the packaging phase --> <goals> <goal>single</goal> </goals> <configuration> <finalName>${project.artifactId}</finalName> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile>
要生产 war,先看 配置
<profile> <id>war</id> <build> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <configuration> <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes> </configuration> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <version>2.6</version> <configuration> <descriptors> <descriptor>src/main/assembly/war.xml</descriptor> </descriptors> </configuration> <executions> <execution> <id>make-assembly</id> <!-- this is used for inheritance merges --> <phase>package</phase> <!-- bind to the packaging phase --> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile>
mvn -Dmaven.test.skip=true package -P war 生成直接在 tomcat 可以运行的war.
MyEclipse10.7安装包、破解、破解后导出war包出错解决方法
本文链接:https://blog.csdn.net/gwx905133627/article/details/84648510
bodgeit测试平台
下载war安装包:https://code.google.com/archive/p/bodgeit/downloads
http://resources.infosecinstitute.com/the-bodgeit-store-part-1-1/
- 将JTM-2.5.7z解压到你电脑任何位置
- 将你的web程序打包成.war格式放到JTM-2.5\JTM\tomcat\webapps位置
- 双击JTM-2.5_bkill.com\JTM-2.5\JTM\JTM.bat
- 选择:1 - 启动Tomcat + MySQL,启动完成后dos窗口会自动关闭,再次双击JTM.bat,选择10,将mysql的root密码改为123456
- 使用sqlyog或其他mysql客户端连接mysql
![]()
- 将你的数据库示例和表、索引等等导入到该mysql里面
- 打开浏览器访问http://127.0.0.1:8080可以看见配置详情,如还能正确访问你的程序,表示已经ok了
- 最后压缩JTM-2.5文件成新的压缩包,就可以拿到其他电脑解压运行了
转载于:https://www.cnblogs.com/linying/p/9656567.html