diff options
author | Teddy Wing | 2023-04-23 16:11:14 +0200 |
---|---|---|
committer | Teddy Wing | 2023-04-23 16:11:14 +0200 |
commit | 99b8daaad15477fc6ea3e893edc3840751208ab4 (patch) | |
tree | ce6430ab17c4db9a0e09fc4200f7f8bf7b447221 | |
parent | 448321902c1db9360e2d4c6c6edc1f0b1b087095 (diff) | |
download | pdf-form-replace-font2-99b8daaad15477fc6ea3e893edc3840751208ab4.tar.bz2 |
Generate a Maven project structure
I followed the Maven Getting Started
(https://maven.apache.org/guides/getting-started/index.html) guide to
set up a project structure so I could use it to manage dependencies. I
picked the 'maven-archetype-simple' archetype
(https://maven.apache.org/archetypes/maven-archetype-simple/).
This code was generated with the following command and interactive
prompts:
$ mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-simple -DarchetypeVersion=1.4
Define value for property 'groupId': com.teddywing.pdf-form-replace-font2
Define value for property 'artifactId': pdf-form-replace-font2
Define value for property 'version' 1.0-SNAPSHOT: : 0.0.1-SNAPSHOT
Define value for property 'package' com.teddywing.pdf-form-replace-font2: :
Confirm properties configuration:
groupId: com.teddywing.pdf-form-replace-font2
artifactId: pdf-form-replace-font2
version: 0.0.1-SNAPSHOT
package: com.teddywing.pdf-form-replace-font2
Y: :
-rw-r--r-- | pom.xml | 81 | ||||
-rw-r--r-- | src/main/java/com/teddywing/pdf-form-replace-font2/App.java | 13 | ||||
-rw-r--r-- | src/site/site.xml | 26 | ||||
-rw-r--r-- | src/test/java/com/teddywing/pdf-form-replace-font2/AppTest.java | 38 |
4 files changed, 158 insertions, 0 deletions
@@ -0,0 +1,81 @@ +<?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>com.teddywing.pdf-form-replace-font2</groupId> + <artifactId>pdf-form-replace-font2</artifactId> + <version>0.0.1-SNAPSHOT</version> + + <name>pdf-form-replace-font2</name> + <description>A simple pdf-form-replace-font2.</description> + <!-- FIXME change it to the project's website --> + <url>http://www.example.com</url> + + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + <maven.compiler.source>1.7</maven.compiler.source> + <maven.compiler.target>1.7</maven.compiler.target> + </properties> + + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + </dependency> + </dependencies> + + <build> + <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> + <plugins> + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>3.1.0</version> + </plugin> + <plugin> + <artifactId>maven-site-plugin</artifactId> + <version>3.7.1</version> + </plugin> + <plugin> + <artifactId>maven-project-info-reports-plugin</artifactId> + <version>3.0.0</version> + </plugin> + <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging --> + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>3.0.2</version> + </plugin> + <plugin> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.0</version> + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.22.1</version> + </plugin> + <plugin> + <artifactId>maven-jar-plugin</artifactId> + <version>3.0.2</version> + </plugin> + <plugin> + <artifactId>maven-install-plugin</artifactId> + <version>2.5.2</version> + </plugin> + <plugin> + <artifactId>maven-deploy-plugin</artifactId> + <version>2.8.2</version> + </plugin> + </plugins> + </pluginManagement> + </build> + + <reporting> + <plugins> + <plugin> + <artifactId>maven-project-info-reports-plugin</artifactId> + </plugin> + </plugins> + </reporting> +</project> diff --git a/src/main/java/com/teddywing/pdf-form-replace-font2/App.java b/src/main/java/com/teddywing/pdf-form-replace-font2/App.java new file mode 100644 index 0000000..3c816b8 --- /dev/null +++ b/src/main/java/com/teddywing/pdf-form-replace-font2/App.java @@ -0,0 +1,13 @@ +package com.teddywing.pdf-form-replace-font2; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/src/site/site.xml b/src/site/site.xml new file mode 100644 index 0000000..abe9f05 --- /dev/null +++ b/src/site/site.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project name="pdf-form-replace-font2" xmlns="http://maven.apache.org/DECORATION/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 http://maven.apache.org/xsd/decoration-1.8.0.xsd"> + <bannerLeft> + <name>pdf-form-replace-font2</name> + <src>https://maven.apache.org/images/apache-maven-project.png</src> + <href>https://www.apache.org/</href> + </bannerLeft> + + <bannerRight> + <src>https://maven.apache.org/images/maven-logo-black-on-white.png</src> + <href>https://maven.apache.org/</href> + </bannerRight> + + <skin> + <groupId>org.apache.maven.skins</groupId> + <artifactId>maven-fluido-skin</artifactId> + <version>1.7</version> + </skin> + + <body> + <menu ref="parent" /> + <menu ref="reports" /> + </body> +</project>
\ No newline at end of file diff --git a/src/test/java/com/teddywing/pdf-form-replace-font2/AppTest.java b/src/test/java/com/teddywing/pdf-form-replace-font2/AppTest.java new file mode 100644 index 0000000..f87d6c2 --- /dev/null +++ b/src/test/java/com/teddywing/pdf-form-replace-font2/AppTest.java @@ -0,0 +1,38 @@ +package com.teddywing.pdf-form-replace-font2; + +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 ); + } +} |