Sorry, forgot to include the mvn command I'm running to download all of the ISOs: mvn dependency:copy -f multi_iso_downloader_pom_modified.xml -s ~/.m2/settings.xml Do you have an example I can reference artifacts that are defined in a top level <dependencies> tag? thanks -----Original Message----- From: Greg Chabala <greg.chab...@gmail.com> Sent: Monday, July 26, 2021 5:56 PM To: Maven Users List <users@maven.apache.org> Subject: Re: Questions on what xml tags to use for pom.xml file for downloading isos ---- External E-mail --- CAUTION: This email originated from outside GDMS. Do not click links or open attachments unless you recognize the sender and know the content is safe. I agree with NIck's suggestion on fixing the property names. Also, when I run this, the isos are ... > When you run what? Your exact command invocation would help. A pom.xml does not run like a script, it is shared configuration for any number of plugin invocations. Your configuration of artifacts within the dependency plugin is unusual. Typically, your artifacts would be defined in a top level <dependencies> tag. Greg Chabala On Mon, Jul 26, 2021 at 3:18 PM Nick Stolwijk <nick.stolw...@gmail.com> wrote: > Hi, > > I think you need to fix the parameter resolution: > ${depStagingArea/pcs} should be ${depStagingArea}/pcs > > Hth, > > Nick Stolwijk > > ~~~ Try to leave this world a little better than you found it and, > when your turn comes to die, you can die happy in feeling that at any > rate you have not wasted your time but have done your best ~~~ > > Lord Baden-Powell > > > On Mon, Jul 26, 2021 at 9:28 PM christopher.mil...@gd-ms.com < > christopher.mil...@gd-ms.com> wrote: > > > > > > > Hi, first post here. I'm new to Maven and its been quite some time > > since I've used XML. > > > > We are trying to using Maven to either upload and download artifacts > > from a Nexus repository Vs doing it manually. > > > > I've been trying various things, until I got the following to > > finally > work > > for a multi iso download from a Nexus repo that we have inhouse: > > > > > > > > <?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< > > > http://maven.apache.org/POM/4.0.0%20http:/maven.apache.org/xsd/maven-4 > .0.0.xsd > > >> > > > > <modelVersion>4.0.0</modelVersion> > > > > <groupId>Software_Release_Here</groupId> > > <artifactId>Software_Program_Here</artifactId> > > <version>Version_Number_Here</version> > > > > <properties> > > > > <depStagingArea>/dropbox/</depStagingArea> > > <downloadFilename1>1st_ISO_here.iso</downloadFilename1> > > <downloadFilename2>2nd_ISO_here.iso</downloadFilename2> > > > > </properties> > > > > <build> > > <plugins> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-dependency-plugin</artifactId> > > <version>2.8</version> > > <configuration> > > <artifactItems> > > <artifactItem> > > <groupId>${project.groupId}</groupId> > > <artifactId>1st_ISO_here.iso</artifactId> > > <version>${project.version}</version> > > <type>iso</type> > > <overWrite>iso</overWrite> > > <outputDirectory>${depStagingArea/pcs}</outputDirectory> > > <destFileName>${downloadFilename1}</destFileName> > > </artifactItem> > > <artifactItem> > > <groupId>${project.groupId}</groupId> > > <artifactId>2nd_ISO_here.iso</artifactId> > > <version>${project.version}</version> > > <type>iso</type> > > <overWrite>iso</overWrite> > > <outputDirectory>${depStagingArea/pcs}</outputDirectory> > > <destFileName>${downloadFilename2}</destFileName> > > </artifactItem> > > </artifactItems> > > </configuration> > > </plugin> > > </plugins> > > </build> > > > > <repositories> > > > > > > > > Also, when I run this, the isos are downloaded to > > ~/software/xml/poms, when I've specified markup tags for > > <depStagingArea>/dropbox/</depStagingArea>. Not sure why its > > working > like > > this. > > > > Thanks > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Questions on what xml tags to use for pom.xml file for downloading isos
christopher.mil...@gd-ms.com Tue, 27 Jul 2021 08:16:31 -0700
- Questions on what xml tags to use for pom.xml... christopher.mil...@gd-ms.com
- Re: Questions on what xml tags to use fo... Nick Stolwijk
- Re: Questions on what xml tags to us... Greg Chabala
- RE: Questions on what xml tags t... christopher.mil...@gd-ms.com
- RE: Questions on what xml tags to us... christopher.mil...@gd-ms.com
- Re: Questions on what xml tags t... Greg Chabala
- RE: Questions on what xml ta... christopher.mil...@gd-ms.com
- Re: Questions on what x... Greg Chabala
- RE: Questions on wh... christopher.mil...@gd-ms.com
- Re: Questions o... Greg Chabala
- Re: Questions on what xml tags to use fo... Delany