Reputation: 6849
I don't know what this means:
The dependency is added by me in my pom.xml
.
<dependencies>
<!-- https://mvnrepository.com/artifact/xwork/xwork -->
<dependency>
<groupId>xwork</groupId>
<artifactId>xwork</artifactId>
<version>1.0.3</version>
</dependency>
</dependencies>
But you can see in the picture, there is red wave line under the xwork
library.
I have tried use:
clean - install
But this did not work for me. Does anyone know what causes this, and how can I fix it?
Upvotes: 3
Views: 2277
Reputation: 402065
This dependency is provided by a third-party repository, you need to add the following to your pom.xml
:
<repositories>
<repository>
<id>xwork</id>
<url>https://maven.atlassian.com/3rdparty/</url>
</repository>
</repositories>
Then Reimport the project in IntelliJ IDEA (you may also need to close and open the project again), then verify that the dependency is present in the Project view under External Libraries node:
There is also no more error in the Maven Projects tool window:
If it still doesn't work for you, refer to this answer for the diagnostics.
Upvotes: 4