mirror of https://github.com/apache/archiva.git
Package refactoring
This commit is contained in:
parent
78413e37c4
commit
a8e5b3a7b2
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.indexer.maven;
|
package org.apache.archiva.maven.indexer;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -9,8 +9,7 @@ package org.apache.archiva.indexer.maven;
|
||||||
* "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
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.indexer.maven;
|
package org.apache.archiva.maven.indexer;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -9,8 +9,7 @@ package org.apache.archiva.indexer.maven;
|
||||||
* "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
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.indexer.maven;
|
package org.apache.archiva.maven.indexer;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -9,8 +9,7 @@ package org.apache.archiva.indexer.maven;
|
||||||
* "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
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.indexer.maven.search;
|
package org.apache.archiva.maven.indexer.search;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -9,8 +9,7 @@ package org.apache.archiva.indexer.maven.search;
|
||||||
* "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
|
||||||
|
@ -21,14 +20,14 @@ package org.apache.archiva.indexer.maven.search;
|
||||||
|
|
||||||
import org.apache.archiva.indexer.UnsupportedBaseContextException;
|
import org.apache.archiva.indexer.UnsupportedBaseContextException;
|
||||||
import org.apache.archiva.indexer.search.ArtifactInfoFilter;
|
import org.apache.archiva.indexer.search.ArtifactInfoFilter;
|
||||||
import org.apache.archiva.indexer.search.NoClassifierArtifactInfoFilter;
|
import org.apache.archiva.maven.indexer.search.NoClassifierArtifactInfoFilter;
|
||||||
import org.apache.archiva.indexer.search.RepositorySearch;
|
import org.apache.archiva.indexer.search.RepositorySearch;
|
||||||
import org.apache.archiva.indexer.search.RepositorySearchException;
|
import org.apache.archiva.indexer.search.RepositorySearchException;
|
||||||
import org.apache.archiva.indexer.search.SearchFields;
|
import org.apache.archiva.indexer.search.SearchFields;
|
||||||
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.indexer.util.SearchUtil;
|
import org.apache.archiva.maven.indexer.util.SearchUtil;
|
||||||
import org.apache.archiva.model.ArchivaArtifactModel;
|
import org.apache.archiva.model.ArchivaArtifactModel;
|
||||||
import org.apache.archiva.proxy.ProxyRegistry;
|
import org.apache.archiva.proxy.ProxyRegistry;
|
||||||
import org.apache.archiva.proxy.model.ProxyConnector;
|
import org.apache.archiva.proxy.model.ProxyConnector;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.indexer.search;
|
package org.apache.archiva.maven.indexer.search;
|
||||||
/*
|
/*
|
||||||
* 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
|
||||||
|
@ -8,8 +8,7 @@ package org.apache.archiva.indexer.search;
|
||||||
* "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
|
||||||
|
@ -18,6 +17,8 @@ package org.apache.archiva.indexer.search;
|
||||||
* under the License.
|
* under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import org.apache.archiva.indexer.search.ArtifactInfoFilter;
|
||||||
|
import org.apache.archiva.indexer.search.SearchResultHit;
|
||||||
import org.apache.archiva.model.ArchivaArtifactModel;
|
import org.apache.archiva.model.ArchivaArtifactModel;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.indexer.util;
|
package org.apache.archiva.maven.indexer.util;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -9,8 +9,7 @@ package org.apache.archiva.indexer.util;
|
||||||
* "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
|
|
@ -29,7 +29,7 @@
|
||||||
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.maven.index"/>
|
<context:component-scan base-package="org.apache.archiva.maven.indexer,org.apache.maven.index"/>
|
||||||
|
|
||||||
|
|
||||||
<bean name="taskScheduler#mergeRemoteIndexes"
|
<bean name="taskScheduler#mergeRemoteIndexes"
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
package org.apache.archiva.indexer.maven;
|
package org.apache.archiva.maven.indexer;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 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
|
||||||
* distributed with this work for additional information
|
* distributed with this work for additional information
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* to you under the Apache License, Version 2.0 (the
|
* to you under the Apache License, Version 2.0 (the
|
||||||
* "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
|
* KIND, either express or implied. See the License for the
|
||||||
* KIND, either express or implied. See the License for the
|
* specific language governing permissions and limitations
|
||||||
* specific language governing permissions and limitations
|
* under the License.
|
||||||
* under the License.
|
*/
|
||||||
*/
|
|
||||||
|
|
||||||
import org.apache.archiva.common.utils.FileUtils;
|
import org.apache.archiva.common.utils.FileUtils;
|
||||||
import org.apache.archiva.indexer.ArchivaIndexingContext;
|
import org.apache.archiva.indexer.ArchivaIndexingContext;
|
||||||
import org.apache.archiva.indexer.IndexCreationFailedException;
|
import org.apache.archiva.indexer.IndexCreationFailedException;
|
||||||
|
import org.apache.archiva.maven.indexer.MavenIndexManager;
|
||||||
import org.apache.archiva.repository.RepositoryType;
|
import org.apache.archiva.repository.RepositoryType;
|
||||||
import org.apache.archiva.repository.base.ArchivaRepositoryRegistry;
|
import org.apache.archiva.repository.base.ArchivaRepositoryRegistry;
|
||||||
import org.apache.archiva.repository.base.RepositoryHandlerDependencies;
|
import org.apache.archiva.repository.base.RepositoryHandlerDependencies;
|
|
@ -1,23 +1,22 @@
|
||||||
package org.apache.archiva.indexer.maven.search;
|
package org.apache.archiva.maven.indexer.search;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 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
|
||||||
* distributed with this work for additional information
|
* distributed with this work for additional information
|
||||||
* regarding copyright ownership. The ASF licenses this file
|
* regarding copyright ownership. The ASF licenses this file
|
||||||
* to you under the Apache License, Version 2.0 (the
|
* to you under the Apache License, Version 2.0 (the
|
||||||
* "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
|
* KIND, either express or implied. See the License for the
|
||||||
* KIND, either express or implied. See the License for the
|
* specific language governing permissions and limitations
|
||||||
* specific language governing permissions and limitations
|
* under the License.
|
||||||
* under the License.
|
*/
|
||||||
*/
|
|
||||||
|
|
||||||
import junit.framework.TestCase;
|
import junit.framework.TestCase;
|
||||||
import org.apache.archiva.common.utils.FileUtils;
|
import org.apache.archiva.common.utils.FileUtils;
|
||||||
|
@ -28,6 +27,7 @@ import org.apache.archiva.configuration.ManagedRepositoryConfiguration;
|
||||||
import org.apache.archiva.indexer.ArchivaIndexingContext;
|
import org.apache.archiva.indexer.ArchivaIndexingContext;
|
||||||
import org.apache.archiva.indexer.search.SearchResultHit;
|
import org.apache.archiva.indexer.search.SearchResultHit;
|
||||||
import org.apache.archiva.indexer.search.SearchResults;
|
import org.apache.archiva.indexer.search.SearchResults;
|
||||||
|
import org.apache.archiva.maven.indexer.search.MavenRepositorySearch;
|
||||||
import org.apache.archiva.proxy.ProxyRegistry;
|
import org.apache.archiva.proxy.ProxyRegistry;
|
||||||
import org.apache.archiva.repository.Repository;
|
import org.apache.archiva.repository.Repository;
|
||||||
import org.apache.archiva.repository.base.ArchivaRepositoryRegistry;
|
import org.apache.archiva.repository.base.ArchivaRepositoryRegistry;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.indexer.maven.search;
|
package org.apache.archiva.maven.indexer.search;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -9,8 +9,7 @@ package org.apache.archiva.indexer.maven.search;
|
||||||
* "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
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.indexer.maven.search;
|
package org.apache.archiva.maven.indexer.search;
|
||||||
/*
|
/*
|
||||||
* 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
|
||||||
|
@ -8,8 +8,7 @@ package org.apache.archiva.indexer.maven.search;
|
||||||
* "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
|
||||||
|
@ -22,7 +21,8 @@ import junit.framework.TestCase;
|
||||||
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.indexer.util.SearchUtil;
|
import org.apache.archiva.maven.indexer.search.MavenRepositorySearch;
|
||||||
|
import org.apache.archiva.maven.indexer.util.SearchUtil;
|
||||||
import org.apache.archiva.repository.base.ArchivaRepositoryRegistry;
|
import org.apache.archiva.repository.base.ArchivaRepositoryRegistry;
|
||||||
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;
|
|
@ -1,4 +1,4 @@
|
||||||
package org.apache.archiva.indexer.maven.search;
|
package org.apache.archiva.maven.indexer.search;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one
|
* Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
@ -9,8 +9,7 @@ package org.apache.archiva.indexer.maven.search;
|
||||||
* "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
|
||||||
|
@ -25,15 +24,13 @@ import org.apache.archiva.indexer.search.SearchFields;
|
||||||
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.indexer.util.SearchUtil;
|
import org.apache.archiva.maven.indexer.util.SearchUtil;
|
||||||
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
|
import org.apache.archiva.test.utils.ArchivaSpringJUnit4ClassRunner;
|
||||||
import org.apache.maven.index_shaded.lucene.index.IndexUpgrader;
|
|
||||||
import org.easymock.EasyMock;
|
import org.easymock.EasyMock;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.springframework.test.context.ContextConfiguration;
|
import org.springframework.test.context.ContextConfiguration;
|
||||||
|
|
||||||
import java.nio.file.Files;
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
|
@ -52,7 +52,7 @@
|
||||||
<logger name="org.apache.http.headers" level="debug"/>
|
<logger name="org.apache.http.headers" level="debug"/>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<logger name="org.apache.archiva.indexer.maven.search.MavenRepositorySearch" level="info"/>
|
<logger name="org.apache.archiva.maven.indexer.search.MavenRepositorySearch" level="info"/>
|
||||||
|
|
||||||
<logger name="org.apache.archiva.common.plexusbridge.MavenIndexerUtils" level="info"/>
|
<logger name="org.apache.archiva.common.plexusbridge.MavenIndexerUtils" level="info"/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue