-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
106 lines (101 loc) · 5.28 KB
/
Copy pathpom.xml
File metadata and controls
106 lines (101 loc) · 5.28 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<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.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<packaging>jar</packaging>
<version>1.15</version>
<name>my-app</name>
<url>http://maven.apache.org</url>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<flatten.plugin.version>1.1.0</flatten.plugin.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- Build an executable JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.mycompany.app.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>${flatten.plugin.version}</version>
<executions>
<!-- enable flattening -->
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>flatten.clean</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.amashchenko.maven.plugin</groupId>
<artifactId>gitflow-maven-plugin</artifactId>
<version>1.13.0</version>
<configuration>
<!-- optional configuration -->
<gitFlowConfig>
<productionBranch>master</productionBranch>
<developmentBranch>develop</developmentBranch>
<featureBranchPrefix>ST-</featureBranchPrefix>
<releaseBranchPrefix>release-</releaseBranchPrefix>
<hotfixBranchPrefix>hotfix-</hotfixBranchPrefix>
<supportBranchPrefix>support/</supportBranchPrefix>
<versionTagPrefix>MiApp</versionTagPrefix>
<origin>origin</origin>>
</gitFlowConfig>
<scmCommentPrefix>GitFLow step: </scmCommentPrefix>
<commitMessages>
<featureStartMessage>Start Update ${project.artifactId} versions ${project.version} for feature ${featureName} branch</featureStartMessage>
<featureFinishMessage>Finish Update ${project.artifactId} versions ${project.version} for development branch</featureFinishMessage>
<hotfixStartMessage>Update versions for hotfix</hotfixStartMessage>
<hotfixFinishMessage>Update for next development version</hotfixFinishMessage>
<hotfixVersionUpdateMessage>Update to hotfix version</hotfixVersionUpdateMessage>
<releaseStartMessage>Start Update ${project.artifactId} versions ${project.version} for release</releaseStartMessage>
<releaseFinishMessage>Finish Update ${project.artifactId} for next ${project.version} development version</releaseFinishMessage>
<releaseVersionUpdateMessage>Update for next development version</releaseVersionUpdateMessage>
</commitMessages>
<pushReleases>true</pushReleases> <!-- Si se activa permite a Jenkins automatizar los despligues -->
<noDeploy>false</noDeploy> <!--Evita despliegues desde local para que sea hecho por CI-->
<enableSshAgent>true</enableSshAgent> <!--Activa/Desactiva el push para origin usando la ssh key-->
<autoVersionSubmodules>false</autoVersionSubmodules> <!--Mantiene la versión de los submodulos como en el parent del pom-->
<pullDevelop>true</pullDevelop>
<pullMaster>true</pullMaster>
<squash>true</squash>
</configuration>
</plugin>
</plugins>
</build>
</project>