Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 267 for Try (0.01 seconds)

  1. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java

            }
    
            try {
                metadata.storeInLocalRepository(localRepository, deploymentRepository);
            } catch (RepositoryMetadataStoreException e) {
                throw new RepositoryMetadataDeploymentException("Error installing metadata: " + e.getMessage(), e);
            }
    
            try {
                wagonManager.putArtifactMetadata(file, metadata, deploymentRepository);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/plugin/internal/DefaultPluginManager.java

                throws PluginManagerException, ComponentLookupException {
            MavenSession session = legacySupport.getSession();
    
            PluginDescriptor pluginDescriptor;
            try {
                pluginDescriptor = pluginManager.getPluginDescriptor(
                        plugin, session.getCurrentProject().getRemotePluginRepositories(), session.getRepositorySession());
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

            PluginDescriptor pluginDescriptor = null;
    
            File pluginFile = pluginArtifact.getFile();
    
            try {
                if (pluginFile.isFile()) {
                    try (JarFile pluginJar = new JarFile(pluginFile, false)) {
                        ZipEntry pluginDescriptorEntry = pluginJar.getEntry(getPluginDescriptorLocation());
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 09 16:35:21 GMT 2025
    - 46.4K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

            // the basics
            try {
                context.cwd = getCwd(context);
            } catch (Exception e) {
                context.parsingFailed = true;
                context.cwd = getCanonicalPath(Paths.get("."));
                parserRequest.logger().error("Error determining working directory", e);
            }
            try {
                context.installationDirectory = getInstallationDirectory(context);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:39:11 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelper.java

                throws ComponentConfigurationException {
    
            Class<?> beanType = bean.getClass();
    
            // Try setter/adder methods first
            MethodInfo methodInfo = findCachedMethod(beanType, propertyName, valueType);
            if (methodInfo != null) {
                try {
                    Object value = convertPropertyForMethod(beanType, methodInfo, valueType, configuration);
                    if (value != null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Nov 12 14:59:46 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                        if (isQualifiedForInterpolation(field, type)) {
                            boolean isAccessible = field.isAccessible();
                            field.setAccessible(true);
                            try {
                                try {
                                    if (String.class == type) {
                                        String value = (String) field.get(target);
                                        if (value != null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

            Versioning versioning = null;
            try {
                if (metadata != null) {
                    try (SyncContext syncContext = syncContextFactory.newInstance(session, true)) {
                        syncContext.acquire(null, Collections.singleton(metadata));
    
                        if (metadata.getPath() != null && Files.exists(metadata.getPath())) {
                            try (InputStream in = Files.newInputStream(metadata.getPath())) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Dec 16 13:41:14 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/toolchain/ToolchainManagerFactory.java

            return createV3FactoryBridge("jdk");
        }
    
        /**
         * Creates a v3 ToolchainFactory bridge that wraps a v4 ToolchainFactory.
         */
        public ToolchainFactory createV3FactoryBridge(String type) {
            try {
                org.apache.maven.api.services.ToolchainFactory v4Factory =
                        lookup.lookup(org.apache.maven.api.services.ToolchainFactory.class, type);
                if (v4Factory == null) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 31 10:58:52 GMT 2025
    - 11K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java

                // NOTE: DuplicateArtifactAttachmentException is currently unchecked, so be careful removing this try/catch!
                // This is necessary to avoid creating compatibility problems for existing plugins that use
                // MavenProjectHelper.attachArtifact(..).
                try {
                    MojoExecutionEvent mojoExecutionEvent = new MojoExecutionEvent(session, project, mojoExecution, mojo);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 16:01:38 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

            boolean downloaded = false;
    
            try {
                connectWagon(wagon, repository);
    
                boolean firstRun = true;
                boolean retry = true;
    
                // this will run at most twice. The first time, the firstRun flag is turned off, and if the retry flag
                // is set on the first run, it will be turned off and not re-set on the second try. This is because the
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 29.9K bytes
    - Click Count (0)
Back to Top