summaryrefslogtreecommitdiff
path: root/spring-framework/00-config/pom.xml
diff options
context:
space:
mode:
authorKamal Wickramanayake <kamal@inbox.lk>2026-04-25 21:53:33 +0530
committerKamal Wickramanayake <kamal@inbox.lk>2026-04-25 21:53:33 +0530
commit4afcff940551079617e8f4116e52bb0ef9df7fcc (patch)
treecbaed6a2a53c7d032bfafaa38b94e4fc607f3e76 /spring-framework/00-config/pom.xml
parent7b08f1155e1cb8bf263c3570eeb119970407a037 (diff)
Added Spring Framework sample code
Diffstat (limited to 'spring-framework/00-config/pom.xml')
-rw-r--r--spring-framework/00-config/pom.xml99
1 files changed, 99 insertions, 0 deletions
diff --git a/spring-framework/00-config/pom.xml b/spring-framework/00-config/pom.xml
new file mode 100644
index 0000000..be77ab6
--- /dev/null
+++ b/spring-framework/00-config/pom.xml
@@ -0,0 +1,99 @@
+<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.example.spring</groupId>
+ <artifactId>base-config</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+
+ <!-- Versions of dependencies -->
+ <springVersion>7.0.7</springVersion>
+ <aspectjVersion>1.9.25.1</aspectjVersion>
+
+ <commonsDBCP2Version>2.14.0</commonsDBCP2Version>
+ <mariadbClientVersion>3.5.8</mariadbClientVersion>
+ </properties>
+
+ <build>
+ <plugins>
+ <!-- Find the latest versions of plugins available by running "mvn versions:display-plugin-updates" -->
+ <!--
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>versions-maven-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <generateBackupPoms>false</generateBackupPoms>
+ </configuration>
+ </plugin>
+ -->
+
+ <!-- Set Java SE version -->
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.15.0</version>
+ <configuration>
+ <release>25</release>
+ </configuration>
+ </plugin>
+
+ <!-- Specify main class in generated Jar -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <version>3.5.0</version>
+ <configuration>
+ <archive>
+ <manifest>
+ <mainClass>com.example.spring.App</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+
+ <!-- Specify main class to execute from command line: mvn exec:java -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>3.6.3</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>java</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <mainClass>com.example.spring.App</mainClass>
+
+ <!-- We may prefer to execute as 'mvn exec:exec' to get the execution
+ happen in new JVM. -->
+ <!-- https://www.mojohaus.org/exec-maven-plugin/examples/example-exec-for-java-programs.html -->
+ <executable>java</executable>
+ <arguments>
+ <argument>-classpath</argument>
+ <!-- automatically creates the classpath using all project dependencies,
+ also adding the project build directory -->
+ <classpath />
+ <argument>com.example.spring.App</argument>
+ </arguments>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ <version>${springVersion}</version>
+ </dependency>
+ </dependencies>
+
+</project>