diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-16 14:17:21 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-16 14:17:21 -0600 |
| commit | 3fff9f9b83e201b07863baaef390a244909f993f (patch) | |
| tree | f891729c71cabd6c8293a66965815b4b65a20f8c | |
initial commit
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | pom.xml | 18 | ||||
| -rw-r--r-- | src/main/java/com/mycompany/mydepartment/App.java | 13 | ||||
| -rw-r--r-- | src/test/java/com/mycompany/mydepartment/AppTest.java | 38 |
4 files changed, 77 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..8cefa60 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Example private maven repo + +* https://docs.gitlab.com/ee/user/packages/maven_repository/index.html + +```bash +mvn archetype:generate -DgroupId=com.mycompany.mydepartment -DartifactId=my-project -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false +``` + @@ -0,0 +1,18 @@ +<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/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <groupId>com.mycompany.mydepartment</groupId> + <artifactId>my-project</artifactId> + <packaging>jar</packaging> + <version>1.0-SNAPSHOT</version> + <name>my-project</name> + <url>http://maven.apache.org</url> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> diff --git a/src/main/java/com/mycompany/mydepartment/App.java b/src/main/java/com/mycompany/mydepartment/App.java new file mode 100644 index 0000000..e6aeeb8 --- /dev/null +++ b/src/main/java/com/mycompany/mydepartment/App.java @@ -0,0 +1,13 @@ +package com.mycompany.mydepartment; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/src/test/java/com/mycompany/mydepartment/AppTest.java b/src/test/java/com/mycompany/mydepartment/AppTest.java new file mode 100644 index 0000000..aef8aa8 --- /dev/null +++ b/src/test/java/com/mycompany/mydepartment/AppTest.java @@ -0,0 +1,38 @@ +package com.mycompany.mydepartment; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; + +/** + * Unit test for simple App. + */ +public class AppTest + extends TestCase +{ + /** + * Create the test case + * + * @param testName name of the test case + */ + public AppTest( String testName ) + { + super( testName ); + } + + /** + * @return the suite of tests being tested + */ + public static Test suite() + { + return new TestSuite( AppTest.class ); + } + + /** + * Rigourous Test :-) + */ + public void testApp() + { + assertTrue( true ); + } +} |
