Re: How to get an alert if a property value is missing
I'm having a problem with the enforcer plugin, it works well with the settings.xml, but if I require to check a property that has been set in a properties file placed in the resources, it always fails, saying that the property is null, but if I check in the generated config file...the value has been written correctly. filters filtersrc/main/resources/filter.properties/filter /filters resources resource directorysrc/main/resources/directory filteringtrue/filtering /resource /resources any idea why? -- View this message in context: http://www.nabble.com/How-to-get-an-alert-if-a-property-value-is-missing-tp23870644p23884445.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to get an alert if a property value is missing
have a look at the enforcer plugin 2009/6/4 turbo-555 fdur...@ticino.com Hi all, I have the need to create a configuration file for several, different, platforms. Therefore I have a xxx-service.xml in which I call some value that are set in the user/.m2/settings.xml. For example: #settings.xml properties settings.file.value(user)/.m2/settings.xml/settings.file.value /properties and then in the xxx-service.xml #xxx-service.xml ... jndi:value type=java.lang.String${settings.file.value}/jndi:value ... This works just fine. My problem is, if setting.file.value isn't set in settings.xml the compiler simply skips the step an leaves the ${settings.file.value} at his place. My question is, is there a possibility, a setting to switch in order to get an explicit warning message in case of a missing definition? thanks a lot for your help rgds Turbo-555 -- View this message in context: http://www.nabble.com/How-to-get-an-alert-if-a-property-value-is-missing-tp23870644p23870644.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to get an alert if a property value is missing
that's what I need! thx Stephen Connolly-2 wrote: have a look at the enforcer plugin 2009/6/4 turbo-555 fdur...@ticino.com Hi all, I have the need to create a configuration file for several, different, platforms. Therefore I have a xxx-service.xml in which I call some value that are set in the user/.m2/settings.xml. For example: #settings.xml properties settings.file.value(user)/.m2/settings.xml/settings.file.value /properties and then in the xxx-service.xml #xxx-service.xml ... jndi:value type=java.lang.String${settings.file.value}/jndi:value ... This works just fine. My problem is, if setting.file.value isn't set in settings.xml the compiler simply skips the step an leaves the ${settings.file.value} at his place. My question is, is there a possibility, a setting to switch in order to get an explicit warning message in case of a missing definition? thanks a lot for your help rgds Turbo-555 -- View this message in context: http://www.nabble.com/How-to-get-an-alert-if-a-property-value-is-missing-tp23870644p23870644.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- View this message in context: http://www.nabble.com/How-to-get-an-alert-if-a-property-value-is-missing-tp23870644p23873681.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org