Używam wtyczki Eclipse Spring Tool Suite 3.6.3 i wtyczki 1.4.1, kiedy otworzyłem plik POM z jednego z projektów, zauważyłem, że nie wszystkie zależności są dodawane, mam dodana konfiguracja depnedecy dla JAXWS-RT z wersji 2.2.8, która ma wiele zależności następującoM2E Załadowanie wszystkich zależności nie powiodło się.
<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>
STS podczas otwierania POM, i przechodzi do Dependency Hierarchii, nie jestem w stanie zobaczyć polityki, przelicznik i zależności streambuffer.
Ale kiedy uruchomię mvn clean install z wiersza poleceń, wszystkie wyżej wymienione słoiki zostaną dodane do pliku .war.
Myślę, że jest jakiś problem z m2e + STS, nie wiem dlaczego m2e nie jest w stanie uzyskać tych brakujących zależności.
oba wskazują na inny plik 'settings.xml'? –
Mam tendencję do wymazywania mojego lokalnego repozytorium Maven w tych sytuacjach i restartowania STS po tym, zrobić czystą kompilację projektu, a zatem pozwolić m2e (lub Maven) pobrać wszystkie niezbędne zależności ponownie. To rozwiązuje te problemy w wielu przypadkach (przynajmniej dla mnie). Jeśli trafisz na błąd w m2e, możesz również wypróbować najnowszą wersję STS, która zawiera najnowszą wersję wydania m2e. –
Dziękuję Jigarowi i Martinowi za komentarze .... –