Maven complains about groovy poms missing

429 views
Skip to first unread message

Eugen Paraschiv

unread,
Oct 27, 2011, 4:22:10 PM10/27/11
to rest-a...@googlegroups.com
Hi,
I've just added the following dependency to my pom.xml:
<dependency>
   <groupId>com.jayway.restassured</groupId>
   <artifactId>rest-assured</artifactId>
   <version>1.4</version>
   <scope>test</scope>
</dependency>

And Maven has started to warn me:
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.5.5-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.5.6-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.5.7-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.6-beta-1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.6-beta-2-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.6-RC-1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.6-RC-2-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.6.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.6.3-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.6.5-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.7-beta-1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.codehaus.groovy:groovy:jar:1.7-rc-2-SNAPSHOT is missing, no dependency information available

I have no Groovy experience - I know the two languages are supposed to be compatible, but I assumed that Java is compatible with Groovy not the other way around, so I'm a little confused about the groovy dependencies in a Java project. Am I not using the correct dependency?
Any feedback on this is appreciated.
Thanks.
Eugen.

Johan Haleby

unread,
Oct 28, 2011, 2:05:14 AM10/28/11
to rest-a...@googlegroups.com
Hi, 

I haven't seen this myself and I don't really know what could be the cause of it. RA just has a dependency to groovy 1.7 and what it tries to bring in as transient dependencies is defined in its pom file. I know that Groovy 1.7 brings in a lot of pom projects from earlier versions of Groovy though and I don't know the reason for this. If you still get RA to run then I suppose you can ignore the warning.

/Johan

Johan Haleby

unread,
Feb 7, 2012, 5:09:54 AM2/7/12
to rest-a...@googlegroups.com
Strange. Do you use another version of Groovy somewhere in your project?

Version 1.6 of Rest Assured will use Groovy 1.8. If you like you can try out the snapshot version by depending on 1.6-SNAPHOT and using the following maven repo:

<repositories>
        <repository>
            <id>sonatype</id>
            <snapshots />
        </repository>
</repositories>

/Johan

On Tue, Feb 7, 2012 at 10:59 AM, Philippe ARISTOTE <pari...@exoplatform.com> wrote:
Hi,

I've had these warnings recently, with RA v1.5. My case was worse
however as my build simply didn't pass at all. It was stuck on groovy
v1.7.11-SNAPSHOT, with both maven 2 and 3.

I circumvented the issue by excluding the Groovy artifact from the RA
dependency in the dependencyManagement section of my pom:
<dependencyManagement>
 <dependencies>

   <dependency>
     <groupId>com.jayway.restassured</groupId>
     <artifactId>rest-assured</artifactId>
     <version>1.5</version>
     <exclusions>
       <exclusion>
               <groupId>org.codehaus.groovy</groupId>
               <artifactId>groovy</artifactId>
       </exclusion>
     </exclusions>
   </dependency>
 </dependencies>
</dependencyManagement>

I hope it can be useful.
Now my build is successful with maven 2 and 3.

Regards,
Philippe


On Oct 28 2011, 1:05 pm, Johan Haleby <johan.hal...@gmail.com> wrote:
> Hi,
>
> I haven't seen this myself and I don't really know what could be the cause
> of it. RA just has a dependency to groovy 1.7 and what it tries to bring in
> as transient dependencies is defined in its pom file. I know that Groovy 1.7
> brings in a lot of *pom projects* from earlier versions of Groovy though and

> I don't know the reason for this. If you still get RA to run then I suppose
> you can ignore the warning.
>
> /Johan
>
> On Thu, Oct 27, 2011 at 10:22 PM, Eugen Paraschiv <hanrisel...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Hi,
> > I've just added the following dependency to my *pom.xml*:

Lea Farmer

unread,
Feb 16, 2012, 11:46:50 AM2/16/12
to REST assured
Hi,

Maven puts those Warnings in because the main release of rest assured
has a dependency on a SNAPSHOT version of groovy

If you run:

mvn dependency:tree

You should see this dependency under the rest-assured part.

You can remove this by placing an exclusion on that dependency and
then use a fully released version, as shown below

<dependency>
<groupId>com.jayway.restassured</groupId>
<artifactId>rest-assured</artifactId>
<version>1.5</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>1.8.3</version>
</dependency>

Hopefully the next version will not have a SNAPSHOT dependency??

Johan Haleby

unread,
Feb 17, 2012, 2:03:18 AM2/17/12
to rest-a...@googlegroups.com
Hi, 

The dependency to a groovy snapshot is not deliberate. Could anyone please take a look at the poms in the source on github and see if you can notice anything that indicates this? I'm working hard to find time to release the next version (it'll be major update) so I'd really like to see this fixed.

Regards,
/Johan
Reply all
Reply to author
Forward
0 new messages