[jira] [Commented] (MNG-5900) early interpolation: support ${this.*} as expression

2017-08-02 Thread Erwin Hoeckx (JIRA)

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

Erwin Hoeckx commented on MNG-5900:
---

We have the same situation that [~FlorianSchaetz] is sketching (although in a 
bit different style).

Wrt the discussion about _this_ (although I think _this_ is clear): 'this' in 
the context of a 'parent' pom lands when developers understand the relationship 
between the parent/child pom, and the notion of a project. As [~schulte77] 
points out, it can be a bit confusing if you think in terms of OO, but proper 
documentation should sort this out. Perhaps 'pom' (referring to the the current 
POM you're looking at)?


+1 for this making it into maven 4!

> early interpolation: support ${this.*} as expression
> 
>
> Key: MNG-5900
> URL: https://issues.apache.org/jira/browse/MNG-5900
> Project: Maven
>  Issue Type: New Feature
>  Components: Inheritance and Interpolation, POM
>Reporter: Robert Scholte
> Fix For: Issues to be reviewed for 4.x
>
>
> Right now we have $\{project.\*} which always interpolates values based on 
> the final project: "classical" interpolation is "late" interpolation. So it 
> is not possible that parent poms can lock values, ie avoid child poms 
> override. By adding $\{this} for "early" interpolation, it will be possible 
> to have intermediate interpolation.
> If a pomfile depends on a parent, that parent will first resolve all 
> $\{this.\*} values for itself. Once the fully inherited pom is there, all 
> $\{project.\*} will be resolved. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (MNGSITE-313) Add documentation for MNG-1493 (referencing POM file in )

2017-08-02 Thread Till Brychcy (JIRA)

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

Till Brychcy commented on MNGSITE-313:
--

ping!
can anybody please merge this documentation patch?


> Add documentation for MNG-1493 (referencing POM file in )
> -
>
> Key: MNGSITE-313
> URL: https://issues.apache.org/jira/browse/MNGSITE-313
> Project: Maven Project Web Site
>  Issue Type: Improvement
>Reporter: Till Brychcy
> Attachments: MNGSITE-313-maven-site.patch
>
>
> I yesterday learned about the feature implemented in 
> https://issues.apache.org/jira/browse/MNG-1493
> and noted it is not documented in the POM reference 
> https://maven.apache.org/pom.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Created] (MNG-6267) Support resolving "~" in values given to CLI Option "-s"

2017-08-02 Thread Konrad Windszus (JIRA)
Konrad Windszus created MNG-6267:


 Summary: Support resolving "~" in values given to CLI Option "-s"
 Key: MNG-6267
 URL: https://issues.apache.org/jira/browse/MNG-6267
 Project: Maven
  Issue Type: Improvement
Reporter: Konrad Windszus


Currently relative filenames given in CLI option "-s" are assumed to be 
relative to the base directory. It would be nice to also support referencing 
files below the user's home directory by leveraging the placeholder "~". This 
would be especially useful with {{mvn/maven.config}} (MNG-5767).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Updated] (MNG-6267) Support resolving "~" in values given to CLI Option "-s"

2017-08-02 Thread Konrad Windszus (JIRA)

 [ 
https://issues.apache.org/jira/browse/MNG-6267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated MNG-6267:
-
Affects Version/s: 3.5.0
  Component/s: Command Line

> Support resolving "~" in values given to CLI Option "-s"
> 
>
> Key: MNG-6267
> URL: https://issues.apache.org/jira/browse/MNG-6267
> Project: Maven
>  Issue Type: Improvement
>  Components: Command Line
>Affects Versions: 3.5.0
>Reporter: Konrad Windszus
>
> Currently relative filenames given in CLI option "-s" are assumed to be 
> relative to the base directory. It would be nice to also support referencing 
> files below the user's home directory by leveraging the placeholder "~". This 
> would be especially useful with {{mvn/maven.config}} (MNG-5767).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (MNG-6267) Support resolving "~" in values given to CLI Option "-s"

2017-08-02 Thread Joerg Schaible (JIRA)

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

Joerg Schaible commented on MNG-6267:
-

~ expansion is a functionality of bash. Adding support for it might have 
unwanted side-effects. See linked issue of commons-io.

> Support resolving "~" in values given to CLI Option "-s"
> 
>
> Key: MNG-6267
> URL: https://issues.apache.org/jira/browse/MNG-6267
> Project: Maven
>  Issue Type: Improvement
>  Components: Command Line
>Affects Versions: 3.5.0
>Reporter: Konrad Windszus
>
> Currently relative filenames given in CLI option "-s" are assumed to be 
> relative to the base directory. It would be nice to also support referencing 
> files below the user's home directory by leveraging the placeholder "~". This 
> would be especially useful with {{mvn/maven.config}} (MNG-5767).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (MNG-6123) detect self references in POM and fail fast

2017-08-02 Thread Karl Heinz Marbaise (JIRA)

 [ 
https://issues.apache.org/jira/browse/MNG-6123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Heinz Marbaise closed MNG-6123.

Resolution: Fixed

Done in Maven 
Core:[8f8c45c990193b04c1770997d446951c5185b164|https://git-wip-us.apache.org/repos/asf?p=maven.git;a=commit;h=8f8c45c990193b04c1770997d446951c5185b164]
Done in Maven Integration Testing 
[3a1f095ec845c94b8e21ea28e4ffe69a01c29f4b|https://git-wip-us.apache.org/repos/asf?p=maven-integration-testing.git;a=commit;h=3a1f095ec845c94b8e21ea28e4ffe69a01c29f4b]

> detect self references in POM and fail fast
> ---
>
> Key: MNG-6123
> URL: https://issues.apache.org/jira/browse/MNG-6123
> Project: Maven
>  Issue Type: Improvement
>  Components: Bootstrap & Build, Dependencies
>Affects Versions: 3.3.9
> Environment: Oracle JDK 1.8.0_111 on Linux 4.8 x64
>Reporter: Gregor B. Rosenauer
>Assignee: Karl Heinz Marbaise
>Priority: Minor
>  Labels: build, easyfix
> Fix For: 3.5.1
>
>
> Maven does not detect self references in a POM and tries to download the 
> artifact it is about to build, which makes no sense and should result in an 
> early error and abort of the build.
> E.g. sample POM:
> {code}
> org.my.acme
> my-module
> 1.2.3
> 
> ...
> 
> ${project.groupId}
> my-module
> ${project.version}
> 
> 
> {code}
> Maven tries to download my-module.jar but obviously fails...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (MNG-6174) Clean Up Maven Model

2017-08-02 Thread Karl Heinz Marbaise (JIRA)

 [ 
https://issues.apache.org/jira/browse/MNG-6174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Karl Heinz Marbaise closed MNG-6174.

Resolution: Fixed

Done in 
[4f2a2dba89251d9045fe9944783509a397491da3|https://git-wip-us.apache.org/repos/asf?p=maven.git;a=commit;h=4f2a2dba89251d9045fe9944783509a397491da3]

> Clean Up Maven Model
> 
>
> Key: MNG-6174
> URL: https://issues.apache.org/jira/browse/MNG-6174
> Project: Maven
>  Issue Type: Improvement
>  Components: core
>Affects Versions: 3.3.9
>Reporter: Karl Heinz Marbaise
>Assignee: Karl Heinz Marbaise
>Priority: Minor
> Fix For: 3.5.1
>
>
> Remove all parts from the Maven Model which are only valid for ModelVersion 
> 3.0.0



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (MNG-6123) detect self references in POM and fail fast

2017-08-02 Thread Hudson (JIRA)

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

Hudson commented on MNG-6123:
-

SUCCESS: Integrated in Jenkins build maven-3.x #1660 (See 
[https://builds.apache.org/job/maven-3.x/1660/])
[MNG-6123] detect self references in POM and fail fast  o Added unit 
(khmarbaise: 
[http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=8f8c45c990193b04c1770997d446951c5185b164])
* (edit) 
maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java
* (add) 
maven-model-builder/src/test/resources/poms/validation/raw-model/self-referencing.xml
* (edit) 
maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java


> detect self references in POM and fail fast
> ---
>
> Key: MNG-6123
> URL: https://issues.apache.org/jira/browse/MNG-6123
> Project: Maven
>  Issue Type: Improvement
>  Components: Bootstrap & Build, Dependencies
>Affects Versions: 3.3.9
> Environment: Oracle JDK 1.8.0_111 on Linux 4.8 x64
>Reporter: Gregor B. Rosenauer
>Assignee: Karl Heinz Marbaise
>Priority: Minor
>  Labels: build, easyfix
> Fix For: 3.5.1
>
>
> Maven does not detect self references in a POM and tries to download the 
> artifact it is about to build, which makes no sense and should result in an 
> early error and abort of the build.
> E.g. sample POM:
> {code}
> org.my.acme
> my-module
> 1.2.3
> 
> ...
> 
> ${project.groupId}
> my-module
> ${project.version}
> 
> 
> {code}
> Maven tries to download my-module.jar but obviously fails...



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (MNG-6174) Clean Up Maven Model

2017-08-02 Thread Hudson (JIRA)

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

Hudson commented on MNG-6174:
-

SUCCESS: Integrated in Jenkins build maven-3.x #1661 (See 
[https://builds.apache.org/job/maven-3.x/1661/])
[MNG-6174] Clean Up Maven Model (khmarbaise: 
[http://git-wip-us.apache.org/repos/asf/?p=maven.git&a=commit&h=4f2a2dba89251d9045fe9944783509a397491da3])
* (edit) maven-model/src/main/mdo/maven.mdo


> Clean Up Maven Model
> 
>
> Key: MNG-6174
> URL: https://issues.apache.org/jira/browse/MNG-6174
> Project: Maven
>  Issue Type: Improvement
>  Components: core
>Affects Versions: 3.3.9
>Reporter: Karl Heinz Marbaise
>Assignee: Karl Heinz Marbaise
>Priority: Minor
> Fix For: 3.5.1
>
>
> Remove all parts from the Maven Model which are only valid for ModelVersion 
> 3.0.0



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Closed] (MNGSITE-313) Add documentation for MNG-1493 (referencing POM file in )

2017-08-02 Thread Robert Scholte (JIRA)

 [ 
https://issues.apache.org/jira/browse/MNGSITE-313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte closed MNGSITE-313.
--
Resolution: Fixed
  Assignee: Robert Scholte

Fixed in [r1803909|http://svn.apache.org/viewvc?rev=1803909&view=rev]
Thanks for the patch!

> Add documentation for MNG-1493 (referencing POM file in )
> -
>
> Key: MNGSITE-313
> URL: https://issues.apache.org/jira/browse/MNGSITE-313
> Project: Maven Project Web Site
>  Issue Type: Improvement
>Reporter: Till Brychcy
>Assignee: Robert Scholte
> Attachments: MNGSITE-313-maven-site.patch
>
>
> I yesterday learned about the feature implemented in 
> https://issues.apache.org/jira/browse/MNG-1493
> and noted it is not documented in the POM reference 
> https://maven.apache.org/pom.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)