Hi Benoit,
Does your pom.xml have the following configuration?
<build>
<plugins>
<plugin>
<groupId>org.objectstyle.woproject.maven2</groupId>
<artifactId>maven-wolifecycle-plugin</artifactId>
<extensions>true</extensions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<targetPath>Resources</targetPath>
</resource>
<resource>
<directory>src/main/webserver-resources</directory>
<targetPath>WebServerResources</targetPath>
</resource>
</resources>
</build>
With the configuration above, you can put your resources in folders
defined by maven-archetype-woapplication. The Maven plug-in will
generate the JAR with the resources within a folder named Resources and
images and others within a folder named WebServerResources.
In anyway, I had already found this problem as you can see in messages
[1] and [2].
The WebObjects and the WOLips don't read models which are within JARs (I
don't remember of having problems with components). This is an open
issue not solved yet (maybe you must report a bug). As soon as I can
arrange time, I will work on that problem, because Maven is crucial in
our environment.
In the meantime, to continue working with Maven, we use the following
workaround:
All the frameworks with models are referenced also using the WebObjects
Library offered by WOLips. For that purpose you must install those
frameworks with the WOLips Ant Tools -> Install option. Logically, isn't
the best solution, but it works.
I hope this can help you.
Cheers,
Henrique
[1]http://objectstyle.org/woproject-old/lists/woproject-dev/2006/09/0315.html
[2]http://objectstyle.org/woproject-old/lists/woproject-dev/2006/09/0335.html
Benoit Cantin wrote:
> Frédéric JECKER wrote:
>> Hi,
>>
>> Here we keep those files in the root directory of each app/framework
>> and it works perfectly
>> Why are you trying to embed those files in packages while these are
>> automatically moved at the right
>> place when building your projects
>>
>> Fred
>
> We tried to follow intructions given on this page
> http://wiki.objectstyle.org/confluence/display/WOL/maven-archetype-woapplication
> in order to package our app with wolifecycle plugin. While there was no
> instruction concerning eomodels, we considered them as resources, and
> decided to move them to src/main/resources. Well, it seems not to be a
> good idea.
>
> Thank you.
>
--\o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: hprang..oleque.com.br / \ http://www.moleque.com.br
This archive was generated by hypermail 2.0.0 : Thu Jan 18 2007 - 09:14:57 EST