Skip to content

Commit a3e3c16

Browse files
committed
Fix failure on fetching the ESLint LS package.json file
Error: Failed to execute goal org.apache.maven.plugins:maven-scm-plugin:2.0.0-M2:checkout (fetch-eslint-ls-package.json) on project org.eclipse.wildwebdeveloper: Error found while cleaning up output directory base on excludes/includes configurations. Unable to delete file D:\a\wildwebdeveloper\wildwebdeveloper\org.eclipse.wildwebdeveloper\target\vscode-eslint-ls\extension\.git\objects\pack\pack-6cb8a8d36f90b73a38727f3ab60525b73319a8f4.idx Signed-off-by: Victor Rubezhny <[email protected]>
1 parent 629e8df commit a3e3c16

File tree

1 file changed

+31
-8
lines changed
  • org.eclipse.wildwebdeveloper

1 file changed

+31
-8
lines changed

org.eclipse.wildwebdeveloper/pom.xml

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,20 @@
3131
<plugin>
3232
<groupId>org.apache.maven.plugins</groupId>
3333
<artifactId>maven-scm-plugin</artifactId>
34-
<version>2.0.0-M2</version>
34+
<version>1.13.0</version>
3535
<executions>
3636
<execution>
3737
<id>fetch-eslint-ls-package.json</id>
3838
<goals>
3939
<goal>checkout</goal>
4040
</goals>
41-
<phase>generate-resources</phase>
41+
<phase>process-sources</phase>
4242
<configuration>
4343
<connectionUrl>scm:git:https://github.com/microsoft/vscode-eslint.git</connectionUrl>
4444
<scmVersionType>tag</scmVersionType>
4545
<scmVersion>release/2.2.2</scmVersion>
4646
<basedir>${project.build.directory}</basedir>
47-
<includes>server/package.json</includes>
48-
<checkoutDirectory>${project.build.directory}/vscode-eslint-ls/extension</checkoutDirectory>
47+
<checkoutDirectory>${project.build.directory}/vscode-eslint-ls-package-json/extension</checkoutDirectory>
4948
</configuration>
5049
</execution>
5150
</executions>
@@ -107,14 +106,38 @@
107106
</execution>
108107
</executions>
109108
</plugin>
109+
<plugin>
110+
<artifactId>maven-resources-plugin</artifactId>
111+
<version>3.0.2</version>
112+
<executions>
113+
<execution>
114+
<id>install-eslint-ls-package.json</id>
115+
<phase>process-resources</phase>
116+
<goals>
117+
<goal>copy-resources</goal>
118+
</goals>
119+
<configuration>
120+
<outputDirectory>${project.build.directory}/vscode-eslint-ls/extension/server</outputDirectory>
121+
<resources>
122+
<resource>
123+
<directory>${project.build.directory}/vscode-eslint-ls-package-json/extension/server</directory>
124+
<includes>
125+
<include>package.json</include>
126+
</includes>
127+
</resource>
128+
</resources>
129+
</configuration>
130+
</execution>
131+
</executions>
132+
</plugin>
110133
<plugin>
111134
<groupId>org.apache.maven.plugins</groupId>
112135
<artifactId>maven-antrun-plugin</artifactId>
113136
<version>3.1.0</version>
114137
<executions>
115138
<execution>
116139
<id>prepare-chrome-debug-adapter</id>
117-
<phase>generate-resources</phase>
140+
<phase>process-resources</phase>
118141
<goals>
119142
<goal>run</goal>
120143
</goals>
@@ -127,7 +150,7 @@
127150
</execution>
128151
<execution>
129152
<id>prepare-node-debug2</id>
130-
<phase>generate-resources</phase>
153+
<phase>process-resources</phase>
131154
<goals>
132155
<goal>run</goal>
133156
</goals>
@@ -150,7 +173,7 @@
150173
<goals>
151174
<goal>exec</goal>
152175
</goals>
153-
<phase>generate-resources</phase>
176+
<phase>compile</phase>
154177
<configuration>
155178
<executable>npm</executable>
156179
<arguments>
@@ -172,7 +195,7 @@
172195
<goals>
173196
<goal>exec</goal>
174197
</goals>
175-
<phase>generate-resources</phase>
198+
<phase>compile</phase>
176199
<configuration>
177200
<executable>npm</executable>
178201
<arguments>

0 commit comments

Comments
 (0)