[
https://jira.codehaus.org/browse/MSHADE-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
sam schumer updated MSHADE-153:
-------------------------------
Description:
When relocating all all classes for a given project, I ran into issues with
date stings. The relocations were formatted in the pom as:
<relocation>
<!--<pattern></pattern>-->
<shadedPattern>apitests.</shadedPattern>
<relocation>
The original idea for relocating everything in this way was to avoid
non-compatible versions when this project is imported, and it worked once I
excluded all java files from relocation.
However it seems that shade was pre-appending the strings "apitest." to strings
inside class files that had nothing to do with the location of classes.
Specifically when formatting a
"com.fasterxml.jackson.databind.util.StdDateFormat" which should have been
"yyyy-MM-dd'T'HH:mm:ss.SSSZ" it threw an illegal argument exception when trying
to parse the date string "apitests.yyyy-MM-dd'T'HH:mm:ss.SSSZ" It would appear
that shade pre-appended "apitests." to multiple strings which follow a very
similar format to strings which like locations of files.
Edit: submitted before I was read edit completes the issue
was:
When relocating all all classes for a given project, I ran into issues with
date stings. The relocations were formatted in the pom as:
<relocation>
<!--<pattern></pattern>-->
<shadedPattern>apitests.</shadedPattern>
<relocation>
Edit: submitted before I was read edit completes the issue
> Relocating all classes packages preappends that pattern to date strings
> -----------------------------------------------------------------------
>
> Key: MSHADE-153
> URL: https://jira.codehaus.org/browse/MSHADE-153
> Project: Maven Shade Plugin
> Issue Type: Bug
> Affects Versions: 2.0
> Environment: Intelij- IDEA
> Reporter: sam schumer
>
> When relocating all all classes for a given project, I ran into issues with
> date stings. The relocations were formatted in the pom as:
> <relocation>
> <!--<pattern></pattern>-->
> <shadedPattern>apitests.</shadedPattern>
> <relocation>
> The original idea for relocating everything in this way was to avoid
> non-compatible versions when this project is imported, and it worked once I
> excluded all java files from relocation.
> However it seems that shade was pre-appending the strings "apitest." to
> strings inside class files that had nothing to do with the location of
> classes. Specifically when formatting a
> "com.fasterxml.jackson.databind.util.StdDateFormat" which should have been
> "yyyy-MM-dd'T'HH:mm:ss.SSSZ" it threw an illegal argument exception when
> trying to parse the date string "apitests.yyyy-MM-dd'T'HH:mm:ss.SSSZ" It
> would appear that shade pre-appended "apitests." to multiple strings which
> follow a very similar format to strings which like locations of files.
> Edit: submitted before I was read edit completes the issue
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira