You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Yujue Li (JIRA)" <ji...@apache.org> on 2017/04/01 14:16:41 UTC
[jira] [Issue Comment Deleted] (MNG-6201) deploy-file is
inconsistent with install-file behavior.
[ https://issues.apache.org/jira/browse/MNG-6201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yujue Li updated MNG-6201:
--------------------------
Comment: was deleted
(was: I don't want to use multi profile mode, which does not meet my needs.
I want to cancel the default install and deploy processes, and then call install-file and deploy-file to deploy the specified pom.xml file.
However, in accordance with the above configuration, install-file can correctly install the specified pom.xml file to the local repository, but deploy-file will still deploy the default pom.xml file.)
> deploy-file is inconsistent with install-file behavior.
> -------------------------------------------------------
>
> Key: MNG-6201
> URL: https://issues.apache.org/jira/browse/MNG-6201
> Project: Maven
> Issue Type: Bug
> Components: Plugins and Lifecycle
> Affects Versions: 3.3.9
> Reporter: Yujue Li
> Labels: build
>
> The following configuration, install-file will take effect, but deploy-file will not take effect.
> {code:xml}
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-install-plugin</artifactId>
> <version>2.5.2</version>
> <inherited>false</inherited>
> <configuration>
> <skip>true</skip>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-install-plugin</artifactId>
> <version>2.5.2</version>
> <inherited>false</inherited>
> <executions>
> <execution>
> <id>core-install</id>
> <phase>install</phase>
> <goals>
> <goal>install-file</goal>
> </goals>
> <configuration>
> <file>${basedir}/pom-deployment.xml</file>
> <groupId>com.platform-dev.projects</groupId>
> <artifactId>core</artifactId>
> <version>${c.version}</version>
> <packaging>pom</packaging>
> </configuration>
> </execution>
> </executions>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-deploy-plugin</artifactId>
> <inherited>false</inherited>
> <version>2.8.2</version>
> <configuration>
> <skip>true</skip>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-deploy-plugin</artifactId>
> <version>2.8.2</version>
> <inherited>false</inherited>
> <executions>
> <execution>
> <id>core-deploy</id>
> <phase>deploy</phase>
> <goals>
> <goal>deploy-file</goal>
> </goals>
> <configuration>
> <file>${basedir}/pom-deployment.xml</file>
> <groupId>com.platform-dev.projects</groupId>
> <artifactId>core</artifactId>
> <version>${c.version}</version>
> <packaging>pom</packaging>
> <url>http://192.168.2.241:7001/nexus/content/repositories/releases</url>
> <repositoryId>platform-release</repositoryId>
> </configuration>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)