[
https://issues.apache.org/jira/browse/SOLR-11181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16123953#comment-16123953
]
Steve Rowe commented on SOLR-11181:
-----------------------------------
bq. Next I'll try to reproduce the problem you're trying to solve with the
unpatched build.
I didn't need to run the process on my own hardware and look at wire traffic,
because the Jenkins log shows that the -sources and -javadoc jars are each
uploaded twice (see log excerpt below). I'm not sure how to deal with this
problem, since the project we use to upload artifacts (Maven Ant Tasks) has
been discontinued, and the likely alternative (Aether Ant Tasks) has also been
discontinued. I'm guessing we'll have to switch to Ivy for artifact upload in
order to address this issue. This likely will not be a small task. Patches
welcome!
>From [https://builds.apache.org/job/Lucene-Solr-Maven-master/2088/consoleText]:
{noformat}
-dist-maven-src-java:
[artifact:install-provider] Installing provider:
org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
[artifact:install] [INFO] Installing
/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Maven-master/lucene/build/lucene.tgz.unpacked/lucene-8.0.0-SNAPSHOT/core/lucene-core-8.0.0-SNAPSHOT.jar
to
/home/jenkins/.m2/repository/org/apache/lucene/lucene-core/8.0.0-SNAPSHOT/lucene-core-8.0.0-SNAPSHOT.jar
[artifact:install] [INFO] Installing
/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Maven-master/lucene/build/core/lucene-core-8.0.0-SNAPSHOT-src.jar
to
/home/jenkins/.m2/repository/org/apache/lucene/lucene-core/8.0.0-SNAPSHOT/lucene-core-8.0.0-SNAPSHOT-sources.jar
[artifact:install] [INFO] Installing
/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Maven-master/lucene/build/core/lucene-core-8.0.0-SNAPSHOT-javadoc.jar
to
/home/jenkins/.m2/repository/org/apache/lucene/lucene-core/8.0.0-SNAPSHOT/lucene-core-8.0.0-SNAPSHOT-javadoc.jar
[artifact:deploy] Deploying to
https://repository.apache.org/content/repositories/snapshots
[artifact:deploy] [INFO] Retrieving previous build number from
apache.snapshots.https
[artifact:deploy] Uploading:
org/apache/lucene/lucene-core/8.0.0-SNAPSHOT/lucene-core-8.0.0-20170810.172621-29.jar
to repository apache.snapshots.https at
https://repository.apache.org/content/repositories/snapshots
[artifact:deploy] Transferring 2708K from apache.snapshots.https
[artifact:deploy] Uploaded 2708K
[artifact:deploy] [INFO] Retrieving previous metadata from
apache.snapshots.https
[artifact:deploy] [INFO] Uploading repository metadata for: 'snapshot
org.apache.lucene:lucene-core:8.0.0-SNAPSHOT'
[artifact:deploy] [INFO] Uploading project information for lucene-core
8.0.0-20170810.172621-29
[artifact:deploy] [INFO] Retrieving previous metadata from
apache.snapshots.https
[artifact:deploy] [INFO] Uploading repository metadata for: 'artifact
org.apache.lucene:lucene-core'
[artifact:deploy] [INFO] Retrieving previous build number from
apache.snapshots.https
[artifact:deploy] Uploading:
org/apache/lucene/lucene-core/8.0.0-SNAPSHOT/lucene-core-8.0.0-20170810.172621-29-sources.jar
to repository apache.snapshots.https at
https://repository.apache.org/content/repositories/snapshots
[artifact:deploy] Transferring 1960K from apache.snapshots.https
[artifact:deploy] Uploaded 1960K
[artifact:deploy] [INFO] Retrieving previous build number from
apache.snapshots.https
[artifact:deploy] Uploading:
org/apache/lucene/lucene-core/8.0.0-SNAPSHOT/lucene-core-8.0.0-20170810.172621-29-javadoc.jar
to repository apache.snapshots.https at
https://repository.apache.org/content/repositories/snapshots
[artifact:deploy] Transferring 5041K from apache.snapshots.https
[artifact:deploy] Uploaded 5041K
[artifact:deploy] [INFO] Retrieving previous build number from
apache.snapshots.https
[artifact:deploy] Uploading:
org/apache/lucene/lucene-core/8.0.0-SNAPSHOT/lucene-core-8.0.0-20170810.172621-29-sources.jar
to repository apache.snapshots.https at
https://repository.apache.org/content/repositories/snapshots
[artifact:deploy] Transferring 1960K from apache.snapshots.https
[artifact:deploy] Uploaded 1960K
[artifact:deploy] [INFO] Retrieving previous build number from
apache.snapshots.https
[artifact:deploy] Uploading:
org/apache/lucene/lucene-core/8.0.0-SNAPSHOT/lucene-core-8.0.0-20170810.172621-29-javadoc.jar
to repository apache.snapshots.https at
https://repository.apache.org/content/repositories/snapshots
[artifact:deploy] Transferring 5041K from apache.snapshots.https
[artifact:deploy] Uploaded 5041K
{noformat}
> Deploying Maven artifacts (generate-maven-artifacts) pushes the same
> artifacts multiple times
> ---------------------------------------------------------------------------------------------
>
> Key: SOLR-11181
> URL: https://issues.apache.org/jira/browse/SOLR-11181
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Build
> Affects Versions: 6.6, master (8.0), 7.1
> Reporter: Lynn Monson
> Assignee: Steve Rowe
> Priority: Minor
> Attachments: SOLR-11181.patch
>
>
> When following the instructions in the README.maven file, and watching the
> wire traffic, the build system issues HTTP PUT operations for the same
> artifacts multiple times. For example, issuing this command:
> ant -Dm2.repository.id=my-repo-id \
> -Dm2.repository.url=http://example.org/my/repo \
> generate-maven-artifacts
> from the lucene/ directory will generate redundant puts. For example:
> PUT
> /<path>/org/apache/lucene/lucene-core/<version>/lucene-core-4.10.4-fs.31-sources.jar
>
> PUT
> /<path>/org/apache/lucene/lucene-core/<version>/lucene-core-4.10.4-fs.31-sources.jar.sha1
>
> PUT
> /<path>/org/apache/lucene/lucene-core/<version>/lucene-core-4.10.4-fs.31-sources.jar.md5
> ...
> PUT
> /<path>/org/apache/lucene/lucene-core/<version>/lucene-core-4.10.4-fs.31-sources.jar
>
> ...
> The maven repo I am using does not allow the second PUT and, hence, the build
> fails.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]