|
22 | 22 | <artifactId>maven-dependency-plugin</artifactId>
|
23 | 23 | <version>3.1.1</version>
|
24 | 24 | <executions>
|
| 25 | + |
25 | 26 | <execution>
|
26 |
| - <id>unpack-server</id> |
| 27 | + <id>copy-server</id> |
27 | 28 | <phase>prepare-package</phase>
|
28 | 29 | <goals>
|
29 |
| - <goal>unpack</goal> |
| 30 | + <goal>copy</goal> |
30 | 31 | </goals>
|
31 | 32 | <configuration>
|
32 | 33 | <artifactItems>
|
|
40 | 41 | </artifactItems>
|
41 | 42 | <overWriteReleases>true</overWriteReleases>
|
42 | 43 | <overWriteSnapshots>true</overWriteSnapshots>
|
43 |
| - <outputDirectory>${project.build.directory}/../servers/spring-boot-language-server</outputDirectory> |
| 44 | + <outputDirectory>${project.basedir}/servers</outputDirectory> |
| 45 | + </configuration> |
| 46 | + </execution> |
| 47 | + |
| 48 | + <execution> |
| 49 | + <id>problem-types.json</id> |
| 50 | + <phase>prepare-package</phase> |
| 51 | + <goals> |
| 52 | + <goal>unpack</goal> |
| 53 | + </goals> |
| 54 | + <configuration> |
| 55 | + <artifactItems> |
| 56 | + <artifactItem> |
| 57 | + <groupId>org.springframework.ide.vscode</groupId> |
| 58 | + <artifactId>spring-boot-language-server</artifactId> |
| 59 | + <version>${project.version}</version> |
| 60 | + <outputDirectory>${project.basedir}/servers/spring-boot-language-server</outputDirectory> |
| 61 | + <includes>**/problem-types.json</includes> |
| 62 | + </artifactItem> |
| 63 | + </artifactItems> |
44 | 64 | </configuration>
|
45 | 65 | </execution>
|
| 66 | + |
46 | 67 | <execution>
|
47 | 68 | <id>xml-extension</id>
|
48 | 69 | <phase>prepare-package</phase>
|
|
67 | 88 | <stripVersion>true</stripVersion>
|
68 | 89 | <overWriteReleases>true</overWriteReleases>
|
69 | 90 | <overWriteSnapshots>true</overWriteSnapshots>
|
70 |
| - <outputDirectory>${project.build.directory}/../jars</outputDirectory> |
| 91 | + <outputDirectory>${project.basedir}/jars</outputDirectory> |
| 92 | + </configuration> |
| 93 | + </execution> |
| 94 | + </executions> |
| 95 | + </plugin> |
| 96 | + |
| 97 | + <plugin> |
| 98 | + <groupId>org.codehaus.mojo</groupId> |
| 99 | + <artifactId>exec-maven-plugin</artifactId> |
| 100 | + <version>3.3.0</version> |
| 101 | + <executions> |
| 102 | + <execution> |
| 103 | + <id>extract</id> |
| 104 | + <phase>prepare-package</phase> |
| 105 | + <configuration> |
| 106 | + <executable>java</executable> |
| 107 | + <arguments> |
| 108 | + <argument>-Djarmode=tools</argument> |
| 109 | + <argument>-jar</argument> |
| 110 | + <argument>${project.basedir}/servers/spring-boot-language-server-${project.version}-exec.jar</argument> |
| 111 | + <argument>extract</argument> |
| 112 | + <argument>--force</argument> |
| 113 | + <argument>--destination</argument> |
| 114 | + <argument>${project.basedir}/servers/spring-boot-language-server</argument> |
| 115 | + </arguments> |
| 116 | + </configuration> |
| 117 | + <goals> |
| 118 | + <goal>exec</goal> |
| 119 | + </goals> |
| 120 | + </execution> |
| 121 | + </executions> |
| 122 | + </plugin> |
| 123 | + |
| 124 | + <plugin> |
| 125 | + <groupId>org.apache.maven.plugins</groupId> |
| 126 | + <artifactId>maven-antrun-plugin</artifactId> |
| 127 | + <version>3.1.0</version> |
| 128 | + <executions> |
| 129 | + <execution> |
| 130 | + <phase>prepare-package</phase> |
| 131 | + <goals> |
| 132 | + <goal>run</goal> |
| 133 | + </goals> |
| 134 | + <configuration> |
| 135 | + <target> |
| 136 | + <delete> |
| 137 | + <fileset |
| 138 | + dir="${project.basedir}/servers" |
| 139 | + includes="spring-boot-language-server-${project.version}-exec.jar" /> |
| 140 | + </delete> |
| 141 | + </target> |
71 | 142 | </configuration>
|
72 | 143 | </execution>
|
73 | 144 | </executions>
|
|
0 commit comments