You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by Mike Thomsen <mi...@gmail.com> on 2018/06/03 14:10:39 UTC
Availability of 2.5.0 groovy-all in Maven Central
Any release date for when the groovy-all artifact will be accessible from
Maven Central? When I tried to upgrade to 2.5.0 and looked there, it showed
that the jar was not available yet.
Thanks,
Mike
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by Andres Almiray <aa...@gmail.com>.
I believe groovy-all.jar is no more. Instead we get a super POM groovy-all.pom that describes all individual modules.
Sent from my primitive Tricorder
> On 3 Jun 2018, at 16:10, Mike Thomsen <mi...@gmail.com> wrote:
>
> Any release date for when the groovy-all artifact will be accessible from Maven Central? When I tried to upgrade to 2.5.0 and looked there, it showed that the jar was not available yet.
>
> Thanks,
>
> Mike
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by "Daniel.Sun" <su...@apache.org>.
Pls search "required JUST since Groovy 2.5.0"
Cheers,
Daniel.Sun
-----
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me
Twitter: @daniel_sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by "Daniel.Sun" <su...@apache.org>.
Hi Robert,
Pls open http://groovy-lang.org/download.html and search "".
Thanks for your reminding me, I will refine the doco too later :-)
Cheers,
Daniel.Sun
-----
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me
Twitter: @daniel_sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by Robert Stagner <re...@gmail.com>.
Thanks, Daniel. This certainly helps.
When you stated "I've refine doco" what are you referring to? I'm assuming
the documentation. I reviewed the documentation, specifically,
http://docs.groovy-lang.org/latest/html/documentation/#_maven_integration,
and I do not see a reference to the <type>pom</type> statement. Am I
missing something here?
On Sun, Jun 3, 2018 at 8:16 PM Daniel.Sun <su...@apache.org> wrote:
> Here is the twitter to summarize the change:
> https://twitter.com/daniel_sun/status/1003474637697642496
>
>
> Cheers,
> Daniel.Sun
>
>
>
>
> -----
> Daniel Sun
> Apache Groovy committer
> Blog: http://blog.sunlan.me
> Twitter: @daniel_sun
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by "Daniel.Sun" <su...@apache.org>.
Here is the twitter to summarize the change:
https://twitter.com/daniel_sun/status/1003474637697642496
Cheers,
Daniel.Sun
-----
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me
Twitter: @daniel_sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by "Daniel.Sun" <su...@apache.org>.
OK.
I've refine the doco on the Download page of groovy-lang.org
site(http://groovy-lang.org/download.html):
```
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>x.y.z</version>
<type>pom</type>
```
(`<type>pom</type> ` is added)
BTW, gradle is so smart that `compile
'org.codehaus.groovy:groovy-all:x.y.z'` always works well(Note: DON'T
specify `ext: 'pom'`)
Cheers,
Daniel.Sun
-----
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me
Twitter: @daniel_sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by Robert Stagner <re...@gmail.com>.
Daniel,
Like the others, I ran into a similar error
Failure to find org.codehaus.groovy:groovy-all:jar:2.5.0 in
https://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced -> [Help 1]
I am also using IntelliJ IDEA. And, like you I receive the error from the
command line. Once I include <type>pom</type> it worked.
On Sun, Jun 3, 2018 at 7:21 PM Daniel.Sun <su...@apache.org> wrote:
> Hi Keith,
>
> I'll add the `<type>pom</type>` to the doco on "Download" page.
>
> P.S. I'm using IntelliJ IDEA. Even if I don't add `<type>pom</type>`,
> it
> works well too. But if I run via command line, I'll get same error as
> yours.
>
> Cheers,
> Daniel.Sun
>
>
>
>
> -----
> Daniel Sun
> Apache Groovy committer
> Blog: http://blog.sunlan.me
> Twitter: @daniel_sun
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by "Daniel.Sun" <su...@apache.org>.
Hi Keith,
I'll add the `<type>pom</type>` to the doco on "Download" page.
P.S. I'm using IntelliJ IDEA. Even if I don't add `<type>pom</type>`, it
works well too. But if I run via command line, I'll get same error as yours.
Cheers,
Daniel.Sun
-----
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me
Twitter: @daniel_sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by Keith Suderman <su...@anc.org>.
Daniel beat me to it. I tried using the Groovy Eclipse compiler (2.5.0-01) and I need to explicitly set the type to 'pom' or I get a not found message for groovy-all:jar:2.5.0
- Keith
> On Jun 3, 2018, at 9:47 PM, Daniel.Sun <su...@apache.org> wrote:
>
> Please add `<type>pom</type>` and try again, here is the complete pom file:
>
> ```
> <?xml version="1.0" encoding="UTF-8"?>
> <project 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/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>me.sunlan</groupId>
> <artifactId>try-groovy-via-mvn</artifactId>
> <version>1.0-SNAPSHOT</version>
>
> <dependencies>
> <dependency>
> <groupId>org.codehaus.groovy</groupId>
> <artifactId>groovy-all</artifactId>
> <version>2.5.0</version>
> <type>pom</type>
> </dependency>
> </dependencies>
> </project>
> ```
>
> and here is result of `mvn dependency:tree`:
> ```
> [INFO] me.sunlan:try-groovy-via-mvn:jar:1.0-SNAPSHOT
> [INFO] \- org.codehaus.groovy:groovy-all:pom:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-ant:jar:2.5.0:compile
> [INFO] | +- org.apache.ant:ant:jar:1.9.9:compile
> [INFO] | +- org.apache.ant:ant-junit:jar:1.9.9:runtime
> [INFO] | +- org.apache.ant:ant-launcher:jar:1.9.9:compile
> [INFO] | \- org.apache.ant:ant-antlr:jar:1.9.9:runtime
> [INFO] +- org.codehaus.groovy:groovy-bsf:jar:2.5.0:compile
> [INFO] | +- bsf:bsf:jar:2.4.0:compile
> [INFO] | \- commons-logging:commons-logging:jar:1.2:compile
> [INFO] +- org.codehaus.groovy:groovy-cli-picocli:jar:2.5.0:compile
> [INFO] | \- info.picocli:picocli:jar:3.0.2:compile
> [INFO] +- org.codehaus.groovy:groovy-console:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-datetime:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-docgenerator:jar:2.5.0:compile
> [INFO] | \- com.thoughtworks.qdox:qdox:jar:1.12.1:compile
> [INFO] +- org.codehaus.groovy:groovy-groovydoc:jar:2.5.0:compile
> [INFO] | \- org.codehaus.groovy:groovy-dateutil:jar:2.5.0:runtime
> [INFO] +- org.codehaus.groovy:groovy-groovysh:jar:2.5.0:compile
> [INFO] | \- jline:jline:jar:2.14.6:compile
> [INFO] +- org.codehaus.groovy:groovy-jmx:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-json:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-jsr223:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-macro:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-nio:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-servlet:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-sql:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-swing:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-templates:jar:2.5.0:compile
> [INFO] +- org.codehaus.groovy:groovy-test:jar:2.5.0:compile
> [INFO] | \- junit:junit:jar:4.12:compile
> [INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:compile
> [INFO] +- org.codehaus.groovy:groovy-test-junit5:jar:2.5.0:compile
> [INFO] | +- org.junit.platform:junit-platform-launcher:jar:1.2.0:compile
> [INFO] | | +- org.apiguardian:apiguardian-api:jar:1.0.0:compile
> [INFO] | | \-
> org.junit.platform:junit-platform-engine:jar:1.2.0:compile
> [INFO] | | +-
> org.junit.platform:junit-platform-commons:jar:1.2.0:compile
> [INFO] | | \- org.opentest4j:opentest4j:jar:1.1.0:compile
> [INFO] | \- org.junit.jupiter:junit-jupiter-engine:jar:5.2.0:runtime
> [INFO] | \- org.junit.jupiter:junit-jupiter-api:jar:5.2.0:runtime
> [INFO] +- org.codehaus.groovy:groovy-testng:jar:2.5.0:compile
> [INFO] | \- org.testng:testng:jar:6.9.10:runtime
> [INFO] | \- com.beust:jcommander:jar:1.48:runtime
> [INFO] \- org.codehaus.groovy:groovy-xml:jar:2.5.0:compile
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 02:47 min
> [INFO] Finished at: 2018-06-04T09:42:43+08:00
> [INFO] Final Memory: 17M/216M
> [INFO]
> ------------------------------------------------------------------------
> ```
>
> No matter it works or not, please let me know.
>
> Cheers,
> Daniel.Sun
>
>
>
> -----
> Daniel Sun
>
> Apache Groovy committer
>
> Blog: http://blog.sunlan.me
>
> Twitter: @daniel_sun
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
----------------------
Keith Suderman
Research Associate
Department of Computer Science
Vassar College, Poughkeepsie NY
suderman@cs.vassar.edu
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by "Daniel.Sun" <su...@apache.org>.
Please add `<type>pom</type>` and try again, here is the complete pom file:
```
<?xml version="1.0" encoding="UTF-8"?>
<project 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/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.sunlan</groupId>
<artifactId>try-groovy-via-mvn</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.0</version>
<type>pom</type>
</dependency>
</dependencies>
</project>
```
and here is result of `mvn dependency:tree`:
```
[INFO] me.sunlan:try-groovy-via-mvn:jar:1.0-SNAPSHOT
[INFO] \- org.codehaus.groovy:groovy-all:pom:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-ant:jar:2.5.0:compile
[INFO] | +- org.apache.ant:ant:jar:1.9.9:compile
[INFO] | +- org.apache.ant:ant-junit:jar:1.9.9:runtime
[INFO] | +- org.apache.ant:ant-launcher:jar:1.9.9:compile
[INFO] | \- org.apache.ant:ant-antlr:jar:1.9.9:runtime
[INFO] +- org.codehaus.groovy:groovy-bsf:jar:2.5.0:compile
[INFO] | +- bsf:bsf:jar:2.4.0:compile
[INFO] | \- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.codehaus.groovy:groovy-cli-picocli:jar:2.5.0:compile
[INFO] | \- info.picocli:picocli:jar:3.0.2:compile
[INFO] +- org.codehaus.groovy:groovy-console:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-datetime:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-docgenerator:jar:2.5.0:compile
[INFO] | \- com.thoughtworks.qdox:qdox:jar:1.12.1:compile
[INFO] +- org.codehaus.groovy:groovy-groovydoc:jar:2.5.0:compile
[INFO] | \- org.codehaus.groovy:groovy-dateutil:jar:2.5.0:runtime
[INFO] +- org.codehaus.groovy:groovy-groovysh:jar:2.5.0:compile
[INFO] | \- jline:jline:jar:2.14.6:compile
[INFO] +- org.codehaus.groovy:groovy-jmx:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-json:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-jsr223:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-macro:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-nio:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-servlet:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-sql:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-swing:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-templates:jar:2.5.0:compile
[INFO] +- org.codehaus.groovy:groovy-test:jar:2.5.0:compile
[INFO] | \- junit:junit:jar:4.12:compile
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] +- org.codehaus.groovy:groovy-test-junit5:jar:2.5.0:compile
[INFO] | +- org.junit.platform:junit-platform-launcher:jar:1.2.0:compile
[INFO] | | +- org.apiguardian:apiguardian-api:jar:1.0.0:compile
[INFO] | | \-
org.junit.platform:junit-platform-engine:jar:1.2.0:compile
[INFO] | | +-
org.junit.platform:junit-platform-commons:jar:1.2.0:compile
[INFO] | | \- org.opentest4j:opentest4j:jar:1.1.0:compile
[INFO] | \- org.junit.jupiter:junit-jupiter-engine:jar:5.2.0:runtime
[INFO] | \- org.junit.jupiter:junit-jupiter-api:jar:5.2.0:runtime
[INFO] +- org.codehaus.groovy:groovy-testng:jar:2.5.0:compile
[INFO] | \- org.testng:testng:jar:6.9.10:runtime
[INFO] | \- com.beust:jcommander:jar:1.48:runtime
[INFO] \- org.codehaus.groovy:groovy-xml:jar:2.5.0:compile
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 02:47 min
[INFO] Finished at: 2018-06-04T09:42:43+08:00
[INFO] Final Memory: 17M/216M
[INFO]
------------------------------------------------------------------------
```
No matter it works or not, please let me know.
Cheers,
Daniel.Sun
-----
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me
Twitter: @daniel_sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by Mike Thomsen <mi...@gmail.com>.
I'm running Maven 3.5.0 and it didn't resolve when I tried that POM:
[ERROR] Failed to execute goal on project try-groovy-via-mvn: Could not
resolve dependencies for project
me.sunlan:try-groovy-via-mvn:jar:1.0-SNAPSHOT: Failure to find
org.codehaus.groovy:groovy-all:jar:2.5.0 in
https://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
On Sun, Jun 3, 2018 at 8:34 PM Daniel.Sun <su...@apache.org> wrote:
> The original picture:
> <http://groovy.329449.n5.nabble.com/file/t340716/trygroovy250viamvn.png>
>
> Cheers,
> Daniel.Sun
>
>
>
>
> -----
> Daniel Sun
>
> Apache Groovy committer
>
> Blog: http://blog.sunlan.me
>
> Twitter: @daniel_sun
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by "Daniel.Sun" <su...@apache.org>.
The original picture:
<http://groovy.329449.n5.nabble.com/file/t340716/trygroovy250viamvn.png>
Cheers,
Daniel.Sun
-----
Daniel Sun
Apache Groovy committer
Blog: http://blog.sunlan.me
Twitter: @daniel_sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by "Daniel.Sun" <su...@apache.org>.
Hi Robert,
I'm using "Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426;
2017-04-04T03:39:06+08:00)", and the following pom file works well, please
give it a try.
```
<?xml version="1.0" encoding="UTF-8"?>
<project 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/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>me.sunlan</groupId>
<artifactId>try-groovy-via-mvn</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.0</version>
</dependency>
</dependencies>
</project>
```
<http://groovy.329449.n5.nabble.com/file/t340716/trygroovy250viamvn.png>
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by Robert Stagner <re...@gmail.com>.
Daniel,
How should this be addressed in the POM file, for those of us using Maven
to grab groovy-all?
I tried the simple coordinates like
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.5.0</version>
</dependency>
but that did not work for me.
On Sun, Jun 3, 2018 at 8:13 AM Daniel.Sun <su...@apache.org> wrote:
> Hi Mike,
>
> FYI, http://groovy-lang.org/download.html
>
> ```
> The core plus all the modules. Also includes jarjar'ed versions of Antlr,
> ASM, Commons-CLI. In order to cater to the module system of Java 9+, only
> the individual jar files of the core and all modules will be provided since
> Groovy 2.5.0, i.e. the fat jar file groovy-all-x.y.z.jar will not be
> available. Optional dependencies are marked as optional. You may need to
> include some of the optional dependencies to use some features of Groovy,
> e.g. AntBuilder, GroovyMBeans...
> ```
>
> In short, fat jar file(i.e. groovy-all.jar) has not been provided since
> Groovy 2.5.0, but you still can use `compile
> 'org.codehaus.groovy:groovy-all:x.y.z'` to get all the individual jar
> files.
>
> Cheers,
> Daniel.Sun
>
>
>
>
> --
> Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html
>
Re: Availability of 2.5.0 groovy-all in Maven Central
Posted by "Daniel.Sun" <su...@apache.org>.
Hi Mike,
FYI, http://groovy-lang.org/download.html
```
The core plus all the modules. Also includes jarjar'ed versions of Antlr,
ASM, Commons-CLI. In order to cater to the module system of Java 9+, only
the individual jar files of the core and all modules will be provided since
Groovy 2.5.0, i.e. the fat jar file groovy-all-x.y.z.jar will not be
available. Optional dependencies are marked as optional. You may need to
include some of the optional dependencies to use some features of Groovy,
e.g. AntBuilder, GroovyMBeans...
```
In short, fat jar file(i.e. groovy-all.jar) has not been provided since
Groovy 2.5.0, but you still can use `compile
'org.codehaus.groovy:groovy-all:x.y.z'` to get all the individual jar files.
Cheers,
Daniel.Sun
--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html