Thanks. You are clearly helpful. If I may prod you regarding manual download/install of items in .m2
When I originally initiated the project (following ambari docs) and used: mvn versions:set -DnewVersion=2.7.6.0.0 and again for ambari-metrics a bunch of things got downloaded. When I ran clean/test/compile builds more items were downloaded and dropped into my local .m2 What did NOT get downloaded were two items. One of which is maven-source-plugin. MVNRepository shows (for 3.2.1) <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-source-plugin --> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.2.1</version> </dependency> Which matches other org.apache.maven plugins such as shade and surefire and these WERE downloaded. Is there some reason these missing two were left out? Importantly, if I go to https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-source-plugin/3.2.1/ ../ maven-source-plugin-3.2.1-javadoc.jar 2019-12-16 18:21 69893 maven-source-plugin-3.2.1-javadoc.jar.asc 2019-12-16 18:21 488 maven-source-plugin-3.2.1-javadoc.jar.md5 2019-12-16 18:21 32 maven-source-plugin-3.2.1-javadoc.jar.sha1 2019-12-16 18:21 40 maven-source-plugin-3.2.1-source-release.zip 2019-12-16 18:21 204286 maven-source-plugin-3.2.1-source-release.zip.... 2019-12-16 18:21 488 maven-source-plugin-3.2.1-source-release.zip.... 2019-12-16 18:21 32 maven-source-plugin-3.2.1-source-release.zip.... 2019-12-16 18:21 40 maven-source-plugin-3.2.1-sources.jar 2019-12-16 18:21 23814 maven-source-plugin-3.2.1-sources.jar.asc 2019-12-16 18:21 488 maven-source-plugin-3.2.1-sources.jar.md5 2019-12-16 18:21 32 maven-source-plugin-3.2.1-sources.jar.sha1 2019-12-16 18:21 40 maven-source-plugin-3.2.1.jar 2019-12-16 18:21 32159 maven-source-plugin-3.2.1.jar.asc 2019-12-16 18:21 488 maven-source-plugin-3.2.1.jar.md5 2019-12-16 18:21 32 maven-source-plugin-3.2.1.jar.sha1 2019-12-16 18:21 40 maven-source-plugin-3.2.1.pom 2019-12-16 18:21 6924 maven-source-plugin-3.2.1.pom.asc 2019-12-16 18:21 488 maven-source-plugin-3.2.1.pom.md5 2019-12-16 18:21 32 maven-source-plugin-3.2.1.pom.sha1 2019-12-16 18:21 40 Could I just grab the jar, pom and sha1, copy these to my .m2 repo and they would get picked up by the build? I notice that the local repo versions of things have extra items such as : several m2e-lastUpdated and _remote.repositories I understand these may only be relative to ECLIPSE. -----Original Message----- From: Delany <delany.middle...@gmail.com> Sent: Wednesday, January 12, 2022 11:30 AM To: Maven Users List <users@maven.apache.org> Subject: Re: Ambari 2.7.6 build questions EXTERNAL Hi Marc, The "<version>2.1.4</version>" line should be left out. Clearly the authors are not following standard practice for managing dependencies, so do not assume that they know what they're doing. Change the version in the dependencyManagement section if you need it to be v2.1.4. Delany On Wed, 12 Jan 2022 at 12:13, Marc Hoppins <marc.hopp...@eset.com> wrote: > HI all, > > I get a ‘overriding managed version 2.0.1 for rpm-maven.plugin’ > message and I see two plugin definitions for this artifact, with two > versions, in the same ‘build’ block in the top-level > (ambari-2.7.6.0.0) POM. From what I see, does this mean that the plugin must > be declared in both places: > > build>pluginManagement>plugins>plugin>rpm-maven-plugin > and > build>plugins>plugin>rpm-maven-plugin? > > In any case, why is the version different for these declarations? > > <build> > <pluginManagement> > <plugins> > <plugin> > <groupId>org.apache.rat</groupId> > <artifactId>apache-rat-plugin</artifactId> > <version>0.12</version> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <version>2.20</version> > </plugin> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>rpm-maven-plugin</artifactId> > <version>2.0.1</version> > </plugin> > <plugin> > <groupId>org.vafer</groupId> > <artifactId>jdeb</artifactId> > <version>1.8</version> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-clean-plugin</artifactId> > <version>2.5</version> > </plugin> > <plugin> > <artifactId>maven-assembly-plugin</artifactId> > <version>2.2-beta-5</version> > </plugin> > </plugins> > </pluginManagement> > <plugins> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>build-helper-maven-plugin</artifactId> > <version>1.8</version> > <executions> > <execution> > <id>parse-package-version</id> > <goals> > <goal>regex-property</goal> > </goals> > <configuration> > <name>package-version</name> > <value>${project.version}</value> > > <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)((\.|-).*)?</regex> > <replacement>$1.$2.$3.$4</replacement> > <failIfNoMatch>true</failIfNoMatch> > </configuration> > </execution> > <execution> > <id>parse-package-release</id> > <goals> > <goal>regex-property</goal> > </goals> > <configuration> > <name>package-release</name> > <value>${project.version}</value> > > <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)((\.|-)(([0-9]+)|(SNAPSHOT)|(techwin)).*)?</regex> > <replacement>$7</replacement> > <failIfNoMatch>true</failIfNoMatch> > </configuration> > </execution> > </executions> > </plugin> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>3.2</version> > <configuration> > <source>1.8</source> > <target>1.8</target> > </configuration> > </plugin> > <plugin> > <artifactId>maven-assembly-plugin</artifactId> > <configuration> > <descriptors> > > <descriptor>${ambari.dir}/ambari-project/src/main/assemblies/empty.xml</descriptor> > </descriptors> > </configuration> > <executions> > <execution> > <id>make-assembly</id> > <phase>package</phase> > <goals> > <goal>single</goal> > </goals> > </execution> > </executions> > </plugin> > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>rpm-maven-plugin</artifactId> > <version>2.1.4</version> > <executions> > <execution> > <!-- unbinds rpm creation from maven lifecycle --> > <phase>none</phase> > <goals> > <goal>attached-rpm</goal> > </goals> > </execution> > </executions> > <configuration> > <license>2012, Apache Software Foundation</license> > <group>Development</group> > <description>Maven Recipe: RPM Package.</description> > <release>${package-release}</release> > <version>${package-version}</version> > <mappings/> > </configuration> > </plugin> >