Open peterjeschke opened 5 years ago
Note that this does not happen when I upload the tests and sources seperately (I tried it with the normal web upload). A manual upload gives me this structure:
- myBundle-1.0.0.20181214-1200.jar
- myBundle-1.0.0.20181214-1200-tests.jar
- myBundle-1.0.0.20181214-1200-sources.jar
The tests and sources don't appear in the maven repo.
I'm using the API V3 to upload maven artifacts to package drone but encounter some unexpected behaviour. I'm uploading the following artifacts (in this order):
myBundle-1.0.0.20181214-1200.jar myBundle-1.0.0.20181214-1200-tests.jar myBundle-1.0.0.20181214-1200-sources.jar
The tests and sources are uploaded as children of the main jar, so that it gets displayed as (as intended):
The Maven Repository aspect does something weird now: In the repo, there are directories for (again, everything correct here):
However, the 1.0.0-SNAPSHOT directory points to the sources. (Problem 1) I would expect it to point to the built jar with .class files.
I guess the last uploaded item is used as SNAPSHOT (in this case the source).
The second problem: The maven-metadata.xml file lists all versions, including the sources and tests (this is ... okay I guess), but the fields for
release
andlatest
point to the tests.I don't know why the tests are used as
release
andlatest
, maybe it is sorted alphabetically?I expected the SNAPSHOT,
latest
andrelease
to point the the actually built JAR file or that the tests and sources don't appear in the maven repo.