Hi

did you try to add test scope using the <scope/> tag inside the
<dependencySet> tag? It's default value is "runtime"...

found here
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_dependencySet


regards,
Eike


On [Tue, 19.04.2011 12:07], Rupert Smith wrote:
> This question has come up a few times, but I see no definite answer in the
> replies. If someone known how to do this, please let me know, I am tearing
> my hair out and its no fun running the build over and over again an looking
> at the output to see if it worked....
> 
> This is the relevant section of my assembly.xml:
> 
>         <moduleSet>
>             <includes>
>                 <include>com.rapidaddition:genzero-runtests:*:test</include>
>             </includes>
>             <binaries>
>                 <outputDirectory>lib</outputDirectory>
>                 <unpack>false</unpack>
>                 <fileMode>0644</fileMode> <!-- User RW, Group/Other R. -->
>                 <directoryMode>0755</directoryMode> <!-- User RWX,
> Group/Other RX. -->
>                 <dependencySets>
>                     <dependencySet>
>                         <includes>
>                             <include>com.thesett:junit-toolkit</include>
>                         </includes>
>                     </dependencySet>
>                 </dependencySets>
>             </binaries>
>         </moduleSet>
> 
> For the module include I have also tried:
> 
> com.rapidaddition:genzero-runtests:*:*:test
> com.rapidaddition:genzero-runtests:*:tests
> com.rapidaddition:genzero-runtests:*:*:tests
> 
> But none seems to be right. Perhaps I should try filling in the type and
> version too?
> 
> Is including a test jar actually possible?
> 
> To head of the inevitable question, why would I want to do such a thing... I
> could put the tests in a separate module and include as an ordinary jar with
> no 'test' classifier, but.... I want these to be unit tests that run on
> every build AND I want to put them in an assembly to create a distribution
> that I can give to customers who want a copy of the tests to run on their
> own hardware too.
> 
> Many thanks for any assistance.
> 
> Rupert

-- 
email: [email protected]   https://www.eknet.org  pgp: 481161A0

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

Reply via email to