Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for setBuildNumber (0.16 sec)

  1. compat/maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java

        /*--- START test "groupId/artifactId/version" metadata ---*/
        @Test
        void mergeSnapshotWithEmptyList() throws Exception {
            Snapshot snapshot = new Snapshot();
            snapshot.setBuildNumber(3);
            snapshot.setTimestamp("20200710.072412");
            target.getVersioning().setSnapshot(snapshot);
            target.getVersioning().setLastUpdated("20200921071745");
            SnapshotVersion sv = new SnapshotVersion();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/RemoteSnapshotMetadata.java

                utcDateFormatter.setCalendar(new GregorianCalendar());
                utcDateFormatter.setTimeZone(DEFAULT_SNAPSHOT_TIME_ZONE);
    
                snapshot = new Snapshot();
                snapshot.setBuildNumber(buildNumber != null ? buildNumber : getBuildNumber(recessive) + 1);
                snapshot.setTimestamp(utcDateFormatter.format(timestamp));
    
                Versioning versioning = new Versioning();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java

                try {
                    int buildNumber = resolveLatestSnapshotBuildNumber(artifact, localRepository, remoteRepository);
    
                    snapshot.setBuildNumber(buildNumber + 1);
                } catch (RepositoryMetadataResolutionException e) {
                    throw new ArtifactDeploymentException(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. api/maven-api-metadata/src/main/mdo/metadata.mdo

                            updateSnapshotVersions = true;
                        }
                        if ( s.getBuildNumber() != snapshot.getBuildNumber() )
                        {
                            s.setBuildNumber( snapshot.getBuildNumber() );
                            changed = true;
                        }
                        if ( s.isLocalCopy() != snapshot.isLocalCopy() )
                        {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed May 15 17:32:27 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java

                    if (matcher.matches()) {
                        Snapshot snapshot = new Snapshot();
                        snapshot.setTimestamp(matcher.group(2));
                        try {
                            snapshot.setBuildNumber(Integer.parseInt(matcher.group(3)));
                            artifact.addMetadata(new SnapshotArtifactRepositoryMetadata(artifact, snapshot));
                        } catch (NumberFormatException e) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 24.8K bytes
    - Viewed (0)
Back to top