git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-23 01:16:49 +00:00
parent b84d4bc35e
commit 1468ecbbad
4 changed files with 26 additions and 33 deletions

View File

@ -23,8 +23,6 @@ import org.apache.maven.model.Dependency;
import java.util.List;
import java.util.Set;
// TODO: packaging is very confusing - this isn't in artifact after all
public interface ArtifactFactory
{
static String ROLE = ArtifactFactory.class.getName();

View File

@ -26,8 +26,6 @@ import java.util.Iterator;
import java.util.List;
import java.util.Set;
// TODO: packaging is very confusing - this isn't in artifact after all
public class DefaultArtifactFactory
extends ArtifactConstructionSupport
implements ArtifactFactory

View File

@ -1,20 +1,19 @@
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");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance 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, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
@ -30,6 +29,6 @@ public interface ArtifactRepositoryFactory
public static final String ROLE = ArtifactRepositoryFactory.class.getName();
public ArtifactRepository createArtifactRepository( Repository modelRepository, MavenSettings settings,
ArtifactRepositoryLayout repositoryLayout );
ArtifactRepositoryLayout repositoryLayout );
}

View File

@ -1,20 +1,19 @@
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");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance 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, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
@ -34,7 +33,7 @@ public class DefaultArtifactRepositoryFactory
{
public ArtifactRepository createArtifactRepository( Repository modelRepository, MavenSettings settings,
ArtifactRepositoryLayout repositoryLayout )
ArtifactRepositoryLayout repositoryLayout )
{
Server repoProfile = null;
@ -49,9 +48,8 @@ public class DefaultArtifactRepositoryFactory
Logger logger = getLogger();
if ( logger != null )
{
logger
.warn( "Cannot associate authentication to repository with null id. The offending repository's URL is: "
+ modelRepository.getUrl() );
logger.warn( "Cannot associate authentication to repository with null id. The offending repository's URL is: " +
modelRepository.getUrl() );
}
}