Browse Source

feat: init mvn project

master
QuentinN42 9 months ago
parent
commit
5be187e0aa
Signed by: number42 GPG Key ID: 2CD7D563712B3A50
  1. 1
      .gitignore
  2. 21
      pom.xml
  3. 14
      src/main/java/com/project/App.java

1
.gitignore

@ -23,3 +23,4 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
target/

21
pom.xml

@ -0,0 +1,21 @@
<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.project</groupId>
<artifactId>project</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>project</name>
<url>http://maven.apache.org</url>
<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
</dependencies>
</project>

14
src/main/java/com/project/App.java

@ -0,0 +1,14 @@
package com.project;
import org.apache.log4j.Logger;
public class App
{
static Logger log = Logger.getLogger(App.class.getName());
public static void main( String[] args )
{
log.info("Hello this is an info message");
System.out.println( "Hello World!" );
}
}
Loading…
Cancel
Save