logo       

[HtmlUnit] [ htmlunit-Bugs-1433566 ] Htmlunit as a maven 2.0 dependecies fa: msg#00037

java.htmlunit.devel

Subject: [HtmlUnit] [ htmlunit-Bugs-1433566 ] Htmlunit as a maven 2.0 dependecies fails

Bugs item #1433566, was opened at 2006-02-17 13:42
Message generated for change (Comment added) made by ntonylaq
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1433566&group_id=47038

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.7
Status: Open
Resolution: None
Priority: 5
Submitted By: Rick R (cr22rc)
Assigned to: Nobody/Anonymous (nobody)
Summary: Htmlunit as a maven 2.0 dependecies fails

Initial Comment:
Hello..
Our project is using maven and htmlunit. We just did a
switch to maven 2.0 from 1.1 and my understanding is it
that it does a more complete job of figuring out
dependencies. Consequently, it seems that htmlunit is
referencing:
htmlunit:htmlunit:jar:1.7
dom4j:dom4j:jar:1.5
javax.xml:jsr173:jar:1.0

Unforuntnately, jsr173.jar is not in the maven repository
http://www.ibiblio.org/maven2/javax/xml/jsr173/1.0/
I only heard word of mouth and nothing I can prove that
this is not an oversight that there maybe some
licensing issues with putting it there. Once again, I
have not confirmed this. I can also work around by
getting it locally in maven... but hate to resort to
that. Can anyone look and see if this is just a case
where another xml parser could be used ? Thanks any
help in this matter would be greatly appreciated.

Maven pom dependency snippet...
....
<dependency>
<groupId>htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>1.7</version>
<scope>test</scope>
</dependency>
...

----------------------------------------------------------------------

Comment By: tonylaq (ntonylaq)
Date: 2006-03-19 04:15

Message:
Logged In: YES
user_id=1371534

I just try what you said and I got jsr_173.jar do not exist.
Just a typo in the filename.


The 'correct' installation procedure is :

mvn install:install-file
-Dfile=C:\Sun\jwsdp-1.6\sjsxp\lib\jsr173_api.jar
-DgroupId=javax.xml
-DartifactId=jsr173
-Dversion=1.0
-Dpackaging=jar




----------------------------------------------------------------------

Comment By: Julien HENRY (henryju)
Date: 2006-03-15 14:45

Message:
Logged In: YES
user_id=1235926

I can confirm that jsr_173.jar is no more in Maven nor Maven
2 repository.

The solution :
- download it manually. It is in Java WSDP 1.6 :
http://java.sun.com/webservices/downloads/1.6/index.html
- add it to your local Maven 2 repository :
mvn install:install-file
-Dfile=C:\Sun\jwsdp-1.6\sjsxp\lib\jsr_173.jar
-DgroupId=javax.xml -DartifactId=jsr173 -Dversion=1.0
-Dpackaging=jar

----------------------------------------------------------------------

Comment By: Julien HENRY (henryju)
Date: 2006-03-15 09:46

Message:
Logged In: YES
user_id=1235926

I can confirm that jsr_173.jar is no more in Maven nor Maven
2 repository.

The solution :
- download it manually. It is in Java WSDP 1.6 :
http://java.sun.com/webservices/downloads/1.6/index.html
- add it to your local Maven 2 repository :
mvn install:install-file
-Dfile=C:\Sun\jwsdp-1.6\sjsxp\lib\jsr_173.jar
-DgroupId=javax.xml -DartifactId=jsr173 -Dversion=1.0
-Dpackaging=jar

----------------------------------------------------------------------

Comment By: Rick R (cr22rc)
Date: 2006-02-20 14:52

Message:
Logged In: YES
user_id=1454646

I have a simple maven 2.0 pom. There is no source needed
to reproduce since all that is needed is the intially
download of the dependent files from the repository which
fails for me. Any chance you could give it a try to see if
it can be addressed? (assumeing it fails for you?)

Maven 2.0.2 http://maven.apache.org/download.html




<?xml version="1.0" encoding="UTF-8"?>
<project>
<groupId>foo</groupId>
<artifactId>prova</artifactId>
<version>SNAPSHOT</version>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<name>prova</name>
<description>test htmlunit with maven 20</description>

<prerequisites>
<maven>2.0</maven>
</prerequisites>

<repositories>
<repository>
<id>ibiblio</id>
<name>ibiblio</name>
<url>http://www.ibiblio.org/maven2</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>htmlunit</groupId>
<artifactId>htmlunit</artifactId>
<version>1.7</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>

<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.componentType</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>

<testResources>
<testResource>
<directory>src/test/java</directory>
<includes>
<include>**/*.componentType</include>
</includes>
</testResource>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<defaultGoal>install</defaultGoal>
</build>

</project>



----------------------------------------------------------------------

Comment By: Brad Clarke (yourgod)
Date: 2006-02-18 16:58

Message:
Logged In: YES
user_id=257129

I don't know what jsr173.jar is, but all of our dependencies
are in ibiblio for maven 1. If there's something that needs
to be done for maven 2 then we'll gladly take any
suggestions for fixing it, but I don't think we're going to
use maven 2 ourselves for a while yet.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=448266&aid=1433566&group_id=47038


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise