Difference between checked, unchecked and faded

Hello,

in the maven project window in Idea - what is the meaning of faded maven profile? Is it active by default?

I am building application with jetty sever and spring. When I have checked maven profile spring is able to find jdbc driver (runtime mvn dependency). In case it's faded spring throws jdbc driver not found exception.

Both faded and checked profile setting result in this idea run bellow. So there should be no difference I think.

/usr/lib/java/jdk1.6.0_43/bin/java -Xms512m -Xmx1024m -XX:MaxPermSize=512m -Dclassworlds.conf=/usr/local/bin/apache-maven-3.0.5/bin/m2.conf -Dmaven.home=/usr/local/bin/apache-maven-3.0.5 -Didea.launcher.port=7536 -Didea.launcher.bin.path=/usr/local/bin/idea-IC-123.169/bin -Dfile.encoding=UTF-8 -classpath /usr/local/bin/apache-maven-3.0.5/boot/plexus-classworlds-2.4.jar:/usr/local/bin/idea-IC-123.169/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher --no-plugin-registry --fail-fast --strict-checksums --update-snapshots -DskipTests=true clean install -P india,development



Maybe it's more maven question.

Thanks
Martin
1 comment

Yes, faded checkbox means profile enabled by condition from <activation> section in pom.xml.
Faded and checked profile can not produce same command line. Attached command line contains "-P india,development" so you have 'india' and 'development' profiles enabled manually (checked checkbox). When 'india' and 'development' profiles enabled by <activation> section "-P india,development" will not present

0

Please sign in to leave a comment.