maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curtis Rueden <ctrue...@wisc.edu>
Subject Re: More detailed info on how exclusions work
Date Wed, 09 Oct 2013 16:11:09 GMT
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 <ctrueden@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 <seabbott@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
>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message