You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christian Kohlschütter (Jira)" <ji...@apache.org> on 2024/06/27 19:17:00 UTC
[jira] [Comment Edited] (MINSTALL-200) "mvn jar:jar install:install" installs a jar instead of a pom
[ https://issues.apache.org/jira/browse/MINSTALL-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860623#comment-17860623 ]
Christian Kohlschütter edited comment on MINSTALL-200 at 6/27/24 7:16 PM:
--------------------------------------------------------------------------
I've encountered the same problem. I just saw your bug report after filing MINSTALL-201 with some root cause analysis and a potential fix.
was (Author: ck@newsclub.de):
I've encountered the same problem. I just saw your bug report after filing MINSTALL-200 with some root cause analysis and a potential fix.
> "mvn jar:jar install:install" installs a jar instead of a pom
> -------------------------------------------------------------
>
> Key: MINSTALL-200
> URL: https://issues.apache.org/jira/browse/MINSTALL-200
> Project: Maven Install Plugin
> Issue Type: Bug
> Components: install:install
> Affects Versions: 3.1.2
> Reporter: Urs Keller
> Priority: Minor
>
> {code:java}
> <?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.example</groupId>
> <artifactId>test-project-parent</artifactId>
> <version>main-SNAPSHOT</version>
> <packaging>pom</packaging>
> <build>
> <pluginManagement>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-install-plugin</artifactId>
> <version>3.1.2</version>
> </plugin>
> </plugins>
> </pluginManagement>
> </build>
> </project>
> {code}
> {code:java}
> $ rm -rf ~/.m2/repository/com/example/test-project-parent
> $ mvn jar:jar install:install
> $ file ~/.m2/repository/com/example/test-project-parent/main-SNAPSHOT/*
> .../test-project-parent-main-SNAPSHOT.pom: Zip archive data, at least v1.0 to extract, compression method=store
>
> {code}
> The behaviour is different in 3.1.1 where this command will install the pom. The output looks like this:
> {code:java}
> .../test-project-parent-main-SNAPSHOT.pom: XML 1.0 document text, ASCII text {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)