You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "RalfNaujokat (via GitHub)" <gi...@apache.org> on 2026/04/02 15:32:19 UTC
[I] Maven 4 profile activation by issues [maven]
RalfNaujokat opened a new issue, #11882:
URL: https://github.com/apache/maven/issues/11882
### Affected version
rc5
### Bug description
I found some issues in the <condition> syntax.
Maybe there is room for improvements.
`
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.1.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.1.0 http://maven.apache.org/xsd/maven-4.1.0.xsd">
<modelVersion>4.1.0</modelVersion>
<groupId>de.ralfn.dev.maven4-parent-poms</groupId>
<artifactId>maven4-parent-poms</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<properties>
<maven4-parent-poms.version>26.4.2-SNAPSHOT</maven4-parent-poms.version>
<root>true</root>
<revision>${maven4-parent-poms.version}</revision>
<rns-maven4-parent-poms.version>${maven4-parent-poms.version}</rns-maven4-parent-poms.version>
<!-- Encoding -->
<default.encoding>UTF-8</default.encoding>
<project.build.sourceEncoding>${default.encoding}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${default.encoding}</project.reporting.outputEncoding>
<!-- Maven -->
<maven.major.version>4.0</maven.major.version>
<maven.minor.version>0-rc-5</maven.minor.version>
<maven.version>${maven.major.version}.${maven.minor.version}</maven.version>
<!-- Profile: rns-default -->
<maven-plugin-api.version>${maven.version}</maven-plugin-api.version>
<maven-plugin-plugin.version>3.15.2</maven-plugin-plugin.version>
<maven-plugin-annotations.version>${maven-plugin-plugin.version}</maven-plugin-annotations.version>
<maven-help-plugin.version>3.5.1</maven-help-plugin.version>
<maven-enforcer-plugin.version>3.6.2</maven-enforcer-plugin.version>
<maven-clean-plugin.version>4.0.0-beta-2</maven-clean-plugin.version>
<maven-resources-plugin.version>3.5.0</maven-resources-plugin.version>
<git-commit-id-maven-plugin.version>9.0.2</git-commit-id-maven-plugin.version>
<timestamp.17.format>yyyy-MM-dd'T'HH:mm:ssXXX'[Europe/Berlin]'</timestamp.17.format>
<timestamp.21.format>yyyy-MM-dd'T'HH:mm:ssXXX'['VV']'</timestamp.21.format>
<maven-install-plugin.version>4.0.0-beta-2</maven-install-plugin.version>
<maven-deploy-plugin.version>3.1.4</maven-deploy-plugin.version>
<versions-maven-plugin.version>2.21.0</versions-maven-plugin.version>
<versions.processDependencyManagement>false</versions.processDependencyManagement>
<build-helper-maven-plugin.version>3.6.1</build-helper-maven-plugin.version>
<maven-scm-plugin.version>2.2.1</maven-scm-plugin.version>
<!-- Build - Performance -->
<aether.threads>10</aether.threads>
<aether.conflictResolver.verbose>true</aether.conflictResolver.verbose>
<aether.connector.basic.downstreamThreads>${aether.threads}</aether.connector.basic.downstreamThreads>
<aether.connector.basic.upstreamThreads>${aether.threads}</aether.connector.basic.upstreamThreads>
<aether.dependencyCollector.bf.threads>${aether.threads}</aether.dependencyCollector.bf.threads>
<aether.metadataResolver.threads>${aether.threads}</aether.metadataResolver.threads>
<!-- Profile: rns-nexus -->
<rns-nexus.url>${env.NEXUS_BASE_URL}/repository/</rns-nexus.url>
<rns-all>rns-all</rns-all>
<rns-releases>rns-releases</rns-releases>
<rns-snapshots>rns-snapshots</rns-snapshots>
</properties>
<subprojects>
<subproject>documentation</subproject>
<subproject>boms</subproject>
<subproject>parents</subproject>
<subproject>parents-tests</subproject>
</subprojects>
<profiles>
<profile>
<!--========================================-->
<id>enable-beta-versions</id>
<!--========================================-->
<properties>
<maven-plugin-plugin.version>4.0.0-beta-2</maven-plugin-plugin.version>
<maven-deploy-plugin.version>4.0.0-beta-2</maven-deploy-plugin.version>
<!-- broken, do not update
<maven-resources-plugin.version>4.0.0-beta-1</maven-resources-plugin.version>
-->
</properties>
</profile>
<profile>
<!--========================================-->
<id>rns-default</id>
<!--========================================-->
<activation>
<condition>missing( '.mvn-profile-inactive/rns-default' )</condition>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<version>${maven-plugin-plugin.version}</version>
<configuration>
<skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
</configuration>
</plugin>
<plugin>
<artifactId>maven-help-plugin</artifactId>
<version>${maven-help-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${maven-enforcer-plugin.version}</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>${maven.version}</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin.version}</version>
<configuration>
<filesets>
<fileset>
<directory>src/main/webapp/VAADIN/themes</directory>
<includes>
<include>**/styles.scss.cache</include>
</includes>
</fileset>
<fileset>
<directory>.</directory>
<includes>
<include>.npmrc</include>
<include>pnpmfile.js</include>
<include>pnpm-lock.yaml</include>
<include>package.json</include>
<include>package-lock.json</include>
<include>tsconfig.json</include>
<include>types.d.ts</include>
<include>webpack.config.js</include>
<include>webpack.generated.js</include>
<include>vite.config.ts</include>
<include>vite.generated.ts</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<configuration>
<propertiesEncoding>${default.encoding}</propertiesEncoding>
<delimiters>
<delimiter>@</delimiter>
<delimiter>${}</delimiter>
</delimiters>
</configuration>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>${git-commit-id-maven-plugin.version}</version>
<executions>
<execution>
<id>revision</id>
<phase>generate-resources</phase>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<verbose>true</verbose>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/${project.groupId}.${project.artifactId}.git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.branch$</includeOnlyProperty>
<includeOnlyProperty>^git.build.version$</includeOnlyProperty>
<includeOnlyProperty>^git.build.time$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.user.name</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.id.full$</includeOnlyProperty>
<includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
<dateFormat>${timestamp.17.format}</dateFormat>
</configuration>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>${maven-install-plugin.version}</version>
<configuration>
<installAtEnd>false</installAtEnd>
</configuration>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>${maven-deploy-plugin.version}</version>
<configuration>
<deployAtEnd>true</deployAtEnd>
</configuration>
</plugin>
<plugin>
<!-- Use this plugin to search and display updates
(Warning: Slow!) -->
<!-- mvn -U versions:display-plugin-updates -->
<!-- mvn -U versions:display-dependency-updates -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
<configuration>
<processDependencyManagement>${versions.processDependencyManagement}</processDependencyManagement>
<!-- -->
<ignoredVersions>.+[-.](A|a|B|b|C|c|D|d|M|m|R|r|preview).*</ignoredVersions>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-scm-plugin</artifactId>
<version>${maven-scm-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-help-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/*.properties</exclude>
<exclude>**/application*.yml</exclude>
<exclude>**/application*.yaml</exclude>
</excludes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
<include>**/application*.yml</include>
<include>**/application*.yaml</include>
</includes>
</resource>
<resource>
<directory>src/main/webapp</directory>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/meta</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/test/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/*.properties</exclude>
<exclude>**/application*.yml</exclude>
<exclude>**/application*.yaml</exclude>
</excludes>
</resource>
<resource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
<include>**/application*.yml</include>
<include>**/application*.yaml</include>
</includes>
</resource>
<resource>
<directory>src/test/meta</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</profile>
<profile>
<!--========================================-->
<id>do-not-deploy</id>
<!--========================================-->
<activation>
<condition>exists( '.mvn-profile-active/do-not-deploy' )</condition>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!--========================================-->
<id>version-management</id>
<!--========================================-->
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build-helper-maven-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-scm-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!--========================================-->
<id>rns-nexus</id>
<!--========================================-->
<activation>
<condition>missing( '.mvn-profile-inactive/rns-nexus' )</condition>
</activation>
<distributionManagement>
<repository>
<id>${rns-releases}</id>
<url>${rns-nexus.url}${rns-releases}</url>
<name>RNS Nexus Repository for local releases</name>
</repository>
<snapshotRepository>
<id>${rns-snapshots}</id>
<url>${rns-nexus.url}${rns-snapshots}</url>
<name>RNS Nexus Repository for local snapshots</name>
</snapshotRepository>
</distributionManagement>
</profile>
<profile>
<!--========================================-->
<id>maven-deamon</id>
<!--========================================-->
<build>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>4.0.0-rc3</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 4 profile activation by issues [maven]
Posted by "RalfNaujokat (via GitHub)" <gi...@apache.org>.
RalfNaujokat commented on issue #11882:
URL: https://github.com/apache/maven/issues/11882#issuecomment-4698972343
Thanks for taking care of this issue.
Keep up the good work!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 4 profile activation by issues [maven]
Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet closed issue #11882: Maven 4 profile activation by <condition> issues
URL: https://github.com/apache/maven/issues/11882
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org