|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
3 | | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
4 | | - <modelVersion>4.0.0</modelVersion> |
5 | | - <groupId>lsp-java</groupId> |
6 | | - <artifactId>lsp-java</artifactId> |
7 | | - <version>1.0.0-SNAPSHOT</version> |
8 | | - <properties> |
9 | | - <root.install.dir>${user.home}/.emacs.d/eclipse.jdt.ls</root.install.dir> |
10 | | - </properties> |
11 | | - <packaging>pom</packaging> |
12 | | - <repositories> |
13 | | - <repository> |
14 | | - <releases> |
15 | | - <enabled>true</enabled> |
16 | | - </releases> |
17 | | - <snapshots> |
18 | | - <enabled>true</enabled> |
19 | | - </snapshots> |
20 | | - <id>codenvy-public-repo</id> |
21 | | - <name>codenvy public</name> |
22 | | - <url>https://maven.codenvycorp.com/content/groups/public/</url> |
23 | | - </repository> |
24 | | - </repositories> |
25 | | - <build> |
26 | | - <plugins> |
27 | | - <plugin> |
28 | | - <groupId>com.googlecode.maven-download-plugin</groupId> |
29 | | - <artifactId>download-maven-plugin</artifactId> |
30 | | - <version>1.3.0</version> |
31 | | - <executions> |
32 | | - <execution> |
33 | | - <phase>process-resources</phase> |
34 | | - <id>download-che</id> |
35 | | - <goals> |
36 | | - <goal>wget</goal> |
37 | | - </goals> |
38 | | - <configuration> |
39 | | - <url>${jdt.download.url}</url> |
40 | | - <outputFileName>jdt-language-server-latest.tar.gz</outputFileName> |
41 | | - <skipCache>true</skipCache> |
42 | | - <outputDirectory>${project.build.directory}</outputDirectory> |
43 | | - </configuration> |
44 | | - </execution> |
45 | | - <execution> |
46 | | - <phase>process-resources</phase> |
47 | | - <id>download-vscode</id> |
48 | | - <goals> |
49 | | - <goal>wget</goal> |
50 | | - </goals> |
51 | | - <configuration> |
52 | | - <url>https://github.com/emacs-lsp/lsp-java/releases/download/2.2/Pivotal.vscode-spring-boot-1.6.0.vsix</url> |
53 | | - <outputFileName>vscode-extension.zip</outputFileName> |
54 | | - <outputDirectory>${project.build.directory}</outputDirectory> |
55 | | - </configuration> |
56 | | - </execution> |
57 | | - </executions> |
58 | | - </plugin> |
59 | | - <plugin> |
60 | | - <groupId>org.apache.maven.plugins</groupId> |
61 | | - <artifactId>maven-antrun-plugin</artifactId> |
62 | | - <version>1.6</version> |
63 | | - <executions> |
64 | | - <execution> |
65 | | - <id>prepare</id> |
66 | | - <phase>process-resources</phase> |
67 | | - <configuration> |
68 | | - <tasks> |
69 | | - <untar src="${project.build.directory}/jdt-language-server-latest.tar.gz" compression="gzip" dest="${jdt.js.server.root}"/> |
70 | | - <unzip src="${project.build.directory}/vscode-extension.zip" dest="${project.build.directory}/vscode-extension-extracted"/> |
71 | | - </tasks> |
72 | | - </configuration> |
73 | | - <goals> |
74 | | - <goal>run</goal> |
75 | | - </goals> |
76 | | - </execution> |
77 | | - </executions> |
78 | | - </plugin> |
79 | | - <plugin> |
80 | | - <groupId>org.apache.maven.plugins</groupId> |
81 | | - <artifactId>maven-dependency-plugin</artifactId> |
82 | | - <version>3.1.1</version> |
83 | | - <executions> |
84 | | - <execution> |
85 | | - <id>copy</id> |
86 | | - <phase>package</phase> |
87 | | - <goals> |
88 | | - <goal>copy</goal> |
89 | | - </goals> |
90 | | - <configuration> |
91 | | - <artifactItems> |
92 | | - <artifactItem> |
93 | | - <groupId>com.microsoft.java</groupId> |
94 | | - <artifactId>com.microsoft.java.debug.plugin</artifactId> |
95 | | - <version>0.11.0</version> |
96 | | - <outputDirectory>${java.debug.root}</outputDirectory> |
97 | | - <destFileName>java.debug.plugin.jar</destFileName> |
98 | | - </artifactItem> |
99 | | - <artifactItem> |
100 | | - <groupId>org.junit.platform</groupId> |
101 | | - <artifactId>junit-platform-console-standalone</artifactId> |
102 | | - <version>1.3.0-M1</version> |
103 | | - <outputDirectory>${junit.runner.root}</outputDirectory> |
104 | | - <destFileName>${junit.runner.fileName}</destFileName> |
105 | | - </artifactItem> |
106 | | - </artifactItems> |
107 | | - </configuration> |
108 | | - </execution> |
109 | | - </executions> |
110 | | - </plugin> |
111 | | - <plugin> |
112 | | - <artifactId>maven-resources-plugin</artifactId> |
113 | | - <version>3.1.0</version> |
114 | | - <executions> |
115 | | - <execution> |
116 | | - <id>copy-boot-server</id> |
117 | | - <phase>package</phase> |
118 | | - <goals> |
119 | | - <goal>copy-resources</goal> |
120 | | - </goals> |
121 | | - <configuration> |
122 | | - <outputDirectory>${jdt.js.server.root}/boot-server/</outputDirectory> |
123 | | - <resources> |
124 | | - <resource> |
125 | | - <directory>${project.build.directory}/vscode-extension-extracted/extension/jars/</directory> |
126 | | - <includes> |
127 | | - <include>spring-boot-language-server-*.jar</include> |
128 | | - </includes> |
129 | | - </resource> |
130 | | - </resources> |
131 | | - </configuration> |
132 | | - </execution> |
133 | | - <execution> |
134 | | - <id>copy-bundles</id> |
135 | | - <phase>package</phase> |
136 | | - <goals> |
137 | | - <goal>copy-resources</goal> |
138 | | - </goals> |
139 | | - <configuration> |
140 | | - <outputDirectory>${jdt.js.server.root}/bundles/</outputDirectory> |
141 | | - <resources> |
142 | | - <resource> |
143 | | - <directory>${project.build.directory}/vscode-extension-extracted/extension/jars/</directory> |
144 | | - <includes> |
145 | | - <include>jdt-ls-extension.jar</include> |
146 | | - <include>jdt-ls-commons.jar</include> |
147 | | - </includes> |
148 | | - </resource> |
149 | | - </resources> |
150 | | - </configuration> |
151 | | - </execution> |
152 | | - </executions> |
153 | | - </plugin> |
154 | | - </plugins> |
155 | | - </build> |
| 2 | +<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"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>lsp-java</groupId> |
| 5 | + <artifactId>lsp-java</artifactId> |
| 6 | + <version>1.0.0-SNAPSHOT</version> |
| 7 | + <properties> |
| 8 | + <root.install.dir>${user.home}/.emacs.d/eclipse.jdt.ls</root.install.dir> |
| 9 | + </properties> |
| 10 | + <packaging>pom</packaging> |
| 11 | + <repositories> |
| 12 | + <repository> |
| 13 | + <releases> |
| 14 | + <enabled>true</enabled> |
| 15 | + </releases> |
| 16 | + <snapshots> |
| 17 | + <enabled>true</enabled> |
| 18 | + </snapshots> |
| 19 | + <id>codenvy-public-repo</id> |
| 20 | + <name>codenvy public</name> |
| 21 | + <url>https://maven.codenvycorp.com/content/groups/public/</url> |
| 22 | + </repository> |
| 23 | + </repositories> |
| 24 | + <build> |
| 25 | + <plugins> |
| 26 | + <plugin> |
| 27 | + <groupId>com.googlecode.maven-download-plugin</groupId> |
| 28 | + <artifactId>download-maven-plugin</artifactId> |
| 29 | + <version>1.3.0</version> |
| 30 | + <executions> |
| 31 | + <execution> |
| 32 | + <phase>process-resources</phase> |
| 33 | + <id>download-che</id> |
| 34 | + <goals> |
| 35 | + <goal>wget</goal> |
| 36 | + </goals> |
| 37 | + <configuration> |
| 38 | + <url>${jdt.download.url}</url> |
| 39 | + <outputFileName>jdt-language-server-latest.tar.gz</outputFileName> |
| 40 | + <skipCache>true</skipCache> |
| 41 | + <outputDirectory>${project.build.directory}</outputDirectory> |
| 42 | + </configuration> |
| 43 | + </execution> |
| 44 | + <execution> |
| 45 | + <phase>process-resources</phase> |
| 46 | + <id>download-vscode</id> |
| 47 | + <goals> |
| 48 | + <goal>wget</goal> |
| 49 | + </goals> |
| 50 | + <configuration> |
| 51 | + <url>https://github.com/emacs-lsp/lsp-java/releases/download/2.2/Pivotal.vscode-spring-boot-1.6.0.vsix</url> |
| 52 | + <outputFileName>vscode-extension.zip</outputFileName> |
| 53 | + <outputDirectory>${project.build.directory}</outputDirectory> |
| 54 | + </configuration> |
| 55 | + </execution> |
| 56 | + </executions> |
| 57 | + </plugin> |
| 58 | + <plugin> |
| 59 | + <groupId>org.apache.maven.plugins</groupId> |
| 60 | + <artifactId>maven-antrun-plugin</artifactId> |
| 61 | + <version>1.6</version> |
| 62 | + <executions> |
| 63 | + <execution> |
| 64 | + <id>prepare</id> |
| 65 | + <phase>process-resources</phase> |
| 66 | + <configuration> |
| 67 | + <tasks> |
| 68 | + <untar src="${project.build.directory}/jdt-language-server-latest.tar.gz" compression="gzip" dest="${jdt.js.server.root}" /> |
| 69 | + <unzip src="${project.build.directory}/vscode-extension.zip" dest="${project.build.directory}/vscode-extension-extracted" /> |
| 70 | + </tasks> |
| 71 | + </configuration> |
| 72 | + <goals> |
| 73 | + <goal>run</goal> |
| 74 | + </goals> |
| 75 | + </execution> |
| 76 | + </executions> |
| 77 | + </plugin> |
| 78 | + <plugin> |
| 79 | + <groupId>org.apache.maven.plugins</groupId> |
| 80 | + <artifactId>maven-dependency-plugin</artifactId> |
| 81 | + <version>3.1.1</version> |
| 82 | + <executions> |
| 83 | + <execution> |
| 84 | + <id>copy</id> |
| 85 | + <phase>package</phase> |
| 86 | + <goals> |
| 87 | + <goal>copy</goal> |
| 88 | + </goals> |
| 89 | + <configuration> |
| 90 | + <artifactItems> |
| 91 | + <artifactItem> |
| 92 | + <groupId>com.microsoft.java</groupId> |
| 93 | + <artifactId>com.microsoft.java.debug.plugin</artifactId> |
| 94 | + <version>0.11.0</version> |
| 95 | + <outputDirectory>${java.debug.root}</outputDirectory> |
| 96 | + <destFileName>java.debug.plugin.jar</destFileName> |
| 97 | + </artifactItem> |
| 98 | + <artifactItem> |
| 99 | + <groupId>org.junit.platform</groupId> |
| 100 | + <artifactId>junit-platform-console-standalone</artifactId> |
| 101 | + <version>1.3.0-M1</version> |
| 102 | + <outputDirectory>${junit.runner.root}</outputDirectory> |
| 103 | + <destFileName>${junit.runner.fileName}</destFileName> |
| 104 | + </artifactItem> |
| 105 | + </artifactItems> |
| 106 | + </configuration> |
| 107 | + </execution> |
| 108 | + </executions> |
| 109 | + </plugin> |
| 110 | + <plugin> |
| 111 | + <artifactId>maven-resources-plugin</artifactId> |
| 112 | + <version>3.1.0</version> |
| 113 | + <executions> |
| 114 | + <execution> |
| 115 | + <id>copy-boot-server</id> |
| 116 | + <phase>package</phase> |
| 117 | + <goals> |
| 118 | + <goal>copy-resources</goal> |
| 119 | + </goals> |
| 120 | + <configuration> |
| 121 | + <outputDirectory>${jdt.js.server.root}/boot-server/</outputDirectory> |
| 122 | + <resources> |
| 123 | + <resource> |
| 124 | + <directory>${project.build.directory}/vscode-extension-extracted/extension/jars/</directory> |
| 125 | + <includes> |
| 126 | + <include>spring-boot-language-server-*.jar</include> |
| 127 | + </includes> |
| 128 | + </resource> |
| 129 | + </resources> |
| 130 | + </configuration> |
| 131 | + </execution> |
| 132 | + <execution> |
| 133 | + <id>copy-bundles</id> |
| 134 | + <phase>package</phase> |
| 135 | + <goals> |
| 136 | + <goal>copy-resources</goal> |
| 137 | + </goals> |
| 138 | + <configuration> |
| 139 | + <outputDirectory>${jdt.js.server.root}/bundles/</outputDirectory> |
| 140 | + <resources> |
| 141 | + <resource> |
| 142 | + <directory>${project.build.directory}/vscode-extension-extracted/extension/jars/</directory> |
| 143 | + <includes> |
| 144 | + <include>jdt-ls-extension.jar</include> |
| 145 | + <include>jdt-ls-commons.jar</include> |
| 146 | + <include>org.reactivestreams.reactive-streams.jar</include> |
| 147 | + <include>io.projectreactor.reactor-core.jar</include> |
| 148 | + </includes> |
| 149 | + </resource> |
| 150 | + </resources> |
| 151 | + </configuration> |
| 152 | + </execution> |
| 153 | + </executions> |
| 154 | + </plugin> |
| 155 | + </plugins> |
| 156 | + </build> |
156 | 157 | </project> |
0 commit comments