David Pilato
|
c61dccd189
|
Packaging: mvn install renames artifacts when copying
This PR:
* renames all distribution artifacts to `elasticsearch` so maven plugins will pick up the correct finalName without needing any hack.
* changes the groupId for every single distribution module as we can't have more than one module using the same groupId:artifactId
* does not attach anymore empty jar files for tar/zip/... modules as they don't contain any `src/main/java` stuff.
When you build it, you end up with:
```
$ tree ~/.m2/repository/org/elasticsearch/distribution
distribution
├── deb
│ └── elasticsearch
│ ├── 2.0.0-beta1-SNAPSHOT
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.deb
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.deb.md5
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.deb.sha1
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.md5
│ │ └── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.sha1
├── elasticsearch-distribution
│ ├── 2.0.0-beta1-SNAPSHOT
│ │ ├── elasticsearch-distribution-2.0.0-beta1-SNAPSHOT.pom
│ │ ├── elasticsearch-distribution-2.0.0-beta1-SNAPSHOT.pom.md5
│ │ └── elasticsearch-distribution-2.0.0-beta1-SNAPSHOT.pom.sha1
├── fully-loaded
│ └── elasticsearch
│ ├── 2.0.0-beta1-SNAPSHOT
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.md5
│ │ └── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.sha1
├── rpm
│ └── elasticsearch
│ ├── 2.0.0-beta1-SNAPSHOT
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.md5
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.sha1
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.rpm
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.rpm.md5
│ │ └── elasticsearch-2.0.0-beta1-SNAPSHOT.rpm.sha1
├── shaded
│ └── elasticsearch
│ ├── 2.0.0-beta1-SNAPSHOT
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.jar
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.jar.md5
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.jar.sha1
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.md5
│ │ └── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.sha1
├── tar
│ └── elasticsearch
│ ├── 2.0.0-beta1-SNAPSHOT
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.md5
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.sha1
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.tar.gz
│ │ ├── elasticsearch-2.0.0-beta1-SNAPSHOT.tar.gz.md5
│ │ └── elasticsearch-2.0.0-beta1-SNAPSHOT.tar.gz.sha1
└── zip
└── elasticsearch
└── 2.0.0-beta1-SNAPSHOT
├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom
├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.md5
├── elasticsearch-2.0.0-beta1-SNAPSHOT.pom.sha1
├── elasticsearch-2.0.0-beta1-SNAPSHOT.zip
├── elasticsearch-2.0.0-beta1-SNAPSHOT.zip.md5
├── elasticsearch-2.0.0-beta1-SNAPSHOT.zip.sha1
└──
```
Closes #12536
|
2015-08-04 15:34:11 +02:00 |