Skip to content

Commit a4c2a23

Browse files
committed
Modificacion vs plugin resources
1 parent 0f8bbc4 commit a4c2a23

File tree

1 file changed

+71
-50
lines changed

1 file changed

+71
-50
lines changed

pom.xml

Lines changed: 71 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
12
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
4-
5+
<repositories>
6+
<repository>
7+
<id>central</id>
8+
<url>https://repo.maven.apache.org/maven2/</url>
9+
</repository>
10+
</repositories>
11+
<pluginRepositories>
12+
<pluginRepository>
13+
<id>central</id>
14+
<url>https://repo.maven.apache.org/maven2</url>
15+
<releases>
16+
<enabled>true</enabled>
17+
</releases>
18+
<snapshots>
19+
<enabled>false</enabled>
20+
</snapshots>
21+
</pluginRepository>
22+
</pluginRepositories>
523
<groupId>com.example</groupId>
624
<artifactId>easy-notes</artifactId>
725
<version>1.0.0</version>
@@ -10,72 +28,75 @@
1028
<name>easy-notes</name>
1129
<description>Rest API for a Simple Note Taking Application</description>
1230

13-
31+
<parent>
32+
<groupId>org.springframework.boot</groupId>
33+
<artifactId>spring-boot-starter-parent</artifactId>
34+
<version>2.5.5</version>
35+
<relativePath/>
36+
</parent>
37+
1438
<properties>
1539
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1640
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1741
<java.version>11</java.version>
18-
<spring.boot.version>2.5.5</spring.boot.version>
1942
</properties>
2043

21-
<repositories>
22-
<repository>
23-
<id>spring-releases</id>
24-
<url>https://repo.spring.io/release</url>
25-
</repository>
26-
<repository>
27-
<id>central</id>
28-
<name>Central Repository</name>
29-
<url>https://repo.maven.apache.org/maven2</url>
30-
<layout>default</layout>
31-
<snapshots>
32-
<enabled>false</enabled>
33-
</snapshots>
34-
</repository>
35-
</repositories>
36-
3744
<dependencies>
38-
<!-- Tus dependencias -->
45+
<dependency>
46+
<groupId>org.springframework.boot</groupId>
47+
<artifactId>spring-boot-starter-data-jpa</artifactId>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.springframework.boot</groupId>
51+
<artifactId>spring-boot-starter-web</artifactId>
52+
</dependency>
53+
<dependency>
54+
<groupId>org.springframework.boot</groupId>
55+
<artifactId>spring-boot-starter-validation</artifactId>
56+
</dependency>
57+
<dependency>
58+
<groupId>org.springframework.boot</groupId>
59+
<artifactId>spring-boot-devtools</artifactId>
60+
<scope>runtime</scope>
61+
</dependency>
62+
<dependency>
63+
<groupId>mysql</groupId>
64+
<artifactId>mysql-connector-java</artifactId>
65+
<scope>runtime</scope>
66+
</dependency>
67+
<dependency>
68+
<groupId>org.springframework.boot</groupId>
69+
<artifactId>spring-boot-starter-test</artifactId>
70+
<scope>test</scope>
71+
</dependency>
3972
</dependencies>
4073

4174
<build>
4275
<plugins>
43-
<plugin>
76+
<plugin>
4477
<groupId>org.springframework.boot</groupId>
4578
<artifactId>spring-boot-maven-plugin</artifactId>
46-
<version>2.5.5</version>
47-
<configuration>
48-
<repositories>
49-
<repository>
50-
<id>central</id>
51-
<name>Central Repository</name>
52-
<url>https://repo.maven.apache.org/maven2</url>
53-
<layout>default</layout>
54-
<snapshots>
55-
<enabled>false</enabled>
56-
</snapshots>
57-
</repository>
58-
</repositories>
59-
</configuration>
6079
</plugin>
61-
<plugin>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-resources-plugin</artifactId>
83+
<version>3.1.0</version>
84+
85+
</plugin>
86+
<plugin>
6287
<groupId>org.apache.maven.plugins</groupId>
63-
<artifactId>maven-resources-plugin</artifactId>
64-
<version>3.2.0</version>
88+
<artifactId>maven-compiler-plugin</artifactId>
89+
<version>3.8.1</version>
6590
<configuration>
66-
<repositories>
67-
<repository>
68-
<id>central</id>
69-
<name>Central Repository</name>
70-
<url>https://repo.maven.apache.org/maven2</url>
71-
<layout>default</layout>
72-
<snapshots>
73-
<enabled>false</enabled>
74-
</snapshots>
75-
</repository>
76-
</repositories>
91+
<source>1.8</source>
92+
<target>1.8</target>
7793
</configuration>
78-
</plugin>
94+
</plugin>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-surefire-plugin</artifactId>
98+
<version>2.22.1</version>
99+
</plugin>
79100
</plugins>
80101
</build>
81102

0 commit comments

Comments
 (0)