diff --git a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java index 60b1c65af..9204b4c84 100644 --- a/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java +++ b/archiva-cli/src/main/java/org/apache/archiva/cli/ArchivaCli.java @@ -25,8 +25,6 @@ import org.apache.archiva.consumers.ConsumerException; import org.apache.archiva.consumers.InvalidRepositoryContentConsumer; import org.apache.archiva.consumers.KnownRepositoryContentConsumer; import org.apache.archiva.consumers.RepositoryContentConsumer; -import org.apache.archiva.converter.RepositoryConversionException; -import org.apache.archiva.converter.legacy.LegacyRepositoryConverter; import org.apache.archiva.repository.base.BasicManagedRepository; import org.apache.archiva.repository.scanner.RepositoryScanStatistics; import org.apache.archiva.repository.scanner.RepositoryScanner; @@ -139,7 +137,7 @@ public class ArchivaCli } else if ( command.convert ) { - doConversion( command.properties ); + LOGGER.error( "Conversion is not available anymore" ); } else if ( command.scan ) { @@ -247,38 +245,6 @@ public class ArchivaCli return smallNames; } - private void doConversion( String properties ) - throws IOException, RepositoryConversionException - { - LegacyRepositoryConverter legacyRepositoryConverter = - applicationContext.getBean( LegacyRepositoryConverter.class ); - - Properties p = new Properties(); - - try (InputStream fis = Files.newInputStream( Paths.get( properties ) )) - { - p.load( fis ); - } - - Path oldRepositoryPath = Paths.get( p.getProperty( SOURCE_REPO_PATH ) ); - - Path newRepositoryPath = Paths.get( p.getProperty( TARGET_REPO_PATH ) ); - - LOGGER.info( "Converting {} to {}", oldRepositoryPath, newRepositoryPath ); - - List fileExclusionPatterns = null; - - String s = p.getProperty( BLACKLISTED_PATTERNS ); - - if ( s != null ) - { - fileExclusionPatterns = Arrays.asList( StringUtils.split( s, "," ) ); - } - - legacyRepositoryConverter.convertLegacyRepository( oldRepositoryPath, newRepositoryPath, - fileExclusionPatterns ); - } - private static class Commands { @Argument( description = "Display help information", value = "help", alias = "h" ) diff --git a/archiva-jetty/pom.xml b/archiva-jetty/pom.xml index 031ac12af..21b779780 100644 --- a/archiva-jetty/pom.xml +++ b/archiva-jetty/pom.xml @@ -80,11 +80,6 @@ mail runtime - - org.apache.ant - ant - runtime - diff --git a/archiva-modules/archiva-web/archiva-webapp-test/pom.xml b/archiva-modules/archiva-web/archiva-webapp-test/pom.xml index 6aa386c86..a0d738e3f 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp-test/pom.xml @@ -572,7 +572,7 @@ javax.mail mail - ${javaxMailVersion} + ${javax.mail.version} com.google.guava diff --git a/archiva-modules/archiva-web/archiva-webapp/pom.xml b/archiva-modules/archiva-web/archiva-webapp/pom.xml index ac49d62bf..ca71b12d8 100644 --- a/archiva-modules/archiva-web/archiva-webapp/pom.xml +++ b/archiva-modules/archiva-web/archiva-webapp/pom.xml @@ -743,7 +743,7 @@ javax.mail mail - ${javaxMailVersion} + ${javax.mail.version} org.apache.openjpa diff --git a/pom.xml b/pom.xml index 46a9840b6..55477dda9 100644 --- a/pom.xml +++ b/pom.xml @@ -53,7 +53,8 @@ 4.0.1 1.1.1 - + 1.4 + 2.0 1.13 4.4 @@ -89,13 +90,9 @@ 10.13.1.1 4.5.2 4.4.4 - 1.4 - 15.0 2.4.1 - 5.0.4 - 2.3.5 @@ -123,6 +120,10 @@ 0.7.9 + + 1.5.2 + + 2.2.2 @@ -167,7 +168,7 @@ javax.ws.rs javax.ws.rs-api - 2.0 + ${jaxrs.version} @@ -643,12 +644,6 @@ - - com.lmax - disruptor - 3.3.6 - - com.zaxxer HikariCP @@ -675,32 +670,9 @@ - - com.google.inject - guice - 4.1.0 - no_aop - - - aopalliance - aopalliance - - - - - - org.codehaus.woodstox - woodstox-core-asl - 4.2.0 - - com.fasterxml.jackson.jaxrs @@ -740,26 +712,12 @@ ${project.version} + org.apache.archiva archiva-rest-services ${project.version} - - com.google.guava - guava - ${guava.version} - - - stax - stax - 1.2.0 - - - javax.xml.stream - stax-api - 1.0-2 - org.modelmapper @@ -847,11 +805,6 @@ commons-text ${commons.text.version} - - org.apache.commons - commons-compress - 1.2 - org.apache.derby derby @@ -862,52 +815,12 @@ derbytools ${derbyVersion} - - org.dom4j - dom4j - 2.1.1 - org.hsqldb hsqldb ${hsqldb.version} test - - jaxen - jaxen - 1.1 - - - xom - xom - - - xerces - xercesImpl - - - - - jpox - jpox - 1.1.9-1 - - - javax.transaction - jta - - - geronimo-spec - geronimo-spec-jta - - - - - jpox - jpox-ehcache - 1.1.9 - org.apache.archiva archiva-lucene-consumers @@ -936,7 +849,7 @@ javax.mail mail - ${javaxMailVersion} + ${javax.mail.version} @@ -1056,25 +969,6 @@ archiva-components-expression-evaluator ${archiva.comp.version} - - org.codehaus.plexus - plexus-slf4j-logging - ${plexus-slf4j-version} - - - org.codehaus.plexus - plexus-container-default - - - commons-logging - commons-logging-api - - - log4j - log4j - - - org.apache.archiva.components @@ -1107,11 +1001,6 @@ - - org.apache.ant - ant - 1.8.3 - org.codehaus.plexus plexus-utils @@ -1121,12 +1010,6 @@ org.apache.archiva.components.cache archiva-components-spring-cache-api ${archiva.comp.version} - - - javax.annotation - jsr250-api - - org.apache.archiva.components.cache @@ -1151,46 +1034,22 @@ redback-rbac-memory ${redback.version} test - - - commons-logging - commons-logging - - org.apache.archiva.redback redback-authorization-api ${redback.version} - - - commons-logging - commons-logging - - org.apache.archiva.redback redback-users-memory ${redback.version} test - - - commons-logging - commons-logging - - org.apache.archiva.redback redback-keys-memory ${redback.version} - - - commons-logging - commons-logging - - org.apache.archiva.redback @@ -1201,12 +1060,6 @@ org.apache.archiva.redback redback-keys-jpa ${redback.version} - - - commons-logging - commons-logging - - org.apache.archiva.redback @@ -1217,132 +1070,42 @@ org.apache.archiva.redback redback-rbac-model ${redback.version} - - - commons-logging - commons-logging - - org.apache.archiva.redback redback-authorization-rbac ${redback.version} - - - commons-logging - commons-logging - - org.apache.archiva.redback redback-rbac-role-manager ${redback.version} - - - commons-logging - commons-logging - - - javax.annotation - jsr250-api - - org.apache.archiva.redback redback-system ${redback.version} - - - commons-logging - commons-logging - - org.apache.archiva.redback redback-common-integrations ${redback.version} - - - commons-logging - commons-logging - - org.apache.archiva.redback redback-integrations-security ${redback.version} - - - commons-logging - commons-logging - - - - - org.apache.velocity - velocity - 1.7 - - - asm - * - - - - - org.apache.velocity - velocity-tools - 1.3 - - - commons-logging - commons-logging - - - velocity - velocity-dep - - - velocity - velocity - - - struts - struts - - - javax.servlet - servlet-api - - org.apache.archiva.redback redback-rbac-cached ${redback.version} - - - commons-logging - commons-logging - - org.apache.archiva.redback redback-rbac-ldap ${redback.version} - - - commons-logging - commons-logging - - @@ -1355,12 +1118,6 @@ org.apache.archiva.redback redback-rest-services ${redback.version} - - - commons-logging - commons-logging - - org.apache.archiva.redback @@ -1378,16 +1135,6 @@ org.apache.archiva.redback redback-authentication-api ${redback.version} - - - commons-logging - commons-logging - - - javax.annotation - jsr250-api - - org.apache.archiva.redback @@ -1442,26 +1189,6 @@ org.apache.archiva.components.registry archiva-components-spring-registry-commons ${archiva.comp.version} - - - commons-logging - commons-logging-api - - - commons-logging - commons-logging - - - - - commons-logging - commons-logging-api - 1.1 - - - org.apache.geronimo.specs - geronimo-jpa_2.0_spec - 1.1 javax.servlet @@ -1545,11 +1272,6 @@ runtime - - taglibs - standard - 1.1.2 - org.apache.maven.wagon wagon-file @@ -1622,7 +1344,7 @@ joda-time joda-time - 1.5.2 + ${joda.time.version} org.eclipse.jetty @@ -1641,19 +1363,6 @@ - - commons-validator - commons-validator - 1.6 - - - commons-logging - commons-logging - - - - - javax.jcr @@ -1742,7 +1451,7 @@ cglib cglib - 2.2.2 + ${cglib.version} org.apache.maven.shared @@ -1781,18 +1490,6 @@ - - org.glassfish.jaxb - jaxb-runtime - 2.3.2 - - - - org.ow2.asm - asm - ${asm.version} - - com.rometools rome