Htmleasy maven pom issues

2019-07-19 07:35发布

问题:

I am trying to get to use Htmleasy to work in my jetty/maven 3.0.4 (Ubuntu 12.04LTS) environment. I want to use Htmleasy to produce a View that is templated using a JSP, to which I will pass arguments (using models).

I refer to htmleasy in pom.xml like so (https://code.google.com/p/htmleasy/wiki/UsingMaven):

<!-- See https://code.google.com/p/htmleasy/wiki/UsingMaven -->
<repositories>
  <repository>
<id>htmleasy</id>
<url>http://htmleasy-maven.googlecode.com/svn/trunk/</url>
  </repository>
</repositories>

and

<!-- See  https://code.google.com/p/htmleasy/wiki/UsingMaven -->

<dependency>
  <groupId>com.googlecode.htmleasy</groupId>
  <artifactId>htmleasy</artifactId>
  <version>0.7</version>
</dependency>

It appears like maven does not like the included repositories/dependencies in the pom.xml file as it complains with the following warning during compile:

[WARNING] The POM for com.googlecode.htmleasy:htmleasy:jar:0.7 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details

The debug flag -X shows the error [ERROR] 'modelVersion' is missing. @

I checked this SO post and I deleted my local repository for htmleasy, but now it produces the following warning:

[WARNING] The POM for com.googlecode.htmleasy:htmleasy:jar:0.7 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details Downloading: http://htmleasy-maven.googlecode.com/svn/trunk/com/googlecode/htmleasy/htmleasy/0.7/htmleasy-0.7.jar [WARNING] Checksum validation failed, no checksums available from the repository for http://htmleasy-maven.googlecode.com/svn/trunk/com/googlecode/htmleasy/htmleasy/0.7/htmleasy-0.7.jar

BTW, in both cases, the compilation goes through (BUILD SUCCESS).

Any ideas how to resolve this issue? And if anyone knows of a better documentation for this, please point me to it. Also, is Htmleasy production quality? If not, can anyone point me to a facility/framework that will help me integrate JSPs with my RESTEasy JAX-RS environment?

I am wondering if this is the reason I get the runtime error while loading my JSP (Could not find MessageBodyWriter for response object of type: com.googlecode.htmleasy.View of media type: text/html).