You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Patrick Refondini <pa...@pobox.com> on 2006/07/06 16:48:29 UTC

Getting Cocoon 2.2 using Maven

Hello,

following explanations at:
http://cocoon.zones.apache.org/daisy/documentation/g1/1159.html

I executed the following command line (on one line):
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon 
-DarchetypeArtifactId=cocoon-22-archetype-block 
-DarchetypeVersion=1.0.0-SNAPSHOT -DgroupId=com.mycompany 
-DartifactId=myBlock

And obtained the following error:


[INFO] Failed to resolve artifact.

GroupId: org.apache.cocoon
ArtifactId: cocoon-22-archetype-block
Version: 1.0.0-SNAPSHOT

Reason: Unable to download the artifact from any repository


I tried configuring some repositories i.e.:

http://mirrors.dotsrc.org/maven2/org/apache/

and noticed that I could indeed not find any cocoon folder at:
http://mirrors.dotsrc.org/maven2/org/apache/

which as far as I understood is the place it should be ...


I tried this using Maven 2.0.4, Java 1.5.0_04 on Linux.


Any advice, pointers to more docs welcome.

Patrick


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Getting Cocoon 2.2 using Maven

Posted by Patrick Refondini <pa...@pobox.com>.
Bertrand Delacretaz wrote:
> Salut Patrick,
> 
> On 7/6/06, Patrick Refondini <pa...@pobox.com> wrote:
> 
>> ...Any advice, pointers to more docs welcome...
> 
> 
> The README.txt at the top of the trunk usually contains the most
> recent instructions, I have just added some info about Maven
> repository mirrors to it.
> 
> -Bertrand
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
Just a positive input:

[INFO] BUILD SUCCESSFUL
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 9 minutes 39 seconds
[INFO] Finished at: Thu Jul 06 23:58:30 CEST 2006
[INFO] Final Memory: 34M/63M
[INFO] 
------------------------------------------------------------------------

Using Cocoon trunk (cocoon_20060706161737.tar.gz), Maven 2.0.4 with 
trunk/settings.xml merge into my custom .m2/settings.xml and Java 
"1.5.0_06" on MacOSX

executed command line:

mvn -Dmaven.test.skip=true install

as described in README.txt file

Afterward with additional :

cd core/cocoon-webapp:
mvn cocoon:deploy
mvn jetty6:run

I had the beast with samples running !


Thanks a lot Jason, Bertrand and the whole Cocoon Team of course !

Patrick






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Getting Cocoon 2.2 using Maven

Posted by Patrick Refondini <pa...@pobox.com>.
Salut Bertrand,
Bertrand Delacretaz wrote:
> Salut Patrick,
> 
> On 7/6/06, Patrick Refondini <pa...@pobox.com> wrote:
> 
>> ...Any advice, pointers to more docs welcome...
> 
> 
> The README.txt at the top of the trunk usually contains the most
> recent instructions, I have just added some info about Maven
> repository mirrors to it.
Great! I just read Maven 2 has been a hot topic on the dev list :) 
Hoping I'll make it work soon I'll be pleased to give any usefull user 
feedback.

Thanks, Patrick

> 
> -Bertrand
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Getting Cocoon 2.2 using Maven

Posted by Bertrand Delacretaz <bd...@apache.org>.
Salut Patrick,

On 7/6/06, Patrick Refondini <pa...@pobox.com> wrote:

> ...Any advice, pointers to more docs welcome...

The README.txt at the top of the trunk usually contains the most
recent instructions, I have just added some info about Maven
repository mirrors to it.

-Bertrand

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Getting Cocoon 2.2 using Maven

Posted by Patrick Refondini <pa...@pobox.com>.
Jason Johnston wrote:
> I'm not sure of this because I've only been following the Maven conversion
> discussions loosely, but from my understanding this will currently only
> work if you first build the Cocoon trunk from the subversion source and
> install the resulting artifacts into your local repository.  This is
> because there has not been an official 2.2 release yet, so the artifacts
> do not appear in the central ibiblio repository.
Ok, completely overlooked that point.
> 
> There might also be a snapshot repository somewhere that might have some
> snapshots of the trunk artifacts, but I don't know how often those would
> be updated.
> 
> You're very brave trying out 2.2 ;-)
I hope I'am not that much ;)
I'll try building Cocoon trunk first and install the resulting artifacts 
as you mentioned.

Thanks,

Patrick

> 
> 
> 
>> Hello,
>>
>> following explanations at:
>> http://cocoon.zones.apache.org/daisy/documentation/g1/1159.html
>>
>> I executed the following command line (on one line):
>> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
>> -DarchetypeArtifactId=cocoon-22-archetype-block
>> -DarchetypeVersion=1.0.0-SNAPSHOT -DgroupId=com.mycompany
>> -DartifactId=myBlock
>>
>> And obtained the following error:
>>
>>
>> [INFO] Failed to resolve artifact.
>>
>> GroupId: org.apache.cocoon
>> ArtifactId: cocoon-22-archetype-block
>> Version: 1.0.0-SNAPSHOT
>>
>> Reason: Unable to download the artifact from any repository
>>
>>
>> I tried configuring some repositories i.e.:
>>
>> http://mirrors.dotsrc.org/maven2/org/apache/
>>
>> and noticed that I could indeed not find any cocoon folder at:
>> http://mirrors.dotsrc.org/maven2/org/apache/
>>
>> which as far as I understood is the place it should be ...
>>
>>
>> I tried this using Maven 2.0.4, Java 1.5.0_04 on Linux.
>>
>>
>> Any advice, pointers to more docs welcome.
>>
>> Patrick
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Getting Cocoon 2.2 using Maven

Posted by Jason Johnston <co...@lojjic.net>.
I'm not sure of this because I've only been following the Maven conversion
discussions loosely, but from my understanding this will currently only
work if you first build the Cocoon trunk from the subversion source and
install the resulting artifacts into your local repository.  This is
because there has not been an official 2.2 release yet, so the artifacts
do not appear in the central ibiblio repository.

There might also be a snapshot repository somewhere that might have some
snapshots of the trunk artifacts, but I don't know how often those would
be updated.

You're very brave trying out 2.2 ;-)



> Hello,
>
> following explanations at:
> http://cocoon.zones.apache.org/daisy/documentation/g1/1159.html
>
> I executed the following command line (on one line):
> mvn archetype:create -DarchetypeGroupId=org.apache.cocoon
> -DarchetypeArtifactId=cocoon-22-archetype-block
> -DarchetypeVersion=1.0.0-SNAPSHOT -DgroupId=com.mycompany
> -DartifactId=myBlock
>
> And obtained the following error:
>
>
> [INFO] Failed to resolve artifact.
>
> GroupId: org.apache.cocoon
> ArtifactId: cocoon-22-archetype-block
> Version: 1.0.0-SNAPSHOT
>
> Reason: Unable to download the artifact from any repository
>
>
> I tried configuring some repositories i.e.:
>
> http://mirrors.dotsrc.org/maven2/org/apache/
>
> and noticed that I could indeed not find any cocoon folder at:
> http://mirrors.dotsrc.org/maven2/org/apache/
>
> which as far as I understood is the place it should be ...
>
>
> I tried this using Maven 2.0.4, Java 1.5.0_04 on Linux.
>
>
> Any advice, pointers to more docs welcome.
>
> Patrick
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org