Expand my Community achievements bar.

Htmlunits dependency in maven

Avatar

Level 5

Hi ,

I am using htmlunits to crawl the dynamic content from pages.When I am running our code as java class, its working fine but when I am running as maven build , I am not able to add dependency through pom because of this my bundle is in install state only.I am getting error in bundle:

I have already import both the packages in my class.Please suggest how to resolve it

com.gargoylesoftware.htmlunit -- Cannot be resolved
com.gargoylesoftware.htmlunit.html -- Cannot be resolved

I am adding dependency

              <dependency>
                <groupId>net.sourceforge.htmlunit</groupId>
                <artifactId>htmlunit</artifactId>
                <version>2.23</version> 

0 Replies