配置 vaadin-maven-plugin 代理
Configure vaadin-maven-plugin proxy
我尝试使用 vaadin-maven-plugin 在 pxoxy 后面制作一个包 jar。
Maven 调整了使用来自 settings.xml 的代理。但是当我 运行 打包目标 a 有下一条消息时:
[INFO] 未配置代理
[INFO]没有配置代理,直接下载
完整日志:
[INFO] --- vaadin-maven-plugin:11.0.0:package-for-production (default) @ front ---
[WARNING] The translated URL 'frontend://bower_components/vaadin-upload/theme/lumo/vaadin-upload-file.html' has no corresponding file on the filesystem, the file is addressed by path='/home/k/Documents/Projects/front/target/frontend/bower_components/vaadin-upload/theme/lumo/vaadin-upload-file.html'
[INFO] Installing required frontend tools to '/home/k/Documents/Projects/front/target'
[INFO] Installing node version v8.11.1
[INFO] Downloading https://nodejs.org/dist/v8.11.1/node-v8.11.1-linux-x64.tar.gz to /home/k/Documents/Projects/front/target/cache/node-v8.11.1-linux-x64.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
[INFO] Unpacking /home/k/Documents/Projects/front/target/cache/node-v8.11.1-linux-x64.tar.gz into /home/k/Documents/Projects/front/target/node/tmp
[INFO] Copying node binary from /home/k/Documents/Projects/front/target/node/tmp/node-v8.11.1-linux-x64/bin/node to /home/k/Documents/Projects/front/target/node/node
[INFO] Installed node locally.
[INFO] Installing Yarn version v1.6.0
[INFO] Downloading https://github.com/yarnpkg/yarn/releases/download/v1.6.0/yarn-v1.6.0.tar.gz to /home/k/Documents/Projects/front/target/cache/yarn-v1.6.0.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
окт 02, 2018 6:05:31 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: has_recent_activity=1; path=/; expires=Tue, 02 Oct 2018 12:05:31 -0000". Invalid 'expires' attribute: Tue, 02 Oct 2018 12:05:31 -0000
окт 02, 2018 6:05:31 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: _octo=GH1.1.1985639979.1538478331; domain=.github.com; path=/; expires=Fri, 02 Oct 2020 11:05:31 -0000". Invalid 'expires' attribute: Fri, 02 Oct 2020 11:05:31 -0000
окт 02, 2018 6:05:31 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Sat, 02 Oct 2038 11:05:31 -0000; secure; HttpOnly". Invalid 'expires' attribute: Sat, 02 Oct 2038 11:05:31 -0000
[INFO] Unpacking /home/k/Documents/Projects/front/target/cache/yarn-v1.6.0.tar.gz into /home/k/Documents/Projects/front/target/node/yarn
[INFO] Installed Yarn locally.
[INFO] Running 'yarn install' in /home/k/Documents/Projects/front/target
[INFO] yarn install v1.6.0
[INFO] [1/4] Resolving packages...
结果有误。如何配置插件以使用代理?
它似乎来自 NPM 安装,因为我在日志中看到了 NodeJS。
尝试在目录C:\Users\<Your User>
中添加一个.npmrc
文件
并添加一行
proxy=http://my_proxy:port
我尝试使用 vaadin-maven-plugin 在 pxoxy 后面制作一个包 jar。 Maven 调整了使用来自 settings.xml 的代理。但是当我 运行 打包目标 a 有下一条消息时:
[INFO] 未配置代理
[INFO]没有配置代理,直接下载
完整日志:
[INFO] --- vaadin-maven-plugin:11.0.0:package-for-production (default) @ front ---
[WARNING] The translated URL 'frontend://bower_components/vaadin-upload/theme/lumo/vaadin-upload-file.html' has no corresponding file on the filesystem, the file is addressed by path='/home/k/Documents/Projects/front/target/frontend/bower_components/vaadin-upload/theme/lumo/vaadin-upload-file.html'
[INFO] Installing required frontend tools to '/home/k/Documents/Projects/front/target'
[INFO] Installing node version v8.11.1
[INFO] Downloading https://nodejs.org/dist/v8.11.1/node-v8.11.1-linux-x64.tar.gz to /home/k/Documents/Projects/front/target/cache/node-v8.11.1-linux-x64.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
[INFO] Unpacking /home/k/Documents/Projects/front/target/cache/node-v8.11.1-linux-x64.tar.gz into /home/k/Documents/Projects/front/target/node/tmp
[INFO] Copying node binary from /home/k/Documents/Projects/front/target/node/tmp/node-v8.11.1-linux-x64/bin/node to /home/k/Documents/Projects/front/target/node/node
[INFO] Installed node locally.
[INFO] Installing Yarn version v1.6.0
[INFO] Downloading https://github.com/yarnpkg/yarn/releases/download/v1.6.0/yarn-v1.6.0.tar.gz to /home/k/Documents/Projects/front/target/cache/yarn-v1.6.0.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
окт 02, 2018 6:05:31 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: has_recent_activity=1; path=/; expires=Tue, 02 Oct 2018 12:05:31 -0000". Invalid 'expires' attribute: Tue, 02 Oct 2018 12:05:31 -0000
окт 02, 2018 6:05:31 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: _octo=GH1.1.1985639979.1538478331; domain=.github.com; path=/; expires=Fri, 02 Oct 2020 11:05:31 -0000". Invalid 'expires' attribute: Fri, 02 Oct 2020 11:05:31 -0000
окт 02, 2018 6:05:31 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Sat, 02 Oct 2038 11:05:31 -0000; secure; HttpOnly". Invalid 'expires' attribute: Sat, 02 Oct 2038 11:05:31 -0000
[INFO] Unpacking /home/k/Documents/Projects/front/target/cache/yarn-v1.6.0.tar.gz into /home/k/Documents/Projects/front/target/node/yarn
[INFO] Installed Yarn locally.
[INFO] Running 'yarn install' in /home/k/Documents/Projects/front/target
[INFO] yarn install v1.6.0
[INFO] [1/4] Resolving packages...
结果有误。如何配置插件以使用代理?
它似乎来自 NPM 安装,因为我在日志中看到了 NodeJS。
尝试在目录C:\Users\<Your User>
.npmrc
文件
并添加一行
proxy=http://my_proxy:port