Grzegorz Kossakowski <[EMAIL PROTECTED]> writes: I followed your example but still get exactly the same error!
> [EMAIL PROTECTED] pisze: >>> Why don't you use profile "cocoon-staging" while running this command? >> >> I did this in settings.xml instead: >> <activeProfiles> >> <activeProfile>cocoon-staging</activeProfile> >> </activeProfiles> > > To be sure that you have clean repository I suggest using additional settings > file (testing-cocoon-settings.xml) like this one: > <settings xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/settings-1.0.0.xsd"> > <localRepository>/tmp/maven-temp-repository</localRepository> > <profiles> > <profile> > <id>testing-cocoon</id> > <activation> > <activeByDefault>true</activeByDefault> > </activation> > <repositories> > <repository> > <id>cocoon.staging</id> > <name>Cocoon staging repository</name> > <url>http://people.apache.org/builds/cocoon</url> > </repository> > </repositories> > <pluginRepositories> > <pluginRepository> > <id>cocoon.staging</id> > <name>Cocoon staging repository</name> > <url>http://people.apache.org/builds/cocoon</url> > </pluginRepository> > </pluginRepositories> > </profile> > </profiles> > </settings> > > to use it you have to run maven with -s > testing-cococoon-settings.xml. I like this setup the most because I > don't have to mess up my default repository and default settings file. > >> Ok! but how did you install the archetype then? >> I checked it out using svn, and did "mvn install" for it. > > I've done this: > mkdir cocoon-rc1-test > cd cocoon-rc1-test > svn co > http://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-22-archetype-block/cocoon-22-archetype-block-1.0.0-RC1svn > co > http://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-22-archetype-webapp/cocoon-22-archetype-webapp-1.0.0-RC1svn > co > http://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.2/cocoon-22-archetype-block-plain/cocoon-22-archetype-block-plain-1.0.0-RC1cd > cocoon-22-archetype-block-1.0.0-RC1 > mvn install -s $HOME/testing-cocoon-settings.xml > [the same goes for two other archetypes] > > And then followed the tutorial. Report back if it works for you. > > -- > Grzegorz Kossakowski > http://reflectingonthevicissitudes.wordpress.com/ -- Joakim Verona
