Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Missing artifact javax.servlet.jsp:jsp.api:jar:2.1 Eclipse error

BillyG_Senior_T
Employee
Employee

When I try to UPDATE my Maven project ( Chapter 8 - Using JSP with AEM 6.0 ) after I updated my main pom.xml with the javax.servlet.jsp dependancy, I get the following error :Missing artifact javax.servlet.jsp:jsp.api:jar:2.1

I even tried to compile from command line using mvn compile and get the same error :

[ERROR] Failed to execute goal on project company-training-project-bundle: Could  not resolve dependencies for project com.adobe.training:company-training-project-bundle:bundle:1.0-SNAPSHOT:

Could not find artifact javax.servlet.jsp:jsp.api:jar:2.1 in adobe (http://repo.adobe.com/nexus/content/groups/public/) -> [Help 1]

If I look at my .m2 dir, I can see that it attempted to get the jar, but it wasn't able to grab it :

Capture.PNG

2 Replies
Jtalbot
Employee
Employee

Hi Billy,

Try changing the URL from (http://repo.adobe.com/nexus/content/groups/public/) to (https://repo.adobe.com/nexus/content/groups/public/), i.e. add the https.

That should do it. Let us know if it doesn't work.

BillyG_Senior_T
Employee
Employee

Hi James,

Still doesn't work . I updated the value in the settings.xml in my .M2 folder .

Anything else I need to do ? Perhaps I am missing something here .