Accepted answer

the only thing is affected in running java app from maven project in eclipse is how application classpath is constructed. generally in maven there are several different classpaths scopes: compile, compile tests (this one is actually used to construct classpath in eclipse jdt) and runtime. the runtime classpath scope is used to assemble classpath for the application launch. the m2e is actually using maven code to resolve it.

so, you either have to change profile activation settings in your pom.xml or specify active profile in eclipse project properties / maven / active maven profiles.

if you want runtime profile to be different from build-time profile in eclipse, it is not possible right now. you'll have to submit an enhancement request for m2e to allow to specify active profiles when calculating launch classpath.

Related Query

More Query from same tag