# swan-code-generator **Repository Path**: fswan/swan-code-generator ## Basic Information - **Project Name**: swan-code-generator - **Description**: This is a maven plugin used to generate java code conviniently. - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-03 - **Last Updated**: 2025-09-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # swan-code-generator #### Description This is a maven plugin used to generate java code conveniently. #### Installation 1. add plugin into java project with the following code in pom ```xml com.swan-pro code-maven-plugin 1.0.0 com.mysql.cj.jdbc.Driver jdbc:mysql://localhost:3306 root [password] [database] org.swan mysql mysql-connector-java 8.0.32 ``` 2. Call the help goal, more information will be shown. ```shell mvn clean swan-code-maven-plugin:help ``` #### Instructions 1. Generate POJO file from a simple data file (json format) You can add change template generate more file as you like, such as: Mybatis mapper, JPA entity bean, repository,service etc. 2. Generate data file that can generate POJO file from DataBase. 3. Clean generated java file. 4. Create config file, user can modify it to do more thing. 5. Help goal use to show more message.