build-info
build-info copied to clipboard
maven artifactory does nothing about deploying artifact
Hi, I am trying to use artifactory-maven-plugin
to publish the artifacts generated by maven project. Currently it does nothing, but what I am expecting to see is [INFO] Deploying artifact: ...
after Resolver
log which I saw before. It would be very helpful if someone can tell me the proper way to debug the issue. Meanwhile, I am going through the source code.
It's weird ithat sometimes it's working and sometimes not.
#### TAIL OF THE BUILD
10:47:04 [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ distribution ---
10:47:04 [INFO] Skipping artifact deployment
10:47:04 [DEBUG] Build Info Recorder: false
10:47:04 [DEBUG] Artifactory Client Property Resolver: artifactory.publish..contextUrl = https://****
10:47:04 [DEBUG] Artifactory Client Property Resolver: username = example
10:47:04 [INFO] ------------------------------------------------------------------------
10:47:04 [INFO] Reactor Summary:
10:47:04 [INFO]
10:47:04 [INFO] A.............................................. SUCCESS [ 23.290 s]
10:47:04 [INFO] A-core ......................................... SUCCESS [01:25 min]
10:47:04 [INFO] A-util .......................................... SUCCESS [ 19.138 s]
...
10:47:04 [INFO] ------------------------------------------------------------------------
10:47:04 [INFO] BUILD SUCCESS
10:47:04 [INFO] ------------------------------------------------------------------------
10:47:04 [INFO] Total time: 30:59 min
Maven setup
<plugin>
<groupId>org.jfrog.buildinfo</groupId>
<artifactId>artifactory-maven-plugin</artifactId>
<version>2.6.1</version>
<executions>
<execution>
<id>build-info</id>
<goals>
<goal>publish</goal>
</goals>
<configuration>
<publisher>
<contextUrl>*****</contextUrl>
<repoKey>${artifactory.repoKey}</repoKey>
<snapshotRepoKey>${artifactory.snapshotRepoKey}</snapshotRepoKey>
<username>${env.ARTIFACT_REPO_USERNAME}</username>
<password>${env.ARTIFACT_REPO_PASSWORD}</password>
<excludePatterns>${artifactory.excludePatterns}</excludePatterns>
<filterExcludedArtifactsFromBuild>true</filterExcludedArtifactsFromBuild>
<publishBuildInfo>false</publishBuildInfo>
</publisher>
<deployProperties>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
</deployProperties>
<buildInfo>
<buildNumber>${build-number}</buildNumber>
</buildInfo>
<licenses>
<autoDiscover>true</autoDiscover>
</licenses>
</configuration>
</execution>
</executions>
</plugin>
@au-hao Same problem here, could you find the problem?
Hello. I have the same problem. Could you find the solution?