question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

maven Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm failed: A required class was missing while executing com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm: org/apache/http/protocol/HttpContext

See original GitHub issue

What is the current behavior? Execution install node and npm of goal com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm failed: A required class was missing while executing com.github.eirslett:frontend-maven-plugin:1.6:install-node-and-npm: org/apache/http/protocol/HttpContext

If the current behavior is a bug, please provide the steps to reproduce. On a Mac OS X 10.3.6 high sierra system with mac ports mvn mvn --version Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T09:58:13+02:00) Maven home: /opt/local/share/java/maven3 Java version: 1.8.0_152, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre Default locale: de_DE, platform encoding: UTF-8 OS name: "mac os x", version: "10.13.6", arch: "x86_64", family: "mac" follow the procedure at http://wiki.bitplan.com/index.php/JHipster Install jhipster generator docker image run jhipster to scafold project

run ‘mvn install’ outside the container in the jhipster directory What is the expected behavior? Should work “out of the box” of give a decent error message.

Please mention your frontend-maven-plugin and operating system version. see above

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

6reactions
timjansencommented, Jul 24, 2019

I had similar issues with 1.7.5, which occurred only on some systems. Sometimes removing the local repository helped, and sometimes not. As work-around, I added the missing dependencies into the embedding project’s pom.xml, like this:

<plugins>
			<plugin>
				<groupId>com.github.eirslett</groupId>
				<artifactId>frontend-maven-plugin</artifactId>
				<version>1.7.6</version>

				<dependencies>
					<dependency>
						<groupId>org.apache.httpcomponents</groupId>
						<artifactId>httpcore</artifactId>
						<version>4.4.4</version>
					</dependency>
					<dependency>
						<groupId>commons-logging</groupId>
						<artifactId>commons-logging</artifactId>
						<version>1.2</version>
					</dependency>
				</dependencies>

				<configuration>
				   ...
				</configuration>

				<executions>
				   ...
				</executions>
			<plugin>
<plugins>

So far it works reliably everywhere.

3reactions
wangzzucommented, Apr 11, 2019

@WolfgangFahl I change the version of frontend-maven-plugin from 1.6 to 1.7.5, and it works. I’m not sure if it’s the bug of the old version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found