New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem parsing cookie header causing yarn install to fail #607
Comments
Please update to latest frontend-maven-plugin. Does the error still occur? |
Yep, still happens with 1.4. |
This is happening to me as well:
This is how I have the plugin configured: <plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.4</version>
</plugin>
...
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<phase>generate-resources</phase>
</execution>
<execution>
<id>yarn install</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run install-offline</arguments>
</configuration>
</execution>
<execution>
<id>webpack build</id>
<goals>
<goal>webpack</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>-prod</arguments>
</configuration>
</execution>
</executions>
<configuration>
<nodeVersion>v4.8.3</nodeVersion>
<yarnVersion>v0.24.6</yarnVersion>
<failOnError>true</failOnError>
</configuration>
</plugin> How can we circumvent this issue? |
I guess I'm having the same issue with 1.6:
I'm running in IntelliJ on Windows 10. |
I think the warning is unrelated to the failure, since I came here looking for the warning but the build succeeds on my machine. |
I am noticing this too, with 1.9.1:
|
I experienced the same issue and the reason was that one repository from my package.json was set to private. |
My frontend build is failing with the following log:
[INFO] --- frontend-maven-plugin:1.2:install-node-and-yarn (install node and yarn) @ cdx-frontend ---
[INFO] Installing node version v6.2.2
[INFO] Unpacking /root/.m2/repository/com/github/eirslett/node/6.2.2/node-6.2.2-linux-x64.tar.gz into /usr/local/build/cdxwww/react-frontend/target/node/tmp
[INFO] Copying node binary from /usr/local/build/cdxwww/react-frontend/target/node/tmp/node-v6.2.2-linux-x64/bin/node to /usr/local/build/cdxwww/react-frontend/target/node/node
[INFO] Installed node locally.
[INFO] Installing Yarn version v0.16.1
[INFO] Downloading https://github.com/yarnpkg/yarn/releases/download/v0.16.1/yarn-v0.16.1.tar.gz to /root/.m2/repository/com/github/eirslett/yarn/0.16.1/yarn-0.16.1./yarn-v0.16.1.tar.gz
[INFO] No proxies configured
[INFO] No proxy was configured, downloading directly
May 19, 2017 9:18:33 AM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Tue, 19 May 2037 09:18:36 -0000; secure; HttpOnly". Invalid 'expires' attribute: Tue, 19 May 2037 09:18:36 -0000
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] cdx-parent ......................................... SUCCESS [ 2.076 s]
[INFO] cdx-frontend ....................................... FAILURE [ 40.378 s]
[INFO] cdxwww Webapp ...................................... SKIPPED
[INFO] Project Aggregator ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.055 s
[INFO] Finished at: 2017-05-19T09:18:36Z
[INFO] Final Memory: 15M/172M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.2:install-node-and-yarn (install node and yarn) on project cdx-frontend: Could not download Yarn: Could not download https://github.com/yarnpkg/yarn/releases/download/v0.16.1/yarn-v0.16.1.tar.gz: /root/.m2/repository/com/github/eirslett/yarn/0.16.1/yarn-0.16.1./yarn-v0.16.1.tar.gz (No such file or directory) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :cdx-frontend
Do you want to request a feature or report a bug?
Report a bug. I believe it may be possible to overcome this by setting a System property to be able to parse the latest format cookie headers.
What is the current behavior?
Failing due to being unable to parse the cookie header expiry coming from yarn's github.
If the current behavior is a bug, please provide the steps to reproduce.
Run install-node-and-yarn in maven.
What is the expected behavior?
Yarn should be installed
Please mention your frontend-maven-plugin and operating system version.
frontend-maven-plugin v1.2, OS is complex: Debian Jessie running as a Docker container inside Windows 10
The text was updated successfully, but these errors were encountered: