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 <[email protected]> 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 <[email protected]> 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 >> [email protected] >> office: 617-444-2818 >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >
