my-library ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ └── mylibrary │ │ │ └── MyLibrary.java │ │ └── resources │ └── test │ ├── java │ │ └── com │ │ └── mylibrary │ │ └── MyLibraryTest.java │ └── resources └── pom.xml package com.mylibrary; public class MyLibrary { public static void greet() { System.out.println("Hello, World!"); } } package com.mylibrary; import org.junit.Test; public class MyLibraryTest { @Test public void testGreet() { MyLibrary.greet(); } } <build> <plugins> <plugin> <groupId>com.scalop-framework</groupId> <artifactId>scalop-maven-plugin</artifactId> <version>1.0.0</version> <configuration> <packageName>com.mylibrary</packageName> <testPackageName>com.mylibrary</testPackageName> </configuration> <executions> <execution> <goals> <goal>test</goal> <goal>deploy</goal> </goals> </execution> </executions> </plugin> </plugins> </build>


上一篇:
下一篇:
切换中文