yes it is, but the class with the warning has this method:

   public ContactsServerResponse register(Profile profile) {

and the corresponding import

import lavazza.commons.profiles.core.domain.Profile;

if the import is not found, the class just does not compile, and the
project is not really compiled (that is, the .class aren't put in the
target folder) and no test is even run.

Now, I should have noticed the warning but I would prefer that this
kind of situations, when the project is not being compiled at all,
give an error and the build a failure.
Maybe is a javac settings, I just need it to be fatal for my build.

I had build and hudson working with no errors with this for two week.
This is not fine.

On Mon, Sep 13, 2010 at 7:50 PM, Joao Maciel <joaomac...@gmail.com> wrote:
> Well, it seems to be a compilation warning, not a compilation error, in'it?
>
> On Mon, Sep 13, 2010 at 2:05 PM, Daniele Dellafiore <ilde...@gmail.com>wrote:
>
>> Hi.
>>
>> For the first time in years, I am shocked seeing a maven behavior:
>>
>> [WARNING]
>>  /contacts-client-rest/src/main/java/commons/rest/client/ContactsClient.java:[17,42]
>> cannot find symbol
>> symbol  : class Profile
>> location: class commons.rest.client.ContactsClient
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD SUCCESSFUL
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> what is that?
>> How can the build be succesful if the compilations fails?
>> The trick here was that in Eclipse the build works cause Eclipse does
>> not honor the maven scope. The symbol maven can't fine here, class
>> Profile, is in a dep with test scope, so works in Eclipse, but not in
>> maven.
>>
>> Actually, I expect the bahavior to be: BUILD FAILURE.
>>
>> I see something strange here, dont' you?
>> Anywayt, there, is a way to change that default and make the build
>> fail if the compilations fails?
>>
>> Thanks.
>>
>> --
>> Daniele Dellafiore
>> http://danieledellafiore.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>



-- 
Daniele Dellafiore
http://danieledellafiore.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to