import org.apache.archiva.indexer.IndexUpdateFailedException; | import org.apache.archiva.indexer.IndexUpdateFailedException; | ||||
import org.apache.archiva.indexer.UnsupportedBaseContextException; | import org.apache.archiva.indexer.UnsupportedBaseContextException; | ||||
import org.apache.archiva.proxy.ProxyRegistry; | import org.apache.archiva.proxy.ProxyRegistry; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.proxy.model.NetworkProxy; | import org.apache.archiva.proxy.model.NetworkProxy; | ||||
import org.apache.archiva.repository.EditableRepository; | import org.apache.archiva.repository.EditableRepository; | ||||
import org.apache.archiva.repository.ManagedRepository; | import org.apache.archiva.repository.ManagedRepository; |
package org.apache.archiva.maven.proxy; | |||||
package org.apache.archiva.maven.common.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* or more contributor license agreements. See the NOTICE file | * or more contributor license agreements. See the NOTICE file |
package org.apache.archiva.maven.proxy; | |||||
package org.apache.archiva.maven.common.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one |
package org.apache.archiva.maven.proxy; | |||||
package org.apache.archiva.maven.common.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one |
package org.apache.archiva.maven.proxy; | |||||
package org.apache.archiva.maven.common.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one |
package org.apache.archiva.maven.proxy; | |||||
package org.apache.archiva.maven.common.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* or more contributor license agreements. See the NOTICE file | * or more contributor license agreements. See the NOTICE file |
default-lazy-init="true"> | default-lazy-init="true"> | ||||
<context:annotation-config/> | <context:annotation-config/> | ||||
<context:component-scan base-package="org.apache.archiva.maven.proxy"/> | |||||
<context:component-scan base-package="org.apache.archiva.maven.common.proxy"/> | |||||
</beans> | </beans> |
import org.apache.archiva.indexer.IndexUpdateFailedException; | import org.apache.archiva.indexer.IndexUpdateFailedException; | ||||
import org.apache.archiva.indexer.UnsupportedBaseContextException; | import org.apache.archiva.indexer.UnsupportedBaseContextException; | ||||
import org.apache.archiva.proxy.ProxyRegistry; | import org.apache.archiva.proxy.ProxyRegistry; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.proxy.model.NetworkProxy; | import org.apache.archiva.proxy.model.NetworkProxy; | ||||
import org.apache.archiva.repository.EditableRepository; | import org.apache.archiva.repository.EditableRepository; | ||||
import org.apache.archiva.repository.ManagedRepository; | import org.apache.archiva.repository.ManagedRepository; |
default-lazy-init="false"> | default-lazy-init="false"> | ||||
<context:annotation-config/> | <context:annotation-config/> | ||||
<context:component-scan base-package="org.apache.archiva.indexer.maven,org.apache.archiva.repository,org.apache.archiva.repository.content.maven2" /> | |||||
<context:component-scan base-package="org.apache.archiva.maven.indexer,org.apache.archiva.repository" /> | |||||
<bean name="wagon#file" scope="prototype" class="org.apache.maven.wagon.providers.file.FileWagon"/> | <bean name="wagon#file" scope="prototype" class="org.apache.maven.wagon.providers.file.FileWagon"/> |
package org.apache.archiva.maven2.model; | |||||
package org.apache.archiva.maven.model; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.maven2.model; | |||||
package org.apache.archiva.maven.model; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* or more contributor license agreements. See the NOTICE file | * or more contributor license agreements. See the NOTICE file | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.maven2.model; | |||||
package org.apache.archiva.maven.model; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* or more contributor license agreements. See the NOTICE file | * or more contributor license agreements. See the NOTICE file | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
</plugin> | </plugin> | ||||
</plugins> | </plugins> | ||||
</pluginManagement> | </pluginManagement> | ||||
<plugins> | |||||
<plugin> | |||||
<groupId>org.apache.maven.plugins</groupId> | |||||
<artifactId>maven-surefire-plugin</artifactId> | |||||
<configuration> | |||||
<systemPropertyVariables> | |||||
<appserver.base>${project.build.directory}/appserver-base</appserver.base> | |||||
<plexus.home>${project.build.directory}/appserver-base</plexus.home> | |||||
<derby.system.home>${project.build.directory}/appserver-base</derby.system.home> | |||||
<redback.jdbc.url>${redbackTestJdbcUrl}</redback.jdbc.url> | |||||
<redback.jdbc.driver.name>${redbackTestJdbcDriver}</redback.jdbc.driver.name> | |||||
<archiva.repositorySessionFactory.id>mock</archiva.repositorySessionFactory.id> | |||||
<openjpa.Log>${openjpa.Log}</openjpa.Log> | |||||
</systemPropertyVariables> | |||||
</configuration> | |||||
</plugin> | |||||
</plugins> | |||||
</build> | </build> | ||||
<!-- | <!-- |
* under the License. | * under the License. | ||||
*/ | */ | ||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.proxy.DefaultRepositoryProxyHandler; | import org.apache.archiva.proxy.DefaultRepositoryProxyHandler; | ||||
import org.apache.archiva.proxy.NotFoundException; | import org.apache.archiva.proxy.NotFoundException; | ||||
import org.apache.archiva.proxy.NotModifiedException; | import org.apache.archiva.proxy.NotModifiedException; | ||||
urlFailureCache.cacheFailure(url); | urlFailureCache.cacheFailure(url); | ||||
throw e; | throw e; | ||||
} | } | ||||
catch (WagonFactoryException e) { | |||||
catch ( WagonFactoryException e) { | |||||
throw new ProxyException(e.getMessage(), e); | throw new ProxyException(e.getMessage(), e); | ||||
} finally { | } finally { | ||||
if (wagon != null) { | if (wagon != null) { |
default-lazy-init="true"> | default-lazy-init="true"> | ||||
<context:annotation-config/> | <context:annotation-config/> | ||||
<context:component-scan base-package="org.apache.archiva.proxy.maven"/> | |||||
<context:component-scan base-package="org.apache.archiva.maven.proxy"/> | |||||
<bean name="wagon#http" scope="prototype" class="org.apache.maven.wagon.providers.http.HttpWagon"/> | <bean name="wagon#http" scope="prototype" class="org.apache.maven.wagon.providers.http.HttpWagon"/> | ||||
package org.apache.archiva.proxy.common; | |||||
package org.apache.archiva.maven.common.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||||
*/ | */ | ||||
import junit.framework.TestCase; | import junit.framework.TestCase; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; | import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; | ||||
import org.apache.maven.wagon.Wagon; | import org.apache.maven.wagon.Wagon; | ||||
import org.junit.Test; | import org.junit.Test; |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||||
import org.apache.archiva.policies.PropagateErrorsOnUpdateDownloadPolicy; | import org.apache.archiva.policies.PropagateErrorsOnUpdateDownloadPolicy; | ||||
import org.apache.archiva.policies.ReleasesPolicy; | import org.apache.archiva.policies.ReleasesPolicy; | ||||
import org.apache.archiva.policies.SnapshotsPolicy; | import org.apache.archiva.policies.SnapshotsPolicy; | ||||
import org.apache.archiva.proxy.ProxyRegistry; | |||||
import org.apache.archiva.proxy.model.RepositoryProxyHandler; | import org.apache.archiva.proxy.model.RepositoryProxyHandler; | ||||
import org.apache.archiva.repository.ManagedRepository; | import org.apache.archiva.repository.ManagedRepository; | ||||
import org.apache.archiva.repository.ManagedRepositoryContent; | import org.apache.archiva.repository.ManagedRepositoryContent; |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||||
import org.apache.archiva.policies.PropagateErrorsOnUpdateDownloadPolicy; | import org.apache.archiva.policies.PropagateErrorsOnUpdateDownloadPolicy; | ||||
import org.apache.archiva.policies.ReleasesPolicy; | import org.apache.archiva.policies.ReleasesPolicy; | ||||
import org.apache.archiva.policies.SnapshotsPolicy; | import org.apache.archiva.policies.SnapshotsPolicy; | ||||
import org.apache.archiva.proxy.ProxyRegistry; | |||||
import org.apache.archiva.proxy.model.RepositoryProxyHandler; | import org.apache.archiva.proxy.model.RepositoryProxyHandler; | ||||
import org.apache.archiva.repository.ManagedRepository; | import org.apache.archiva.repository.ManagedRepository; | ||||
import org.apache.archiva.repository.ManagedRepositoryContent; | import org.apache.archiva.repository.ManagedRepositoryContent; |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.proxy; | |||||
package org.apache.archiva.maven.proxy; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.metadata.repository; | |||||
package org.apache.archiva.maven.proxy.mock.metadata.repository; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* or more contributor license agreements. See the NOTICE file | * or more contributor license agreements. See the NOTICE file | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.repository.mock; | |||||
package org.apache.archiva.maven.proxy.mock.repository; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.repository.mock; | |||||
package org.apache.archiva.maven.proxy.mock.repository; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.repository.mock; | |||||
package org.apache.archiva.maven.proxy.mock.repository; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.repository.mock; | |||||
package org.apache.archiva.maven.proxy.mock.repository; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
package org.apache.archiva.repository.mock; | |||||
package org.apache.archiva.maven.proxy.mock.repository; | |||||
/* | /* | ||||
* Licensed to the Apache Software Foundation (ASF) under one | * Licensed to the Apache Software Foundation (ASF) under one | ||||
* "License"); you may not use this file except in compliance | * "License"); you may not use this file except in compliance | ||||
* with the License. You may obtain a copy of the License at | * with the License. You may obtain a copy of the License at | ||||
* | * | ||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* | |||||
* http://www.apache.org/licenses/LICENSE-2.0 | |||||
* Unless required by applicable law or agreed to in writing, | * Unless required by applicable law or agreed to in writing, | ||||
* software distributed under the License is distributed on an | * software distributed under the License is distributed on an | ||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd" | http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd" | ||||
default-lazy-init="true"> | default-lazy-init="true"> | ||||
<context:component-scan base-package="org.apache.archiva.proxy.maven"/> | |||||
<context:component-scan base-package="org.apache.archiva.maven.proxy"/> | |||||
<bean name="wagon#file" scope="prototype" class="org.apache.maven.wagon.providers.file.FileWagon"/> | <bean name="wagon#file" scope="prototype" class="org.apache.maven.wagon.providers.file.FileWagon"/> | ||||
default-lazy-init="true"> | default-lazy-init="true"> | ||||
<context:annotation-config/> | <context:annotation-config/> | ||||
<context:component-scan base-package="org.apache.archiva.metadata.repository,org.apache.archiva.proxy,org.apache.archiva.repository.mock"/> | |||||
<context:component-scan base-package="org.apache.archiva.metadata,org.apache.archiva.proxy,org.apache.archiva.maven.proxy.mock"/> | |||||
<alias name="mockRepositoryProvider" alias="mavenRepositoryProvider" /> | <alias name="mockRepositoryProvider" alias="mavenRepositoryProvider" /> | ||||
<alias name="archivaConfiguration#mock" alias="archivaConfiguration#default"/> | <alias name="archivaConfiguration#mock" alias="archivaConfiguration#default"/> | ||||
</property> | </property> | ||||
</bean> | </bean> | ||||
<bean name="repositoryContentProvider#mocked" class="org.apache.archiva.repository.mock.RepositoryContentProviderMock" /> | |||||
<bean name="repositoryContentProvider#mocked" class="org.apache.archiva.maven.proxy.mock.repository.RepositoryContentProviderMock" /> | |||||
<bean name="repositoryProxyHandler#test" class="org.apache.archiva.maven.proxy.MavenRepositoryProxyHandler"> | <bean name="repositoryProxyHandler#test" class="org.apache.archiva.maven.proxy.MavenRepositoryProxyHandler"> | ||||
<property name="timeToLiveSeconds" value="1800"/> | <property name="timeToLiveSeconds" value="1800"/> | ||||
</bean> | </bean> | ||||
<bean name="wagon#http" class="org.apache.archiva.proxy.WagonDelegate" scope="singleton"/> | |||||
<bean name="wagon#http" class="org.apache.archiva.maven.proxy.WagonDelegate" scope="singleton"/> | |||||
<bean name="wagon#file" scope="prototype" class="org.apache.maven.wagon.providers.file.FileWagon"/> | <bean name="wagon#file" scope="prototype" class="org.apache.maven.wagon.providers.file.FileWagon"/> | ||||
<alias name="userConfiguration#redback" alias="userConfiguration#default"/> | <alias name="userConfiguration#redback" alias="userConfiguration#default"/> |
* under the License. | * under the License. | ||||
*/ | */ | ||||
import org.apache.archiva.maven2.model.TreeEntry; | |||||
import org.apache.archiva.maven.model.TreeEntry; | |||||
import org.eclipse.aether.graph.DependencyVisitor; | import org.eclipse.aether.graph.DependencyVisitor; | ||||
import java.util.List; | import java.util.List; |
import org.apache.archiva.admin.model.networkproxy.NetworkProxyAdmin; | import org.apache.archiva.admin.model.networkproxy.NetworkProxyAdmin; | ||||
import org.apache.archiva.admin.model.proxyconnector.ProxyConnectorAdmin; | import org.apache.archiva.admin.model.proxyconnector.ProxyConnectorAdmin; | ||||
import org.apache.archiva.common.utils.VersionUtil; | import org.apache.archiva.common.utils.VersionUtil; | ||||
import org.apache.archiva.maven2.model.TreeEntry; | |||||
import org.apache.archiva.maven.model.TreeEntry; | |||||
import org.apache.archiva.maven.metadata.MavenMetadataReader; | import org.apache.archiva.maven.metadata.MavenMetadataReader; | ||||
import org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator; | import org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator; | ||||
import org.apache.archiva.model.ArchivaRepositoryMetadata; | import org.apache.archiva.model.ArchivaRepositoryMetadata; |
* under the License. | * under the License. | ||||
*/ | */ | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven2.model.TreeEntry; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.maven.model.TreeEntry; | |||||
import org.eclipse.aether.graph.DependencyNode; | import org.eclipse.aether.graph.DependencyNode; | ||||
import org.eclipse.aether.graph.DependencyVisitor; | import org.eclipse.aether.graph.DependencyVisitor; | ||||
import org.modelmapper.ModelMapper; | import org.modelmapper.ModelMapper; |
import org.apache.archiva.model.SnapshotVersion; | import org.apache.archiva.model.SnapshotVersion; | ||||
import org.apache.archiva.policies.ProxyDownloadException; | import org.apache.archiva.policies.ProxyDownloadException; | ||||
import org.apache.archiva.proxy.ProxyRegistry; | import org.apache.archiva.proxy.ProxyRegistry; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.proxy.model.NetworkProxy; | import org.apache.archiva.proxy.model.NetworkProxy; | ||||
import org.apache.archiva.proxy.model.ProxyConnector; | import org.apache.archiva.proxy.model.ProxyConnector; | ||||
import org.apache.archiva.proxy.model.RepositoryProxyHandler; | import org.apache.archiva.proxy.model.RepositoryProxyHandler; |
import org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator; | import org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator; | ||||
import org.apache.archiva.model.ArchivaRepositoryMetadata; | import org.apache.archiva.model.ArchivaRepositoryMetadata; | ||||
import org.apache.archiva.model.SnapshotVersion; | import org.apache.archiva.model.SnapshotVersion; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.proxy.model.NetworkProxy; | import org.apache.archiva.proxy.model.NetworkProxy; | ||||
import org.apache.archiva.repository.ManagedRepository; | import org.apache.archiva.repository.ManagedRepository; | ||||
import org.apache.archiva.repository.RemoteRepository; | import org.apache.archiva.repository.RemoteRepository; |
import org.apache.archiva.configuration.ArchivaConfiguration; | import org.apache.archiva.configuration.ArchivaConfiguration; | ||||
import org.apache.archiva.configuration.Configuration; | import org.apache.archiva.configuration.Configuration; | ||||
import org.apache.archiva.configuration.ManagedRepositoryConfiguration; | import org.apache.archiva.configuration.ManagedRepositoryConfiguration; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven2.model.TreeEntry; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.maven.model.TreeEntry; | |||||
import org.apache.archiva.repository.RepositoryRegistry; | import org.apache.archiva.repository.RepositoryRegistry; | ||||
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; | import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; | ||||
import org.junit.Before; | import org.junit.Before; |
import org.apache.archiva.metadata.model.MailingList; | import org.apache.archiva.metadata.model.MailingList; | ||||
import org.apache.archiva.metadata.model.ProjectVersionMetadata; | import org.apache.archiva.metadata.model.ProjectVersionMetadata; | ||||
import org.apache.archiva.metadata.repository.storage.ReadMetadataRequest; | import org.apache.archiva.metadata.repository.storage.ReadMetadataRequest; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.repository.RepositoryRegistry; | import org.apache.archiva.repository.RepositoryRegistry; | ||||
import org.apache.archiva.repository.base.RepositoryHandlerDependencies; | import org.apache.archiva.repository.base.RepositoryHandlerDependencies; | ||||
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; | import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; |
import org.apache.archiva.metadata.model.ProjectVersionMetadata; | import org.apache.archiva.metadata.model.ProjectVersionMetadata; | ||||
import org.apache.archiva.metadata.repository.storage.ReadMetadataRequest; | import org.apache.archiva.metadata.repository.storage.ReadMetadataRequest; | ||||
import org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException; | import org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.repository.ReleaseScheme; | import org.apache.archiva.repository.ReleaseScheme; | ||||
import org.apache.archiva.repository.RepositoryRegistry; | import org.apache.archiva.repository.RepositoryRegistry; | ||||
import org.apache.archiva.repository.base.RepositoryHandlerDependencies; | import org.apache.archiva.repository.base.RepositoryHandlerDependencies; |
import org.apache.archiva.metadata.model.ProjectVersionMetadata; | import org.apache.archiva.metadata.model.ProjectVersionMetadata; | ||||
import org.apache.archiva.metadata.repository.storage.ReadMetadataRequest; | import org.apache.archiva.metadata.repository.storage.ReadMetadataRequest; | ||||
import org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException; | import org.apache.archiva.metadata.repository.storage.RepositoryStorageRuntimeException; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.repository.RepositoryRegistry; | import org.apache.archiva.repository.RepositoryRegistry; | ||||
import org.apache.archiva.repository.base.RepositoryHandlerDependencies; | import org.apache.archiva.repository.base.RepositoryHandlerDependencies; | ||||
import org.junit.Before; | import org.junit.Before; |
import org.apache.archiva.metadata.repository.storage.ReadMetadataRequest; | import org.apache.archiva.metadata.repository.storage.ReadMetadataRequest; | ||||
import org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataInvalidException; | import org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataInvalidException; | ||||
import org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataNotFoundException; | import org.apache.archiva.metadata.repository.storage.RepositoryStorageMetadataNotFoundException; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.repository.RepositoryRegistry; | import org.apache.archiva.repository.RepositoryRegistry; | ||||
import org.apache.archiva.repository.base.RepositoryHandlerDependencies; | import org.apache.archiva.repository.base.RepositoryHandlerDependencies; | ||||
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; | import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner; |
import org.apache.archiva.indexer.IndexUpdateFailedException; | import org.apache.archiva.indexer.IndexUpdateFailedException; | ||||
import org.apache.archiva.indexer.UnsupportedBaseContextException; | import org.apache.archiva.indexer.UnsupportedBaseContextException; | ||||
import org.apache.archiva.proxy.ProxyRegistry; | import org.apache.archiva.proxy.ProxyRegistry; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.proxy.model.NetworkProxy; | import org.apache.archiva.proxy.model.NetworkProxy; | ||||
import org.apache.archiva.repository.EditableRepository; | import org.apache.archiva.repository.EditableRepository; | ||||
import org.apache.archiva.repository.ManagedRepository; | import org.apache.archiva.repository.ManagedRepository; |
import org.apache.archiva.configuration.ConfigurationEvent; | import org.apache.archiva.configuration.ConfigurationEvent; | ||||
import org.apache.archiva.configuration.ConfigurationListener; | import org.apache.archiva.configuration.ConfigurationListener; | ||||
import org.apache.archiva.indexer.UnsupportedBaseContextException; | import org.apache.archiva.indexer.UnsupportedBaseContextException; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.repository.RepositoryRegistry; | import org.apache.archiva.repository.RepositoryRegistry; | ||||
import org.apache.archiva.repository.features.RemoteIndexFeature; | import org.apache.archiva.repository.features.RemoteIndexFeature; | ||||
import org.apache.commons.lang3.StringUtils; | import org.apache.commons.lang3.StringUtils; |
* under the License. | * under the License. | ||||
*/ | */ | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.proxy.model.NetworkProxy; | import org.apache.archiva.proxy.model.NetworkProxy; | ||||
import org.apache.archiva.repository.base.PasswordCredentials; | import org.apache.archiva.repository.base.PasswordCredentials; | ||||
import org.apache.archiva.repository.RemoteRepository; | import org.apache.archiva.repository.RemoteRepository; |
* under the License. | * under the License. | ||||
*/ | */ | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.proxy.model.NetworkProxy; | import org.apache.archiva.proxy.model.NetworkProxy; | ||||
import org.apache.archiva.repository.RemoteRepository; | import org.apache.archiva.repository.RemoteRepository; | ||||
import org.apache.maven.index.packer.IndexPacker; | import org.apache.maven.index.packer.IndexPacker; |
import org.apache.archiva.indexer.IndexCreationFailedException; | import org.apache.archiva.indexer.IndexCreationFailedException; | ||||
import org.apache.archiva.indexer.IndexUpdateFailedException; | import org.apache.archiva.indexer.IndexUpdateFailedException; | ||||
import org.apache.archiva.indexer.UnsupportedBaseContextException; | import org.apache.archiva.indexer.UnsupportedBaseContextException; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryException; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.proxy.model.NetworkProxy; | import org.apache.archiva.proxy.model.NetworkProxy; | ||||
import org.apache.archiva.repository.EditableRepository; | import org.apache.archiva.repository.EditableRepository; | ||||
import org.apache.archiva.repository.ManagedRepository; | import org.apache.archiva.repository.ManagedRepository; |
* under the License. | * under the License. | ||||
*/ | */ | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import javax.xml.bind.annotation.XmlRootElement; | import javax.xml.bind.annotation.XmlRootElement; | ||||
import java.io.Serializable; | import java.io.Serializable; |
import io.swagger.v3.oas.annotations.tags.Tag; | import io.swagger.v3.oas.annotations.tags.Tag; | ||||
import org.apache.archiva.admin.model.beans.ManagedRepository; | import org.apache.archiva.admin.model.beans.ManagedRepository; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven2.model.TreeEntry; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.maven.model.TreeEntry; | |||||
import org.apache.archiva.metadata.model.ProjectVersionMetadata; | import org.apache.archiva.metadata.model.ProjectVersionMetadata; | ||||
import org.apache.archiva.redback.authorization.RedbackAuthorization; | import org.apache.archiva.redback.authorization.RedbackAuthorization; | ||||
import org.apache.archiva.rest.api.model.ActionStatus; | import org.apache.archiva.rest.api.model.ActionStatus; |
*/ | */ | ||||
import io.swagger.v3.oas.annotations.tags.Tag; | import io.swagger.v3.oas.annotations.tags.Tag; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.redback.authorization.RedbackAuthorization; | import org.apache.archiva.redback.authorization.RedbackAuthorization; | ||||
import org.apache.archiva.security.common.ArchivaRoleConstants; | import org.apache.archiva.security.common.ArchivaRoleConstants; | ||||
*/ | */ | ||||
import io.swagger.v3.oas.annotations.tags.Tag; | import io.swagger.v3.oas.annotations.tags.Tag; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.redback.authorization.RedbackAuthorization; | import org.apache.archiva.redback.authorization.RedbackAuthorization; | ||||
import org.apache.archiva.repository.scanner.RepositoryScanStatistics; | import org.apache.archiva.repository.scanner.RepositoryScanStatistics; | ||||
import org.apache.archiva.rest.api.model.ActionStatus; | import org.apache.archiva.rest.api.model.ActionStatus; |
import io.swagger.v3.oas.annotations.tags.Tag; | import io.swagger.v3.oas.annotations.tags.Tag; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.redback.authorization.RedbackAuthorization; | import org.apache.archiva.redback.authorization.RedbackAuthorization; | ||||
import org.apache.archiva.rest.api.model.ChecksumSearch; | import org.apache.archiva.rest.api.model.ChecksumSearch; | ||||
import org.apache.archiva.rest.api.model.GroupIdList; | import org.apache.archiva.rest.api.model.GroupIdList; |
import org.apache.archiva.admin.model.proxyconnector.ProxyConnectorAdmin; | import org.apache.archiva.admin.model.proxyconnector.ProxyConnectorAdmin; | ||||
import org.apache.archiva.common.utils.VersionUtil; | import org.apache.archiva.common.utils.VersionUtil; | ||||
import org.apache.archiva.indexer.search.SearchResultHit; | import org.apache.archiva.indexer.search.SearchResultHit; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.metadata.model.ArtifactMetadata; | import org.apache.archiva.metadata.model.ArtifactMetadata; | ||||
import org.apache.archiva.metadata.model.facets.AuditEvent; | import org.apache.archiva.metadata.model.facets.AuditEvent; | ||||
import org.apache.archiva.metadata.repository.RepositorySessionFactory; | import org.apache.archiva.metadata.repository.RepositorySessionFactory; |
import org.apache.archiva.repository.ManagedRepositoryContent; | import org.apache.archiva.repository.ManagedRepositoryContent; | ||||
import org.apache.archiva.repository.content.base.ArchivaItemSelector; | import org.apache.archiva.repository.content.base.ArchivaItemSelector; | ||||
import org.apache.archiva.repository.maven.dependency.tree.DependencyTreeBuilder; | import org.apache.archiva.repository.maven.dependency.tree.DependencyTreeBuilder; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven2.model.TreeEntry; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.maven.model.TreeEntry; | |||||
import org.apache.archiva.metadata.generic.GenericMetadataFacet; | import org.apache.archiva.metadata.generic.GenericMetadataFacet; | ||||
import org.apache.archiva.metadata.model.ArtifactMetadata; | import org.apache.archiva.metadata.model.ArtifactMetadata; | ||||
import org.apache.archiva.metadata.model.MetadataFacet; | import org.apache.archiva.metadata.model.MetadataFacet; |
*/ | */ | ||||
import org.apache.archiva.common.utils.VersionUtil; | import org.apache.archiva.common.utils.VersionUtil; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.metadata.model.ArtifactMetadata; | import org.apache.archiva.metadata.model.ArtifactMetadata; | ||||
import org.apache.archiva.metadata.model.facets.AuditEvent; | import org.apache.archiva.metadata.model.facets.AuditEvent; | ||||
import org.apache.archiva.metadata.repository.MetadataRepository; | import org.apache.archiva.metadata.repository.MetadataRepository; |
import org.apache.archiva.admin.model.beans.RemoteRepository; | import org.apache.archiva.admin.model.beans.RemoteRepository; | ||||
import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin; | import org.apache.archiva.admin.model.remote.RemoteRepositoryAdmin; | ||||
import org.apache.archiva.proxy.ProxyRegistry; | import org.apache.archiva.proxy.ProxyRegistry; | ||||
import org.apache.archiva.maven.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactory; | |||||
import org.apache.archiva.maven.common.proxy.WagonFactoryRequest; | |||||
import org.apache.archiva.proxy.model.NetworkProxy; | import org.apache.archiva.proxy.model.NetworkProxy; | ||||
import org.apache.archiva.rest.api.model.ActionStatus; | import org.apache.archiva.rest.api.model.ActionStatus; | ||||
import org.apache.archiva.rest.api.services.ArchivaRestServiceException; | import org.apache.archiva.rest.api.services.ArchivaRestServiceException; |
import org.apache.archiva.common.utils.VersionUtil; | import org.apache.archiva.common.utils.VersionUtil; | ||||
import org.apache.archiva.components.cache.Cache; | import org.apache.archiva.components.cache.Cache; | ||||
import org.apache.archiva.components.taskqueue.TaskQueueException; | import org.apache.archiva.components.taskqueue.TaskQueueException; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.metadata.audit.RepositoryListener; | import org.apache.archiva.metadata.audit.RepositoryListener; | ||||
import org.apache.archiva.maven.metadata.model.MavenArtifactFacet; | import org.apache.archiva.maven.metadata.model.MavenArtifactFacet; | ||||
import org.apache.archiva.metadata.model.ArtifactMetadata; | import org.apache.archiva.metadata.model.ArtifactMetadata; |
import org.apache.archiva.indexer.search.SearchResultHit; | import org.apache.archiva.indexer.search.SearchResultHit; | ||||
import org.apache.archiva.indexer.search.SearchResultLimits; | import org.apache.archiva.indexer.search.SearchResultLimits; | ||||
import org.apache.archiva.indexer.search.SearchResults; | import org.apache.archiva.indexer.search.SearchResults; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.metadata.model.ArtifactMetadata; | import org.apache.archiva.metadata.model.ArtifactMetadata; | ||||
import org.apache.archiva.metadata.repository.MetadataRepository; | import org.apache.archiva.metadata.repository.MetadataRepository; | ||||
import org.apache.archiva.metadata.repository.MetadataRepositoryException; | import org.apache.archiva.metadata.repository.MetadataRepositoryException; |
* under the License. | * under the License. | ||||
*/ | */ | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.metadata.model.ArtifactMetadata; | import org.apache.archiva.metadata.model.ArtifactMetadata; | ||||
import org.apache.archiva.maven.metadata.model.MavenArtifactFacet; | import org.apache.archiva.maven.metadata.model.MavenArtifactFacet; | ||||
import org.apache.archiva.repository.content.BaseRepositoryContentLayout; | import org.apache.archiva.repository.content.BaseRepositoryContentLayout; |
*/ | */ | ||||
import org.apache.archiva.admin.model.beans.ManagedRepository; | import org.apache.archiva.admin.model.beans.ManagedRepository; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.metadata.model.ProjectVersionMetadata; | import org.apache.archiva.metadata.model.ProjectVersionMetadata; | ||||
import org.apache.archiva.redback.rest.api.model.Role; | import org.apache.archiva.redback.rest.api.model.Role; | ||||
import org.apache.archiva.redback.rest.api.services.RedbackServiceException; | import org.apache.archiva.redback.rest.api.services.RedbackServiceException; |
* under the License. | * under the License. | ||||
*/ | */ | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.rest.api.services.MergeRepositoriesService; | import org.apache.archiva.rest.api.services.MergeRepositoriesService; | ||||
import org.apache.commons.io.FileUtils; | |||||
import org.junit.After; | import org.junit.After; | ||||
import org.junit.Before; | import org.junit.Before; | ||||
import org.junit.Test; | import org.junit.Test; | ||||
import java.nio.file.Files; | import java.nio.file.Files; | ||||
import java.nio.file.Path; | import java.nio.file.Path; | ||||
import java.nio.file.Paths; | |||||
import java.util.List; | import java.util.List; | ||||
import static org.assertj.core.api.Assertions.assertThat; | import static org.assertj.core.api.Assertions.assertThat; |
*/ | */ | ||||
import org.apache.archiva.admin.model.beans.ManagedRepository; | import org.apache.archiva.admin.model.beans.ManagedRepository; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.redback.rest.api.services.UserService; | import org.apache.archiva.redback.rest.api.services.UserService; | ||||
import org.apache.archiva.rest.api.model.BrowseResult; | import org.apache.archiva.rest.api.model.BrowseResult; | ||||
import org.apache.archiva.rest.api.model.BrowseResultEntry; | import org.apache.archiva.rest.api.model.BrowseResultEntry; |
*/ | */ | ||||
import org.apache.archiva.admin.model.beans.UiConfiguration; | import org.apache.archiva.admin.model.beans.UiConfiguration; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.rest.api.model.ChecksumSearch; | import org.apache.archiva.rest.api.model.ChecksumSearch; | ||||
import org.apache.archiva.rest.api.model.SearchRequest; | import org.apache.archiva.rest.api.model.SearchRequest; | ||||
import org.apache.archiva.rest.api.services.SearchService; | import org.apache.archiva.rest.api.services.SearchService; |
import org.apache.archiva.admin.model.beans.ProxyConnector; | import org.apache.archiva.admin.model.beans.ProxyConnector; | ||||
import org.apache.archiva.admin.model.beans.RemoteRepository; | import org.apache.archiva.admin.model.beans.RemoteRepository; | ||||
import org.apache.archiva.admin.model.beans.RepositoryGroup; | import org.apache.archiva.admin.model.beans.RepositoryGroup; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants; | import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants; | ||||
import org.apache.archiva.redback.rest.services.BaseSetup; | import org.apache.archiva.redback.rest.services.BaseSetup; | ||||
import org.apache.archiva.redback.rest.services.FakeCreateAdminService; | |||||
import org.apache.archiva.rest.api.model.SearchRequest; | import org.apache.archiva.rest.api.model.SearchRequest; | ||||
import org.apache.archiva.rest.api.services.ManagedRepositoriesService; | import org.apache.archiva.rest.api.services.ManagedRepositoriesService; | ||||
import org.apache.archiva.rest.api.services.ProxyConnectorService; | import org.apache.archiva.rest.api.services.ProxyConnectorService; |
import org.apache.archiva.admin.model.beans.ProxyConnector; | import org.apache.archiva.admin.model.beans.ProxyConnector; | ||||
import org.apache.archiva.admin.model.beans.RemoteRepository; | import org.apache.archiva.admin.model.beans.RemoteRepository; | ||||
import org.apache.archiva.admin.model.beans.RepositoryGroup; | import org.apache.archiva.admin.model.beans.RepositoryGroup; | ||||
import org.apache.archiva.maven2.model.Artifact; | |||||
import org.apache.archiva.maven.model.Artifact; | |||||
import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants; | import org.apache.archiva.redback.integration.security.role.RedbackRoleConstants; | ||||
import org.apache.archiva.redback.rest.services.BaseSetup; | import org.apache.archiva.redback.rest.services.BaseSetup; | ||||
import org.apache.archiva.redback.rest.services.FakeCreateAdminService; | |||||
import org.apache.archiva.rest.api.model.SearchRequest; | import org.apache.archiva.rest.api.model.SearchRequest; | ||||
import org.apache.archiva.rest.api.services.ManagedRepositoriesService; | import org.apache.archiva.rest.api.services.ManagedRepositoriesService; | ||||
import org.apache.archiva.rest.api.services.ProxyConnectorService; | import org.apache.archiva.rest.api.services.ProxyConnectorService; |