Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B1B076DE for ; Thu, 28 Jul 2011 07:21:33 +0000 (UTC) Received: (qmail 62919 invoked by uid 500); 28 Jul 2011 07:21:27 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 62294 invoked by uid 500); 28 Jul 2011 07:21:09 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 61984 invoked by uid 99); 28 Jul 2011 07:21:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2011 07:21:05 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [78.134.5.44] (HELO rovere.tirasa.net) (78.134.5.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jul 2011 07:20:58 +0000 Received: from localhost (localhost [127.0.0.1]) by rovere.tirasa.net (Postfix) with ESMTP id 0629F17FEFE for ; Thu, 28 Jul 2011 09:16:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at tirasa.net Received: from rovere.tirasa.net ([127.0.0.1]) by localhost (rovere.tirasa.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vjZIXnDk2vF3 for ; Thu, 28 Jul 2011 09:16:07 +0200 (CEST) Received: from [192.168.0.2] (mogano.tirasa.net [192.168.0.2]) by rovere.tirasa.net (Postfix) with ESMTPSA id 508EB17FED7 for ; Thu, 28 Jul 2011 09:16:07 +0200 (CEST) Message-ID: <4E310DC1.7090902@apache.org> Date: Thu, 28 Jul 2011 09:20:33 +0200 From: =?ISO-8859-1?Q?Francesco_Chicchiricc=F2?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: C3 alpha-3 mvn dependency error: cocoon-optional References: <4E306406.9000307@sil.org> <4E306FDF.3020907@sil.org> <4E307B72.4030501@sil.org> In-Reply-To: <4E307B72.4030501@sil.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Lars, nice to see that you are putting your hands on Cocoon 3 :-) See my comments embedded below. Regards. On 27/07/2011 22:56, Lars Huttar wrote: > On 7/27/2011 3:06 PM, Lars Huttar wrote: >> Now I'm really in over my head. Searching at >> http://search.maven.org/#search|ga|1|a%3A%22jersey%22 >> the only artifact there named "jersey" is from group >> com.cedarsoft.rest, which also has an artifact named "server". Could >> the project have split "jersey-server" into two parts, and changed to >> a completely different groupId?? There are no search results for an >> artifact named "jersey-server". > > OK, now I've made it work. > Besides removing "-SNAPSHOT" from the of the cocoon-optional > in the generated pom.xml, This problem - wrong version for cocoon-optional in cocoon-archetype-sample pom.xml - has already been fixed in version beta-1-SNAPSHOT. Thanks anyway for reporting - and good fix ;-) > I followed the advice of > http://jersey.java.net/nonav/documentation/latest/user-guide.html#chapter_deps: > > "And the following repositories need to be added to the pom: > > > > maven2-repository.java.net > Java.net Repository for Maven > http://download.java.net/maven/2/ > default > > > maven-repository.java.net > Java.net Maven 1 Repository (legacy) > http://download.java.net/maven/1 > legacy > > > " > > I added those to the generated pom.xml. Actually, this is a bit too much: you only need to add maven2-repository.java.net Java.net Repository for Maven http://download.java.net/maven/2/ default before , at the end of pom.xml. I've just fixed this in the trunk, thanks again for reporting. > Now jetty runs... hooray! > (Although there are still several warnings about logger.) > > The instructions at > http://cocoon.apache.org/3.0/download.html > are also incorrect in that they say "point your browser at > http://localhost:8080" - For me at least, the port is 8888, and I'm > pretty sure I didn't do anything special to configure that. I've fixed this in the documentation for beta-1-SNAPSHOT, thanks: this means that you will see the fix online at next release. I don't have permissions to modify /x1/www/cocoon.apache.org/3.0/download.html on minotaur.apache.org, so I am not able to fix the online version: is there anyone who can do this quick fix? > Question: was I right to add those repositories to my generated > pom.xml? If so, I'll have to add them to the pom.xml of each of the > other artifacts I generate: archetype-block, archetype-webapp, > archetype-parent? Should I instead add them to the Super-POM that I > read about, and if so, where is that? > > Then once I've created all these artifacts, where do I develop my code > -- under the webapp artifact? > > What is the purpose of the parent module that I'm told to create? Does > it even affect the webapp? > A similar question goes for the empty cocoon block, and the samples > block. I guess the empty cocoon block is a dependency for the webapp, > but what about the others? Do I need to add them as dependencies too? The logic behind the four available archetypes is very close to Cocoon 2.2 approach [1]: the typical scenario is when you have a single webapp, and one or more blocks implementing features. In order to group all these modules together, you need what you are calling "Super-POM" i.e.a multi-module Maven project. About this, there is an archetype for every kind of project: block, webapp and parent. > Sorry to lob so many questions, but I am doing my best to get oriented > to how Cocoon and its dependencies work, so that I will be able to use > it effectively and contribute to development where needed. > > I will try to blog what I learn (or contribute to Cocoon 3 docs) so > that others will have an easier time learning the system. Try-outs, tests, questions and blog posts are very very welcome :-) [1] http://cocoon.apache.org/2.2/1159_1_1.html -- Francesco Chicchiricc� Apache Cocoon Committer and PMC Member http://people.apache.org/~ilgrosso/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org