Hi Russell, I am not using it as import. POM ====
<project> <groupId>org.sonatype.mavenbook</groupId> <artifactId>persistence-deps</artifactId> <version>1.0</version> <packaging>pom</packaging> <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate</artifactId> <version>${hibernateVersion}</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-annotations</artifactId> <version>${hibernateAnnotationsVersion}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-hibernate3</artifactId> <version>${springVersion}</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>${mysqlVersion}</version> </dependency> </dependencies> <properties> <mysqlVersion>(5.1,)</mysqlVersion> <springVersion>(2.0.6,)</springVersion> <hibernateVersion>3.2.5.ga</hibernateVersion> <hibernateAnnotationsVersion>3.3.0.ga</hibernateAnnotationsVersion> </properties> </project> Adding dependencies ================= <project> <description>This is a project requiring JDBC</description> ... <dependencies> ... <dependency> <groupId>org.sonatype.mavenbook</groupId> <artifactId>persistence-deps</artifactId> <version>1.0</version> <type>pom</type> </dependency> </dependencies> </project> Regards, Bikash Chandra -----Original Message----- From: Russell Gold [mailto:russell.g...@oracle.com] Sent: Tuesday, October 10, 2017 5:13 PM To: Maven Users List <users@maven.apache.org> Subject: Re: Need to pass properties to the dependency POM file Sounds as though you may want to use “import” scope https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html > On Oct 10, 2017, at 7:26 AM, Bikash Chandra Barad > <bikashchandra.ba...@planonsoftware.com> wrote: > > Hi, > > I am trying to grouping the dependencies into a pom(pom-deps.pom)file and > adding that pom file as a dependency in my project. > I need to substitute the properties of the dependency pom file(pom-deps.pom) > to get the latest version dependencies, like parent POM, from the dependency > POM, in my project. > Is it possible to do so? > > > Regards, > Bikash Chandra > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org