I have attached a copy of the pom.xml that I am using.
On Mon, Feb 8, 2016 at 4:05 AM, Karl Heinz Marbaise <khmarba...@gmx.de> wrote: > Hi, > > On 2/8/16 6:43 AM, Mehul Sanghvi wrote: > >> I have a project with multiple modules and sub-modules. Two of the >> modules, use >> the same maven-deploy-plugin:deploy-file logic, just the artefacts they >> are >> working >> > > > Can you show an example of your deploy-file logic? Cause if you are really > using deploy-file goal within your pom file and in your life cycle there is > something wrong... > > Kind regards > Karl Heinz Marbaise > > with are different. One module uploads designated JARs to Nexus. The >> other is >> meant for uploading ZIP files. Both are activated only if their >> respective >> profiles >> are activated, -Pupload-jars and -Pupload-zips respectively. Both modules >> share the same settings.xml information regarding repositories and >> servers. >> >> >> Upload-jars is able to successfully upload the JARs using deploy-file. >> Upload-zips always fails with: >> >> Return code is: 401, ReasonPhrase:Unauthorized >> >> How do I figure out the credentials that are being used ? When I use >> >> mvn -X >> >> I do not see anything that would indicate what user/passwd combination is >> being used. Any thoughts or suggestions ? >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Mehul N. Sanghvi email: mehul.sang...@gmail.com
<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>GROUP.ID</groupId> <artifactId>publish-zip-artifacts</artifactId> <name>ZIP PUBLISH</name> <packaging>pom</packaging> <parent> <groupId>ORG.GROUP.ID</groupId> <artifactId>SOME-ARTIFACT-ID</artifactId> <version>1.2.3-SNAPSHOT</version> </parent> <properties> <repositoryId>${project.distributionManagement.snapshotRepository.id}</repositoryId> <url>${project.distributionManagement.snapshotRepository.url}</url> <groupId>GROUP.ID</groupId> </properties> <profiles> <profile> <id>PROFILE-ZIP-UPLOAD</id> <distributionManagement> <repository> <id>integration-releases</id> <name>Internal Release Repository</name> <url>http://nexus.internal.com:8081/nexus/content/repositories/repo-releases</url> <uniqueVersion>true</uniqueVersion> </repository> <snapshotRepository> <id>integration-snapshot</id> <name>Internal Snapshot Repository</name> <url>http://internal.nexus.com:8081/nexus/content/repositories/repo-snapshot</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.7</version> <executions> <execution> <id>deploy-artifact-zip</id> <phase>install</phase> <goals> <goal>deploy-file</goal> </goals> <configuration> <repositoryId>${repositoryId}</repositoryId> <url>${url}</url> <groupId>${groupId}</groupId> <artifactId>SOME-ARTIFACT</artifactId> <version>${project.version}</version> <file>${project.parent.basedir}/path/to/target-${osArch}-${osName}.zip</file> <classifier>${release.platform}</classifier> <generatePom>true</generatePom> <packaging>zip</packaging> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <dependencies> <dependency> <groupId>ORG.GROUP.ID</groupId> <artifactId>SOME-ASSEMBLY</artifactId> <version>${project.version}</version> <type>pom</type> </dependency> </dependencies> </project>
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org