apache / apache/maven-install-plugin

[MINSTALL-200] "mvn jar:jar install:install" installs a jar instead of a pom

Open
#310 4 comments 0 reactions 0 assignees View on GitHub
bug priority:minor
Dominant language
Java
Stars
43
Forks
44
Avg merge
1d 23h
Merged PRs (30d)
11

Description

**[Urs Keller](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ukeller)** opened **[MINSTALL-200](https://issues.apache.org/jira/browse/MINSTALL-200?redirect=false)** and commented

```java

    4.0.0
    com.example
    test-project-parent
    main-SNAPSHOT
    pom
   
       
           
               
                    org.apache.maven.plugins
                    maven-install-plugin
                    3.1.2
               
           
       
   


```

```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
 
```

The behaviour is different in 3.1.1 where this command will install the pom. The output looks like this:

```java
.../test-project-parent-main-SNAPSHOT.pom: XML 1.0 document text, ASCII text
```

---

**Affects:** 3.1.2

**Issue Links:**
- [MNG-8138](https://issues.apache.org/jira/browse/MNG-8138) Maven internal state should not allow to become "broken"
(_**"is caused by"**_)
- [MINSTALL-201](https://issues.apache.org/jira/browse/MINSTALL-201) Regression in 3.1.2 when installing pom artifact

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.