You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/09/21 17:57:57 UTC
[jira] Created: (MNG-3760) Support property ${baseurl} to get
RFC-compliant URL of project base directory
Support property ${baseurl} to get RFC-compliant URL of project base directory
------------------------------------------------------------------------------
Key: MNG-3760
URL: http://jira.codehaus.org/browse/MNG-3760
Project: Maven 2
Issue Type: New Feature
Components: Artifacts and Repositories, Inheritance and Interpolation
Affects Versions: 2.0.9
Reporter: Benjamin Bentmann
Priority: Minor
If people currently need a URL to their project base directory or any file within, they need to write {{file://$\{basedir}}/}}. The problem about this approach is that it doesn't deliver a [RFC-compliant URL|http://tools.ietf.org/html/rfc3986] since characters are not properly percent-encoded. Also, the exact number of slashes between {{file:}} and {{${basedir}}} depends on the OS (e.g. {{file:///C:/user/}} and {{file:///home/user}}, Unix paths have a leading slash by themselves, Windows not). This makes it currently impossible to configure plugins that expect a URL as input and do strict URL parsing.
For this reason, I suggest to support an additional property {{${baseurl}}} with the value
{code:java}
baseurl = new File( basedir ).toURI().toString()
{code}
for POM interpolation.
Some day, when Maven/Wagon itself handle percent-encoded {{file:}} URLs correctly (WAGON-111), this property could also be used to define local deployment repos like we commonly use for testing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MNG-3760) Support property ${baseurl} to get
RFC-compliant URL of project base directory
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MNG-3760.
-----------------------------
Assignee: Brett Porter
Resolution: Fixed
docs added
> Support property ${baseurl} to get RFC-compliant URL of project base directory
> ------------------------------------------------------------------------------
>
> Key: MNG-3760
> URL: http://jira.codehaus.org/browse/MNG-3760
> Project: Maven 2
> Issue Type: New Feature
> Components: Artifacts and Repositories, Inheritance and Interpolation
> Affects Versions: 2.0.9
> Reporter: Benjamin Bentmann
> Assignee: Brett Porter
> Priority: Minor
> Fix For: 2.1.0-M2
>
>
> If people currently need a URL to their project base directory or any file within, they need to write {{file://$\{basedir}}/}}. The problem about this approach is that it doesn't deliver a [RFC-compliant URL|http://tools.ietf.org/html/rfc3986] since characters are not properly percent-encoded. Also, the exact number of slashes between {{file:}} and {{${basedir}}} depends on the OS (e.g. {{file:///C:/user/}} and {{file:///home/user}}, Unix paths have a leading slash by themselves, Windows not). This makes it currently impossible to configure plugins that expect a URL as input and do strict URL parsing.
> For this reason, I suggest to support an additional property {{${baseurl}}} with the value
> {code:java}
> baseurl = new File( basedir ).toURI().toString()
> {code}
> for POM interpolation.
> Some day, when Maven/Wagon itself handle percent-encoded {{file:}} URLs correctly (WAGON-111), this property could also be used to define local deployment repos like we commonly use for testing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-3760) Support property ${baseurl} to get
RFC-compliant URL of project base directory
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann updated MNG-3760:
-----------------------------------
Fix Version/s: 3.0-alpha-3
Merged to 3.x in [r752241|http://svn.eu.apache.org/viewvc?view=rev&revision=752241].
> Support property ${baseurl} to get RFC-compliant URL of project base directory
> ------------------------------------------------------------------------------
>
> Key: MNG-3760
> URL: http://jira.codehaus.org/browse/MNG-3760
> Project: Maven 2
> Issue Type: New Feature
> Components: Artifacts and Repositories, Inheritance and Interpolation
> Affects Versions: 2.0.9
> Reporter: Benjamin Bentmann
> Assignee: Brett Porter
> Priority: Minor
> Fix For: 2.1.0, 3.0-alpha-3
>
>
> If people currently need a URL to their project base directory or any file within, they need to write {{file://$\{basedir}}/}}. The problem about this approach is that it doesn't deliver a [RFC-compliant URL|http://tools.ietf.org/html/rfc3986] since characters are not properly percent-encoded. Also, the exact number of slashes between {{file:}} and {{${basedir}}} depends on the OS (e.g. {{file:///C:/user/}} and {{file:///home/user}}, Unix paths have a leading slash by themselves, Windows not). This makes it currently impossible to configure plugins that expect a URL as input and do strict URL parsing.
> For this reason, I suggest to support an additional property {{${baseurl}}} with the value
> {code:java}
> baseurl = new File( basedir ).toURI().toString()
> {code}
> for POM interpolation.
> Some day, when Maven/Wagon itself handle percent-encoded {{file:}} URLs correctly (WAGON-111), this property could also be used to define local deployment repos like we commonly use for testing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-3760) Support property ${baseurl} to get
RFC-compliant URL of project base directory
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-3760:
------------------------------
Fix Version/s: 2.1.0-M2
> Support property ${baseurl} to get RFC-compliant URL of project base directory
> ------------------------------------------------------------------------------
>
> Key: MNG-3760
> URL: http://jira.codehaus.org/browse/MNG-3760
> Project: Maven 2
> Issue Type: New Feature
> Components: Artifacts and Repositories, Inheritance and Interpolation
> Affects Versions: 2.0.9
> Reporter: Benjamin Bentmann
> Priority: Minor
> Fix For: 2.1.0-M2
>
>
> If people currently need a URL to their project base directory or any file within, they need to write {{file://$\{basedir}}/}}. The problem about this approach is that it doesn't deliver a [RFC-compliant URL|http://tools.ietf.org/html/rfc3986] since characters are not properly percent-encoded. Also, the exact number of slashes between {{file:}} and {{${basedir}}} depends on the OS (e.g. {{file:///C:/user/}} and {{file:///home/user}}, Unix paths have a leading slash by themselves, Windows not). This makes it currently impossible to configure plugins that expect a URL as input and do strict URL parsing.
> For this reason, I suggest to support an additional property {{${baseurl}}} with the value
> {code:java}
> baseurl = new File( basedir ).toURI().toString()
> {code}
> for POM interpolation.
> Some day, when Maven/Wagon itself handle percent-encoded {{file:}} URLs correctly (WAGON-111), this property could also be used to define local deployment repos like we commonly use for testing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-3760) Support property ${baseurl} to get
RFC-compliant URL of project base directory
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=163028#action_163028 ]
Brett Porter commented on MNG-3760:
-----------------------------------
implemented, leaving open until I add docs
> Support property ${baseurl} to get RFC-compliant URL of project base directory
> ------------------------------------------------------------------------------
>
> Key: MNG-3760
> URL: http://jira.codehaus.org/browse/MNG-3760
> Project: Maven 2
> Issue Type: New Feature
> Components: Artifacts and Repositories, Inheritance and Interpolation
> Affects Versions: 2.0.9
> Reporter: Benjamin Bentmann
> Priority: Minor
> Fix For: 2.1.0-M2
>
>
> If people currently need a URL to their project base directory or any file within, they need to write {{file://$\{basedir}}/}}. The problem about this approach is that it doesn't deliver a [RFC-compliant URL|http://tools.ietf.org/html/rfc3986] since characters are not properly percent-encoded. Also, the exact number of slashes between {{file:}} and {{${basedir}}} depends on the OS (e.g. {{file:///C:/user/}} and {{file:///home/user}}, Unix paths have a leading slash by themselves, Windows not). This makes it currently impossible to configure plugins that expect a URL as input and do strict URL parsing.
> For this reason, I suggest to support an additional property {{${baseurl}}} with the value
> {code:java}
> baseurl = new File( basedir ).toURI().toString()
> {code}
> for POM interpolation.
> Some day, when Maven/Wagon itself handle percent-encoded {{file:}} URLs correctly (WAGON-111), this property could also be used to define local deployment repos like we commonly use for testing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-3760) Support property ${baseurl} to get
RFC-compliant URL of project base directory
Posted by "Lars Beuster (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170682#action_170682 ]
Lars Beuster commented on MNG-3760:
-----------------------------------
Maven 2.1.0: The new property (the final name seems to be ${project.baseUri}) works in the POM but isn't replaced with it's current value during resource filtering.
> Support property ${baseurl} to get RFC-compliant URL of project base directory
> ------------------------------------------------------------------------------
>
> Key: MNG-3760
> URL: http://jira.codehaus.org/browse/MNG-3760
> Project: Maven 2
> Issue Type: New Feature
> Components: Artifacts and Repositories, Inheritance and Interpolation
> Affects Versions: 2.0.9
> Reporter: Benjamin Bentmann
> Assignee: Brett Porter
> Priority: Minor
> Fix For: 2.1.0, 3.0-alpha-3
>
>
> If people currently need a URL to their project base directory or any file within, they need to write {{file://$\{basedir}}/}}. The problem about this approach is that it doesn't deliver a [RFC-compliant URL|http://tools.ietf.org/html/rfc3986] since characters are not properly percent-encoded. Also, the exact number of slashes between {{file:}} and {{${basedir}}} depends on the OS (e.g. {{file:///C:/user/}} and {{file:///home/user}}, Unix paths have a leading slash by themselves, Windows not). This makes it currently impossible to configure plugins that expect a URL as input and do strict URL parsing.
> For this reason, I suggest to support an additional property {{${baseurl}}} with the value
> {code:java}
> baseurl = new File( basedir ).toURI().toString()
> {code}
> for POM interpolation.
> Some day, when Maven/Wagon itself handle percent-encoded {{file:}} URLs correctly (WAGON-111), this property could also be used to define local deployment repos like we commonly use for testing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira