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
maven-profiles


source to share


No one has answered this question yet

Check out similar questions:

7
Combining profiles in Maven to skip multiple categories of unit tests?
6
filtering maven variable properties
five
Maven - Baby Unit Profiles
five
Why is Maven not using the expected profile?
3
activating maven profile with default profile without tag "activeByDefault"
2
Select maven profile from OS family
0
How do I insert a maven property that is an XML node?
0
Maven: run build for multiple profiles in Eclipse
0
Activate maven profile when system property is not available
0
Activating Maven Profile Using System Properties



All Articles
Loading...
X
Show
Funny
Dev
Pics