You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Benjamin Boksa <ma...@boksa.de> on 2008/06/28 20:15:09 UTC
Creating a parent POM
Hi List,
when trying to follow the part "Creating a parent pom" in the
"Deploying a Cocoon application" tutorial [1] I get the following error:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-war-plugin:2.0.2:war': Unable to find
the mojo 'org.apache.maven.plugins:maven-war-plugin:2.0.2:war' in the
plugin 'org.apache.maven.plugins:maven-war-plugin'
Component descriptor cannot be found in the component repository:
org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-war-plugin:
2.0.2:war.
[INFO]
------------------------------------------------------------------------
This problem was mentioned on the mailing list some time ago, however
I have not been able to find a precise solution for this problem (or
is the part of creating a parent pom completely needless?). Below [2]
I have included the steps I have taken which result in the error.
Please tell me what I can do about this error.
Regards
Benne
[1] http://cocoon.apache.org/2.2/1362_1_1.html
[2]
cd ~/Desktop
mkdir getting-started-app
cd getting-started-app
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
DarchetypeArtifactId=cocoon-22-archetype-block -
DarchetypeVersion=1.0.0 -DgroupId=com.mycompany -DartifactId=myBlock1
cd myBlock1
mvn install
cd ..
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
DarchetypeArtifactId=cocoon-22-archetype-block -
DarchetypeVersion=1.0.0 -DgroupId=com.mycompany -DartifactId=myBlock2
cd myBlock2
mvn install
cd ..
mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -
DarchetypeArtifactId=cocoon-22-archetype-webapp -
DarchetypeVersion=1.0.0 -DgroupId=com.mycompany -
DartifactId=myCocoonWebapp
# add dependencies in myCocoonWebapp/pom.xml as described in tutorial
cd myCocoonWebapp
mvn install
cd ..
# add pom.xml as described in tutorial
mvn install
# Error
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Creating a parent POM
Posted by Johannes Hoechstaedter <j....@memocomp.de>.
Benjamin Boksa schrieb:
> Hi List,
>
> when trying to follow the part "Creating a parent pom" in the
> "Deploying a Cocoon application" tutorial [1] I get the following error:
>
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-war-plugin:2.0.2:war': Unable to find
> the mojo 'org.apache.maven.plugins:maven-war-plugin:2.0.2:war' in the
> plugin 'org.apache.maven.plugins:maven-war-plugin'
> Component descriptor cannot be found in the component repository:
> org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-war-plugin:2.0.2:war.
>
> [INFO]
> ------------------------------------------------------------------------
>
>
> This problem was mentioned on the mailing list some time ago, however
> I have not been able to find a precise solution for this problem (or
> is the part of creating a parent pom completely needless?). Below [2]
> I have included the steps I have taken which result in the error.
>
> Please tell me what I can do about this error.
>
> Regards
>
> Benne
>
I am interested in this issue, too.
Johannes
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Creating a parent POM
Posted by ameliasasso <a....@sourcesense.com>.
I also had the same problem, on Mac OSX, and can confirm that this solution
works:
"I modified the pom repository\org\apache\cocoon\cocoon\6, and changed
maven-war-plugin dependency to 2.1-alpha-1"
Victor Vera wrote:
>
>
>
>>> I've been getting the same error too. I was wondering if the 2.0.2
>>> version of maven-war-plugin was to blame so I tried changing the
>>> version to 2.0.1 in my webapp block but I noticed the message still
>>> refers to 2.0.2 despite running `mvn clean`. So either I'm not
>>> correctly cleaning my project or something else is including
>>> org.apache.maven.plugins:maven-war-plugin:2.0.2:war. Mysterious...
>>>
>>> Has anybody else successfully set up a parent POM for their cocoon
>>> project so that a single `mvn install` builds all the blocks and
>>> deploys a war in one step? I can write a Makefile but I'm trying to
>>> learn how to do things The Maven Way.
>>>
>>> Any pointers are greatly appreciated.
>>>
>>
>> Just for the record, I get the same error.
>> (On a windows XP box, version 5.1;
>> java version 1.6.0_06;
>> maven 2.0.9 )
>>
> I had the same problem.
> I modified the pom repository\org\apache\cocoon\cocoon\6, and changed
> maven-war-plugin dependency to 2.1-alpha-1
>
> I don't know if this is the right way, but is working.
>
>
--
View this message in context: http://www.nabble.com/Creating-a-parent-POM-tp18173518p19107276.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Creating a parent POM
Posted by Victor Vera <vm...@gmail.com>.
>> I've been getting the same error too. I was wondering if the 2.0.2
>> version of maven-war-plugin was to blame so I tried changing the
>> version to 2.0.1 in my webapp block but I noticed the message still
>> refers to 2.0.2 despite running `mvn clean`. So either I'm not
>> correctly cleaning my project or something else is including
>> org.apache.maven.plugins:maven-war-plugin:2.0.2:war. Mysterious...
>>
>> Has anybody else successfully set up a parent POM for their cocoon
>> project so that a single `mvn install` builds all the blocks and
>> deploys a war in one step? I can write a Makefile but I'm trying to
>> learn how to do things The Maven Way.
>>
>> Any pointers are greatly appreciated.
>>
>
> Just for the record, I get the same error.
> (On a windows XP box, version 5.1;
> java version 1.6.0_06;
> maven 2.0.9 )
>
I had the same problem.
I modified the pom repository\org\apache\cocoon\cocoon\6, and changed
maven-war-plugin dependency to 2.1-alpha-1
I don't know if this is the right way, but is working.
--
View this message in context: http://www.nabble.com/Creating-a-parent-POM-tp18173518p18715710.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Creating a parent POM
Posted by Ken Starks <ke...@lampsacos.demon.co.uk>.
Andre Thenot wrote:
> On Jun 28, 2008, at 14:15, Benjamin Boksa wrote:
>
>> when trying to follow the part "Creating a parent pom" in the
>> "Deploying a Cocoon application" tutorial [1] I get the following error:
> <snip/>
>> [INFO] Internal error in the plugin manager executing goal
>> 'org.apache.maven.plugins:maven-war-plugin:2.0.2:war': Unable to find
>> the mojo 'org.apache.maven.plugins:maven-war-plugin:2.0.2:war' in the
>> plugin 'org.apache.maven.plugins:maven-war-plugin'
>> Component descriptor cannot be found in the component repository:
>> org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-war-plugin:2.0.2:war.
>>
>
> I've been getting the same error too. I was wondering if the 2.0.2
> version of maven-war-plugin was to blame so I tried changing the
> version to 2.0.1 in my webapp block but I noticed the message still
> refers to 2.0.2 despite running `mvn clean`. So either I'm not
> correctly cleaning my project or something else is including
> org.apache.maven.plugins:maven-war-plugin:2.0.2:war. Mysterious...
>
> Has anybody else successfully set up a parent POM for their cocoon
> project so that a single `mvn install` builds all the blocks and
> deploys a war in one step? I can write a Makefile but I'm trying to
> learn how to do things The Maven Way.
>
> Any pointers are greatly appreciated.
>
> A.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
Just for the record, I get the same error.
(On a windows XP box, version 5.1;
java version 1.6.0_06;
maven 2.0.9 )
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Creating a parent POM
Posted by Andre Thenot <an...@thenot.org>.
On Jun 28, 2008, at 14:15, Benjamin Boksa wrote:
> when trying to follow the part "Creating a parent pom" in the
> "Deploying a Cocoon application" tutorial [1] I get the following
> error:
<snip/>
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-war-plugin:2.0.2:war': Unable to
> find the mojo 'org.apache.maven.plugins:maven-war-plugin:2.0.2:war'
> in the plugin 'org.apache.maven.plugins:maven-war-plugin'
> Component descriptor cannot be found in the component repository:
> org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-war-
> plugin:2.0.2:war.
I've been getting the same error too. I was wondering if the 2.0.2
version of maven-war-plugin was to blame so I tried changing the
version to 2.0.1 in my webapp block but I noticed the message still
refers to 2.0.2 despite running `mvn clean`. So either I'm not
correctly cleaning my project or something else is including
org.apache.maven.plugins:maven-war-plugin:2.0.2:war. Mysterious...
Has anybody else successfully set up a parent POM for their cocoon
project so that a single `mvn install` builds all the blocks and
deploys a war in one step? I can write a Makefile but I'm trying to
learn how to do things The Maven Way.
Any pointers are greatly appreciated.
A.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org