[ 
https://issues.apache.org/jira/browse/LUCENE-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Drew Farris updated LUCENE-2609:
--------------------------------

    Attachment: LUCENE-2609.patch

Grant, thanks for taking the time to look at this. 

The -tests jar is similar in nature to the -src and -javadoc jars. It gets 
pushed to the maven repo by virtue of attaching it to the core jar artifact. A 
separate pom is not needed in this case and the tests jar can be added as a 
dependency using something like the following:

{code}
    <dependency>
      <groupId>org.apache.lucene</groupId>
      <artifactId>lucene-core</artifactId>
      <version>${lucene.version}</version>
      <classifier>tests</classifier>
      <scope>test</scope>
    </dependency>
{code}

Good point about including the -tests jar in the dist. This updated patch adds 
the -tests jar to the distribution. The core-javadoc and core-src, demo-javadoc 
and demo-src files were also not present in the distribution so I added these 
as well.








> Generate jar containing test classes.
> -------------------------------------
>
>                 Key: LUCENE-2609
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2609
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Build
>    Affects Versions: 3.0.2
>            Reporter: Drew Farris
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: LUCENE-2609.patch, LUCENE-2609.patch
>
>
> The test classes are useful for writing unit tests for code external to the 
> Lucene project. It would be helpful to build a jar of these classes and 
> publish them as a maven dependency.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to