Re: [Q] How to get maven to build and install a tests jar?

Geoff Longman <[email protected]> Sat, 4 Feb 2006 16:30:02 -0500
Newsgroups gmane.comp.ide.eclipse.spindle.devel
Message-ID <[email protected]>
Cool, thanks very much.

I'm about to check in an implementation of IResourceRoot &
ICoreResource for stuff found in a jar. It's for testing but if
looking at it can help - have at 'er.

JarClasspathRoot & JarClasspathResource

I've still to write some more tests for it though.

Geoff

On 2/4/06, Hugo Palma <[email protected]> wrote:
> Sure, just use the jar plugin, it has a test.jar goal that creates a
> test jar. Checkout the documentation for the plugin here
> http://maven.apache.org/plugins/maven-jar-plugin.
>
> To install the jar, as this jar is not your project artifact you can use
> the install-file goal of the install plugin. Documentation  here
> http://maven.apache.org/plugins/maven-install-plugin
>
> Hope this helps
>
>
> Cheers
>
> Hugo
>
> Geoff Longman wrote:
> > Hugo, I have some test fixtures in spindle-core that I want to reuse
> > in spindle-parser.
> >
> > Is there a way to build and install a jar of the tests for spindle-core?
> >
> > I'm adding tests to the custom parser as I'm not convinced the port to
> > xerces 2.7.1 went without any hitches.
> >
> > thx.
> >
> > Geoff
> >
> > --
> > The Spindle guy.          http://spindle.sf.net
> > Get help with Spindle:
> > http://lists.sourceforge.net/mailman/listinfo/spindle-user
> > Blog:                     http://jroller.com/page/glongman
> > Feature Updates:          http://spindle.sf.net/updates
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
> > _______________________________________________
> > Spindle-developer mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/spindle-developer
> >
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Spindle-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spindle-developer
>


--
The Spindle guy.          http://spindle.sf.net
Get help with Spindle:   
http://lists.sourceforge.net/mailman/listinfo/spindle-user
Blog:                     http://jroller.com/page/glongman
Feature Updates:          http://spindle.sf.net/updates


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642