You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Curtis Rueden <ct...@wisc.edu> on 2013/10/09 18:11:09 UTC

Re: More detailed info on how exclusions work

Hi all,

> > I could see the "number of files to compile" number going down as I
> > added exclusions, and yet I still kept getting the same error messages
> > every time.
>
> Are you still including source files that depend on the excluded
> sources? If so, Javac will try to compile the excluded classes anyway.
> This is a feature of the Java compiler, not Maven-specific.

I just discovered the "-implicit:none" flag of javac, which prevents this
behavior. That might help in cases like this, though of course there are
still a host of reasons to avoid this scheme.

-Curtis


On Fri, Sep 6, 2013 at 12:34 PM, Curtis Rueden <ct...@wisc.edu> wrote:

> Hi Sean,
>
> > I could see the "number of files to compile" number going down as I
> > added exclusions, and yet I still kept getting the same error messages
> > every time.
>
> Are you still including source files that depend on the excluded sources?
> If so, Javac will try to compile the excluded classes anyway. This is a
> feature of the Java compiler, not Maven-specific.
>
> As an aside, I think you are in for a world of pain trying to exclude
> classes from compilation in this way just because they have compile errors.
> Can't you just fix the compile errors? Or if you have some other
> requirements, there is almost certainly a better way of achieving them than
> what you are trying to do.
>
> Regards,
> Curtis
>
>
> On Thu, Sep 5, 2013 at 4:54 PM, Sean Abbott <se...@akamai.com> wrote:
>
>> I keep getting errors where I can see my exclusions working, but then it
>> seems to attempt to compile the class anyway.
>>
>> For instance:  http://pastebin.com/wFPpQWxU
>>
>> I could see the "number of files to compile" number going down as I
>> added exclusions, and yet I still kept getting the same error messages
>> every time.
>>
>> Why?
>>
>> A link to an explanation would be just as good.  My google-foo is
>> failed, and I've been at this for hours.
>>
>> Thanks!
>>
>> --
>> sean
>>
>> Sean Abbott
>> Release Engineer, Portal
>> Akamai Technologies
>> seabbott@akamai.com
>> office: 617-444-2818
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>