primo-generator-mock-test
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>wiki.primo.generator</groupId> <artifactId>primo-generator-mock-test</artifactId> <version>1.0.1</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>wiki.primo.generator</groupId> <artifactId>primo-generator-mock-test</artifactId> <version>1.0.1</version> <packaging>pom</packaging> <modules> <module>primo-generator-mock-test-data</module> <module>primo-generator-mock-test-core</module> <module>primo-generator-mock-test-maven-plugin</module> <module>primo-generator-mock-test-jar</module> <module>primo-generator-mock-test-jacoco</module> <!-- <module>primo-generator-mock-test-demo</module>--> </modules> <description>自动生成mock测试代码插件,通过Maven插件配置,一键生成配置包/类的单元测试代码,极大减少开发写单元测试代码的时间,提高单元测试覆盖率</description> <properties> <qdox.version>2.0-M10</qdox.version> <freemarker.version>2.3.28</freemarker.version> <commons-lang3.version>3.8.1</commons-lang3.version> </properties> <dependencies> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>3.6.0</version> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.6</version> </dependency> </dependencies> <build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.vm</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.*</include> </includes> <filtering>false</filtering> </resource> </resources> <plugins> <!--编译插件使用Java8--> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <source>8</source> <target>8</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <version>3.5</version> </plugin> </plugins> </build> <!-- 在工程的pom.xml文件中,引入Sonatype官方的一个通用配置oss-parent,这样做的好处是很多pom.xml的发布配置不需要自己配置了 --> <parent> <groupId>org.sonatype.oss</groupId> <artifactId>oss-parent</artifactId> <version>7</version> </parent> <licenses> <license> <name>The Apache License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <scm> <tag>master</tag> <url>https://github.com/chenhaoxiang/primo</url> <connection>https://github.com/chenhaoxiang/primo.git</connection> <developerConnection>https://github.com/chenhaoxiang/primo</developerConnection> </scm> <developers> <developer> <name>chenhaoxiang</name> <email>uifuture@uifuture.com</email> <organization>uifuture</organization> <organizationUrl>https://chenhx.blog.csdn.net/</organizationUrl> </developer> </developers> <profiles> <profile> <id>sonatype-oss-release</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <!-- 使用1.5版本 --> <version>1.5</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.2.0</version> </plugin> </plugins> </build> </profile> </profiles> <!-- 配置远程发布到私服,mvn deploy ,不配置会出现 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project primo-generator-mybatisplus-maven-plugin: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project primo-generator-mybatisplus-maven-plugin: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter 异常 --> <distributionManagement> <snapshotRepository> <id>sonatype-oss-release</id> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> </snapshotRepository> <repository> <id>sonatype-oss-release</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> </project>