Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 98f25b8a4036d0b54a64487635327f77256c3c84 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<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.eclipse.m2e</groupId>
		<artifactId>m2e-core</artifactId>
		<version>1.16.0-SNAPSHOT</version>
	</parent>

	<artifactId>org.eclipse.m2e.editor.lemminx</artifactId>
	<packaging>eclipse-plugin</packaging>

	<dependencies>
		<dependency>
			<groupId>org.apache.maven.indexer</groupId>
			<artifactId>indexer-core</artifactId>
			<version>6.0.0</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<artifactId>maven-clean-plugin</artifactId>
				<configuration>
					<filesets>
						<fileset>
							<directory>${basedir}</directory>
							<includes>
								<include>lemminx-maven*.jar</include>
								<include>indexer-jars/*.jar</include>
							</includes>
						</fileset>
					</filesets>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>get-lemminx-maven</id>
						<phase>generate-resources</phase>
						<goals>
							<goal>copy</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<!-- This groupId/artifactId combination seems erroneous on GitHub Maven repos -->
									<groupId>org.eclipse.lemminx</groupId>
									<artifactId>lemminx-maven</artifactId>
									<version>0.0.1</version>
									<outputDirectory>${basedir}</outputDirectory>
									<destFileName>lemminx-maven.jar</destFileName>
									<!-- Edit forceQualifierUpdate.txt to force usage of newer SNAPSHOT, otherwise
									Git timestamp qualifier + Baseline replacement will ignore the change -->
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
						<goals><goal>single</goal></goals>
						<phase>generate-sources</phase>
						<configuration>
							<outputDirectory>${basedir}</outputDirectory>
							<attach>false</attach>
							<formats><format>dir</format></formats>
							<descriptors><descriptor>build-indexer-jars.xml</descriptor></descriptors>
							<finalName>indexer-jars</finalName>
							<appendAssemblyId>false</appendAssemblyId>
							<classifier></classifier>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<repositories>
		<repository>
			<id>lemminx-maven</id>
			<url>https://repo.eclipse.org/content/repositories/lemminx/</url>
			<snapshots><enabled>true</enabled></snapshots>
			<releases><enabled>true</enabled></releases>
		</repository>
	</repositories>
</project>

Back to the top