You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geode.apache.org by Dor Ben Dov <do...@amdocs.com> on 2016/03/10 10:38:49 UTC

maven

Hi All,

Today I am compiling my fork with gradle, can we add maven plug in to it, I want to try compiling the project with maven as well.

Or

Do you have other suggestion, like old maven poms relate to the project ?

Regards,

Dor

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

Re: maven

Posted by Anthony Baker <ab...@pivotal.io>.
Hi Dor,

I suggest trying it out and reporting back (with a PR!).  We’re always open to looking at new ways of doing things and your contributions would be welcome.

You might also want to look at https://github.com/LendingClub/gradle-maven-plugin.

Thanks,
Anthony

> On Mar 16, 2016, at 2:22 AM, Dor Ben Dov <do...@amdocs.com> wrote:
> 
> Mark,
> 
> It helps, still – will it be possible adding ‘apply plugin’ maven to the gradle root à have generate poms à compile with maven à do you see any problems I don’t ?
> 
> 
> Dor
> 
> From: Mark Bretl [mailto:asf.mbretl@gmail.com]
> Sent: יום ה 10 מרץ 2016 18:51
> To: user@geode.incubator.apache.org
> Subject: Re: maven
> 
> Hi Dor,
> 
> I am not sure what you mean by 'backward compatibility' in the context of building with Maven instead of Gradle. The Geode gradle build can publish jar files to your local Maven repository by executing the command './gradlew install'. It will do a Maven install of the Geode jars into your local Maven repository.
> 
> $> ./gradlew install
> ...
> BUILD SUCCESSFUL
> $> ls ~/.m2/repository/org/apache/
> geode-common
> geode-lucene
> geode-rebalancer
> geode-core
> geode-modules
> geode-wan
> geode-cq
> geode-modules-hibernate
> geode-web
> geode-joptsimple
> geode-modules-session
> geode-web-api
> geode-json
> geode-modules-tomcat7
> geode-junit
> geode-pulse
> 
> Does this help you?
> 
> Best Regards,
> --Mark
> 
> On Thu, Mar 10, 2016 at 7:53 AM, Dor Ben Dov <dor.ben-dov@amdocs.com <ma...@amdocs.com>> wrote:
> Hi Jens,
> 
> No not capability issue, I want to be able to compile the whole project with maven. I know gradle and work with gradle, but
> 
> I want to see that I can (backward compatibility) compile it with maven.
> 
> Do you see any problem ?
> 
> Regards,
> Dor
> 
> From: Jens Deppe [mailto:jdeppe@pivotal.io <ma...@pivotal.io>]
> Sent: יום ה 10 מרץ 2016 17:32
> To: user@geode.incubator.apache.org <ma...@geode.incubator.apache.org>
> Subject: Re: maven
> 
> Hi Dor,
> 
> Is there any particular capability you feel is missing, by using Gradle? Is there something else that maven would provide for you?
> 
> --Jens
> 
> On Thu, Mar 10, 2016 at 1:38 AM, Dor Ben Dov <dor.ben-dov@amdocs.com <ma...@amdocs.com>> wrote:
> Hi All,
> 
> Today I am compiling my fork with gradle, can we add maven plug in to it, I want to try compiling the project with maven as well.
> 
> Or
> 
> Do you have other suggestion, like old maven poms relate to the project ?
> 
> Regards,
> 
> Dor
> This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp <http://www.amdocs.com/email_disclaimer.asp>

RE: maven

Posted by Dor Ben Dov <do...@amdocs.com>.
Mark,

It helps, still – will it be possible adding ‘apply plugin’ maven to the gradle root --> have generate poms --> compile with maven --> do you see any problems I don’t ?


Dor

From: Mark Bretl [mailto:asf.mbretl@gmail.com]
Sent: יום ה 10 מרץ 2016 18:51
To: user@geode.incubator.apache.org
Subject: Re: maven

Hi Dor,

I am not sure what you mean by 'backward compatibility' in the context of building with Maven instead of Gradle. The Geode gradle build can publish jar files to your local Maven repository by executing the command './gradlew install'. It will do a Maven install of the Geode jars into your local Maven repository.

$> ./gradlew install
...
BUILD SUCCESSFUL
$> ls ~/.m2/repository/org/apache/
geode-common
geode-lucene
geode-rebalancer
geode-core
geode-modules
geode-wan
geode-cq
geode-modules-hibernate
geode-web
geode-joptsimple
geode-modules-session
geode-web-api
geode-json
geode-modules-tomcat7
geode-junit
geode-pulse

Does this help you?

Best Regards,
--Mark

On Thu, Mar 10, 2016 at 7:53 AM, Dor Ben Dov <do...@amdocs.com>> wrote:
Hi Jens,

No not capability issue, I want to be able to compile the whole project with maven. I know gradle and work with gradle, but

I want to see that I can (backward compatibility) compile it with maven.

Do you see any problem ?

Regards,
Dor

From: Jens Deppe [mailto:jdeppe@pivotal.io<ma...@pivotal.io>]
Sent: יום ה 10 מרץ 2016 17:32
To: user@geode.incubator.apache.org<ma...@geode.incubator.apache.org>
Subject: Re: maven

Hi Dor,

Is there any particular capability you feel is missing, by using Gradle? Is there something else that maven would provide for you?

--Jens

On Thu, Mar 10, 2016 at 1:38 AM, Dor Ben Dov <do...@amdocs.com>> wrote:
Hi All,

Today I am compiling my fork with gradle, can we add maven plug in to it, I want to try compiling the project with maven as well.

Or

Do you have other suggestion, like old maven poms relate to the project ?

Regards,

Dor
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp



Re: maven

Posted by John Blum <jb...@pivotal.io>.
Well, the "generated" POM is a starting point, but not necessarily
something you can "build" the project with.  For instance, test
dependencies will not be included in the final, "generated" POM (an
shouldn't be included either).  POMs that are generated from Gradle (or
another build) and published to Maven Central are solely for the purpose of
resolving dependencies needed to "run" applications built using Geode, not
build Geode itself.  There is a difference.


On Tue, Mar 15, 2016 at 6:24 AM, Jens Deppe <jd...@pivotal.io> wrote:

> Hi Dor,
>
> As Mark mentioned; by doing './gradlew install' you will get maven
> artifacts installed in your local maven repository - this includes both
> jars and pom files. For example:
>
> $ ls -la
> ~/.m2/repository/org/apache/geode/geode-core/1.0.0-incubating.M2-SNAPSHOT/
> total 44896
> drwxr-xr-x  7 jdeppe  staff       238 Feb 22 21:05 .
> drwxr-xr-x  4 jdeppe  staff       136 Feb 22 21:05 ..
> -rw-r--r--  1 jdeppe  staff       720 Feb 22 20:58
> geode-core-1.0.0-incubating.M2-SNAPSHOT-javadoc.jar
> -rw-r--r--  1 jdeppe  staff  10145697 Feb 22 20:58
> geode-core-1.0.0-incubating.M2-SNAPSHOT-sources.jar
> -rw-r--r--  1 jdeppe  staff  12810453 Feb 22 20:57
> geode-core-1.0.0-incubating.M2-SNAPSHOT.jar
> -rw-r--r--  1 jdeppe  staff     17248 Feb 22 21:05
> *geode-core-1.0.0-incubating.M2-SNAPSHOT.pom*
> -rw-r--r--  1 jdeppe  staff       330 Feb 22 21:05 maven-metadata-local.xml
>
>
> We are doing ongoing work to "get the pom right" so that no unnecessary,
> transitive dependencies are being pulled in. For that reason it would be
> easier for you to just use the generated pom.
>
> HTH
> --Jens
>
> On Tue, Mar 15, 2016 at 4:40 AM, Dor Ben Dov <do...@amdocs.com>
> wrote:
>
>> Mark,
>>
>>
>>
>> I want to create the POM’s since I am working with maven and not gradle.
>> Do you think it would be possible by just adding the
>>
>>  ‘apply plugin: ‘maven’ ?
>>
>>
>>
>> Dor
>>
>>
>>
>> *From:* Mark Bretl [mailto:asf.mbretl@gmail.com]
>> *Sent:* יום ה 10 מרץ 2016 18:51
>>
>> *To:* user@geode.incubator.apache.org
>> *Subject:* Re: maven
>>
>>
>>
>> Hi Dor,
>>
>>
>>
>> I am not sure what you mean by 'backward compatibility' in the context of
>> building with Maven instead of Gradle. The Geode gradle build can publish
>> jar files to your local Maven repository by executing the command
>> './gradlew install'. It will do a Maven install of the Geode jars into your
>> local Maven repository.
>>
>>
>>
>> $> ./gradlew install
>>
>> ...
>>
>> BUILD SUCCESSFUL
>>
>> $> ls ~/.m2/repository/org/apache/
>>
>> geode-common
>> geode-lucene
>> geode-rebalancer
>> geode-core
>> geode-modules
>> geode-wan
>> geode-cq
>> geode-modules-hibernate
>> geode-web
>> geode-joptsimple
>> geode-modules-session
>> geode-web-api
>> geode-json
>> geode-modules-tomcat7
>> geode-junit
>> geode-pulse
>>
>>
>>
>> Does this help you?
>>
>>
>>
>> Best Regards,
>>
>> --Mark
>>
>>
>>
>> On Thu, Mar 10, 2016 at 7:53 AM, Dor Ben Dov <do...@amdocs.com>
>> wrote:
>>
>> Hi Jens,
>>
>>
>>
>> No not capability issue, I want to be able to compile the whole project
>> with maven. I know gradle and work with gradle, but
>>
>>
>>
>> I want to see that I can (backward compatibility) compile it with maven.
>>
>>
>>
>> Do you see any problem ?
>>
>>
>>
>> Regards,
>>
>> Dor
>>
>>
>>
>> *From:* Jens Deppe [mailto:jdeppe@pivotal.io]
>> *Sent:* יום ה 10 מרץ 2016 17:32
>> *To:* user@geode.incubator.apache.org
>> *Subject:* Re: maven
>>
>>
>>
>> Hi Dor,
>>
>>
>>
>> Is there any particular capability you feel is missing, by using Gradle?
>> Is there something else that maven would provide for you?
>>
>>
>>
>> --Jens
>>
>>
>>
>> On Thu, Mar 10, 2016 at 1:38 AM, Dor Ben Dov <do...@amdocs.com>
>> wrote:
>>
>> Hi All,
>>
>>
>>
>> Today I am compiling my fork with gradle, can we add maven plug in to it,
>> I want to try compiling the project with maven as well.
>>
>>
>>
>> Or
>>
>>
>>
>> Do you have other suggestion, like old maven poms relate to the project ?
>>
>>
>>
>> Regards,
>>
>>
>>
>> Dor
>>
>> This message and the information contained herein is proprietary and
>> confidential and subject to the Amdocs policy statement, you may review at
>> http://www.amdocs.com/email_disclaimer.asp
>>
>>
>>
>>
>>
>
>


-- 
-John
503-504-8657
john.blum10101 (skype)

Re: maven

Posted by Jens Deppe <jd...@pivotal.io>.
Hi Dor,

As Mark mentioned; by doing './gradlew install' you will get maven
artifacts installed in your local maven repository - this includes both
jars and pom files. For example:

$ ls -la
~/.m2/repository/org/apache/geode/geode-core/1.0.0-incubating.M2-SNAPSHOT/
total 44896
drwxr-xr-x  7 jdeppe  staff       238 Feb 22 21:05 .
drwxr-xr-x  4 jdeppe  staff       136 Feb 22 21:05 ..
-rw-r--r--  1 jdeppe  staff       720 Feb 22 20:58
geode-core-1.0.0-incubating.M2-SNAPSHOT-javadoc.jar
-rw-r--r--  1 jdeppe  staff  10145697 Feb 22 20:58
geode-core-1.0.0-incubating.M2-SNAPSHOT-sources.jar
-rw-r--r--  1 jdeppe  staff  12810453 Feb 22 20:57
geode-core-1.0.0-incubating.M2-SNAPSHOT.jar
-rw-r--r--  1 jdeppe  staff     17248 Feb 22 21:05
*geode-core-1.0.0-incubating.M2-SNAPSHOT.pom*
-rw-r--r--  1 jdeppe  staff       330 Feb 22 21:05 maven-metadata-local.xml


We are doing ongoing work to "get the pom right" so that no unnecessary,
transitive dependencies are being pulled in. For that reason it would be
easier for you to just use the generated pom.

HTH
--Jens

On Tue, Mar 15, 2016 at 4:40 AM, Dor Ben Dov <do...@amdocs.com> wrote:

> Mark,
>
>
>
> I want to create the POM’s since I am working with maven and not gradle.
> Do you think it would be possible by just adding the
>
>  ‘apply plugin: ‘maven’ ?
>
>
>
> Dor
>
>
>
> *From:* Mark Bretl [mailto:asf.mbretl@gmail.com]
> *Sent:* יום ה 10 מרץ 2016 18:51
>
> *To:* user@geode.incubator.apache.org
> *Subject:* Re: maven
>
>
>
> Hi Dor,
>
>
>
> I am not sure what you mean by 'backward compatibility' in the context of
> building with Maven instead of Gradle. The Geode gradle build can publish
> jar files to your local Maven repository by executing the command
> './gradlew install'. It will do a Maven install of the Geode jars into your
> local Maven repository.
>
>
>
> $> ./gradlew install
>
> ...
>
> BUILD SUCCESSFUL
>
> $> ls ~/.m2/repository/org/apache/
>
> geode-common
> geode-lucene
> geode-rebalancer
> geode-core
> geode-modules
> geode-wan
> geode-cq
> geode-modules-hibernate
> geode-web
> geode-joptsimple
> geode-modules-session
> geode-web-api
> geode-json
> geode-modules-tomcat7
> geode-junit
> geode-pulse
>
>
>
> Does this help you?
>
>
>
> Best Regards,
>
> --Mark
>
>
>
> On Thu, Mar 10, 2016 at 7:53 AM, Dor Ben Dov <do...@amdocs.com>
> wrote:
>
> Hi Jens,
>
>
>
> No not capability issue, I want to be able to compile the whole project
> with maven. I know gradle and work with gradle, but
>
>
>
> I want to see that I can (backward compatibility) compile it with maven.
>
>
>
> Do you see any problem ?
>
>
>
> Regards,
>
> Dor
>
>
>
> *From:* Jens Deppe [mailto:jdeppe@pivotal.io]
> *Sent:* יום ה 10 מרץ 2016 17:32
> *To:* user@geode.incubator.apache.org
> *Subject:* Re: maven
>
>
>
> Hi Dor,
>
>
>
> Is there any particular capability you feel is missing, by using Gradle?
> Is there something else that maven would provide for you?
>
>
>
> --Jens
>
>
>
> On Thu, Mar 10, 2016 at 1:38 AM, Dor Ben Dov <do...@amdocs.com>
> wrote:
>
> Hi All,
>
>
>
> Today I am compiling my fork with gradle, can we add maven plug in to it,
> I want to try compiling the project with maven as well.
>
>
>
> Or
>
>
>
> Do you have other suggestion, like old maven poms relate to the project ?
>
>
>
> Regards,
>
>
>
> Dor
>
> This message and the information contained herein is proprietary and
> confidential and subject to the Amdocs policy statement, you may review at
> http://www.amdocs.com/email_disclaimer.asp
>
>
>
>
>

RE: maven

Posted by Dor Ben Dov <do...@amdocs.com>.
Mark,

I want to create the POM’s since I am working with maven and not gradle. Do you think it would be possible by just adding the
 ‘apply plugin: ‘maven’ ?

Dor

From: Mark Bretl [mailto:asf.mbretl@gmail.com]
Sent: יום ה 10 מרץ 2016 18:51
To: user@geode.incubator.apache.org
Subject: Re: maven

Hi Dor,

I am not sure what you mean by 'backward compatibility' in the context of building with Maven instead of Gradle. The Geode gradle build can publish jar files to your local Maven repository by executing the command './gradlew install'. It will do a Maven install of the Geode jars into your local Maven repository.

$> ./gradlew install
...
BUILD SUCCESSFUL
$> ls ~/.m2/repository/org/apache/
geode-common
geode-lucene
geode-rebalancer
geode-core
geode-modules
geode-wan
geode-cq
geode-modules-hibernate
geode-web
geode-joptsimple
geode-modules-session
geode-web-api
geode-json
geode-modules-tomcat7
geode-junit
geode-pulse

Does this help you?

Best Regards,
--Mark

On Thu, Mar 10, 2016 at 7:53 AM, Dor Ben Dov <do...@amdocs.com>> wrote:
Hi Jens,

No not capability issue, I want to be able to compile the whole project with maven. I know gradle and work with gradle, but

I want to see that I can (backward compatibility) compile it with maven.

Do you see any problem ?

Regards,
Dor

From: Jens Deppe [mailto:jdeppe@pivotal.io<ma...@pivotal.io>]
Sent: יום ה 10 מרץ 2016 17:32
To: user@geode.incubator.apache.org<ma...@geode.incubator.apache.org>
Subject: Re: maven

Hi Dor,

Is there any particular capability you feel is missing, by using Gradle? Is there something else that maven would provide for you?

--Jens

On Thu, Mar 10, 2016 at 1:38 AM, Dor Ben Dov <do...@amdocs.com>> wrote:
Hi All,

Today I am compiling my fork with gradle, can we add maven plug in to it, I want to try compiling the project with maven as well.

Or

Do you have other suggestion, like old maven poms relate to the project ?

Regards,

Dor
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp



Re: maven

Posted by Mark Bretl <as...@gmail.com>.
Hi Dor,

I am not sure what you mean by 'backward compatibility' in the context of
building with Maven instead of Gradle. The Geode gradle build can publish
jar files to your local Maven repository by executing the command
'./gradlew install'. It will do a Maven install of the Geode jars into your
local Maven repository.

$> ./gradlew install

...

BUILD SUCCESSFUL

$> ls ~/.m2/repository/org/apache/

geode-common
geode-lucene
geode-rebalancer
geode-core
geode-modules
geode-wan
geode-cq
geode-modules-hibernate
geode-web
geode-joptsimple
geode-modules-session
geode-web-api
geode-json
geode-modules-tomcat7
geode-junit
geode-pulse


Does this help you?


Best Regards,

--Mark

On Thu, Mar 10, 2016 at 7:53 AM, Dor Ben Dov <do...@amdocs.com> wrote:

> Hi Jens,
>
>
>
> No not capability issue, I want to be able to compile the whole project
> with maven. I know gradle and work with gradle, but
>
>
>
> I want to see that I can (backward compatibility) compile it with maven.
>
>
>
> Do you see any problem ?
>
>
>
> Regards,
>
> Dor
>
>
>
> *From:* Jens Deppe [mailto:jdeppe@pivotal.io]
> *Sent:* יום ה 10 מרץ 2016 17:32
> *To:* user@geode.incubator.apache.org
> *Subject:* Re: maven
>
>
>
> Hi Dor,
>
>
>
> Is there any particular capability you feel is missing, by using Gradle?
> Is there something else that maven would provide for you?
>
>
>
> --Jens
>
>
>
> On Thu, Mar 10, 2016 at 1:38 AM, Dor Ben Dov <do...@amdocs.com>
> wrote:
>
> Hi All,
>
>
>
> Today I am compiling my fork with gradle, can we add maven plug in to it,
> I want to try compiling the project with maven as well.
>
>
>
> Or
>
>
>
> Do you have other suggestion, like old maven poms relate to the project ?
>
>
>
> Regards,
>
>
>
> Dor
>
> This message and the information contained herein is proprietary and
> confidential and subject to the Amdocs policy statement, you may review at
> http://www.amdocs.com/email_disclaimer.asp
>
>
>

RE: maven

Posted by Dor Ben Dov <do...@amdocs.com>.
Hi Jens,

No not capability issue, I want to be able to compile the whole project with maven. I know gradle and work with gradle, but

I want to see that I can (backward compatibility) compile it with maven.

Do you see any problem ?

Regards,
Dor

From: Jens Deppe [mailto:jdeppe@pivotal.io]
Sent: יום ה 10 מרץ 2016 17:32
To: user@geode.incubator.apache.org
Subject: Re: maven

Hi Dor,

Is there any particular capability you feel is missing, by using Gradle? Is there something else that maven would provide for you?

--Jens

On Thu, Mar 10, 2016 at 1:38 AM, Dor Ben Dov <do...@amdocs.com>> wrote:
Hi All,

Today I am compiling my fork with gradle, can we add maven plug in to it, I want to try compiling the project with maven as well.

Or

Do you have other suggestion, like old maven poms relate to the project ?

Regards,

Dor
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp


Re: maven

Posted by Jens Deppe <jd...@pivotal.io>.
Hi Dor,

Is there any particular capability you feel is missing, by using Gradle? Is
there something else that maven would provide for you?

--Jens

On Thu, Mar 10, 2016 at 1:38 AM, Dor Ben Dov <do...@amdocs.com> wrote:

> Hi All,
>
>
>
> Today I am compiling my fork with gradle, can we add maven plug in to it,
> I want to try compiling the project with maven as well.
>
>
>
> Or
>
>
>
> Do you have other suggestion, like old maven poms relate to the project ?
>
>
>
> Regards,
>
>
>
> Dor
> This message and the information contained herein is proprietary and
> confidential and subject to the Amdocs policy statement, you may review at
> http://www.amdocs.com/email_disclaimer.asp
>