Skip to content

Commit c6b037f

Browse files
build: add Maven pom.xml and configure project structure
- Add pom.xml for proper Java project detection - Configure VS Code Java runtime settings - Update .gitignore for Maven artifacts
1 parent 275d339 commit c6b037f

3 files changed

Lines changed: 54 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Thumbs.db
1111
.settings/
1212
bin/
1313
out/
14+
target/
15+
dependency-reduced-pom.xml
1416

1517
# Generated outputs (optional)
1618
*.log

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"java.configuration.runtimes": [
3+
{
4+
"name": "JavaSE-21",
5+
"path": "C:\\Program Files\\Eclipse Adoptium\\jdk-21.0.9.10-hotspot",
6+
"default": true
7+
}
8+
],
9+
"java.jdt.ls.java.home": "C:\\Program Files\\Eclipse Adoptium\\jdk-21.0.9.10-hotspot",
10+
"java.configuration.updateBuildConfiguration": "automatic"
11+
}

pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.hauser</groupId>
7+
<artifactId>file-statistics-processor</artifactId>
8+
<version>1.0.0</version>
9+
<packaging>jar</packaging>
10+
11+
<name>File Statistics Processor</name>
12+
13+
<properties>
14+
<maven.compiler.source>21</maven.compiler.source>
15+
<maven.compiler.target>21</maven.compiler.target>
16+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17+
</properties>
18+
19+
<build>
20+
<sourceDirectory>.</sourceDirectory>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-compiler-plugin</artifactId>
25+
<version>3.11.0</version>
26+
</plugin>
27+
<plugin>
28+
<groupId>org.apache.maven.plugins</groupId>
29+
<artifactId>maven-jar-plugin</artifactId>
30+
<version>3.3.0</version>
31+
<configuration>
32+
<archive>
33+
<manifest>
34+
<mainClass>FileStatisticsProcessor</mainClass>
35+
</manifest>
36+
</archive>
37+
</configuration>
38+
</plugin>
39+
</plugins>
40+
</build>
41+
</project>

0 commit comments

Comments
 (0)