Here is what I added in the maven goal. -e deploy:deploy-file -Dfile=pom.xml -Durl=http://abc001.na.abcglobal.com:8081/nexus/content/repositories/releases -DrepositoryId=releases -DgroupId=com.abc.t3 -DartifactId=t3 -Dversion=1.1 -Dpackaging=pom
But this creates incorrect 1.1 version of my project POM. I want to see the actual contents of pom.xml from my version control repository to get deployed to Nexus. Instead the resulting POM is ?xml version="1.0" encoding="UTF-8"?><project> <modelVersion>4.0.0</modelVersion> <groupId>com.abc.t3</groupId> <artifactId>t3</artifactId> <packaging>pom</packaging> <version>1.1</version> </project> ~ I was expecting that deploy-file will deploy the actual file i.e pom.xml in this case. What could be wrong here ? Thanks, huser wrote: > > Hi, > > I want to deploy a project POM file only. I added maven-deploy plugin as > follows. When I run > > mvn dpeloy:deploy-file > > It still complains about missing modules directories. I dont want to build > the modules. I want to generate the pom file only. How can I do this ? > > <parent> > > <groupId>com.abc</groupId> > <artifactId>abc-parent</artifactId> > <version>2.4</version> > </parent> > <groupId>com.abc.t3</groupId> > <artifactId>t3</artifactId> > <version>1.1</version> > <packaging>pom</packaging> > <name>ABC T3 </name> > <build> > > <plugins> > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-deploy-plugin</artifactId> > <version>2.4</version> > </plugin> > </plugins> > > </build> > > -- View this message in context: http://www.nabble.com/maven-deploy-plugin-tp24902976p24943430.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
