Re: Maven with subdirectories within the src/main/components/ path
Re: Maven with subdirectories within the src/main/components/ path
- Subject: Re: Maven with subdirectories within the src/main/components/ path
- From: Hugi Thordarson <email@hidden>
- Date: Mon, 10 Oct 2016 15:45:59 +0000
You can add each subfolder in your “components”-folder as a resource folder. It’s a pretty horrifying workaround, though and I think we should change the wolifecycle-plugin and align the behaviour with ant's (i.e. subfolders in the components directory should always be flattened by default).
But for the workaround; add the <resources> element to your pom's build element. Each subfolder gets its own <resource> tag.
<build>
…
<resources>
<resource>
<targetPath>Resources</targetPath>
<directory>
${basedir}/src/main/components/Folder1
</directory>
</resource>
<resource>
<targetPath>Resources</targetPath>
<directory>
${basedir}/src/main/components/Folder2
</directory>
</resource>
</resources>
...
</build>
- hugi
> On 10. okt. 2016, at 07:02, Paul Hoadley <email@hidden> wrote:
>
> On 9 Oct 2016, at 8:14 PM, Paul Hoadley <email@hidden> wrote:
>
>> On 6 Sep 2016, at 10:00 PM, Mark Wardle <email@hidden> wrote:
>>
>>> I am getting the following error:
>>>
>>> <com.webobjects.appserver._private.WOComponentDefinition> No template found for component
>>>
>>> for components held within subdirectories of src/main/components/ There isn’t a problem for .wo directories stored directly in src/main/components.
>>>
>>> Is there any way of supporting such an organisation?
>>
>> Did you find a work-around for this?
>
> Anyone else? Are people using Maven[1] just using a flat structure under src/main/components, or is there some work-around we’re missing here?
>
> [1] I’m assuming the intersection of that group with this list is non-empty. Are there actually any WO-Maven people still here?
>
>
> --
> Paul Hoadley
> http://logicsquad.net/
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden