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]
