You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Simon Kitching <sk...@apache.org> on 2006/11/18 23:37:14 UTC

[logging] Re: svn commit: r476429 - /jakarta/commons/proper/logging/trunk/pom.xml

On Fri, 2006-11-17 at 21:19 -0700, Wendy Smoak wrote:
> On 11/17/06, Simon Kitching <sk...@apache.org> wrote:
> 
> > > Are you saying that if you mark the dependencies optional, you get
> > > compilation errors?  That doesn't sound right.
> >
> > Well, that's exactly what happens.
> 
> Found it.  Optional is not a scope, it's a separate element.
> 
> Instead of <scope>optional</scope>, use <optional>true</optional>.
> 

Thank you Wendy! That makes a whole lot more sense.

It would be really nice if Maven would report an error if the scope
value is invalid rather than silently ignoring the dependency completely
(as 2.0.4 evidently does). I'll try to check with mvn trunk and request
an enhancement if this behaviour is still the same (unless someone has
the latest maven trunk checked out and can check more easily?).

Regards,

Simon


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


Re: [logging] Re: svn commit: r476429 - /jakarta/commons/proper/logging/trunk/pom.xml

Posted by Wendy Smoak <ws...@gmail.com>.
On 11/18/06, Simon Kitching <sk...@apache.org> wrote:

> It would be really nice if Maven would report an error if the scope
> value is invalid rather than silently ignoring the dependency completely
> (as 2.0.4 evidently does). I'll try to check with mvn trunk and request
> an enhancement if this behaviour is still the same (unless someone has
> the latest maven trunk checked out and can check more easily?).

Neither the Maven 2.0.5 nor 2.1 snapshot complains about an invalid
scope, I just get the same compilation failure.  I'll go see if
there's an issue open already.

-- 
Wendy

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