Ops! On step 3, should be:
3-copy from click-2.1.0/examples/src to canyenneclick/src/main/resources:

Kinda regards,

Gilberto

On Thu, Mar 25, 2010 at 5:17 PM, Gilberto C. Andrade
<[email protected]>wrote:

> Ok, lets begin!
> First, make a new check out the maven click archetype project, ok?
>
> I've created a new project(attached) using it the following way:
>
> 1-create one project from the click archetype
> 2-change the pom.xml file:
>             <plugin>
>                 <groupId>org.apache.cayenne.plugins</groupId>
>                 <artifactId>maven-cayenne-modeler-plugin</artifactId>
>                 <version>3.0RC2</version>
>             </plugin>
> 3-copy from click-2.1.0/examples/src to canyenneclick/src:
> cayenne.xml
> cayenneMap.map.xml
> cayenneNode.driver.xml
> 4-copy from click-2.1.0/examples/src/org/apache/click/examples/domain/ to
> canyenneclick/src/main/java/com/mycompany/canyenneclick/domain:
> BaseEntity.java
> 5-change the pom.xml file:
>         <dependency>
>             <groupId>org.apache.cayenne</groupId>
>             <artifactId>cayenne-server</artifactId>
>             <version>3.0RC2</version>
>             <exclusions>
>                 <exclusion>
>                     <groupId>velocity</groupId>
>                     <artifactId>velocity</artifactId>
>                 </exclusion>
>             </exclusions>
>         </dependency>
>         <dependency>
>             <groupId>hsqldb</groupId>
>             <artifactId>hsqldb</artifactId>
>             <version>1.8.0.7</version>
>         </dependency>
>
> 5-run cayenne-modeler:run, adjust the project (package name) and generates
> the classes
> 6-copy from click-2.1.0/examples/webapp/cayenne/ to
> canyenneclick/src/main/webapp/:
> cayenne-form-page.htm
> 7-copy from click-2.1.0/examples/src/org/apache/click/examples/service/ to
> canyenneclick/src/main/java/com/mycompany/canyenneclick/service/
> ClientService.java
> #make the adjusts (remove spring dependence)
>
> 8-copy click-2.1.0/examples/src/org/apache/click/examples/page/ to
> canyenneclick/src/main/java/com/mycompany/canyenneclick/:
> cayenneCayenneFormPage.java
> FormTablePage.java
>
> #make the adjusts (remove spring dependence)
> private ClientService clientService = new ClientService();
>
> 9-change the web.xml file:
>   <filter>
>      <filter-name>data-context-filter</filter-name>
>
> <filter-class>org.apache.click.extras.cayenne.DataContextFilter</filter-class>
>    </filter>
>
>    <filter-mapping>
>      <filter-name>data-context-filter</filter-name>
>      <servlet-name>click-servlet</servlet-name>
>    </filter-mapping>
> 10-finally run the app:
> mvn jetty:run
>
> Hope this help,
>
> Gilberto
>
>
> On Thu, Mar 25, 2010 at 4:22 PM, <[email protected]> wrote:
>
>> Gilberto,
>>
>> I'll keep on trying with Milestone 6. If you have any advance in the
>> archetype, please let me know. Maybe the click community should address with
>> more interest this "maven" thing.
>>
>> Bye
>> Hans
>>
>> ----- "Gilberto C. Andrade" <[email protected]> escribió:
>>
>> > On Thu, Mar 25, 2010 at 2:47 PM, < [email protected] > wrote:
>> >
>> >
>> > Gilberto,
>> >
>> > In fact i created the project using your archetype, thank you.
>> >
>> >
>> > You're welcome!
>> >
>> >
>> >
>> >
>> > Click actually doesn't have dependencies on cayenne.
>> > But it has if you use the hibernateForm.
>> > Do you want to use that control or use you own forms?
>> >
>> >
>> > After creating the project included latest Cayenne 3.0RC2 and the i've
>> > been having troubles with dependencies, mainly cayenne, i'm
>> > considering going back to ant, but i don't want give up.
>> >
>> >
>> > Click 2.1.0 was tested with cayenne-server-3.0M6 and maybe this new
>> > version can cause problems.
>> >
>> >
>> >
>> >
>> > ¿ Do you have some idea on what is going on with dependencies
>> > maven/eclipse/click/cayenne ?
>> >
>> >
>> > I'm using NetBeans 6.8/maven/jpa/click. I will try create a new
>> > archetype with cayenne.
>> >
>> > Kinda regards,
>> >
>> > Gilberto
>> >
>> >
>> > Hans
>> >
>> > ----- "Gilberto C. Andrade" < [email protected] > escribió:
>> >
>> >
>> >
>> >
>> > > Hi,
>> > > Can you try this contrib [1]?
>> > >
>> > > Gilberto
>> > > [1]
>> > >
>> >
>> http://n2.nabble.com/Maven-Archetype-for-Apache-Click-td4520258.html#a4520258
>> > >
>> > >
>> > >
>> > > On Thu, Mar 25, 2010 at 9:24 AM, < [email protected] > wrote:
>> > >
>> > >
>> > > Hi,
>> > >
>> > > I've done the exclusion, and it seems to be better, know i've been
>> > > faced with a problem with auto deplpoyed click resources giving
>> > > java.io.IOException:
>> > >
>> > > Click] [warn ] error occured deploying resource
>> > > /cl/welinux/controls/cookie-checkbox.js, error java.io.IOException:
>> > > could not locate classpath resource:
>> > > /cl/welinux/controls/cookie-checkbox.js
>> > >
>> > > May be some maven click users can help me... I apologize to people
>> > not
>> > > using maven/eclipse, but it seems to be an important tool, and may
>> > be
>> > > a good thing to have click / apache projects maven/eclipse aware...
>> > >
>> > >
>> > > Thanks
>> > > Hans
>> > >
>> > >
>> > >
>> > >
>> > > ----- "Atle Prange" < [email protected] > escribió:
>> > >
>> > >
>> > >
>> > >
>> > > > Excluding from an import is done by just adding an <exclude> tag
>> > in
>> > > > the
>> > > > import definition. That should prevent maven from pulling in the
>> > > > excluded resource.
>> > > >
>> > > > <exclude>
>> > > > <groupId>[groupId here]</groupId>
>> > > > <artifactId>[artifactid here]</artifactId>
>> > > > </exclude>
>> > > >
>> > > > -atle
>> > > >
>> > > > On Thu, 2010-03-25 at 10:14 +1100, Bob Schellink wrote:
>> > > > > Hi Hans,
>> > > > >
>> > > > > Velocity is backward compatible so you only need to include
>> > 1.6.3.
>> > > > I'm not familiar with maven so
>> > > > > can you tell it to "exclude" velocity 1.3?
>> > > > >
>> > > > > kind regards
>> > > > >
>> > > > > bob
>> > > > >
>> > > > >
>> > > > > On 25/03/2010 10:01 AM, [email protected] wrote:
>> > > > > > Hi,
>> > > > > >
>> > > > > > I'm new to maven and i'm trying to refactor an old ant project
>> > > to
>> > > > maven2.
>> > > > > >
>> > > > > > I've noticed that Click nodeps depends on Velocity 1.6.3, but
>> > > > latest cayenne release Cayenne Server 3.0RC2 depends on velocity
>> > > 1.3.
>> > > > > >
>> > > > > > I've been with various problems giving class not found when
>> > > > running on tomcat 6, i figured out this could be some of the
>> > > > problems..
>> > > > > >
>> > > > > > ¿ Can anyone give some advise ?
>> > > > > >
>> > > > > > Thanks
>> > > > > > Hans
>> > > > > >
>> > > > >
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > > Hans Poo, WeLinux S.A. http://www.welinux.cl
>> > > Oficina: 697.25.42, Celular: 09-319.93.05
>> > > Bombero Ossa # 1010, Santiago
>> >
>> > --
>> >
>> >
>> >
>> > Hans Poo, WeLinux S.A. http://www.welinux.cl
>> > Oficina: 697.25.42, Celular: 09-319.93.05
>> > Bombero Ossa # 1010, Santiago
>>
>> --
>> Hans Poo, WeLinux S.A. http://www.welinux.cl
>> Oficina: 697.25.42, Celular: 09-319.93.05
>> Bombero Ossa # 1010, Santiago
>>
>>
>

Reply via email to