You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Simon Brending (JIRA)" <ji...@apache.org> on 2010/12/10 08:12:03 UTC
[jira] Created: (NPANDAY-358) ResGen Maven Plugin: Failed to find
resources in multi module project
ResGen Maven Plugin: Failed to find resources in multi module project
---------------------------------------------------------------------
Key: NPANDAY-358
URL: https://issues.apache.org/jira/browse/NPANDAY-358
Project: NPanday
Issue Type: Bug
Components: Maven Plugins
Affects Versions: 1.2.1
Reporter: Simon Brending
Priority: Blocker
The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NPANDAY-358) ResGen Maven Plugin: Failed to find
resources in multi module project
Posted by "Brett Porter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978647#action_12978647 ]
Brett Porter commented on NPANDAY-358:
--------------------------------------
do you have an example project that illustrates this? Perhaps one could be derived from the NPanday integration test for resources: http://svn.apache.org/repos/asf/incubator/npanday/npanday-its/trunk/src/test/resources/NPandayIT0020/
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1
> Reporter: Simon Brending
> Priority: Blocker
> Fix For: Backlog
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (NPANDAY-358) ResGen Maven Plugin:
Failed to find resources in multi module project
Posted by "Simon Brending (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979501#action_12979501 ]
Simon Brending edited comment on NPANDAY-358 at 1/10/11 3:10 AM:
-----------------------------------------------------------------
The attached project runs to error, when started from the rootfolder.
was (Author: brending):
Testproject
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1
> Reporter: Simon Brending
> Priority: Blocker
> Fix For: Backlog
>
> Attachments: ResourceTest.zip
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Commented] (NPANDAY-358) ResGen Maven Plugin: Failed to
find resources in multi module project
Posted by "Greg Knox (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183907#comment-13183907 ]
Greg Knox commented on NPANDAY-358:
-----------------------------------
I am also seeing this error on my own projects.
FYI, the error message received when running an 'mvn compile' against the attached project is:
[INFO] [resgen:generate]
[INFO] [resgen:generate-existing-resx-to-resource]
[INFO] NPANDAY-070-003: Found executable path for resgen: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin
[INFO] C:\temp\resourceTest\parentPom\childProject\childProject\Properties\Resource.resx(123,5): error RG0000: Could not
find a part of the path 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Resources\hyperlink.xml'. Line 123, positi
on 5.
[INFO] 1 error(s).
the hyperlink.xml file the plugin cannot find is located in C:\temp\resourceTest\parentPom\childProject\childProject\Resources\hyperlink.xml (relative to the C:\temp\resourceTest\parentPom\childProject\childProject\Properties\Resource.resx file which references it), rather than relative to the resgen executable.
NB: I had to change the childProject\childProject\pom.xml to get this attached project to compile; by modifying the <groupId>npanday.plugin</groupId> elements in the child project pom.xml to <groupId>org.apache.npanday.plugins</groupId>, and removing the <version>1.2.1</version> element. I am running using the latest npanday release installed via the npanday-installer-1.4.0-incubating.msi installer.
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1
> Reporter: Simon Brending
> Priority: Blocker
> Fix For: Backlog
>
> Attachments: ResourceTest.zip
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (NPANDAY-358) ResGen Maven Plugin: Failed to find
resources in multi module project
Posted by "Brett Porter (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated NPANDAY-358:
---------------------------------
Affects Version/s: 1.4-incubating
Fix Version/s: (was: 1.5.0-incubating)
1.4.1-incubating
Thanks for the sample project - we'll take a look
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1, 1.4-incubating
> Reporter: Simon Brending
> Assignee: Lars Corneliussen
> Priority: Blocker
> Fix For: 1.4.1-incubating
>
> Attachments: ResourceTest.zip
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (NPANDAY-358) ResGen Maven Plugin: Failed to find
resources in multi module project
Posted by "Brett Porter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated NPANDAY-358:
---------------------------------
Fix Version/s: Backlog
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1
> Reporter: Simon Brending
> Priority: Blocker
> Fix For: Backlog
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Assigned] (NPANDAY-358) ResGen Maven Plugin: Failed to find
resources in multi module project
Posted by "Lars Corneliussen (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Corneliussen reassigned NPANDAY-358:
-----------------------------------------
Assignee: Lars Corneliussen
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1
> Reporter: Simon Brending
> Assignee: Lars Corneliussen
> Priority: Blocker
> Fix For: 1.5.0-incubating
>
> Attachments: ResourceTest.zip
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (NPANDAY-358) ResGen Maven Plugin: Failed to find
resources in multi module project
Posted by "Simon Brending (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Brending updated NPANDAY-358:
-----------------------------------
Attachment: ResourceTest.zip
Testproject
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1
> Reporter: Simon Brending
> Priority: Blocker
> Fix For: Backlog
>
> Attachments: ResourceTest.zip
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Commented] (NPANDAY-358) ResGen Maven Plugin: Failed to
find resources in multi module project
Posted by "Greg Knox (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229601#comment-13229601 ]
Greg Knox commented on NPANDAY-358:
-----------------------------------
Any progress on this issue ?
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1, 1.4-incubating
> Reporter: Simon Brending
> Assignee: Lars Corneliussen
> Priority: Blocker
> Fix For: 1.4.1-incubating
>
> Attachments: ResourceTest.zip
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (NPANDAY-358) ResGen Maven Plugin: Failed to find
resources in multi module project
Posted by "Robert Savage (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Savage updated NPANDAY-358:
----------------------------------
Attachment: NPANDAY-358-PATCH
I have created a patch file to update the 'maven-resgen-plugin' to include the "/useSourcePath" argument when executing resgen.
This is needed because when using the default "Properties.Resources.resx" file to include project resources, individual resource files (images, icons, etc.) are defined using relative paths inside the .resx file.
I have not performed extensive testing, but this seems to be working great in my project. I can now compile using maven at the child project pom level and at the parent pom level.
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1, 1.4-incubating
> Reporter: Simon Brending
> Assignee: Lars Corneliussen
> Priority: Blocker
> Fix For: 1.5.0-incubating
>
> Attachments: NPANDAY-358-PATCH, ResourceTest.zip
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (NPANDAY-358) ResGen Maven Plugin: Failed to find
resources in multi module project
Posted by "Lars Corneliussen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Corneliussen updated NPANDAY-358:
--------------------------------------
Fix Version/s: (was: Backlog)
1.5.0-incubating
> ResGen Maven Plugin: Failed to find resources in multi module project
> ---------------------------------------------------------------------
>
> Key: NPANDAY-358
> URL: https://issues.apache.org/jira/browse/NPANDAY-358
> Project: NPanday
> Issue Type: Bug
> Components: Maven Plugins
> Affects Versions: 1.2.1
> Reporter: Simon Brending
> Assignee: Lars Corneliussen
> Priority: Blocker
> Fix For: 1.5.0-incubating
>
> Attachments: ResourceTest.zip
>
>
> The ResGen Maven Plugin fails in a multi module project. It can not find the resources, because it does not resolve the paths correctly.
> The path will be resolved correctly with the command line option "/usesourcepath".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira