maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-5522) properties project.parent.xxx not supported under Linux
Date Mon, 16 May 2016 20:34:12 GMT

    [ https://issues.apache.org/jira/browse/MNG-5522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15285238#comment-15285238
] 

Michael Osipov commented on MNG-5522:
-------------------------------------

It does neither work in Windows and FreeBSD. {{help:effective-pom}} does not interpolate the
expression.

> properties project.parent.xxx not supported under Linux
> -------------------------------------------------------
>
>                 Key: MNG-5522
>                 URL: https://issues.apache.org/jira/browse/MNG-5522
>             Project: Maven
>          Issue Type: Bug
>          Components: Bootstrap & Build, POM
>    Affects Versions: 3.0.5
>         Environment: Few Linuxes tested, work under Windows
>            Reporter: Pavel
>         Attachments: maven-MNG-5522.zip
>
>
> Initially it was there: https://jira.codehaus.org/browse/MRM-1772#comment-333654 . But
It is maven problem itself.
> It is reproducible on two our Linux machines (Fedora and Gentoo), so it may be Linux
relative. On all our colleagues on windows it does not reproduced.
> Some details.
> Parent pom among others have:
> {code}
> 	<version>1.5.300-SNAPSHOT</version>
> 	<name>imus</name>
> ...
> 	<properties>
> 		<spring.version>2.5.6</spring.version>
> 		<spring3.version>3.2.2.RELEASE</spring3.version>
> 		<mule.version>2.1.1</mule.version>
> 		<aspectj.version>1.7.0</aspectj.version>
> 		<source.encoding>windows-1251</source.encoding>
> 		<maven.test.include>none</maven.test.include>
> 		<maven.compiler.source>1.7</maven.compiler.source>
> 		<maven.compiler.target>1.7</maven.compiler.target>
> 		<rootProjectPath>${basedir}</rootProjectPath>
> 		<rootProjectPath1>QWERTY</rootProjectPath1>
> 	</properties>
> {code}
> First child module:
> {code}
> 	<build>
> 		<plugins>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-antrun-plugin</artifactId>
> 				<version>1.1</version>
> 				<executions>
> 					<execution>
> 						<phase>validate</phase>
> 						<goals>
> 							<goal>run</goal>
> 						</goals>
> 						<configuration>
> 							<tasks>
> 								<echo>[project.parent.rootProjectPath]: ${project.parent.rootProjectPath}</echo>
> 								<echo>[project.parent.getRootProjectPath()]: ${project.parent.getRootProjectPath()}</echo>
> 								<echo>[project.parent.rootProjectPath1]: ${project.parent.rootProjectPath1}</echo>
> 								<echo>[project.parent.spring3.version]: ${project.parent.spring3.version}</echo>
> 								<echo>[project.parent.properties.spring3.version]: ${project.parent.properties.spring3.version}</echo>
> 								<echo>[project.parent.properties.rootProjectPath]: ${project.parent.properties.rootProjectPath}</echo>
> 								<echo>[project.parent.properties.rootProjectPath1]: ${project.parent.properties.rootProjectPath1}</echo>
> 								<echo>[project.parent.name]: ${project.parent.name}</echo>
> 								<echo>[project.parent.properties]: ${project.parent.properties}</echo>
> 							</tasks>
> 						</configuration>
> 					</execution>
> 				</executions>
> 			</plugin>
> 		</plugins>
> 	</build>
> {code}
> *In out I see what project.parent.name resolved and even project.parent.properties, but
not any property in collection (f.e. project.parent.rootProjectPath or project.parent.properties.rootProjectPath)
as it should [by documentation|http://maven.apache.org/pom.html#Properties]*:
> {code}
> [INFO] --- maven-antrun-plugin:1.1:run (default) @ antinform-lib-parent ---
> [INFO] Executing tasks
>      [echo] [project.parent.rootProjectPath]: ${project.parent.rootProjectPath}
>      [echo] [project.parent.getRootProjectPath()]: ${project.parent.getRootProjectPath()}
>      [echo] [project.parent.rootProjectPath1]: ${project.parent.rootProjectPath1}
>      [echo] [project.parent.spring3.version]: ${project.parent.spring3.version}
>      [echo] [project.parent.properties.spring3.version]: ${project.parent.properties.spring3.version}
>      [echo] [project.parent.properties.rootProjectPath]: ${project.parent.properties.rootProjectPath}
>      [echo] [project.parent.properties.rootProjectPath1]: ${project.parent.properties.rootProjectPath1}
>      [echo] [project.parent.name]: imus
>      [echo] [project.parent.properties]: {rootProjectPath1=QWERTY, spring3.version=3.2.2.RELEASE,
mule.version=2.1.1, aspectj.version=1.7.0, maven.compiler.target=1.7, source.encoding=windows-1251,
maven.test.include=none, maven.compiler.source=1.7, spring.version=2.5.6, rootProjectPath=/home/pasha/imus/IdeaProjects/imus-1.5}
> {code}
> Version is 3.0.5:
> {code}
> $ mvn --version
> Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
> Apache Maven 3.0.5 (rNON-CANONICAL_2013-03-12_12-47_mockbuild; 2013-03-12 16:47:10+0400)
> Maven home: /usr/share/maven
> Java version: 1.7.0_25, vendor: Oracle Corporation
> Java home: /usr/java/jdk1.7.0_25/jre
> Default locale: ru_RU, platform encoding: UTF-8
> OS name: "linux", version: "3.9.9-301.fc19.x86_64", arch: "amd64", family: "unix"
> {code}
> I'm use it on Fedora Linux.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message