0
jfrog artifactory를 성공적으로 설정하고 기본 jar 파일을 빌드하고 스냅 샷으로 배포하는 pom.xml을 만듭니다. 그런 다음 저장소에서 해당 jar 파일을 가져 오는 또 다른 프로젝트를 구성하고 성공적으로 수행 한 다음 기본 라이브러리를 변경하고 동일한 스냅 샷 이름으로 다시 배포하려고 시도하지만 올바르게 수행했지만 해당 라이브러리를 다시 가져 오려면 maven 스냅 샷의 버전을 변경하지 않고 로컬 저장소의 기본 라이브러리를 변경하지는 않지만이를 원하지는 않습니다. maven이 로컬 저장소의 스냅 샷 jar 파일을 변경하지 않습니다.
배포의 pom.xml 구성 파일<plugin>
<groupId>org.jfrog.buildinfo</groupId>
<artifactId>artifactory-maven-plugin</artifactId>
<version>2.2.2</version>
<inherited>false</inherited>
<executions>
<execution>
<id>build-info</id>
<goals>
<goal>publish</goal>
</goals>
<configuration>
<deployProperties>
<gradle>awesome</gradle>
</deployProperties>
<artifactory>
<includeEnvVars>true</includeEnvVars>
<timeoutSec>60</timeoutSec>
<propertiesFile>publish.properties</propertiesFile>
</artifactory>
<publisher>
<contextUrl>{{ARTIFACTORY_CONTEXT_URL|"http://tls.local:9081/artifactory"}}</contextUrl>
<username>admin</username>
<password>AP5PqkrxgwKVMBeY6wxPYr66R3M</password>
<excludePatterns>*-tests.jar</excludePatterns>
<repoKey>libs-release-local</repoKey>
<snapshotRepoKey>libs-snapshot-local</snapshotRepoKey>
</publisher>
<buildInfo>
<buildName>plugin-demo</buildName>
<buildNumber>{{DRONE_BUILD_NUMBER|TRAVIS_BUILD_NUMBER|CI_BUILD_NUMBER|BUILD_NUMBER}}
</buildNumber>
<buildUrl>{{DRONE_BUILD_URL|CI_BUILD_URL|BUILD_URL}}</buildUrl>
</buildInfo>
<licenses>
<autoDiscover>true</autoDiscover>
<includePublishedArtifacts>false</includePublishedArtifacts>
<runChecks>true</runChecks>
<scopes>compile,runtime</scopes>
<violationRecipients>[email protected]</violationRecipients>
</licenses>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
</plugin>
타사의 pom.xml 구성 파일 : 우리는 우리의 목표를 달성 할 수있는 방법
<repository>
<id>snapshots</id>
<name>libs-snapshot</name>
<url>http://tls.local:9081/artifactory/libs-snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
?
당신이'MVN -U ...'를 사용하려고 적이 완전히 우리의 로컬 저장소의 스냅 샷을 삭제 한 후 고유 한 우리의 jfrog 저장소의 받는다는 스냅 샷 버전을 동작을 구성하고 자료를 처리하고 스냅 샷을 처리 확인해야합니까? – khmarbaise
기술적으로 우리는 intellij를 사용하여 pox.xml을 마우스 오른쪽 버튼으로 클릭하고 maven을 클릭 한 다음 reimport를 클릭합니다. 그러나 maven을 사용하여 maven을 실행하려면 -u clean deploy 또는 mvn -U Clean install을 사용합니다. 하나의 – AKZ
우리는 jfrog 저장소의 maven 스냅 샷 버전 동작을 고유하게 구성하고 릴리스 처리를 확인하고 스냅 샷을 처리 한 다음 로컬 저장소의 스냅 샷을 완전히 삭제해야합니다. – AKZ