├── .classpath
├── .project
├── .settings
├── org.eclipse.core.resources.prefs
├── org.eclipse.jdt.core.prefs
└── org.eclipse.m2e.core.prefs
├── Dockerfile
├── Jenkinsfile
├── pom.xml
└── src
├── main
└── java
│ └── com
│ └── mt
│ └── sample
│ └── HelloWorld.java
└── test
└── java
└── com
└── mt
└── sample
└── test
└── HelloWorldTest.java
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | maven-stanalone-application
4 |
5 |
6 |
7 |
8 |
9 | org.eclipse.jdt.core.javabuilder
10 |
11 |
12 |
13 |
14 | org.eclipse.m2e.core.maven2Builder
15 |
16 |
17 |
18 |
19 |
20 | org.eclipse.jdt.core.javanature
21 | org.eclipse.m2e.core.maven2Nature
22 |
23 |
24 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.core.resources.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | encoding//src/main/java=UTF-8
3 | encoding//src/test/java=UTF-8
4 | encoding/=UTF-8
5 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.jdt.core.prefs:
--------------------------------------------------------------------------------
1 | eclipse.preferences.version=1
2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
3 | org.eclipse.jdt.core.compiler.compliance=1.5
4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5 | org.eclipse.jdt.core.compiler.source=1.5
6 |
--------------------------------------------------------------------------------
/.settings/org.eclipse.m2e.core.prefs:
--------------------------------------------------------------------------------
1 | activeProfiles=
2 | eclipse.preferences.version=1
3 | resolveWorkspaceProjects=true
4 | version=1
5 |
--------------------------------------------------------------------------------
/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM amazoncorretto:11-al2023-jdk
2 | WORKDIR /app
3 | COPY target/maven-standalone-application*.jar maven-standalone-application.jar
4 | CMD ["java","-jar","maven-standalone-application.jar"]
5 |
--------------------------------------------------------------------------------
/Jenkinsfile:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
3 | 4.0.0
4 |
5 | com.mt
6 | maven-standalone-application
7 | 0.0.1-SNAPSHOT
8 | jar
9 |
10 | maven-standalone-application
11 | http://mithuntechnologies.com
12 |
13 |
14 | Mithun Technologies
15 | http://mithuntechnologies.com/
16 |
17 |
18 | Maven Standalone Application
19 |
20 |
21 | http://35.154.242.68:9000/
22 | admin
23 | admin
24 | UTF-8
25 | 11
26 | 11
27 |
28 |
29 |
30 |
31 |
32 | junit
33 | junit
34 | 3.8.1
35 | test
36 |
37 |
38 |
39 |
40 |
43 |
57 |
58 |
59 |
60 |
61 | org.apache.maven.plugins
62 | maven-jar-plugin
63 | 3.1.0
64 |
65 |
66 |
67 | true
68 | lib/
69 | com.mt.sample.HelloWorld
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
--------------------------------------------------------------------------------
/src/main/java/com/mt/sample/HelloWorld.java:
--------------------------------------------------------------------------------
1 | package com.mt.sample;
2 |
3 | /**
4 | * Hello world!
5 | *
6 | */
7 | import java.util.Date;
8 |
9 | public class HelloWorld {
10 |
11 | public static void main(String[] args) {
12 | System.out.println("Hello Welcome to Maven Build Tool !! Today Date is: " + getLocalCurrentDate());
13 |
14 | }
15 |
16 | private static Date getLocalCurrentDate() {
17 | String m = "Mithun Technologies";
18 | return new Date();
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/test/java/com/mt/sample/test/HelloWorldTest.java:
--------------------------------------------------------------------------------
1 | package com.mt.sample.test;
2 |
3 | import junit.framework.Test;
4 | import junit.framework.TestCase;
5 | import junit.framework.TestSuite;
6 |
7 | /**
8 | * Unit test for HelloWorld.
9 | */
10 | public class HelloWorldTest
11 | extends TestCase
12 | {
13 | /**
14 | * Create the test case
15 | *
16 | * @param testName name of the test case
17 | */
18 | public HelloWorldTest( String testName )
19 | {
20 | super( testName );
21 | }
22 |
23 | /**
24 | * @return the suite of tests being tested
25 | */
26 | public static Test suite()
27 | {
28 | return new TestSuite( HelloWorldTest.class );
29 | }
30 |
31 | /**
32 | * Rigourous Test :-)
33 | */
34 | public void testApp()
35 | {
36 | assertTrue( true );
37 | }
38 | }
39 |
--------------------------------------------------------------------------------