I've unzipped the build-maven.zip from R_1600 into
http://static.appfuse.org/repository. Here's my Maven configuration to use
Ant to run Canoo WebTest tests:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<configuration>
<tasks>
<taskdef resource="webtest_base_relaxed.taskdef">
<classpath>
<path refid="maven.test.classpath"/>
<path location="src/main/resources"/>
</classpath>
</taskdef>
<mkdir dir="target/webtest-data"/>
<!-- Delete old results file if it exists -->
<delete file="target/webtest-data/web-tests-result.xml"/>
<!-- This is so the default will be used if no test case is
specified -->
<property name="test" value="run-all-tests"/>
<echo level="info">Testing '${project.build.finalName}' with
locale '${user.language}'</echo>
<ant antfile="src/test/resources/web-tests.xml"
target="${test}">
<property name="user.language" value="${user.language}"/>
<property name="webapp.name"
value="${project.build.finalName}"/>
<property name="host" value="${cargo.host}"/>
<property name="port" value="${cargo.port}"/>
</ant>
</tasks>
</configuration>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.canoo.webtest</groupId>
<artifactId>webtest</artifactId>
<version>R_1600</version>
<!-- groovy-all doesn't have a pom in central repo -->
<!-- exclude groovy to prevent trying to fetch pom -->
<exclusions>
<exclusion>
<groupId>groovy</groupId>
<artifactId>groovy-all</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
mraible wrote:
>
> The Maven Team's official stance on "patched" JARs/POMs is that if you
> change the groupId, they're more than happy to publish them. See Carlos's
> comment on my recent blog post:
>
> http://raibledesigns.com/page/rd?entry=maven_2_hates_commons_logging#comment5
>
> I would recommend setting up http://webtest.canoo.com/repository (or
> /maven2) and then starting to work with the Maven team to get your
> artifacts uploaded. They may even be able to setup an rsync process that
> reads from your repository.
>
> Matt
>
>
> Paul King wrote:
>>
>>
>> All the work is done so that you can use the zip if you have
>> your own local repository. The only thing stopping this being
>> submitted to the central repository is that we have various
>> snapshot releases of other technologies that Maven repo admins
>> prefer not to publish. We could either publish them under
>> a webtest path hierarchy or push harder back to the original
>> projects to have our changes merged into official releases and
>> then push for those official releases to be added to Maven.
>>
>> As an example, we have mods to pdfbox which haven't been
>> incorporated yet (for quite some time) and also pdfbox isn't in
>> the habit of publishing all of their releases.
>>
>> All doable just time consuming.
>>
>> Cheers, Paul.
>>
>>
>> mraible wrote:
>>> I downloaded the build-maven.zip and it looks like you guys have already
>>> done
>>> all the work! This doesn't appear to be in Maven 2's Central repo. Is
>>> there
>>> a reason for that or do you have your own repo?
>>>
>>> Thanks!
>>>
>>> Matt
>>>
>>>
>>> Marc Guillemot wrote:
>>>> Beein able to run Script.aculo.us is still a major priority of
>>>> htmlunit.
>>>> Daniel Gredler has started work on it so maybe will it come in the near
>>>> future...
>>>>
>>>> Marc.
>>>>
>>>>
>>>> mraible wrote:
>>>>> I'll try to help out as much as I can. However, HtmlUnit doesn't work
>>>>> with the latest version of Script.aculo.us (1.7.0), so it's tempting
>>>>> to
>>>>> move to Selenium. ;-)
>>>>>
>>>>> http://fisheye4.cenqua.com/changelog/appfuse?cs=2324
>>>>>
>>>>> Matt
>>>>>
>>>>>
>>>>> Paul King wrote:
>>>>>>
>>>>>> The other thing which needs to be addressed is resources.
>>>>>> We should have dtd's, xsl/css/js/images etc. in the jars and
>>>>>> either document or work out how to extract from jars as needed.
>>>>>>
>>>>>> Cheers, Paul.
>>>>>>
>>>>>> mraible wrote:
>>>>>>> I'll try to look at this build process next week.
>>>>>>>
>>>>>>> One thing to not is (at first glance), this won't work. The good
>>>>>>> news
>>>>>>> is
>>>>>>> it's only because of the filename. They're expected to be named
>>>>>>> something
>>>>>>> like webtest-build1876-bundle.jar. An even better solution is to
>>>>>>> deploy the
>>>>>>> artifacts to a URL that can be auto-synced with Maven's central repo
>>>>>>> -
>>>>>>> then
>>>>>>> you can publish the download and the Maven JARs at the same time.
>>>>>>>
>>>>>>> Matt
>>>>>>>
>>>>>>>
>>>>>>> Denis N. Antonioli wrote:
>>>>>>>> Hi Matt
>>>>>>>>
>>>>>>>> As part of the introduction of the pom, I did wrote the code to
>>>>>>>> generate a upload bundle for webtest.
>>>>>>>> In fact, it was in part upon your impulse: <http://webtest-
>>>>>>>> community.canoo.com/jira/browse/WT-93>. ;-)
>>>>>>>>
>>>>>>>> The complete webtest build process (with the target 'full')
>>>>>>>> generates
>>>>>>>> the zip archive deploy/build-maven.zip.
>>>>>>>>
>>>>>>>> Could you look at it? Is it what you need?
>>>>>>>>
>>>>>>>>
>>>>>>>> One of the reason this bundle was never announced was that I don't
>>>>>>>> know what should be done with
>>>>>>>> all the dependencies that are not already available through
>>>>>>>> ibiblio,
>>>>>>>> either because they are pre-releases
>>>>>>>> (like all special htmlunit builds that Marc gives us), or because
>>>>>>>> the
>>>>>>>> projects are not published there.
>>>>>>>>
>>>>>>>> With your help, we may be able to complete this task!
>>>>>>>>
>>>>>>>> Best
>>>>>>>> dna
>>>>>>>>
>>>>>>>>
>>>>>>>> On 3 janv. 07, at 01:39, mraible wrote:
>>>>>>>>
>>>>>>>>> Hello all,
>>>>>>>>>
>>>>>>>>> I've been creating Maven 2 upload bundles for Canoo WebTest
>>>>>>>>> periodically
>>>>>>>>> over the last several months. For the most part, I've only ever
>>>>>>>>> included a
>>>>>>>>> dependency on htmlunit, but I've noticed that many more
>>>>>>>>> dependencies (oro,
>>>>>>>>> log4j, javamail) are needed when running WebTest with the
>>>>>>>>> maven-antrun-plugin.
>>>>>>>>>
>>>>>>>>> <plugin>
>>>>>>>>> <artifactId>maven-antrun-plugin</artifactId>
>>>>>>>>> <configuration>
>>>>>>>>> <tasks>
>>>>>>>>> <taskdef
>>>>>>>>> resource="webtest_base_relaxed.taskdef">
>>>>>>>>> <classpath
>>>>>>>>> refid="maven.test.classpath"/>
>>>>>>>>> </taskdef>
>>>>>>>>> <mkdir dir="target/webtest-data"/>
>>>>>>>>> <!-- Delete old results file if it exists
>>>>>>>>> -->
>>>>>>>>> <delete
>>>>>>>>> file="target/webtest-data/web-tests-result.xml"/>
>>>>>>>>> <!-- This is so the default will be used
>>>>>>>>> if
>>>>>>>>> no test
>>>>>>>>> case is specified -->
>>>>>>>>> <property name="test"
>>>>>>>>> value="run-all-tests"/>
>>>>>>>>> <echo level="info">Testing
>>>>>>>>> '${project.build.finalName}' with locale '${user.language}'</echo>
>>>>>>>>> <ant antfile="src/test/resources/web-
>>>>>>>>> tests.xml"
>>>>>>>>> target="${test}">
>>>>>>>>> <property name="user.language"
>>>>>>>>> value="${user.language}"/>
>>>>>>>>> <property name="webapp.name"
>>>>>>>>> value="${project.build.finalName}"/>
>>>>>>>>> <property name="host" value="$
>>>>>>>>> {cargo.host}"/>
>>>>>>>>> <property name="port" value="$
>>>>>>>>> {cargo.port}"/>
>>>>>>>>> </ant>
>>>>>>>>> </tasks>
>>>>>>>>> </configuration>
>>>>>>>>> <executions>
>>>>>>>>> <execution>
>>>>>>>>> <phase>integration-test</phase>
>>>>>>>>> <goals>
>>>>>>>>> <goal>run</goal>
>>>>>>>>> </goals>
>>>>>>>>> </execution>
>>>>>>>>> </executions>
>>>>>>>>> <dependencies>
>>>>>>>>> <dependency>
>>>>>>>>> <groupId>com.canoo</groupId>
>>>>>>>>> <artifactId>webtest</artifactId>
>>>>>>>>> <version>${webtest.version}</version>
>>>>>>>>> <exclusions>
>>>>>>>>> <exclusion>
>>>>>>>>> <groupId>javax.xml</groupId>
>>>>>>>>> <artifactId>jsr173</artifactId>
>>>>>>>>> </exclusion>
>>>>>>>>> </exclusions>
>>>>>>>>> </dependency>
>>>>>>>>> <dependency>
>>>>>>>>> <groupId>javax.mail</groupId>
>>>>>>>>> <artifactId>mail</artifactId>
>>>>>>>>> <version>${javamail.version}</version>
>>>>>>>>> </dependency>
>>>>>>>>> <dependency>
>>>>>>>>> <groupId>log4j</groupId>
>>>>>>>>> <artifactId>log4j</artifactId>
>>>>>>>>> <version>${log4j.version}</version>
>>>>>>>>> </dependency>
>>>>>>>>> <dependency>
>>>>>>>>> <groupId>oro</groupId>
>>>>>>>>> <artifactId>oro</artifactId>
>>>>>>>>> <version>${oro.version}</version>
>>>>>>>>> </dependency>
>>>>>>>>> </dependencies>
>>>>>>>>> </plugin>
>>>>>>>>>
>>>>>>>>> What are the correct set of dependencies (and versions) that
>>>>>>>>> should
>>>>>>>>> be
>>>>>>>>> included for WebTest? I'd like to correct these after the next
>>>>>>>>> release so
>>>>>>>>> its possible to have a much smaller <dependencies> section.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>
>>>>>>>>> Matt
>>>>>>>>> --
>>>>>>>>> View this message in context: http://www.nabble.com/Maven-2-
>>>>>>>>> Dependencies-tf2911044.html#a8133685
>>>>>>>>> Sent from the WebTest mailing list archive at Nabble.com.
>>>>>> _______________________________________________
>>>>>> WebTest mailing list
>>>>>> [email protected]
>>>>>> http://lists.canoo.com/mailman/listinfo/webtest
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>> _______________________________________________
>> WebTest mailing list
>> [email protected]
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Maven-2-Dependencies-tf2911044.html#a12353024
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest