Closed arabbani closed 6 years ago
How did you upgrade? Based on your .yo-rc.json
you are using npm
as the package manager so there should be an npmVersion
in your pom.xml (you can add yarnVersion
as a quick workaround).
The default was recently changed from yarn
to npm
so maybe you missed something in the upgrade. I couldn't reproduce this
I think this is the part that produces the error.
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<executions>
<execution>
<id>install node and yarn</id>
<goals>
<goal>install-node-and-yarn</goal>
</goals>
<configuration>
<nodeVersion>${node.version}</nodeVersion>
<yarnVersion>${yarn.version}</yarnVersion>
</configuration>
</execution>
<execution>
<id>webpack build dev</id>
<goals>
<goal>yarn</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<arguments>run webpack:build</arguments>
<yarnInheritsProxyConfigFromMaven>false</yarnInheritsProxyConfigFromMaven>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<warSourceDirectory>target/www/</warSourceDirectory>
<webResources>
<resource>
<directory>src/main/webapp</directory>
<includes>
<include>WEB-INF/**</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
When you have npm
as the clientPackageManager
, it should not reference yarnVersion
, see the sample-app for the correct config. You can copy that config to fix your issue.
I'm closing since it's not possible to generate that code with your .yo-rc.json
, it seems to be an issue with your upgrade process (jhipster upgrade
works as expected). Feel free to reopen if you find a way to reproduce the issue.
It was indeed a problem with the upgrade process brother. What i did was that i had changed packageManager to 'npm' in v5.0.1, because yarn had some issue. So while upgrading maybe the generator found npm, and skips any modification if it would have found yarn instead
Overview of the issue
The parameters 'yarnVersion' for goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-yarn are missing or invalid
The error is occurring after upgrading to jhipster v5.3.1
Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryEnvironment and Tools
java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
git version 2.14.1.windows.1
node: v8.11.3
npm: 6.1.0
yarn: 1.7.0
Browsers and Operating System