Well, Maven does no specific things here. It depends on javac behaviour.
What's your m-compiler-plugin config?
Didn't you set a property like
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#failOnError
to
false?

Cheers

2010/9/13 Daniele Dellafiore <[email protected]>

> 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 <[email protected]> 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 <[email protected]
> >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: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
>
>
>
> --
> Daniele Dellafiore
> http://danieledellafiore.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Reply via email to