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 <[email protected]> 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 <[email protected]>
> 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:[email protected]]
>> *Sent:* יום ה 10 מרץ 2016 18:51
>>
>> *To:* [email protected]
>> *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 <[email protected]>
>> 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:[email protected]]
>> *Sent:* יום ה 10 מרץ 2016 17:32
>> *To:* [email protected]
>> *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 <[email protected]>
>> 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)

Reply via email to