maven-profiles

Activating a Child Profile from a Parent Profile

≡放荡痞女 提交于 2019-11-29 06:54:32
I have the following parent pom.xml file: <profile> <id>build_full</id> <activation> <activeByDefault>true</activeByDefault> </activation> <modules> <module>mymodule_interface</module> <module>mymodule_switch</module> <module>mymodule_switch_simulator</module> <module>mymodule_switch_controller</module> <module>mymodule_server</module> </modules> </profile> and in my child pom for mymodule_server , I have the following: <profile> <id>subprofile</id> <modules> <module>...various modules...</module> </modules> </profile> <profile> <id>default</id> <activation> <activeByDefault>true<

Maven 3 profile with extensions

霸气de小男生 提交于 2019-11-29 03:58:47
My question had been addressed in this thread , but the explanation is not clear. I have this build definition in one of my pom.xml files: <build> <finalName>${my.project}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> <extensions> <extension> <groupId>org.kuali.maven.wagons</groupId> <artifactId>maven-s3-wagon</artifactId> <version>1.1.19</version> </extension> </extensions> <resources> <resource>

Maven: property to activate profile in sub-modules

醉酒当歌 提交于 2019-11-28 11:28:23
We have a multi-module maven project, and it has different platforms to run on, like JBoss 4 and JBoss 7. We specify the platform property, and then use it as a classifier for artifacts, and for activation of the platform-specific profile in sub-modules, like: <activation> <property> <name>platform</name> <value>jboss71x</value> </property> </activation> in these profiles, we, among other things, specify the versions of provided dependencies. E.g. we do import of jboss parent pom: <dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-parent<

Does using activeByDefault go against maven best practices?

走远了吗. 提交于 2019-11-28 03:56:00
问题 I wish to find out whether Never use <activeByDefault > is a maven best practice? The advice here around this seems pretty sound, but do you think it's absolute or if there are some cases in which it would not apply ? Am posting a snapshot of the content on that page for posterity: 来源: https://stackoverflow.com/questions/16167206/does-using-activebydefault-go-against-maven-best-practices

Activating a Child Profile from a Parent Profile

江枫思渺然 提交于 2019-11-27 18:08:03
问题 I have the following parent pom.xml file: <profile> <id>build_full</id> <activation> <activeByDefault>true</activeByDefault> </activation> <modules> <module>mymodule_interface</module> <module>mymodule_switch</module> <module>mymodule_switch_simulator</module> <module>mymodule_switch_controller</module> <module>mymodule_server</module> </modules> </profile> and in my child pom for mymodule_server , I have the following: <profile> <id>subprofile</id> <modules> <module>...various modules...<

Maven 3 profile with extensions

半世苍凉 提交于 2019-11-27 18:01:31
问题 My question had been addressed in this thread, but the explanation is not clear. I have this build definition in one of my pom.xml files: <build> <finalName>${my.project}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.0</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> <extensions> <extension> <groupId>org.kuali.maven.wagons</groupId> <artifactId>maven