M2E Failed to load all dependencies

I use Spring Tool Suite 3.6.3 and M2E eclipse plugin 1.4.1, when I opened the POM file from one of the projects, I noticed that not all dependencies were added, I added depnedecy configuration for jaxws-rt with version 2.2.8, which has many dependencies as follows

<dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> </dependency> <dependency> <groupId>javax.xml.ws</groupId> <artifactId>jaxws-api</artifactId> </dependency> <dependency> <groupId>javax.xml.soap</groupId> <artifactId>javax.xml.soap-api</artifactId> </dependency> <dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> </dependency> <dependency> <groupId>javax.jws</groupId> <artifactId>jsr181-api</artifactId> </dependency> <!-- Provided dependencies --> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>policy</artifactId> </dependency> <dependency> <groupId>org.glassfish.gmbal</groupId> <artifactId>gmbal-api-only</artifactId> </dependency> <dependency> <groupId>org.jvnet.staxex</groupId> <artifactId>stax-ex</artifactId> </dependency> <dependency> <groupId>com.sun.xml.stream.buffer</groupId> <artifactId>streambuffer</artifactId> </dependency> <dependency> <groupId>org.jvnet.mimepull</groupId> <artifactId>mimepull</artifactId> </dependency> <dependency> <groupId>com.sun.xml.fastinfoset</groupId> <artifactId>FastInfoset</artifactId> </dependency> <dependency> <groupId>org.glassfish.ha</groupId> <artifactId>ha-api</artifactId> </dependency> <dependency> <groupId>com.sun.xml.messaging.saaj</groupId> <artifactId>saaj-impl</artifactId> </dependency> <dependency> <artifactId>woodstox-core-asl</artifactId> <groupId>org.codehaus.woodstox</groupId> </dependency> <dependency> <groupId>org.codehaus.woodstox</groupId> <artifactId>stax2-api</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>com.sun.org.apache.xml.internal</groupId> <artifactId>resolver</artifactId> </dependency> 

In STS, when I open POM and go to the dependency hierarchy, I cannot see the dependencies of the policies, resolver and streambuffer.

But when I run mvn clean install from the command line, all of the above banks are added to the .war file.

I think there is some problem with m2e + STS, not sure why m2e cannot get these missing dependencies.

+6
source share
1 answer

I found a solution

The machine we encountered this problem had a java 1.6 executable file copied to the system32 folder, and when we deleted these files and updated the path to using jdk 1.7, the problem was resolved ....

I tried to find a compatible java version for m2e 1.4.1, but did not find anything, for the new m2e ie version, the required Java version is indicated.

+2
source

Source: https://habr.com/ru/post/980312/


All Articles