[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-dev
Subject:    Re: svn commit: r1159035 - /logging/log4j/trunk/pom.xml
From:       Christian Grobmeier <grobmeier () gmail ! com>
Date:       2011-08-19 10:23:10
Message-ID: CAPFNckiwNEnThTM6=umX-FcfSLMJycTRY+gH3Jfrj8U_aVeZ4Q () mail ! gmail ! com
[Download RAW message or body]

On Thu, Aug 18, 2011 at 4:05 PM, Scott Deboy <scott.deboy@gmail.com> wrote:
> it failed to even build saying it must be one of build or runtime.  I saw
> other test scopes in the poms so I was confused myself. Maybe an issue with
> my environment?

Scott, I could now reproduce this on my mac.
I think it is because of the antrun plugin. Ant "compiles the tests",
therefore it needs it on compile scope. So you were right to change
the scope. But I would like to move it to "compile" scope now as a
workaround.

As a second step i think we should try to make the test work in a
temporary directory and then we might be able to remove the antrun for
the tests. I will check this option out now.

Cheers





>
>
>
> On Aug 18, 2011, at 12:51 AM, Christian Grobmeier <grobmeier@gmail.com>
> wrote:
>
>> Not sure, but Junit should not be necessary for the runtime execution
>> imho.
>>
>> http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
>>
>> I think it should be test only.
>>
>> I did not work without having it on runtime?
>>
>> runtime
>> This scope indicates that the dependency is not required for
>> compilation, but is for execution. It is in the runtime and test
>> classpaths, but not the compile classpath.
>> test
>> This scope indicates that the dependency is not required for normal
>> use of the application, and is only available for the test compilation
>> and execution phases.
>>
>> On Thu, Aug 18, 2011 at 7:10 AM,  <sdeboy@apache.org> wrote:
>>>
>>> Author: sdeboy
>>> Date: Thu Aug 18 05:10:58 2011
>>> New Revision: 1159035
>>>
>>> URL: http://svn.apache.org/viewvc?rev=1159035&view=rev
>>> Log:
>>> Updating junit scope in pom.xml to runtime to get build to work with
>>> maven 3.0.3
>>>
>>> Modified:
>>>   logging/log4j/trunk/pom.xml
>>>
>>> Modified: logging/log4j/trunk/pom.xml
>>> URL:
>>> http://svn.apache.org/viewvc/logging/log4j/trunk/pom.xml?rev=1159035&r1=1159034&r2=1159035&view=diff
>>>
>>> ==============================================================================
>>> --- logging/log4j/trunk/pom.xml (original)
>>> +++ logging/log4j/trunk/pom.xml Thu Aug 18 05:10:58 2011
>>> @@ -318,7 +318,7 @@ target platform and specify -Dntdll_targ
>>>            <groupId>junit</groupId>
>>>            <artifactId>junit</artifactId>
>>>            <version>3.8.1</version>
>>> -            <scope>test</scope>
>>> +            <scope>runtime</scope>
>>>          </dependency>
>>>          <dependency>
>>>            <groupId>sun.jdk</groupId>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>>
>>>
>>
>>
>>
>> --
>> http://www.grobmeier.de
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>



-- 
http://www.grobmeier.de

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic