You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Mikko Wuokko <mi...@evtek.fi> on 2006/12/21 10:58:34 UTC
Maven2 dependency missin, build fails
Hi,
I noticed that the Maven2 build has been missing one dependency since
Davids commit two days ago. Exact revision
http://svn.apache.org/viewvc?view=rev&rev=488777
which now needs the mockrunner. Maven1 works fine (as he mentioned), but
this fails the whole M2 build.
This patch should do it
Index: components/cm/pom.xml
===================================================================
--- components/cm/pom.xml (revision 489271)
+++ components/cm/pom.xml (working copy)
@@ -65,6 +65,11 @@
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
+ <dependency>
+ <groupId>mockrunner</groupId>
+ <artifactId>mockrunner</artifactId>
+ </dependency>
+
<!--
Note: junit is normally required only for test, but
in this case, abstract test cases are included in the
At the same time I could ask if is there is a reason to use rome-0.4.jar
since versions 0.5 and 0.8 are available in the repos? (see
http://repo1.maven.org/maven2/rome/rome/ ). Those have the .pom files
and sources also attached and the bluesunrise.com's 0.4 version does
not. (see http://www.bluesunrise.com/maven2/rome/rome/0.4/ ) I tried to
build with 0.8 and that seemed to work fine.
Regards,
-Mikko
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
Re: Maven2 dependency missin, build fails
Posted by Ate Douma <at...@douma.nu>.
Done, thanks for catching this.
Regards,
Ate
Mikko Wuokko wrote:
> Oops.. I had compiled it with Maven-1 between so that is not enough. In
> the main pom.xml mockrunner is defined as test scope only, but now its
> needed also on the compilation phase. So this patch should get that too
> fixed.
>
> Index: components/cm/pom.xml
> ===================================================================
> --- components/cm/pom.xml (revision 489271)
> +++ components/cm/pom.xml (working copy)
> @@ -65,6 +65,12 @@
> <groupId>commons-lang</groupId>
> <artifactId>commons-lang</artifactId>
> </dependency>
> + <dependency>
> + <groupId>mockrunner</groupId>
> + <artifactId>mockrunner</artifactId>
> + <scope>compile</scope>
> + </dependency>
> +
> <!--
> Note: junit is normally required only for test, but
> in this case, abstract test cases are included in the
>
> -Mikko
>
> Mikko Wuokko wrote:
>> Hi,
>>
>> I noticed that the Maven2 build has been missing one dependency since
>> Davids commit two days ago. Exact revision
>>
>> http://svn.apache.org/viewvc?view=rev&rev=488777
>>
>> which now needs the mockrunner. Maven1 works fine (as he mentioned),
>> but this fails the whole M2 build.
>>
>> This patch should do it
>>
>>
>> Index: components/cm/pom.xml
>> ===================================================================
>> --- components/cm/pom.xml (revision 489271)
>> +++ components/cm/pom.xml (working copy)
>> @@ -65,6 +65,11 @@
>> <groupId>commons-lang</groupId>
>> <artifactId>commons-lang</artifactId>
>> </dependency>
>> + <dependency>
>> + <groupId>mockrunner</groupId>
>> + <artifactId>mockrunner</artifactId>
>> + </dependency>
>> +
>> <!--
>> Note: junit is normally required only for test, but
>> in this case, abstract test cases are included in the
>>
>>
>> At the same time I could ask if is there is a reason to use
>> rome-0.4.jar since versions 0.5 and 0.8 are available in the repos?
>> (see http://repo1.maven.org/maven2/rome/rome/ ). Those have the .pom
>> files and sources also attached and the bluesunrise.com's 0.4 version
>> does not. (see http://www.bluesunrise.com/maven2/rome/rome/0.4/ ) I
>> tried to build with 0.8 and that seemed to work fine.
>>
>> Regards,
>>
>> -Mikko
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
>> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
Re: Maven2 dependency missin, build fails
Posted by Mikko Wuokko <mi...@evtek.fi>.
Oops.. I had compiled it with Maven-1 between so that is not enough. In
the main pom.xml mockrunner is defined as test scope only, but now its
needed also on the compilation phase. So this patch should get that too
fixed.
Index: components/cm/pom.xml
===================================================================
--- components/cm/pom.xml (revision 489271)
+++ components/cm/pom.xml (working copy)
@@ -65,6 +65,12 @@
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
</dependency>
+ <dependency>
+ <groupId>mockrunner</groupId>
+ <artifactId>mockrunner</artifactId>
+ <scope>compile</scope>
+ </dependency>
+
<!--
Note: junit is normally required only for test, but
in this case, abstract test cases are included in the
-Mikko
Mikko Wuokko wrote:
> Hi,
>
> I noticed that the Maven2 build has been missing one dependency since
> Davids commit two days ago. Exact revision
>
> http://svn.apache.org/viewvc?view=rev&rev=488777
>
> which now needs the mockrunner. Maven1 works fine (as he mentioned), but
> this fails the whole M2 build.
>
> This patch should do it
>
>
> Index: components/cm/pom.xml
> ===================================================================
> --- components/cm/pom.xml (revision 489271)
> +++ components/cm/pom.xml (working copy)
> @@ -65,6 +65,11 @@
> <groupId>commons-lang</groupId>
> <artifactId>commons-lang</artifactId>
> </dependency>
> + <dependency>
> + <groupId>mockrunner</groupId>
> + <artifactId>mockrunner</artifactId>
> + </dependency>
> +
> <!--
> Note: junit is normally required only for test, but
> in this case, abstract test cases are included in the
>
>
> At the same time I could ask if is there is a reason to use rome-0.4.jar
> since versions 0.5 and 0.8 are available in the repos? (see
> http://repo1.maven.org/maven2/rome/rome/ ). Those have the .pom files
> and sources also attached and the bluesunrise.com's 0.4 version does
> not. (see http://www.bluesunrise.com/maven2/rome/rome/0.4/ ) I tried to
> build with 0.8 and that seemed to work fine.
>
> Regards,
>
> -Mikko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
Re: Maven2 dependency missin, build fails
Posted by Ate Douma <at...@douma.nu>.
Mikko Wuokko wrote:
> Hi,
>
> At the same time I could ask if is there is a reason to use rome-0.4.jar
> since versions 0.5 and 0.8 are available in the repos? (see
> http://repo1.maven.org/maven2/rome/rome/ ). Those have the .pom files
> and sources also attached and the bluesunrise.com's 0.4 version does
> not. (see http://www.bluesunrise.com/maven2/rome/rome/0.4/ ) I tried to
> build with 0.8 and that seemed to work fine.
Tested ok with 0.8, so done.
Ate
>
> Regards,
>
> -Mikko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
> For additional commands, e-mail: jetspeed-dev-help@portals.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org