Jurgen9
(Jürgen Unfried)
September 10, 2019, 8:24am
1
Hi,
I face a very strange issue at office when I try to start a new project via the starter.
Vaadin: 14.0.3
NodeJs: 10.16.3
npm: 6.11.3
Eclipse: 2019-06 (4.12.0)
IntelliJ: 2019.2.2 Community
I create a plain java servlet project and download the package, import it in the IDE (tried both, same problem). When I run maven install it starts and when executing prepare-frontend it just stops for 9min 30sec. After that it continues normally and starts up the server and it works.
Since it is IDE independent and started with Vaadin 14 i suspect it has to to with npm or Nodejs and our proxy.
For NPM I already set this proxy like this:
In IntelliJ a also had some debug output like this:
[IJ]
-1-ARTIFACT_RESOLVING-[IJ]
-path=-[IJ]
-artifactCoord=org.apache.httpcomponents:httpcore:jar:4.4.3-[IJ]
-error=.
Every time I install or run the application it will stop at a random articact and hold on for 9m30 then continues and starts the server.
ANY pointer to a possible solution is highly appreciated as I would like to demo a prototype in my company in order to get it used as I think it’s a great product - but 14.x drives me nuts.
thanks for any hints you can give me.
Juergen
vedran9
(vedran bauer)
September 23, 2019, 8:14am
2
Similar problem here as well.
I have downloaded all starters from vaadin, servlet, spring…
Every one of them gets stuck in goal prepare-frontend in Vaadin 14.x.x
**two consequently builds: **
[INFO]
simple ............................................. SUCCESS [ 0.226 s]
[INFO]
simple-backend ..................................... SUCCESS [ 4.646 s]
[INFO]
simple-ui .......................................... SUCCESS [09:40 min]
[INFO]
simple-it .......................................... SUCCESS [ 8.858 s]
[INFO]
--- maven-resources-plugin:2.6:resources (default-resources) @ simple-ui ---
[INFO]
Using 'UTF-8' encoding to copy filtered resources.
[INFO]
Copying 2 resources
[INFO]
[INFO]
--- vaadin-maven-plugin:14.0.4:prepare-frontend (default) @ simple-ui ---
[INFO]
Reactor Summary for simple 1.0-SNAPSHOT:
[INFO]
[INFO]
simple ............................................. SUCCESS [ 0.406 s]
[INFO]
simple-backend ..................................... SUCCESS [ 2.177 s]
[INFO]
simple-ui .......................................... SUCCESS [37:03 min]
[INFO]
simple-it .......................................... SUCCESS [ 19.699 s]
[INFO]
------------------------------------------------------------------------
[INFO]
BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
I am behind company proxy, so maybe there is some problem there.
I see no error or warning.
“I would like to demo a prototype in my company in order
to get it used as I think it’s a great product, but 14.x drives me nut.”
Same here, works at home but not at the company.
But currently is vaadin 14.x.x useless for me.
Nick44
(Nick Rapellas)
September 26, 2019, 1:59pm
3
Same thing here… Behind corporate proxy on 14.0.6.
[INFO]
------------------------------------------------------------------------
[INFO]
Reactor Summary for mytest 1.0-SNAPSHOT:
[INFO]
[INFO]
mytest ............................................... SUCCESS [ 0.491 s]
[INFO]
mytest-fe ............................................ SUCCESS [ 4.024 s]
[INFO]
mytest-backend ....................................... SUCCESS [ 0.499 s]
[INFO]
mytest-ui ............................................ SUCCESS **[10:01 min]
**
[INFO]
------------------------------------------------------------------------
[INFO]
BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO]
Total time: 10:07 min
[INFO]
Finished at: 2019-09-26T16:54:44+03:00
[INFO]
------------------------------------------------------------------------
Nick44
(Nick Rapellas)
October 8, 2019, 7:06am
4
Same thing happens on 14.0.8.
Anyone found a workaround/fix for that?
Jurgen9
(Jürgen Unfried)
October 10, 2019, 12:56pm
5
Dear Vaadin Team, would really be nice if you could help us out somehow - maybe an option to pre-package that stuff?
Afterall we all want to promote Vaadin but if it is too complicated to get running, I will not be able to convince anyone
Mark333
(Mark Stehr)
October 10, 2019, 2:30pm
6
In our company we are using a proxy, too. The proxy is configured via a configuration file ending with .pac.
With these settings i managed npm to work (fast):
> npm config set strict-ssl false
> npm config set https-proxy <your proxy here>
> npm config set proxy <your configuration url here>
I didn’t change the registry.
Maybe my settings help.
Mark
Nick44
(Nick Rapellas)
October 10, 2019, 3:14pm
7
In my company we setup the proxy manually (no .pac file) and I’ve already tried the ones you’ve said but same problem! (I’ve verified also with npm config get that values are set correctly).
I do see an error though:
[INFO]
--- maven-resources-plugin:2.6:resources (default-resources) @ starter14-ui ---
[INFO]
Using 'UTF-8' encoding to copy filtered resources.
[INFO]
Copying 2 resources
[INFO]
[INFO]
--- vaadin-maven-plugin:14.0.8:prepare-frontend (default) @ starter14-ui ---
[ERROR]
Command '[C:\Users\User\AppData\Roaming\npm\npm.cmd, -v]
' failed with exit code '1'
Although running the cmd natively works:
C:\>C:\Users\User\AppData\Roaming\npm\npm.cmd -v
6.11.3
FYI: The build works but the time it takes to compile is crazy (9 to 10 minutes just for the -ui)!
Stephan54
(Stephan Wack)
November 5, 2019, 4:23pm
8
Same thing happens on 14.0.10
prepare-frontend took 9:44 min
npm settings didn’t help
Nick44
(Nick Rapellas)
November 6, 2019, 1:03pm
9
Check this:
https://vaadin.com/forum/thread/17779813/17930518
It seems to solve the issue for me!!
[INFO]
Reactor Summary:
[INFO]
[INFO]
starter14 .......................................... SUCCESS [ 0.396 s]
[INFO]
starter14-backend .................................. SUCCESS [ 2.137 s]
[INFO]
starter14-ui ....................................... SUCCESS [ 8.791 s]
[INFO]
starter14-it ....................................... SUCCESS [ 4.709 s]
[INFO]
------------------------------------------------------------------------
[INFO]
BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO]
Total time: 16.411 s
[INFO]
Finished at: 2019-11-06T15:08:52+02:00
[INFO]
Final Memory: 22M/362M
[INFO]
------------------------------------------------------------------------
Jurgen9
(Jürgen Unfried)
November 6, 2019, 8:05pm
10
I will try this as soon as possible in the office but it sounds very promising. Thanks for linking!!
vedran9
(vedran bauer)
November 8, 2019, 2:44pm
11
Nick R.:
Check this:
https://vaadin.com/forum/thread/17779813/17930518
It seems to solve the issue for me!!
For me too! Great, thanks for posting.
Jurgen9
(Jürgen Unfried)
December 10, 2019, 8:55am
12
also fixed the issue for me… such a simple solution in the end