mirror of https://github.com/apache/maven.git
reformat
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b84d4bc35e
commit
1468ecbbad
|
@ -23,8 +23,6 @@ import org.apache.maven.model.Dependency;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
// TODO: packaging is very confusing - this isn't in artifact after all
|
|
||||||
|
|
||||||
public interface ArtifactFactory
|
public interface ArtifactFactory
|
||||||
{
|
{
|
||||||
static String ROLE = ArtifactFactory.class.getName();
|
static String ROLE = ArtifactFactory.class.getName();
|
||||||
|
|
|
@ -26,8 +26,6 @@ import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
// TODO: packaging is very confusing - this isn't in artifact after all
|
|
||||||
|
|
||||||
public class DefaultArtifactFactory
|
public class DefaultArtifactFactory
|
||||||
extends ArtifactConstructionSupport
|
extends ArtifactConstructionSupport
|
||||||
implements ArtifactFactory
|
implements ArtifactFactory
|
||||||
|
|
|
@ -1,20 +1,19 @@
|
||||||
package org.apache.maven.artifact.repository;
|
package org.apache.maven.artifact.repository;
|
||||||
|
|
||||||
/* ====================================================================
|
/*
|
||||||
* Copyright 2001-2004 The Apache Software Foundation.
|
* Copyright 2001-2005 The Apache Software Foundation.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* 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, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
* ====================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
|
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
|
||||||
|
@ -30,6 +29,6 @@ public interface ArtifactRepositoryFactory
|
||||||
public static final String ROLE = ArtifactRepositoryFactory.class.getName();
|
public static final String ROLE = ArtifactRepositoryFactory.class.getName();
|
||||||
|
|
||||||
public ArtifactRepository createArtifactRepository( Repository modelRepository, MavenSettings settings,
|
public ArtifactRepository createArtifactRepository( Repository modelRepository, MavenSettings settings,
|
||||||
ArtifactRepositoryLayout repositoryLayout );
|
ArtifactRepositoryLayout repositoryLayout );
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,20 +1,19 @@
|
||||||
package org.apache.maven.artifact.repository;
|
package org.apache.maven.artifact.repository;
|
||||||
|
|
||||||
/* ====================================================================
|
/*
|
||||||
* Copyright 2001-2004 The Apache Software Foundation.
|
* Copyright 2001-2005 The Apache Software Foundation.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* 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, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
* ====================================================================
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
|
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
|
||||||
|
@ -34,7 +33,7 @@ public class DefaultArtifactRepositoryFactory
|
||||||
{
|
{
|
||||||
|
|
||||||
public ArtifactRepository createArtifactRepository( Repository modelRepository, MavenSettings settings,
|
public ArtifactRepository createArtifactRepository( Repository modelRepository, MavenSettings settings,
|
||||||
ArtifactRepositoryLayout repositoryLayout )
|
ArtifactRepositoryLayout repositoryLayout )
|
||||||
{
|
{
|
||||||
Server repoProfile = null;
|
Server repoProfile = null;
|
||||||
|
|
||||||
|
@ -49,9 +48,8 @@ public class DefaultArtifactRepositoryFactory
|
||||||
Logger logger = getLogger();
|
Logger logger = getLogger();
|
||||||
if ( logger != null )
|
if ( logger != null )
|
||||||
{
|
{
|
||||||
logger
|
logger.warn( "Cannot associate authentication to repository with null id. The offending repository's URL is: " +
|
||||||
.warn( "Cannot associate authentication to repository with null id. The offending repository's URL is: "
|
modelRepository.getUrl() );
|
||||||
+ modelRepository.getUrl() );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue