Maven profile activation based on classpath property


  Is it possible to activate a Maven profile based on the classpath property, which you in turn set based on reading the properties file? I checked that the classpath exists at the stage where my profile should take effect and also gave the property separately via the command line, which worked, but when I try to read it from the properties file and try to run the profile based on the classpath it doesn't work ... I even tried setting the property of interest as a system property, hoping the profile would be activated, but the same result. This link means the classpath properties can be read, but this link mentions that only system properties can be read to activate the profile. However, both don't work for me. Any pointers would be helpful.

Thanks
Paddy

+3


source to share





All Articles