You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by adrien1977 <ad...@cmegroup.com> on 2008/01/18 16:22:44 UTC

add test classes to main jar

Hi
I am kinda new in the maven world and i have a question.
I have a couple test classes that I'd like to embed in the main jar.
the problem is that (like everyone knows) test-classes and main classes are
in different folder.

So how can i accomplish this.

thanks

-- 
View this message in context: http://www.nabble.com/add-test-classes-to-main-jar-tp14950893s177p14950893.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: add test classes to main jar

Posted by adrien1977 <ad...@cmegroup.com>.
Hi,
That is exactly what i have done.
I was wondering if there was a way to do it. If there is not well i guess
that will be ok.

thanks for the help

--Adrien


Olivier Lamy wrote:
> 
> Hi,
> IMHO the best is to build a separate jar with the test classes.
> Have a look here
> http://maven.apache.org/guides/mini/guide-attached-tests.html
> 
> --
> Olivier
> 
> 2008/1/18, adrien1977 <ad...@cmegroup.com>:
>>
>> Hi
>> I am kinda new in the maven world and i have a question.
>> I have a couple test classes that I'd like to embed in the main jar.
>> the problem is that (like everyone knows) test-classes and main classes
>> are
>> in different folder.
>>
>> So how can i accomplish this.
>>
>> thanks
>>
>> --
>> View this message in context:
>> http://www.nabble.com/add-test-classes-to-main-jar-tp14950893s177p14950893.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/add-test-classes-to-main-jar-tp14950893s177p14956625.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


MAVEN SCM - Big Problems with ClearTool on Linux .

Posted by "Hirn, Joseph" <Jo...@cmegroup.com>.
Hello. I am having an issue with Maven SCM checking in multiple files
during release:prepare phase. It seems to issue the right command but
only the first file is checked in. If I run this command from the
command line it works just fine. The next step that fails is when it
tried to re-checkout the file to increment version and re-add snapshot. 

I have already stepped through this in the debugger but can't seem to
find the issue. Please find the output to console below:

[DEBUG] executing checkin command...
[DEBUG] Executing:
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT>>cleartool
ci -c "[maven-release-plugin] prepare release firmsoft_project-6.0.0.17"
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/pom.xml
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/firmsoft-jar
/pom.xml
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/firmsoft-war
/pom.xml
[DEBUG] Checked in
"/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/pom.xml"
version "/main/jhirn_ETS_FIRMSOFT6.0/81".
[DEBUG]   Attached activities

I have also had other issues with cleartool, specifically with checkout
where the ClearCaseEditCommand.executeEditCommand() fails. This happens
at line 58 in when the CommandLineUtils.executeCommandLine() call
returns 141 as an exit code even though the file was checked out
successfully. By stepping through slowly in the debugger and giving
cleartool more time to finish I have gotten around this problem. I have
since used a wrapper script to spoof the return value. I do not have
this problem on windows, only linux so I assume it's cleartool on linux
but it could be plexus. 

What Linux version of cleartool is everyone else using? I am using
7.0.0.0 (Fri Apr 21 08:25:19 EDT 2006).

Thanks for anyone who can help me. This is keeping my organization from
moving forward with Maven and has been a throne in the project for
months now. We may end up having to write our own SCM provider. 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: add test classes to main jar

Posted by Olivier Lamy <ol...@apache.org>.
Hi,
IMHO the best is to build a separate jar with the test classes.
Have a look here http://maven.apache.org/guides/mini/guide-attached-tests.html

--
Olivier

2008/1/18, adrien1977 <ad...@cmegroup.com>:
>
> Hi
> I am kinda new in the maven world and i have a question.
> I have a couple test classes that I'd like to embed in the main jar.
> the problem is that (like everyone knows) test-classes and main classes are
> in different folder.
>
> So how can i accomplish this.
>
> thanks
>
> --
> View this message in context: http://www.nabble.com/add-test-classes-to-main-jar-tp14950893s177p14950893.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org