forked from flyway/flyway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
110 lines (107 loc) · 4.6 KB
/
pom.xml
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
107
108
109
110
<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>
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>0-SNAPSHOT</version>
</parent>
<artifactId>flyway-sbt</artifactId>
<version>0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://github.com/flyway/flyway/blob/master/LICENSE.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<properties>
<sbtVersion>0.13</sbtVersion>
<scalaVersion>2.10</scalaVersion>
<sbtArtifactDir>${project.build.directory}/scala-${scalaVersion}/sbt-${sbtVersion}</sbtArtifactDir>
</properties>
<dependencies>
<!-- Add dependency to force correct module build order -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>flyway-core</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-license</id>
<goals>
<goal>copy-resources</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<resources>
<resource>
<directory>..</directory>
<includes>
<include>LICENSE.txt</include>
<include>README.txt</include>
</includes>
</resource>
</resources>
<outputDirectory>${project.build.directory}/scala-${scalaVersion}/sbt-${sbtVersion}/classes/META-INF</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>java</executable>
<commandlineArgs>-Xmx512M -XX:MaxPermSize=256M -jar sbt-launch.jar +publish-local</commandlineArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>${sbtArtifactDir}/flyway-sbt-${project.version}.jar</file>
<type>jar</type>
</artifact>
<artifact>
<file>${sbtArtifactDir}/flyway-sbt-${project.version}-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
<artifact>
<file>${sbtArtifactDir}/flyway-sbt-${project.version}-javadoc.jar</file>
<type>jar</type>
<classifier>javadoc</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>