# JavaPorter **Repository Path**: wzzc-dev/javaporter ## Basic Information - **Project Name**: JavaPorter - **Description**: java 工程 打包工具,打包为 rpm 格式 - **Primary Language**: Java - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-03-15 - **Last Updated**: 2022-08-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # JavaPorter #### 介绍 Java RPM 打包软件 pom.xml generate spec 为 java 项目提供的 rpm 打包工具(简化打包操作,便捷生成 spec 文件) 版本 1.0.0 #### 安装教程 1. python3 setup.py install #### Preparation Install below software before using this tool gcc gdb libstdc++-devel python3-cffi pip3 install lxml #### 使用说明 1. 命令行 ```shell javaporter -h javaporter create -p "./" # pom文件所在文件夹 javaporter create -g org/aesh -a aesh -n aesh -v 2.6 # javaporter -g -a -n -v name version javaporter create -g com/github/lemfi/kest -a json -n json -v 0.0.10 ## feat -o output file javaporter create -p data/aesh/aesh-0.66.8/ -o data/aesh.spec ## javaporter -o ## feat -b build rpm package javaporter create -b -p data/aesh/aesh-0.66.8/ ## 直接从源文件构建RPM软件包 ## TODO javaporter create -B -p data/aesh/aesh-0.66.8/ ## 直接从源文件构建并安装RPM软件包 ``` 2. py文件导入 ```python from parsing import parsing pom = parsing.get_requires("./") print(pom) print(pom.get_build_requires()) print(pom.get_dependencies_rpm()) ```` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技