git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@825867 13f79535-47bb-0310-9956-ffa450edef68tags/archiva-1.4-M1
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-cli</artifactId> | |||
@@ -35,7 +35,13 @@ | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-dependency-tree-consumer</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
<scope>runtime</scope> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-metadata-consumer</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<scope>runtime</scope> | |||
</dependency> | |||
<dependency> |
@@ -19,9 +19,6 @@ package org.apache.maven.archiva.cli; | |||
* under the License. | |||
*/ | |||
import com.sampullara.cli.Args; | |||
import com.sampullara.cli.Argument; | |||
import java.io.File; | |||
import java.io.FileInputStream; | |||
import java.io.FileNotFoundException; | |||
@@ -34,6 +31,11 @@ import java.util.List; | |||
import java.util.Map; | |||
import java.util.Properties; | |||
import com.sampullara.cli.Args; | |||
import com.sampullara.cli.Argument; | |||
import org.apache.archiva.repository.scanner.RepositoryScanStatistics; | |||
import org.apache.archiva.repository.scanner.RepositoryScanner; | |||
import org.apache.archiva.repository.scanner.RepositoryScannerException; | |||
import org.apache.commons.io.IOUtils; | |||
import org.apache.commons.lang.StringUtils; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
@@ -43,9 +45,6 @@ import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.RepositoryContentConsumer; | |||
import org.apache.maven.archiva.converter.RepositoryConversionException; | |||
import org.apache.maven.archiva.converter.legacy.LegacyRepositoryConverter; | |||
import org.apache.maven.archiva.repository.RepositoryException; | |||
import org.apache.maven.archiva.repository.scanner.RepositoryScanStatistics; | |||
import org.apache.maven.archiva.repository.scanner.RepositoryScanner; | |||
import org.apache.maven.artifact.manager.WagonManager; | |||
import org.codehaus.plexus.spring.PlexusClassPathXmlApplicationContext; | |||
import org.codehaus.plexus.spring.PlexusToSpringUtils; | |||
@@ -172,7 +171,7 @@ public class ArchivaCli | |||
System.out.println( "\n" + stats.toDump( repo ) ); | |||
} | |||
catch ( RepositoryException e ) | |||
catch ( RepositoryScannerException e ) | |||
{ | |||
e.printStackTrace( System.err ); | |||
} |
@@ -21,7 +21,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-docs</artifactId> |
@@ -23,7 +23,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-jetty</artifactId> | |||
<packaging>pom</packaging> |
@@ -23,7 +23,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-artifact-converter</artifactId> | |||
<name>Archiva Artifact Converter</name> |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-checksum</artifactId> | |||
<name>Archiva Checksum</name> |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-common</artifactId> |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-configuration</artifactId> |
@@ -1032,6 +1032,7 @@ | |||
<name>cleanupConsumers</name> | |||
<version>1.0.0+</version> | |||
<required>true</required> | |||
<deprecated>true</deprecated> | |||
<association> | |||
<type>String</type> | |||
<multiplicity>*</multiplicity> |
@@ -23,7 +23,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-consumers</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-consumer-api</artifactId> |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner.functors; | |||
package org.apache.maven.archiva.consumers.functors; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one |
@@ -23,7 +23,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-consumers</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-core-consumers</artifactId> |
@@ -24,14 +24,13 @@ import java.io.FilenameFilter; | |||
import java.util.List; | |||
import java.util.Set; | |||
import org.slf4j.Logger; | |||
import org.slf4j.LoggerFactory; | |||
import org.apache.maven.archiva.model.ArchivaArtifact; | |||
import org.apache.maven.archiva.model.ArtifactReference; | |||
import org.apache.maven.archiva.repository.audit.AuditEvent; | |||
import org.apache.maven.archiva.repository.ManagedRepositoryContent; | |||
import org.apache.maven.archiva.repository.audit.AuditEvent; | |||
import org.apache.maven.archiva.repository.events.RepositoryListener; | |||
import org.slf4j.Logger; | |||
import org.slf4j.LoggerFactory; | |||
/** | |||
* Base class for all repository purge tasks. | |||
@@ -46,9 +45,9 @@ public abstract class AbstractRepositoryPurge | |||
protected final List<RepositoryListener> listeners; | |||
private Logger logger = LoggerFactory.getLogger( "org.apache.archiva.AuditLog" ); | |||
private Logger logger = LoggerFactory.getLogger( "org.apache.archiva.AuditLog" ); | |||
private static final char DELIM = ' '; | |||
private static final char DELIM = ' '; | |||
public AbstractRepositoryPurge( ManagedRepositoryContent repository, List<RepositoryListener> listeners ) | |||
{ |
@@ -19,16 +19,16 @@ package org.apache.maven.archiva.consumers.core; | |||
* under the License. | |||
*/ | |||
import java.io.File; | |||
import org.apache.maven.archiva.common.utils.BaseFile; | |||
import org.apache.maven.archiva.configuration.ArchivaConfiguration; | |||
import org.apache.maven.archiva.configuration.FileType; | |||
import org.apache.maven.archiva.configuration.FileTypes; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.repository.scanner.functors.ConsumerWantsFilePredicate; | |||
import org.apache.maven.archiva.consumers.functors.ConsumerWantsFilePredicate; | |||
import org.codehaus.plexus.spring.PlexusInSpringTestCase; | |||
import java.io.File; | |||
public abstract class AbstractArtifactConsumerTest | |||
extends PlexusInSpringTestCase | |||
{ |
@@ -29,7 +29,7 @@ import org.apache.maven.archiva.configuration.FileType; | |||
import org.apache.maven.archiva.configuration.FileTypes; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.repository.scanner.functors.ConsumerWantsFilePredicate; | |||
import org.apache.maven.archiva.consumers.functors.ConsumerWantsFilePredicate; | |||
import org.custommonkey.xmlunit.XMLAssert; | |||
/** |
@@ -23,7 +23,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-consumers</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-database-consumers</artifactId> |
@@ -1,180 +0,0 @@ | |||
package org.apache.maven.archiva.consumers.database; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you 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 | |||
* | |||
* 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.archiva.consumers.AbstractMonitoredConsumer; | |||
import org.apache.maven.archiva.consumers.ConsumerException; | |||
import org.apache.maven.archiva.database.Constraint; | |||
import org.apache.maven.archiva.database.RepositoryProblemDAO; | |||
import org.apache.maven.archiva.database.constraints.RepositoryProblemByArtifactConstraint; | |||
import org.apache.maven.archiva.database.updater.DatabaseCleanupConsumer; | |||
import org.apache.maven.archiva.model.ArchivaArtifact; | |||
import org.apache.maven.archiva.database.ArtifactDAO; | |||
import org.apache.maven.archiva.database.ArchivaDatabaseException; | |||
import org.apache.maven.archiva.model.RepositoryProblem; | |||
import org.apache.maven.archiva.repository.ManagedRepositoryContent; | |||
import org.apache.maven.archiva.repository.RepositoryContentFactory; | |||
import org.apache.maven.archiva.repository.RepositoryException; | |||
import org.apache.maven.archiva.repository.audit.AuditEvent; | |||
import org.slf4j.Logger; | |||
import org.slf4j.LoggerFactory; | |||
import java.util.List; | |||
import java.io.File; | |||
/** | |||
* Consumer for cleaning up the database of artifacts that are no longer existing in the repository. | |||
* | |||
* <a href="mailto:oching@apache.org">Maria Odea Ching</a> | |||
* @version $Id$ | |||
* | |||
* @plexus.component role="org.apache.maven.archiva.database.updater.DatabaseCleanupConsumer" | |||
* role-hint="not-present-remove-db-artifact" | |||
* instantiation-strategy="per-lookup" | |||
*/ | |||
public class DatabaseCleanupRemoveArtifactConsumer | |||
extends AbstractMonitoredConsumer | |||
implements DatabaseCleanupConsumer | |||
{ | |||
/** | |||
* @plexus.configuration default-value="not-present-remove-db-artifact" | |||
*/ | |||
private String id; | |||
/** | |||
* @plexus.configuration default-value="Remove artifact from database if not present on filesystem." | |||
*/ | |||
private String description; | |||
/** | |||
* @plexus.requirement role-hint="jdo" | |||
*/ | |||
private ArtifactDAO artifactDAO; | |||
/** | |||
* @plexus.requirement role-hint="jdo" | |||
*/ | |||
private RepositoryProblemDAO repositoryProblemDAO; | |||
/** | |||
* @plexus.requirement | |||
*/ | |||
private RepositoryContentFactory repositoryFactory; | |||
private Logger logger = LoggerFactory.getLogger( "org.apache.archiva.AuditLog" ); | |||
private static final char DELIM = ' '; | |||
public void beginScan() | |||
{ | |||
// TODO Auto-generated method stub | |||
} | |||
public void completeScan() | |||
{ | |||
// TODO Auto-generated method stub | |||
} | |||
public List<String> getIncludedTypes() | |||
{ | |||
return null; | |||
} | |||
public void processArchivaArtifact( ArchivaArtifact artifact ) | |||
throws ConsumerException | |||
{ | |||
try | |||
{ | |||
ManagedRepositoryContent repositoryContent = | |||
repositoryFactory.getManagedRepositoryContent( artifact.getModel().getRepositoryId() ); | |||
File file = new File( repositoryContent.getRepoRoot(), repositoryContent.toPath( artifact ) ); | |||
if( !file.exists() ) | |||
{ | |||
artifactDAO.deleteArtifact( artifact ); | |||
triggerAuditEvent( repositoryContent.getRepository().getId(), artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getVersion(), AuditEvent.REMOVE_SCANNED ); | |||
// Remove all repository problems related to this artifact | |||
Constraint artifactConstraint = new RepositoryProblemByArtifactConstraint( artifact ); | |||
List<RepositoryProblem> repositoryProblems = | |||
repositoryProblemDAO.queryRepositoryProblems( artifactConstraint ); | |||
if ( repositoryProblems != null ) | |||
{ | |||
for ( RepositoryProblem repositoryProblem : repositoryProblems ) | |||
{ | |||
repositoryProblemDAO.deleteRepositoryProblem( repositoryProblem ); | |||
} | |||
} | |||
} | |||
} | |||
catch ( RepositoryException re ) | |||
{ | |||
throw new ConsumerException( "Can't run database cleanup remove artifact consumer: " + | |||
re.getMessage() ); | |||
} | |||
catch ( ArchivaDatabaseException e ) | |||
{ | |||
throw new ConsumerException( e.getMessage() ); | |||
} | |||
} | |||
public String getDescription() | |||
{ | |||
return description; | |||
} | |||
public String getId() | |||
{ | |||
return id; | |||
} | |||
public boolean isPermanent() | |||
{ | |||
return false; | |||
} | |||
public void setArtifactDAO( ArtifactDAO artifactDAO) | |||
{ | |||
this.artifactDAO = artifactDAO; | |||
} | |||
public void setRepositoryProblemDAO( RepositoryProblemDAO repositoryProblemDAO ) | |||
{ | |||
this.repositoryProblemDAO = repositoryProblemDAO; | |||
} | |||
public void setRepositoryFactory( RepositoryContentFactory repositoryFactory ) | |||
{ | |||
this.repositoryFactory = repositoryFactory; | |||
} | |||
private void triggerAuditEvent( String repoId, String resource, String action ) | |||
{ | |||
String msg = repoId + DELIM + "<db-scan>" + DELIM + "<system>" + DELIM + '\"' + resource + '\"' + | |||
DELIM + '\"' + action + '\"'; | |||
logger.info( msg ); | |||
} | |||
} |
@@ -1,179 +0,0 @@ | |||
package org.apache.maven.archiva.consumers.database; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you 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 | |||
* | |||
* 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.commons.lang.StringUtils; | |||
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer; | |||
import org.apache.maven.archiva.consumers.ConsumerException; | |||
import org.apache.maven.archiva.model.ArchivaArtifact; | |||
import org.apache.maven.archiva.model.ArchivaProjectModel; | |||
import org.apache.maven.archiva.repository.ManagedRepositoryContent; | |||
import org.apache.maven.archiva.repository.RepositoryContentFactory; | |||
import org.apache.maven.archiva.repository.RepositoryException; | |||
import org.apache.maven.archiva.database.ProjectModelDAO; | |||
import org.apache.maven.archiva.database.ArchivaDatabaseException; | |||
import org.apache.maven.archiva.database.updater.DatabaseCleanupConsumer; | |||
import org.codehaus.plexus.cache.Cache; | |||
import java.util.List; | |||
import java.io.File; | |||
/** | |||
* Consumer for removing or deleting from the database the project models fo artifacts that have been | |||
* deleted/removed from the repository. | |||
* | |||
* <a href="mailto:oching@apache.org">Maria Odea Ching</a> | |||
* @version $Id$ | |||
* | |||
* @plexus.component role="org.apache.maven.archiva.database.updater.DatabaseCleanupConsumer" | |||
* role-hint="not-present-remove-db-project" | |||
* instantiation-strategy="per-lookup" | |||
*/ | |||
public class DatabaseCleanupRemoveProjectConsumer | |||
extends AbstractMonitoredConsumer | |||
implements DatabaseCleanupConsumer | |||
{ | |||
/** | |||
* @plexus.configuration default-value="not-present-remove-db-project" | |||
*/ | |||
private String id; | |||
/** | |||
* @plexus.configuration default-value="Remove project from database if not present on filesystem." | |||
*/ | |||
private String description; | |||
/** | |||
* @plexus.requirement role-hint="jdo" | |||
*/ | |||
private ProjectModelDAO projectModelDAO; | |||
/** | |||
* @plexus.requirement | |||
*/ | |||
private RepositoryContentFactory repositoryFactory; | |||
/** | |||
* @plexus.requirement role-hint="effective-project-cache" | |||
*/ | |||
private Cache effectiveProjectCache; | |||
public void beginScan() | |||
{ | |||
// TODO Auto-generated method stub | |||
} | |||
public void completeScan() | |||
{ | |||
// TODO Auto-generated method stub | |||
} | |||
public List<String> getIncludedTypes() | |||
{ | |||
return null; | |||
} | |||
public void processArchivaArtifact( ArchivaArtifact artifact ) | |||
throws ConsumerException | |||
{ | |||
if ( !StringUtils.equals( "pom", artifact.getType() ) ) | |||
{ | |||
// Not a pom. Skip it. | |||
return; | |||
} | |||
try | |||
{ | |||
ManagedRepositoryContent repositoryContent = | |||
repositoryFactory.getManagedRepositoryContent( artifact.getModel().getRepositoryId() ); | |||
File file = new File( repositoryContent.getRepoRoot(), repositoryContent.toPath( artifact ) ); | |||
if ( !file.exists() ) | |||
{ | |||
ArchivaProjectModel projectModel = | |||
projectModelDAO.getProjectModel( artifact.getGroupId(), artifact.getArtifactId(), | |||
artifact.getVersion() ); | |||
projectModelDAO.deleteProjectModel( projectModel ); | |||
// Force removal of project model from effective cache | |||
String projectKey = toProjectKey( projectModel ); | |||
synchronized ( effectiveProjectCache ) | |||
{ | |||
if ( effectiveProjectCache.hasKey( projectKey ) ) | |||
{ | |||
effectiveProjectCache.remove( projectKey ); | |||
} | |||
} | |||
} | |||
} | |||
catch ( RepositoryException re ) | |||
{ | |||
throw new ConsumerException( "Can't run database cleanup remove artifact consumer: " + re.getMessage() ); | |||
} | |||
catch ( ArchivaDatabaseException e ) | |||
{ | |||
throw new ConsumerException( e.getMessage() ); | |||
} | |||
} | |||
public String getDescription() | |||
{ | |||
return description; | |||
} | |||
public String getId() | |||
{ | |||
return id; | |||
} | |||
public boolean isPermanent() | |||
{ | |||
return false; | |||
} | |||
public void setProjectModelDAO( ProjectModelDAO projectModelDAO ) | |||
{ | |||
this.projectModelDAO = projectModelDAO; | |||
} | |||
public void setRepositoryFactory( RepositoryContentFactory repositoryFactory ) | |||
{ | |||
this.repositoryFactory = repositoryFactory; | |||
} | |||
public void setEffectiveProjectCache( Cache effectiveProjectCache ) | |||
{ | |||
this.effectiveProjectCache = effectiveProjectCache; | |||
} | |||
private String toProjectKey( ArchivaProjectModel project ) | |||
{ | |||
StringBuilder key = new StringBuilder(); | |||
key.append( project.getGroupId() ).append( ":" ); | |||
key.append( project.getArtifactId() ).append( ":" ); | |||
key.append( project.getVersion() ); | |||
return key.toString(); | |||
} | |||
} |
@@ -19,16 +19,16 @@ package org.apache.maven.archiva.consumers.database; | |||
* under the License. | |||
*/ | |||
import java.io.File; | |||
import org.apache.maven.archiva.common.utils.BaseFile; | |||
import org.apache.maven.archiva.configuration.ArchivaConfiguration; | |||
import org.apache.maven.archiva.configuration.FileType; | |||
import org.apache.maven.archiva.configuration.FileTypes; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.repository.scanner.functors.ConsumerWantsFilePredicate; | |||
import org.apache.maven.archiva.consumers.functors.ConsumerWantsFilePredicate; | |||
import org.codehaus.plexus.spring.PlexusInSpringTestCase; | |||
import java.io.File; | |||
public class ArtifactUpdateDatabaseConsumerTest | |||
extends PlexusInSpringTestCase | |||
{ |
@@ -1,96 +0,0 @@ | |||
package org.apache.maven.archiva.consumers.database; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you 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 | |||
* | |||
* 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.easymock.MockControl; | |||
import org.apache.maven.archiva.model.ArchivaArtifact; | |||
import org.apache.maven.archiva.database.ArtifactDAO; | |||
import org.apache.maven.archiva.database.RepositoryProblemDAO; | |||
/** | |||
* Test for DatabaseCleanupRemoveArtifactConsumerTest | |||
* | |||
*/ | |||
public class DatabaseCleanupRemoveArtifactConsumerTest | |||
extends AbstractDatabaseCleanupTest | |||
{ | |||
private MockControl artifactDAOControl; | |||
private ArtifactDAO artifactDAOMock; | |||
private MockControl repositoryProblemDAOControl; | |||
private RepositoryProblemDAO repositoryProblemDAOMock; | |||
private DatabaseCleanupRemoveArtifactConsumer dbCleanupRemoveArtifactConsumer; | |||
public void setUp() | |||
throws Exception | |||
{ | |||
super.setUp(); | |||
dbCleanupRemoveArtifactConsumer = new DatabaseCleanupRemoveArtifactConsumer(); | |||
artifactDAOControl = MockControl.createControl( ArtifactDAO.class ); | |||
artifactDAOMock = (ArtifactDAO) artifactDAOControl.getMock(); | |||
repositoryProblemDAOControl = MockControl.createControl( RepositoryProblemDAO.class ); | |||
repositoryProblemDAOMock = (RepositoryProblemDAO) repositoryProblemDAOControl.getMock(); | |||
dbCleanupRemoveArtifactConsumer.setArtifactDAO( artifactDAOMock ); | |||
dbCleanupRemoveArtifactConsumer.setRepositoryProblemDAO( repositoryProblemDAOMock ); | |||
dbCleanupRemoveArtifactConsumer.setRepositoryFactory( repositoryFactory ); | |||
} | |||
public void testIfArtifactWasNotDeleted() | |||
throws Exception | |||
{ | |||
ArchivaArtifact artifact = createArtifact( TEST_GROUP_ID, "do-not-cleanup-artifact-test", TEST_VERSION, "jar" ); | |||
artifactDAOControl.replay(); | |||
repositoryProblemDAOControl.replay(); | |||
dbCleanupRemoveArtifactConsumer.processArchivaArtifact( artifact ); | |||
artifactDAOControl.verify(); | |||
repositoryProblemDAOControl.verify(); | |||
} | |||
public void testIfArtifactWasDeleted() | |||
throws Exception | |||
{ | |||
ArchivaArtifact artifact = createArtifact( TEST_GROUP_ID, TEST_ARTIFACT_ID, TEST_VERSION, "jar" ); | |||
artifactDAOMock.deleteArtifact( artifact ); | |||
artifactDAOControl.replay(); | |||
dbCleanupRemoveArtifactConsumer.processArchivaArtifact( artifact ); | |||
artifactDAOControl.verify(); | |||
} | |||
} |
@@ -1,114 +0,0 @@ | |||
package org.apache.maven.archiva.consumers.database; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you 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 | |||
* | |||
* 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.codehaus.plexus.cache.Cache; | |||
import org.easymock.MockControl; | |||
import org.apache.maven.archiva.database.ProjectModelDAO; | |||
import org.apache.maven.archiva.model.ArchivaArtifact; | |||
import org.apache.maven.archiva.model.ArchivaProjectModel; | |||
/** | |||
* Test for DatabaseCleanupRemoveProjectConsumer | |||
* | |||
*/ | |||
public class DatabaseCleanupRemoveProjectConsumerTest | |||
extends AbstractDatabaseCleanupTest | |||
{ | |||
private MockControl projectModelDAOControl; | |||
private ProjectModelDAO projectModelDAOMock; | |||
private DatabaseCleanupRemoveProjectConsumer dbCleanupRemoveProjectConsumer; | |||
private Cache effectiveProjectCache; | |||
public void setUp() | |||
throws Exception | |||
{ | |||
super.setUp(); | |||
dbCleanupRemoveProjectConsumer = new DatabaseCleanupRemoveProjectConsumer(); | |||
projectModelDAOControl = MockControl.createControl( ProjectModelDAO.class ); | |||
projectModelDAOMock = (ProjectModelDAO) projectModelDAOControl.getMock(); | |||
effectiveProjectCache = (Cache) lookup( Cache.class, "effective-project-cache" ); | |||
dbCleanupRemoveProjectConsumer.setProjectModelDAO( projectModelDAOMock ); | |||
dbCleanupRemoveProjectConsumer.setRepositoryFactory( repositoryFactory ); | |||
dbCleanupRemoveProjectConsumer.setEffectiveProjectCache( effectiveProjectCache ); | |||
} | |||
public void testIfArtifactWasNotDeleted() | |||
throws Exception | |||
{ | |||
ArchivaArtifact artifact = createArtifact( TEST_GROUP_ID, "do-not-cleanup-artifact-test", TEST_VERSION, "pom" ); | |||
projectModelDAOControl.replay(); | |||
dbCleanupRemoveProjectConsumer.processArchivaArtifact( artifact ); | |||
projectModelDAOControl.verify(); | |||
} | |||
public void testIfArtifactWasDeleted() | |||
throws Exception | |||
{ | |||
ArchivaArtifact artifact = createArtifact( TEST_GROUP_ID, TEST_ARTIFACT_ID, TEST_VERSION, "pom" ); | |||
ArchivaProjectModel projectModel = createProjectModel( TEST_GROUP_ID, TEST_ARTIFACT_ID, TEST_VERSION ); | |||
//this should return a value | |||
projectModelDAOControl.expectAndReturn( | |||
projectModelDAOMock.getProjectModel( TEST_GROUP_ID, TEST_ARTIFACT_ID, TEST_VERSION ), | |||
(ArchivaProjectModel) projectModel ); | |||
projectModelDAOMock.deleteProjectModel( projectModel ); | |||
projectModelDAOControl.replay(); | |||
dbCleanupRemoveProjectConsumer.processArchivaArtifact( artifact ); | |||
projectModelDAOControl.verify(); | |||
} | |||
public void testIfArtifactWasNotAPom() | |||
throws Exception | |||
{ | |||
ArchivaArtifact artifact = createArtifact( TEST_GROUP_ID, "do-not-cleanup-artifact-test", TEST_VERSION, "jar" ); | |||
projectModelDAOControl.replay(); | |||
dbCleanupRemoveProjectConsumer.processArchivaArtifact( artifact ); | |||
projectModelDAOControl.verify(); | |||
} | |||
public void tearDown() | |||
throws Exception | |||
{ | |||
super.tearDown(); | |||
} | |||
} |
@@ -1,65 +0,0 @@ | |||
<?xml version="1.0" encoding="ISO-8859-1"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<component-set> | |||
<components> | |||
<component> | |||
<role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role> | |||
<role-hint>database-cleanup</role-hint> | |||
<implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation> | |||
<requirements> | |||
<requirement> | |||
<role>org.codehaus.plexus.registry.Registry</role> | |||
<role-hint>database-cleanup</role-hint> | |||
</requirement> | |||
<requirement> | |||
<role>org.apache.maven.archiva.policies.PreDownloadPolicy</role> | |||
<field-name>prePolicies</field-name> | |||
</requirement> | |||
<requirement> | |||
<role>org.apache.maven.archiva.policies.PostDownloadPolicy</role> | |||
<field-name>postPolicies</field-name> | |||
</requirement> | |||
</requirements> | |||
</component> | |||
<component> | |||
<role>org.codehaus.plexus.registry.Registry</role> | |||
<role-hint>database-cleanup</role-hint> | |||
<implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation> | |||
<configuration> | |||
<properties> | |||
<xml fileName="${basedir}/target/test/repository-manager.xml" config-optional="true" config-forceCreate="true" | |||
config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/> | |||
</properties> | |||
</configuration> | |||
</component> | |||
<component> | |||
<role>org.apache.maven.archiva.repository.RepositoryContentFactory</role> | |||
<implementation>org.apache.maven.archiva.repository.RepositoryContentFactory</implementation> | |||
<requirements> | |||
<requirement> | |||
<role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role> | |||
<role-hint>database-cleanup</role-hint> | |||
</requirement> | |||
</requirements> | |||
</component> | |||
</components> | |||
</component-set> |
@@ -1,87 +0,0 @@ | |||
<?xml version="1.0" encoding="ISO-8859-1"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<component-set> | |||
<components> | |||
<component> | |||
<role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role> | |||
<role-hint>database-cleanup</role-hint> | |||
<implementation>org.apache.maven.archiva.configuration.DefaultArchivaConfiguration</implementation> | |||
<requirements> | |||
<requirement> | |||
<role>org.codehaus.plexus.registry.Registry</role> | |||
<role-hint>database-cleanup</role-hint> | |||
</requirement> | |||
<requirement> | |||
<role>org.apache.maven.archiva.policies.PreDownloadPolicy</role> | |||
<field-name>prePolicies</field-name> | |||
</requirement> | |||
<requirement> | |||
<role>org.apache.maven.archiva.policies.PostDownloadPolicy</role> | |||
<field-name>postPolicies</field-name> | |||
</requirement> | |||
</requirements> | |||
</component> | |||
<component> | |||
<role>org.codehaus.plexus.registry.Registry</role> | |||
<role-hint>database-cleanup</role-hint> | |||
<implementation>org.codehaus.plexus.registry.commons.CommonsConfigurationRegistry</implementation> | |||
<configuration> | |||
<properties> | |||
<xml fileName="${basedir}/target/test/repository-manager.xml" config-optional="true" config-forceCreate="true" | |||
config-name="org.apache.maven.archiva.base" config-at="org.apache.maven.archiva"/> | |||
</properties> | |||
</configuration> | |||
</component> | |||
<component> | |||
<role>org.apache.maven.archiva.repository.RepositoryContentFactory</role> | |||
<implementation>org.apache.maven.archiva.repository.RepositoryContentFactory</implementation> | |||
<requirements> | |||
<requirement> | |||
<role>org.apache.maven.archiva.configuration.ArchivaConfiguration</role> | |||
<role-hint>database-cleanup</role-hint> | |||
</requirement> | |||
</requirements> | |||
</component> | |||
</components> | |||
<component> | |||
<role>org.codehaus.plexus.cache.Cache</role> | |||
<role-hint>effective-project-cache</role-hint> | |||
<implementation>org.codehaus.plexus.cache.ehcache.EhcacheCache</implementation> | |||
<description>Effective Project Cache</description> | |||
<configuration> | |||
<disk-expiry-thread-interval-seconds>600</disk-expiry-thread-interval-seconds> | |||
<disk-persistent>true</disk-persistent> | |||
<disk-store-path>${java.io.tmpdir}/archiva/effectiveproject</disk-store-path> | |||
<eternal>true</eternal> | |||
<max-elements-in-memory>1000</max-elements-in-memory> | |||
<memory-eviction-policy>LRU</memory-eviction-policy> | |||
<name>effective-project-cache</name> | |||
<overflow-to-disk>false</overflow-to-disk> | |||
<!-- TODO: Adjust the time to live to be more sane (ie: huge 4+ hours) --> | |||
<!-- 45 minutes = 2700 seconds --> | |||
<time-to-idle-seconds>2700</time-to-idle-seconds> | |||
<!-- 30 minutes = 1800 seconds --> | |||
<time-to-live-seconds>1800</time-to-live-seconds> | |||
</configuration> | |||
</component> | |||
</component-set> |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-consumers</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-dependency-tree-consumer</artifactId> | |||
<name>Archiva Consumers :: Dependency Tree Consumer</name> |
@@ -23,7 +23,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-consumers</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-lucene-consumers</artifactId> |
@@ -1,153 +0,0 @@ | |||
package org.apache.archiva.consumers.lucene; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you 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 | |||
* | |||
* 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 java.io.File; | |||
import java.io.IOException; | |||
import java.util.List; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer; | |||
import org.apache.maven.archiva.consumers.ConsumerException; | |||
import org.apache.maven.archiva.database.updater.DatabaseCleanupConsumer; | |||
import org.apache.maven.archiva.model.ArchivaArtifact; | |||
import org.apache.maven.archiva.repository.ManagedRepositoryContent; | |||
import org.apache.maven.archiva.repository.RepositoryContentFactory; | |||
import org.apache.maven.archiva.repository.RepositoryException; | |||
import org.apache.maven.archiva.scheduled.ArchivaTaskScheduler; | |||
import org.apache.maven.archiva.scheduled.tasks.ArtifactIndexingTask; | |||
import org.apache.maven.archiva.scheduled.tasks.TaskCreator; | |||
import org.codehaus.plexus.taskqueue.TaskQueueException; | |||
import org.slf4j.Logger; | |||
import org.slf4j.LoggerFactory; | |||
import org.sonatype.nexus.index.context.IndexingContext; | |||
import org.sonatype.nexus.index.context.UnsupportedExistingLuceneIndexException; | |||
/** | |||
* LuceneCleanupRemoveIndexedConsumer Clean up the index of artifacts that are no longer existing in the file system | |||
* (managed repositories). | |||
* | |||
* @version $Id$ | |||
*/ | |||
public class LuceneCleanupRemoveIndexedConsumer | |||
extends AbstractMonitoredConsumer | |||
implements DatabaseCleanupConsumer | |||
{ | |||
private static final Logger log = LoggerFactory.getLogger( LuceneCleanupRemoveIndexedConsumer.class ); | |||
private RepositoryContentFactory repoFactory; | |||
private ArchivaTaskScheduler scheduler; | |||
public LuceneCleanupRemoveIndexedConsumer( RepositoryContentFactory repoFactory, ArchivaTaskScheduler scheduler ) | |||
{ | |||
this.repoFactory = repoFactory; | |||
this.scheduler = scheduler; | |||
} | |||
public void beginScan() | |||
{ | |||
} | |||
public void completeScan() | |||
{ | |||
} | |||
public List<String> getIncludedTypes() | |||
{ | |||
return null; | |||
} | |||
public void processArchivaArtifact( ArchivaArtifact artifact ) | |||
throws ConsumerException | |||
{ | |||
ManagedRepositoryContent repoContent = null; | |||
try | |||
{ | |||
repoContent = repoFactory.getManagedRepositoryContent( artifact.getModel().getRepositoryId() ); | |||
} | |||
catch ( RepositoryException e ) | |||
{ | |||
throw new ConsumerException( "Can't run index cleanup consumer: " + e.getMessage() ); | |||
} | |||
ManagedRepositoryConfiguration repository = repoContent.getRepository(); | |||
IndexingContext context = null; | |||
try | |||
{ | |||
File artifactFile = new File( repoContent.getRepoRoot(), repoContent.toPath( artifact ) ); | |||
if ( !artifactFile.exists() ) | |||
{ | |||
context = TaskCreator.createContext( repository ); | |||
ArtifactIndexingTask task = | |||
TaskCreator.createIndexingTask( repository, artifactFile, ArtifactIndexingTask.Action.DELETE, | |||
context ); | |||
log.debug( "Queueing indexing task '" + task + "' to remove the artifact from the index." ); | |||
scheduler.queueIndexingTask( task ); | |||
// note we finish immediately here since it isn't done repo-by-repo. It might be nice to ensure that is | |||
// the case for optimisation though | |||
task = | |||
TaskCreator.createIndexingTask( repository, artifactFile, ArtifactIndexingTask.Action.FINISH, | |||
context ); | |||
log.debug( "Queueing indexing task + '" + task + "' to finish indexing." ); | |||
scheduler.queueIndexingTask( task ); | |||
} | |||
} | |||
catch ( TaskQueueException e ) | |||
{ | |||
throw new ConsumerException( e.getMessage() ); | |||
} | |||
catch ( IOException e ) | |||
{ | |||
throw new ConsumerException( e.getMessage(), e ); | |||
} | |||
catch ( UnsupportedExistingLuceneIndexException e ) | |||
{ | |||
throw new ConsumerException( e.getMessage(), e ); | |||
} | |||
} | |||
public String getDescription() | |||
{ | |||
return "Remove indexed content if not present on filesystem."; | |||
} | |||
public String getId() | |||
{ | |||
return "not-present-remove-indexed"; | |||
} | |||
public boolean isPermanent() | |||
{ | |||
return false; | |||
} | |||
public void setRepositoryContentFactory( RepositoryContentFactory repoFactory ) | |||
{ | |||
this.repoFactory = repoFactory; | |||
} | |||
} |
@@ -8,9 +8,4 @@ | |||
<constructor-arg ref="archivaConfiguration"/> | |||
<constructor-arg ref="fileTypes"/> | |||
</bean> | |||
<bean id="indexCleanupConsumer" class="org.apache.archiva.consumers.lucene.LuceneCleanupRemoveIndexedConsumer" lazy-init="true"> | |||
<constructor-arg ref="repositoryContentFactory"/> | |||
<constructor-arg ref="archivaTaskScheduler"/> | |||
</bean> | |||
</beans> |
@@ -1,148 +0,0 @@ | |||
package org.apache.archiva.consumers.lucene; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you 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 | |||
* | |||
* 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 java.io.File; | |||
import java.util.List; | |||
import org.apache.commons.io.FileUtils; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.model.ArchivaArtifact; | |||
import org.apache.maven.archiva.repository.ManagedRepositoryContent; | |||
import org.apache.maven.archiva.repository.RepositoryContentFactory; | |||
import org.apache.maven.archiva.repository.content.ManagedDefaultRepositoryContent; | |||
import org.apache.maven.archiva.scheduled.ArchivaTaskScheduler; | |||
import org.apache.maven.archiva.scheduled.tasks.ArtifactIndexingTask; | |||
import org.apache.maven.archiva.scheduled.tasks.TaskCreator; | |||
import org.codehaus.plexus.spring.PlexusInSpringTestCase; | |||
import org.codehaus.plexus.taskqueue.TaskQueue; | |||
import org.easymock.MockControl; | |||
import org.easymock.classextension.MockClassControl; | |||
/** | |||
* LuceneCleanupRemoveIndexedConsumerTest | |||
*/ | |||
public class LuceneCleanupRemoveIndexedConsumerTest | |||
extends PlexusInSpringTestCase | |||
{ | |||
private LuceneCleanupRemoveIndexedConsumer consumer; | |||
private RepositoryContentFactory repoFactory; | |||
private MockControl repoFactoryControl; | |||
private ManagedRepositoryConfiguration repositoryConfig; | |||
private TaskQueue indexingQueue; | |||
public void setUp() | |||
throws Exception | |||
{ | |||
super.setUp(); | |||
repoFactoryControl = MockClassControl.createControl( RepositoryContentFactory.class ); | |||
repoFactory = (RepositoryContentFactory) repoFactoryControl.getMock(); | |||
ArchivaTaskScheduler scheduler = (ArchivaTaskScheduler) lookup( ArchivaTaskScheduler.class ); | |||
indexingQueue = (TaskQueue) lookup( TaskQueue.ROLE, "indexing" ); | |||
consumer = new LuceneCleanupRemoveIndexedConsumer( repoFactory, scheduler ); | |||
repositoryConfig = new ManagedRepositoryConfiguration(); | |||
repositoryConfig.setId( "test-repo" ); | |||
repositoryConfig.setLocation( getBasedir() + "/target/test-classes/test-repo" ); | |||
repositoryConfig.setLayout( "default" ); | |||
repositoryConfig.setName( "Test Repository" ); | |||
repositoryConfig.setScanned( true ); | |||
repositoryConfig.setSnapshots( false ); | |||
repositoryConfig.setReleases( true ); | |||
repositoryConfig.setIndexDir( getBasedir() + "/target/test-classes/test-repo/.cleanup-index" ); | |||
} | |||
public void tearDown() | |||
throws Exception | |||
{ | |||
FileUtils.deleteDirectory( new File( repositoryConfig.getIndexDir() ) ); | |||
super.tearDown(); | |||
} | |||
@SuppressWarnings( "unchecked" ) | |||
public void testProcessArtifactArtifactDoesNotExist() | |||
throws Exception | |||
{ | |||
assertTrue( indexingQueue.getQueueSnapshot().isEmpty() ); | |||
ArchivaArtifact artifact = | |||
new ArchivaArtifact( "org.apache.archiva", "archiva-lucene-consumers", "1.2", null, "jar", "test-repo" ); | |||
ManagedRepositoryContent repoContent = new ManagedDefaultRepositoryContent(); | |||
repoContent.setRepository( repositoryConfig ); | |||
File artifactFile = new File( repoContent.getRepoRoot(), repoContent.toPath( artifact ) ); | |||
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( repositoryConfig.getId() ), | |||
repoContent ); | |||
repoFactoryControl.replay(); | |||
consumer.processArchivaArtifact( artifact ); | |||
repoFactoryControl.verify(); | |||
List<ArtifactIndexingTask> queue = indexingQueue.getQueueSnapshot(); | |||
assertEquals( 2, queue.size() ); | |||
ArtifactIndexingTask task = | |||
TaskCreator.createIndexingTask( repositoryConfig, artifactFile, ArtifactIndexingTask.Action.DELETE, null ); | |||
assertEquals( task, queue.get( 0 ) ); | |||
task = | |||
TaskCreator.createIndexingTask( repositoryConfig, artifactFile, ArtifactIndexingTask.Action.FINISH, null ); | |||
assertEquals( task, queue.get( 1 ) ); | |||
} | |||
public void testProcessArtifactArtifactExists() | |||
throws Exception | |||
{ | |||
assertTrue( indexingQueue.getQueueSnapshot().isEmpty() ); | |||
ArchivaArtifact artifact = | |||
new ArchivaArtifact( "org.apache.maven.archiva", "archiva-lucene-cleanup", "1.0", null, "jar", "test-repo" ); | |||
ManagedRepositoryContent repoContent = new ManagedDefaultRepositoryContent(); | |||
repoContent.setRepository( repositoryConfig ); | |||
repoFactoryControl.expectAndReturn( repoFactory.getManagedRepositoryContent( repositoryConfig.getId() ), | |||
repoContent ); | |||
repoFactoryControl.replay(); | |||
consumer.processArchivaArtifact( artifact ); | |||
repoFactoryControl.verify(); | |||
assertTrue( indexingQueue.getQueueSnapshot().isEmpty() ); | |||
} | |||
@Override | |||
protected String getPlexusConfigLocation() | |||
{ | |||
return "/org/apache/archiva/consumers/lucene/LuceneConsumersTest.xml"; | |||
} | |||
} |
@@ -0,0 +1,52 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<modelVersion>4.0.0</modelVersion> | |||
<parent> | |||
<artifactId>archiva-consumers</artifactId> | |||
<groupId>org.apache.archiva</groupId> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-metadata-consumer</artifactId> | |||
<name>Archiva Metadata Consumer</name> | |||
<dependencies> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-consumer-api</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>metadata-model</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>metadata-repository-api</artifactId> | |||
</dependency> | |||
<dependency> <!-- TODO: temporary coupling to file based repo --> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>metadata-repository-file</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-repository-layer</artifactId> | |||
</dependency> | |||
</dependencies> | |||
</project> |
@@ -0,0 +1,195 @@ | |||
package org.apache.archiva.consumers.metadata; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you 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 | |||
* | |||
* 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 java.io.File; | |||
import java.util.ArrayList; | |||
import java.util.Date; | |||
import java.util.List; | |||
import org.apache.archiva.metadata.model.ArtifactMetadata; | |||
import org.apache.archiva.metadata.model.ProjectBuildMetadata; | |||
import org.apache.archiva.metadata.model.ProjectMetadata; | |||
import org.apache.archiva.metadata.repository.MetadataRepository; | |||
import org.apache.archiva.metadata.repository.file.FileMetadataRepository; | |||
import org.apache.maven.archiva.configuration.ArchivaConfiguration; | |||
import org.apache.maven.archiva.configuration.ConfigurationNames; | |||
import org.apache.maven.archiva.configuration.FileTypes; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer; | |||
import org.apache.maven.archiva.consumers.ConsumerException; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.model.ArtifactReference; | |||
import org.apache.maven.archiva.repository.ManagedRepositoryContent; | |||
import org.apache.maven.archiva.repository.layout.LayoutException; | |||
import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable; | |||
import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException; | |||
import org.codehaus.plexus.registry.Registry; | |||
import org.codehaus.plexus.registry.RegistryListener; | |||
/** | |||
* Take an artifact off of disk and put it into the metadata repository. | |||
* | |||
* @version $Id: ArtifactUpdateDatabaseConsumer.java 718864 2008-11-19 06:33:35Z brett $ | |||
* @plexus.component role="org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer" | |||
* role-hint="create-archiva-metadata" instantiation-strategy="per-lookup" | |||
*/ | |||
public class ArchivaMetadataCreationConsumer | |||
extends AbstractMonitoredConsumer | |||
implements KnownRepositoryContentConsumer, RegistryListener, Initializable | |||
{ | |||
/** | |||
* @plexus.configuration default-value="create-archiva-metadata" | |||
*/ | |||
private String id; | |||
/** | |||
* @plexus.configuration default-value="Create basic metadata for Archiva to be able to reference the artifact" | |||
*/ | |||
private String description; | |||
/** | |||
* @plexus.requirement | |||
*/ | |||
private ArchivaConfiguration configuration; | |||
/** | |||
* @plexus.requirement | |||
*/ | |||
private FileTypes filetypes; | |||
private Date whenGathered; | |||
/** | |||
* @plexus.requirement | |||
*/ | |||
private ManagedRepositoryContent repository; | |||
private List<String> includes = new ArrayList<String>(); | |||
private MetadataRepository metadataRepository; | |||
public String getId() | |||
{ | |||
return this.id; | |||
} | |||
public String getDescription() | |||
{ | |||
return this.description; | |||
} | |||
public boolean isPermanent() | |||
{ | |||
return true; | |||
} | |||
public List<String> getExcludes() | |||
{ | |||
return getDefaultArtifactExclusions(); | |||
} | |||
public List<String> getIncludes() | |||
{ | |||
return this.includes; | |||
} | |||
public void beginScan( ManagedRepositoryConfiguration repo, Date whenGathered ) | |||
throws ConsumerException | |||
{ | |||
this.repository.setRepository( repo ); | |||
this.metadataRepository = new FileMetadataRepository( new File( repository.getRepoRoot(), ".metadata" ) ); | |||
this.whenGathered = whenGathered; | |||
} | |||
public void processFile( String path ) | |||
throws ConsumerException | |||
{ | |||
// note that we do minimal processing including checksums and POM information for performance of | |||
// the initial scan. Any request for this information will be intercepted and populated on-demand | |||
// or picked up by subsequent scans | |||
ArtifactReference artifact; | |||
try | |||
{ | |||
artifact = repository.toArtifactReference( path ); | |||
} | |||
catch ( LayoutException e ) | |||
{ | |||
throw new ConsumerException( e.getMessage(), e ); | |||
} | |||
File file = new File( repository.getRepoRoot(), path ); | |||
// TODO: needed in a more central place, but trying to isolate impact to start with | |||
String metadataId = artifact.getGroupId() + "." + artifact.getArtifactId(); | |||
ProjectMetadata project = new ProjectMetadata(); | |||
project.setId( metadataId ); | |||
ProjectBuildMetadata build = new ProjectBuildMetadata(); | |||
build.setId( artifact.getVersion() ); | |||
ArtifactMetadata artifactMeta = new ArtifactMetadata(); | |||
artifactMeta.setId( file.getName() ); | |||
artifactMeta.setUpdated( file.lastModified() ); | |||
artifactMeta.setSize( file.length() ); | |||
build.addArtifact( artifactMeta ); | |||
project.addBuild( build ); | |||
// TODO: store "whenGathered" | |||
// read the metadata and update it if it is newer or doesn't exist | |||
metadataRepository.update( project ); | |||
} | |||
public void completeScan() | |||
{ | |||
/* do nothing */ | |||
} | |||
public void afterConfigurationChange( Registry registry, String propertyName, Object propertyValue ) | |||
{ | |||
if ( ConfigurationNames.isRepositoryScanning( propertyName ) ) | |||
{ | |||
initIncludes(); | |||
} | |||
} | |||
public void beforeConfigurationChange( Registry registry, String propertyName, Object propertyValue ) | |||
{ | |||
/* do nothing */ | |||
} | |||
private void initIncludes() | |||
{ | |||
includes.clear(); | |||
includes.addAll( filetypes.getFileTypePatterns( FileTypes.ARTIFACTS ) ); | |||
} | |||
public void initialize() | |||
throws InitializationException | |||
{ | |||
configuration.addChangeListener( this ); | |||
initIncludes(); | |||
} | |||
} |
@@ -20,7 +20,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-consumers</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-signature-consumers</artifactId> |
@@ -1,18 +1,21 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Copyright 2005-2006 The Apache Software Foundation. | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
@@ -20,7 +23,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-consumers</artifactId> | |||
@@ -34,6 +37,7 @@ | |||
<module>archiva-lucene-consumers</module> | |||
<module>archiva-signature-consumers</module> | |||
<module>archiva-dependency-tree-consumer</module> | |||
<module>archiva-metadata-consumer</module> | |||
</modules> | |||
<build> |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-converter</artifactId> | |||
@@ -40,6 +40,10 @@ | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-repository-layer</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-repository-scanner</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.codehaus.plexus</groupId> | |||
<artifactId>plexus-i18n</artifactId> |
@@ -19,23 +19,23 @@ package org.apache.maven.archiva.converter.legacy; | |||
* under the License. | |||
*/ | |||
import java.io.File; | |||
import java.util.ArrayList; | |||
import java.util.Arrays; | |||
import java.util.Collections; | |||
import java.util.List; | |||
import org.apache.archiva.repository.scanner.RepositoryScanner; | |||
import org.apache.archiva.repository.scanner.RepositoryScannerException; | |||
import org.apache.maven.archiva.common.utils.PathUtil; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.converter.RepositoryConversionException; | |||
import org.apache.maven.archiva.repository.RepositoryException; | |||
import org.apache.maven.archiva.repository.scanner.RepositoryScanner; | |||
import org.apache.maven.artifact.repository.ArtifactRepository; | |||
import org.apache.maven.artifact.repository.ArtifactRepositoryFactory; | |||
import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; | |||
import java.io.File; | |||
import java.util.ArrayList; | |||
import java.util.Arrays; | |||
import java.util.Collections; | |||
import java.util.List; | |||
/** | |||
* DefaultLegacyRepositoryConverter | |||
* | |||
@@ -97,7 +97,7 @@ public class DefaultLegacyRepositoryConverter | |||
repoScanner.scan( legacyRepository, knownConsumers, invalidConsumers, ignoredContent, | |||
RepositoryScanner.FRESH_SCAN ); | |||
} | |||
catch ( RepositoryException e ) | |||
catch ( RepositoryScannerException e ) | |||
{ | |||
throw new RepositoryConversionException( "Error convering legacy repository.", e ); | |||
} |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-dependency-graph</artifactId> |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-indexer</artifactId> | |||
@@ -30,12 +30,16 @@ | |||
<dependencies> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-repository-layer</artifactId> | |||
<artifactId>archiva-configuration</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-model</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-repository-layer</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.lucene</groupId> | |||
<artifactId>lucene-core</artifactId> |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-model</artifactId> |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-policies</artifactId> |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-proxy</artifactId> | |||
@@ -41,6 +41,10 @@ | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-repository-layer</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-repository-scanner</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-scheduled</artifactId> |
@@ -27,8 +27,8 @@ import java.util.HashMap; | |||
import java.util.LinkedHashMap; | |||
import java.util.List; | |||
import java.util.Map; | |||
import java.util.Properties; | |||
import java.util.Map.Entry; | |||
import java.util.Properties; | |||
import org.apache.commons.collections.CollectionUtils; | |||
import org.apache.commons.io.FileUtils; |
@@ -22,7 +22,7 @@ | |||
<parent> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-base</artifactId> | |||
<version>1.2.3-SNAPSHOT</version> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<artifactId>archiva-repository-layer</artifactId> |
@@ -1,22 +0,0 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
import java.util.Date; | |||
import org.apache.maven.archiva.configuration.ArchivaConfiguration; | |||
public class RepositoryContentConsumersStub | |||
extends RepositoryContentConsumers | |||
{ | |||
public RepositoryContentConsumersStub(ArchivaConfiguration archivaConfiguration) | |||
{ | |||
super(archivaConfiguration); | |||
} | |||
@Override | |||
public Date getStartTime() | |||
{ | |||
Date startTimeForTest = new Date( System.currentTimeMillis() ); | |||
startTimeForTest.setTime( 12345678 ); | |||
return startTimeForTest; | |||
} | |||
} |
@@ -0,0 +1,54 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<modelVersion>4.0.0</modelVersion> | |||
<parent> | |||
<artifactId>archiva-base</artifactId> | |||
<groupId>org.apache.archiva</groupId> | |||
<version>1.3-SNAPSHOT</version> | |||
</parent> | |||
<artifactId>archiva-repository-scanner</artifactId> | |||
<name>Archiva Repository Scanner</name> | |||
<dependencies> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-consumer-api</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.apache.archiva</groupId> | |||
<artifactId>archiva-configuration</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.springframework</groupId> | |||
<artifactId>spring-context</artifactId> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.codehaus.plexus</groupId> | |||
<artifactId>plexus-spring</artifactId> | |||
<scope>test</scope> | |||
</dependency> | |||
<dependency> | |||
<groupId>org.slf4j</groupId> | |||
<artifactId>slf4j-simple</artifactId> | |||
<scope>test</scope> | |||
</dependency> | |||
</dependencies> | |||
</project> |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -29,14 +29,13 @@ import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.RepositoryContentConsumer; | |||
import org.apache.maven.archiva.repository.RepositoryException; | |||
import org.codehaus.plexus.util.DirectoryWalker; | |||
/** | |||
* DefaultRepositoryScanner | |||
* | |||
* @version $Id$ | |||
* @plexus.component role="org.apache.maven.archiva.repository.scanner.RepositoryScanner" | |||
* @plexus.component role="org.apache.archiva.repository.scanner.RepositoryScanner" | |||
*/ | |||
public class DefaultRepositoryScanner | |||
implements RepositoryScanner | |||
@@ -52,7 +51,7 @@ public class DefaultRepositoryScanner | |||
private RepositoryContentConsumers consumerUtil; | |||
public RepositoryScanStatistics scan( ManagedRepositoryConfiguration repository, long changesSince ) | |||
throws RepositoryException | |||
throws RepositoryScannerException | |||
{ | |||
List<KnownRepositoryContentConsumer> knownContentConsumers = consumerUtil.getSelectedKnownConsumers(); | |||
List<InvalidRepositoryContentConsumer> invalidContentConsumers = consumerUtil.getSelectedInvalidConsumers(); | |||
@@ -65,7 +64,7 @@ public class DefaultRepositoryScanner | |||
List<KnownRepositoryContentConsumer> knownContentConsumers, | |||
List<InvalidRepositoryContentConsumer> invalidContentConsumers, | |||
List<String> ignoredContentPatterns, long changesSince ) | |||
throws RepositoryException | |||
throws RepositoryScannerException | |||
{ | |||
if ( repository == null ) | |||
{ | |||
@@ -73,7 +72,7 @@ public class DefaultRepositoryScanner | |||
} | |||
File repositoryBase = new File( repository.getLocation() ); | |||
if ( !repositoryBase.exists() ) | |||
{ | |||
throw new UnsupportedOperationException( "Unable to scan a repository, directory " |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -26,6 +26,8 @@ import java.util.HashMap; | |||
import java.util.List; | |||
import java.util.Map; | |||
import org.apache.archiva.repository.scanner.functors.ConsumerProcessFileClosure; | |||
import org.apache.archiva.repository.scanner.functors.TriggerBeginScanClosure; | |||
import org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure; | |||
import org.apache.commons.collections.Closure; | |||
import org.apache.commons.collections.CollectionUtils; | |||
@@ -36,35 +38,32 @@ import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.configuration.RepositoryScanningConfiguration; | |||
import org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.repository.scanner.functors.ConsumerProcessFileClosure; | |||
import org.apache.maven.archiva.repository.scanner.functors.ConsumerWantsFilePredicate; | |||
import org.apache.maven.archiva.repository.scanner.functors.TriggerBeginScanClosure; | |||
import org.apache.maven.archiva.consumers.functors.ConsumerWantsFilePredicate; | |||
import org.springframework.beans.BeansException; | |||
import org.springframework.context.ApplicationContext; | |||
import org.springframework.context.ApplicationContextAware; | |||
/** | |||
* RepositoryContentConsumerUtil | |||
* | |||
* RepositoryContentConsumerUtil | |||
* | |||
* @version $Id$ | |||
*/ | |||
public class RepositoryContentConsumers | |||
implements ApplicationContextAware | |||
public class RepositoryContentConsumers implements ApplicationContextAware | |||
{ | |||
private ApplicationContext applicationContext; | |||
private ArchivaConfiguration archivaConfiguration; | |||
private List<KnownRepositoryContentConsumer> selectedKnownConsumers; | |||
private List<InvalidRepositoryContentConsumer> selectedInvalidConsumers; | |||
public RepositoryContentConsumers( ArchivaConfiguration archivaConfiguration ) | |||
public RepositoryContentConsumers(ArchivaConfiguration archivaConfiguration) | |||
{ | |||
this.archivaConfiguration = archivaConfiguration; | |||
this.archivaConfiguration = archivaConfiguration; | |||
} | |||
public void setApplicationContext( ApplicationContext applicationContext ) | |||
public void setApplicationContext(ApplicationContext applicationContext) | |||
throws BeansException | |||
{ | |||
this.applicationContext = applicationContext; | |||
@@ -72,12 +71,13 @@ public class RepositoryContentConsumers | |||
/** | |||
* <p> | |||
* Get the list of Ids associated with those {@link KnownRepositoryContentConsumer} that have been selected in the | |||
* configuration to execute. | |||
* Get the list of Ids associated with those {@link KnownRepositoryContentConsumer} that have | |||
* been selected in the configuration to execute. | |||
* </p> | |||
* | |||
* <p> | |||
* NOTE: This list can be larger and contain entries that might not exist or be available in the classpath, or as a | |||
* component. | |||
* NOTE: This list can be larger and contain entries that might not exist or be available | |||
* in the classpath, or as a component. | |||
* </p> | |||
* | |||
* @return the list of consumer ids that have been selected by the configuration. | |||
@@ -90,12 +90,13 @@ public class RepositoryContentConsumers | |||
/** | |||
* <p> | |||
* Get the list of Ids associated with those {@link InvalidRepositoryContentConsumer} that have been selected in the | |||
* configuration to execute. | |||
* Get the list of Ids associated with those {@link InvalidRepositoryContentConsumer} that have | |||
* been selected in the configuration to execute. | |||
* </p> | |||
* | |||
* <p> | |||
* NOTE: This list can be larger and contain entries that might not exist or be available in the classpath, or as a | |||
* component. | |||
* NOTE: This list can be larger and contain entries that might not exist or be available | |||
* in the classpath, or as a component. | |||
* </p> | |||
* | |||
* @return the list of consumer ids that have been selected by the configuration. | |||
@@ -107,8 +108,8 @@ public class RepositoryContentConsumers | |||
} | |||
/** | |||
* Get the map of {@link String} ids to {@link KnownRepositoryContentConsumer} implementations, for those consumers | |||
* that have been selected according to the active configuration. | |||
* Get the map of {@link String} ids to {@link KnownRepositoryContentConsumer} implementations, | |||
* for those consumers that have been selected according to the active configuration. | |||
* | |||
* @return the map of String ids to {@link KnownRepositoryContentConsumer} objects. | |||
*/ | |||
@@ -125,15 +126,14 @@ public class RepositoryContentConsumers | |||
} | |||
/** | |||
* Get the map of {@link String} ids to {@link InvalidRepositoryContentConsumer} implementations, for those | |||
* consumers that have been selected according to the active configuration. | |||
* Get the map of {@link String} ids to {@link InvalidRepositoryContentConsumer} implementations, | |||
* for those consumers that have been selected according to the active configuration. | |||
* | |||
* @return the map of String ids to {@link InvalidRepositoryContentConsumer} objects. | |||
*/ | |||
public Map<String, InvalidRepositoryContentConsumer> getSelectedInvalidConsumersMap() | |||
{ | |||
Map<String, InvalidRepositoryContentConsumer> consumerMap = | |||
new HashMap<String, InvalidRepositoryContentConsumer>(); | |||
Map<String, InvalidRepositoryContentConsumer> consumerMap = new HashMap<String, InvalidRepositoryContentConsumer>(); | |||
for ( InvalidRepositoryContentConsumer consumer : getSelectedInvalidConsumers() ) | |||
{ | |||
@@ -144,10 +144,11 @@ public class RepositoryContentConsumers | |||
} | |||
/** | |||
* Get the list of {@link KnownRepositoryContentConsumer} objects that are selected according to the active | |||
* configuration. | |||
* Get the list of {@link KnownRepositoryContentConsumer} objects that are | |||
* selected according to the active configuration. | |||
* | |||
* @return the list of {@link KnownRepositoryContentConsumer} that have been selected by the active configuration. | |||
* @return the list of {@link KnownRepositoryContentConsumer} that have been selected | |||
* by the active configuration. | |||
*/ | |||
public synchronized List<KnownRepositoryContentConsumer> getSelectedKnownConsumers() | |||
{ | |||
@@ -170,10 +171,11 @@ public class RepositoryContentConsumers | |||
} | |||
/** | |||
* Get the list of {@link InvalidRepositoryContentConsumer} objects that are selected according to the active | |||
* configuration. | |||
* Get the list of {@link InvalidRepositoryContentConsumer} objects that are | |||
* selected according to the active configuration. | |||
* | |||
* @return the list of {@link InvalidRepositoryContentConsumer} that have been selected by the active configuration. | |||
* @return the list of {@link InvalidRepositoryContentConsumer} that have been selected | |||
* by the active configuration. | |||
*/ | |||
public synchronized List<InvalidRepositoryContentConsumer> getSelectedInvalidConsumers() | |||
{ | |||
@@ -196,36 +198,35 @@ public class RepositoryContentConsumers | |||
} | |||
/** | |||
* Get the list of {@link KnownRepositoryContentConsumer} objects that are available and present in the classpath | |||
* and as components in the IoC. | |||
* Get the list of {@link KnownRepositoryContentConsumer} objects that are | |||
* available and present in the classpath and as components in the IoC. | |||
* | |||
* @return the list of all available {@link KnownRepositoryContentConsumer} present in the classpath and as a | |||
* component in the IoC. | |||
* @return the list of all available {@link KnownRepositoryContentConsumer} present in the classpath | |||
* and as a component in the IoC. | |||
*/ | |||
@SuppressWarnings("unchecked") | |||
public List<KnownRepositoryContentConsumer> getAvailableKnownConsumers() | |||
{ | |||
return new ArrayList<KnownRepositoryContentConsumer>( applicationContext.getBeansOfType( KnownRepositoryContentConsumer.class ).values() ); | |||
} | |||
/** | |||
* Get the list of {@link InvalidRepositoryContentConsumer} objects that are available and present in the classpath | |||
* and as components in the IoC. | |||
* Get the list of {@link InvalidRepositoryContentConsumer} objects that are | |||
* available and present in the classpath and as components in the IoC. | |||
* | |||
* @return the list of all available {@link InvalidRepositoryContentConsumer} present in the classpath and as a | |||
* component in the IoC. | |||
* @return the list of all available {@link InvalidRepositoryContentConsumer} present in the classpath | |||
* and as a component in the IoC. | |||
*/ | |||
@SuppressWarnings("unchecked") | |||
public List<InvalidRepositoryContentConsumer> getAvailableInvalidConsumers() | |||
{ | |||
return new ArrayList<InvalidRepositoryContentConsumer>( applicationContext.getBeansOfType( InvalidRepositoryContentConsumer.class ).values() ); | |||
} | |||
/** | |||
* A convenience method to execute all of the active selected consumers for a particular arbitrary file. | |||
* A convienence method to execute all of the active selected consumers for a | |||
* particular arbitrary file. | |||
* NOTE: Make sure that there is no repository scanning task executing before invoking this so as to prevent | |||
* the index writer/reader of the current index-content consumer executing from getting closed. For an example, | |||
* see ArchivaDavResource#executeConsumers( File ). | |||
* see ArchivaDavResource#executeConsumers( File ). | |||
* | |||
* @param repository the repository configuration to use. | |||
* @param localFile the local file to execute the consumers against. | |||
@@ -235,28 +236,28 @@ public class RepositoryContentConsumers | |||
{ | |||
// Run the repository consumers | |||
try | |||
{ | |||
{ | |||
Closure triggerBeginScan = new TriggerBeginScanClosure( repository, getStartTime() ); | |||
List<KnownRepositoryContentConsumer> selectedKnownConsumers = getSelectedKnownConsumers(); | |||
// MRM-1212/MRM-1197 | |||
// - do not create missing/fix invalid checksums and update metadata when deploying from webdav since these are uploaded by maven | |||
// - do not create missing/fix invalid checksums and update metadata when deploying from webdav since these are uploaded by maven | |||
if( updateRelatedArtifacts == false ) | |||
{ | |||
{ | |||
List<KnownRepositoryContentConsumer> clone = new ArrayList<KnownRepositoryContentConsumer>(); | |||
clone.addAll( selectedKnownConsumers ); | |||
for( KnownRepositoryContentConsumer consumer : clone ) | |||
{ | |||
if( consumer.getId().equals( "create-missing-checksums" ) || | |||
if( consumer.getId().equals( "create-missing-checksums" ) || | |||
consumer.getId().equals( "metadata-updater" ) ) | |||
{ | |||
selectedKnownConsumers.remove( consumer ); | |||
} | |||
} | |||
} | |||
} | |||
List<InvalidRepositoryContentConsumer> selectedInvalidConsumers = getSelectedInvalidConsumers(); | |||
CollectionUtils.forAllDo( selectedKnownConsumers, triggerBeginScan ); | |||
CollectionUtils.forAllDo( selectedInvalidConsumers, triggerBeginScan ); | |||
@@ -275,7 +276,7 @@ public class RepositoryContentConsumers | |||
if ( predicate.getWantedFileCount() <= 0 ) | |||
{ | |||
// Nothing known processed this file. It is invalid! | |||
// Nothing known processed this file. It is invalid! | |||
CollectionUtils.forAllDo( selectedInvalidConsumers, closure ); | |||
} | |||
@@ -285,11 +286,10 @@ public class RepositoryContentConsumers | |||
} | |||
finally | |||
{ | |||
/* | |||
* TODO: This is never called by the repository scanner instance, so not calling here either - but it | |||
* probably should be? CollectionUtils.forAllDo( availableKnownConsumers, triggerCompleteScan ); | |||
* CollectionUtils.forAllDo( availableInvalidConsumers, triggerCompleteScan ); | |||
*/ | |||
/* TODO: This is never called by the repository scanner instance, so not calling here either - but it probably should be? | |||
CollectionUtils.forAllDo( availableKnownConsumers, triggerCompleteScan ); | |||
CollectionUtils.forAllDo( availableInvalidConsumers, triggerCompleteScan ); | |||
*/ | |||
} | |||
} | |||
@@ -302,12 +302,12 @@ public class RepositoryContentConsumers | |||
{ | |||
this.selectedInvalidConsumers = selectedInvalidConsumers; | |||
} | |||
protected Date getStartTime() | |||
{ | |||
{ | |||
return new Date( System.currentTimeMillis() ); | |||
} | |||
public void setArchivaConfiguration( ArchivaConfiguration archivaConfiguration ) | |||
{ | |||
this.archivaConfiguration = archivaConfiguration; |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -19,20 +19,18 @@ package org.apache.maven.archiva.repository.scanner; | |||
* under the License. | |||
*/ | |||
import org.apache.commons.collections.CollectionUtils; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.model.RepositoryContentStatistics; | |||
import java.text.SimpleDateFormat; | |||
import java.util.List; | |||
import org.apache.commons.collections.CollectionUtils; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
/** | |||
* RepositoryScanStatistics - extension to the RepositoryContentStatistics model. | |||
* | |||
* @version $Id$ | |||
*/ | |||
public class RepositoryScanStatistics | |||
extends RepositoryContentStatistics | |||
{ | |||
private transient List<String> knownConsumers; | |||
@@ -42,28 +40,78 @@ public class RepositoryScanStatistics | |||
private SimpleDateFormat df = new SimpleDateFormat(); | |||
/** | |||
* Field repositoryId | |||
*/ | |||
private String repositoryId; | |||
/** | |||
* Field whenGathered | |||
*/ | |||
private java.util.Date whenGathered; | |||
/** | |||
* Field duration | |||
*/ | |||
private long duration = 0; | |||
/** | |||
* Field totalFileCount | |||
*/ | |||
private long totalFileCount = 0; | |||
/** | |||
* Field newFileCount | |||
*/ | |||
private long newFileCount = 0; | |||
/** | |||
* Field totalProjectCount | |||
*/ | |||
private long totalProjectCount = 0; | |||
/** | |||
* Field totalGroupCount | |||
*/ | |||
private long totalGroupCount = 0; | |||
/** | |||
* Field totalArtifactCount | |||
*/ | |||
private long totalArtifactCount = 0; | |||
/** | |||
* Field totalSize | |||
*/ | |||
private long totalSize = 0; | |||
public void triggerStart() | |||
{ | |||
startTimestamp = System.currentTimeMillis(); | |||
} | |||
public java.util.Date getWhenGathered() | |||
{ | |||
return whenGathered; | |||
} | |||
public void triggerFinished() | |||
{ | |||
long finished = System.currentTimeMillis(); | |||
setDuration( finished - startTimestamp ); | |||
setWhenGathered( new java.util.Date( finished ) ); | |||
this.duration = finished - startTimestamp; | |||
this.whenGathered = new java.util.Date( finished ); | |||
} | |||
public void increaseFileCount() | |||
{ | |||
long count = getTotalFileCount(); | |||
setTotalFileCount( ++count ); | |||
this.totalFileCount = ++count; | |||
} | |||
public void increaseNewFileCount() | |||
{ | |||
long count = getNewFileCount(); | |||
setNewFileCount( ++count ); | |||
this.newFileCount = ++count; | |||
} | |||
public void setKnownConsumers( List<String> consumers ) | |||
@@ -142,4 +190,49 @@ public class RepositoryScanStatistics | |||
return buf.toString(); | |||
} | |||
public void setRepositoryId( String repositoryId ) | |||
{ | |||
this.repositoryId = repositoryId; | |||
} | |||
public String getRepositoryId() | |||
{ | |||
return repositoryId; | |||
} | |||
public long getDuration() | |||
{ | |||
return duration; | |||
} | |||
public long getTotalFileCount() | |||
{ | |||
return totalFileCount; | |||
} | |||
public long getNewFileCount() | |||
{ | |||
return newFileCount; | |||
} | |||
public long getTotalProjectCount() | |||
{ | |||
return totalProjectCount; | |||
} | |||
public long getTotalGroupCount() | |||
{ | |||
return totalGroupCount; | |||
} | |||
public long getTotalArtifactCount() | |||
{ | |||
return totalArtifactCount; | |||
} | |||
public long getTotalSize() | |||
{ | |||
return totalSize; | |||
} | |||
} |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -19,12 +19,11 @@ package org.apache.maven.archiva.repository.scanner; | |||
* under the License. | |||
*/ | |||
import java.util.List; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.repository.RepositoryException; | |||
import java.util.List; | |||
/** | |||
* RepositoryScanner | |||
@@ -79,10 +78,10 @@ public interface RepositoryScanner | |||
* (To have all content be taken into consideration regardless of timestamp, | |||
* use the {@link #FRESH_SCAN} constant) | |||
* @return the statistics for this scan. | |||
* @throws RepositoryException if there was a fundamental problem with getting the discoverer started. | |||
* @throws RepositoryScannerException if there was a fundamental problem with getting the discoverer started. | |||
*/ | |||
public RepositoryScanStatistics scan( ManagedRepositoryConfiguration repository, long changesSince ) | |||
throws RepositoryException; | |||
throws RepositoryScannerException; | |||
/** | |||
* Scan the repository for content changes. | |||
@@ -99,12 +98,12 @@ public interface RepositoryScanner | |||
* (To have all content be taken into consideration regardless of timestamp, | |||
* use the {@link #FRESH_SCAN} constant) | |||
* @return the statistics for this scan. | |||
* @throws RepositoryException if there was a fundamental problem with getting the discoverer started. | |||
* @throws RepositoryScannerException if there was a fundamental problem with getting the discoverer started. | |||
*/ | |||
public RepositoryScanStatistics scan( ManagedRepositoryConfiguration repository, | |||
List<KnownRepositoryContentConsumer> knownContentConsumers, | |||
List<InvalidRepositoryContentConsumer> invalidContentConsumers, | |||
List<String> ignoredContentPatterns, long changesSince ) | |||
throws RepositoryException; | |||
throws RepositoryScannerException; | |||
} |
@@ -0,0 +1,51 @@ | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you 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 | |||
* | |||
* 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. | |||
*/ | |||
/** | |||
* RepositoryException | |||
* | |||
* @version $Id: RepositoryException.java 718864 2008-11-19 06:33:35Z brett $ | |||
*/ | |||
public class RepositoryScannerException | |||
extends Exception | |||
{ | |||
public RepositoryScannerException() | |||
{ | |||
super(); | |||
} | |||
public RepositoryScannerException( String message, Throwable cause ) | |||
{ | |||
super( message, cause ); | |||
} | |||
public RepositoryScannerException( String message ) | |||
{ | |||
super( message ); | |||
} | |||
public RepositoryScannerException( Throwable cause ) | |||
{ | |||
super( cause ); | |||
} | |||
} |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -23,6 +23,8 @@ import java.io.File; | |||
import java.util.Date; | |||
import java.util.List; | |||
import org.apache.archiva.repository.scanner.functors.ConsumerProcessFileClosure; | |||
import org.apache.archiva.repository.scanner.functors.TriggerBeginScanClosure; | |||
import org.apache.archiva.repository.scanner.functors.TriggerScanCompletedClosure; | |||
import org.apache.commons.collections.Closure; | |||
import org.apache.commons.collections.CollectionUtils; | |||
@@ -32,9 +34,7 @@ import org.apache.maven.archiva.common.utils.BaseFile; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.repository.scanner.functors.ConsumerProcessFileClosure; | |||
import org.apache.maven.archiva.repository.scanner.functors.ConsumerWantsFilePredicate; | |||
import org.apache.maven.archiva.repository.scanner.functors.TriggerBeginScanClosure; | |||
import org.apache.maven.archiva.consumers.functors.ConsumerWantsFilePredicate; | |||
import org.codehaus.plexus.util.DirectoryWalkListener; | |||
import org.slf4j.Logger; | |||
import org.slf4j.LoggerFactory; | |||
@@ -145,11 +145,10 @@ public class RepositoryScannerInstance | |||
public void directoryWalkFinished() | |||
{ | |||
TriggerScanCompletedClosure scanCompletedClosure = new TriggerScanCompletedClosure(repository); | |||
TriggerScanCompletedClosure scanCompletedClosure = new TriggerScanCompletedClosure( repository ); | |||
CollectionUtils.forAllDo( knownConsumers, scanCompletedClosure ); | |||
CollectionUtils.forAllDo( invalidConsumers, scanCompletedClosure ); | |||
log.info( "Walk Finished: [" + this.repository.getId() + "] " + this.repository.getLocation() ); | |||
stats.triggerFinished(); | |||
} |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner.functors; | |||
package org.apache.archiva.repository.scanner.functors; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner.functors; | |||
package org.apache.archiva.repository.scanner.functors; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one |
@@ -3,7 +3,9 @@ | |||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> | |||
<bean id="repositoryContentConsumers" class="org.apache.maven.archiva.repository.scanner.RepositoryContentConsumers" scope="prototype"> | |||
<constructor-arg ref="archivaConfiguration"/> | |||
<bean id="repositoryContentConsumers" class="org.apache.archiva.repository.scanner.RepositoryContentConsumers" scope="prototype"> | |||
<constructor-arg> | |||
<ref bean="archivaConfiguration"/> | |||
</constructor-arg> | |||
</bean> | |||
</beans> | |||
</beans> |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -19,14 +19,14 @@ package org.apache.maven.archiva.repository.scanner; | |||
* under the License. | |||
*/ | |||
import java.util.Date; | |||
import java.util.List; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer; | |||
import org.apache.maven.archiva.consumers.ConsumerException; | |||
import org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer; | |||
import java.util.Date; | |||
import java.util.List; | |||
/** | |||
* InvalidScanConsumer | |||
* |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -19,16 +19,16 @@ package org.apache.maven.archiva.repository.scanner; | |||
* under the License. | |||
*/ | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer; | |||
import org.apache.maven.archiva.consumers.ConsumerException; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import java.util.ArrayList; | |||
import java.util.Arrays; | |||
import java.util.Date; | |||
import java.util.List; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer; | |||
import org.apache.maven.archiva.consumers.ConsumerException; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
/** | |||
* ScanConsumer | |||
* |
@@ -0,0 +1,42 @@ | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
* or more contributor license agreements. See the NOTICE file | |||
* distributed with this work for additional information | |||
* regarding copyright ownership. The ASF licenses this file | |||
* to you 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 | |||
* | |||
* 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 java.util.Date; | |||
import org.apache.maven.archiva.configuration.ArchivaConfiguration; | |||
public class RepositoryContentConsumersStub | |||
extends RepositoryContentConsumers | |||
{ | |||
public RepositoryContentConsumersStub(ArchivaConfiguration archivaConfiguration) | |||
{ | |||
super(archivaConfiguration); | |||
} | |||
@Override | |||
public Date getStartTime() | |||
{ | |||
Date startTimeForTest = new Date( System.currentTimeMillis() ); | |||
startTimeForTest.setTime( 12345678 ); | |||
return startTimeForTest; | |||
} | |||
} |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -19,23 +19,24 @@ package org.apache.maven.archiva.repository.scanner; | |||
* under the License. | |||
*/ | |||
import java.io.File; | |||
import java.io.IOException; | |||
import java.util.Arrays; | |||
import java.util.Collections; | |||
import java.util.Date; | |||
import java.util.HashMap; | |||
import java.util.List; | |||
import java.util.Locale; | |||
import java.util.Map; | |||
import org.apache.commons.lang.SystemUtils; | |||
import org.apache.maven.archiva.configuration.ArchivaConfiguration; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.repository.AbstractRepositoryLayerTestCase; | |||
import org.codehaus.plexus.spring.PlexusInSpringTestCase; | |||
import org.easymock.MockControl; | |||
import java.io.File; | |||
import java.util.Arrays; | |||
import java.util.Collections; | |||
import java.util.Date; | |||
import java.util.HashMap; | |||
import java.util.List; | |||
import java.util.Map; | |||
import org.springframework.beans.BeansException; | |||
import org.springframework.beans.factory.BeanFactory; | |||
import org.springframework.beans.factory.NoSuchBeanDefinitionException; | |||
@@ -52,8 +53,36 @@ import org.springframework.core.io.Resource; | |||
* @version $Id$ | |||
*/ | |||
public class RepositoryContentConsumersTest | |||
extends AbstractRepositoryLayerTestCase | |||
extends PlexusInSpringTestCase | |||
{ | |||
/** | |||
* {@inheritDoc} | |||
* @see org.codehaus.plexus.spring.PlexusInSpringTestCase#getSpringConfigLocation() | |||
*/ | |||
@Override | |||
protected String getSpringConfigLocation() | |||
{ | |||
return "org/apache/maven/archiva/repository/spring-context.xml"; | |||
} | |||
protected ManagedRepositoryConfiguration createRepository( String id, String name, File location ) | |||
{ | |||
ManagedRepositoryConfiguration repo = new ManagedRepositoryConfiguration(); | |||
repo.setId( id ); | |||
repo.setName( name ); | |||
repo.setLocation( location.getAbsolutePath() ); | |||
return repo; | |||
} | |||
protected RemoteRepositoryConfiguration createRemoteRepository( String id, String name, String url ) | |||
{ | |||
RemoteRepositoryConfiguration repo = new RemoteRepositoryConfiguration(); | |||
repo.setId( id ); | |||
repo.setName( name ); | |||
repo.setUrl( url ); | |||
return repo; | |||
} | |||
private RepositoryContentConsumers lookupRepositoryConsumers() | |||
throws Exception | |||
{ | |||
@@ -307,7 +336,7 @@ public class RepositoryContentConsumersTest | |||
knownControl.verify(); | |||
invalidControl.verify(); | |||
} | |||
/** | |||
* Create an OS specific version of the filepath. | |||
* Provide path in unix "/" format. | |||
@@ -321,19 +350,18 @@ public class RepositoryContentConsumersTest | |||
return path; | |||
} | |||
@SuppressWarnings("unchecked") | |||
public class MockApplicationContext implements ApplicationContext | |||
private static Map convertToMap(List objects) | |||
{ | |||
private Map convertToMap(List objects) | |||
HashMap map = new HashMap(); | |||
for (Object o : objects) | |||
{ | |||
HashMap map = new HashMap(); | |||
for (Object o : objects) | |||
{ | |||
map.put(o, o); | |||
} | |||
return map; | |||
map.put(o, o); | |||
} | |||
return map; | |||
} | |||
public class MockApplicationContext implements ApplicationContext | |||
{ | |||
private List<KnownRepositoryContentConsumer> knownRepositoryContentConsumer; | |||
private List<InvalidRepositoryContentConsumer> invalidRepositoryContentConsumers; |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -19,13 +19,6 @@ package org.apache.maven.archiva.repository.scanner; | |||
* under the License. | |||
*/ | |||
import org.apache.commons.io.FileUtils; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.apache.maven.archiva.model.RepositoryContentStatistics; | |||
import org.apache.maven.archiva.repository.AbstractRepositoryLayerTestCase; | |||
import java.io.File; | |||
import java.io.IOException; | |||
import java.text.ParseException; | |||
@@ -36,14 +29,49 @@ import java.util.List; | |||
import java.util.Locale; | |||
import java.util.TimeZone; | |||
import org.apache.commons.io.FileUtils; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.configuration.RemoteRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.InvalidRepositoryContentConsumer; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import org.codehaus.plexus.spring.PlexusInSpringTestCase; | |||
/** | |||
* RepositoryScannerTest | |||
* | |||
* @version $Id$ | |||
*/ | |||
public class RepositoryScannerTest | |||
extends AbstractRepositoryLayerTestCase | |||
extends PlexusInSpringTestCase | |||
{ | |||
/** | |||
* {@inheritDoc} | |||
* @see org.codehaus.plexus.spring.PlexusInSpringTestCase#getSpringConfigLocation() | |||
*/ | |||
@Override | |||
protected String getSpringConfigLocation() | |||
{ | |||
return "org/apache/maven/archiva/repository/spring-context.xml"; | |||
} | |||
protected ManagedRepositoryConfiguration createRepository( String id, String name, File location ) | |||
{ | |||
ManagedRepositoryConfiguration repo = new ManagedRepositoryConfiguration(); | |||
repo.setId( id ); | |||
repo.setName( name ); | |||
repo.setLocation( location.getAbsolutePath() ); | |||
return repo; | |||
} | |||
protected RemoteRepositoryConfiguration createRemoteRepository( String id, String name, String url ) | |||
{ | |||
RemoteRepositoryConfiguration repo = new RemoteRepositoryConfiguration(); | |||
repo.setId( id ); | |||
repo.setName( name ); | |||
repo.setUrl( url ); | |||
return repo; | |||
} | |||
private static final String[] ARTIFACT_PATTERNS = | |||
new String[]{"**/*.jar", "**/*.pom", "**/*.rar", "**/*.zip", "**/*.war", "**/*.tar.gz"}; | |||
@@ -134,7 +162,7 @@ public class RepositoryScannerTest | |||
RepositoryScanner scanner = lookupRepositoryScanner(); | |||
RepositoryContentStatistics stats = scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), | |||
RepositoryScanStatistics stats = scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), | |||
getTimestampAsMillis( "20061101.000000" ) ); | |||
assertNotNull( "Stats should not be null.", stats ); | |||
@@ -159,7 +187,7 @@ public class RepositoryScannerTest | |||
invalidConsumers.add( badconsumer ); | |||
RepositoryScanner scanner = lookupRepositoryScanner(); | |||
RepositoryContentStatistics stats = | |||
RepositoryScanStatistics stats = | |||
scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), RepositoryScanner.FRESH_SCAN ); | |||
assertNotNull( "Stats should not be null.", stats ); | |||
@@ -185,7 +213,7 @@ public class RepositoryScannerTest | |||
invalidConsumers.add( badconsumer ); | |||
RepositoryScanner scanner = lookupRepositoryScanner(); | |||
RepositoryContentStatistics stats = scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), | |||
RepositoryScanStatistics stats = scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), | |||
getTimestampAsMillis( "20061101.000000" ) ); | |||
assertNotNull( "Stats should not be null.", stats ); | |||
@@ -211,7 +239,7 @@ public class RepositoryScannerTest | |||
invalidConsumers.add( badconsumer ); | |||
RepositoryScanner scanner = lookupRepositoryScanner(); | |||
RepositoryContentStatistics stats = | |||
RepositoryScanStatistics stats = | |||
scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), RepositoryScanner.FRESH_SCAN ); | |||
assertNotNull( "Stats should not be null.", stats ); | |||
@@ -269,7 +297,7 @@ public class RepositoryScannerTest | |||
invalidConsumers.add( badconsumer ); | |||
RepositoryScanner scanner = lookupRepositoryScanner(); | |||
RepositoryContentStatistics stats = | |||
RepositoryScanStatistics stats = | |||
scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), RepositoryScanner.FRESH_SCAN ); | |||
assertNotNull( "Stats should not be null.", stats ); | |||
@@ -305,7 +333,7 @@ public class RepositoryScannerTest | |||
invalidConsumers.add( badconsumer ); | |||
RepositoryScanner scanner = lookupRepositoryScanner(); | |||
RepositoryContentStatistics stats = | |||
RepositoryScanStatistics stats = | |||
scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), RepositoryScanner.FRESH_SCAN ); | |||
assertNotNull( "Stats should not be null.", stats ); | |||
@@ -341,7 +369,7 @@ public class RepositoryScannerTest | |||
invalidConsumers.add( badconsumer ); | |||
RepositoryScanner scanner = lookupRepositoryScanner(); | |||
RepositoryContentStatistics stats = | |||
RepositoryScanStatistics stats = | |||
scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), RepositoryScanner.FRESH_SCAN ); | |||
assertNotNull( "Stats should not be null.", stats ); | |||
@@ -381,7 +409,7 @@ public class RepositoryScannerTest | |||
invalidConsumers.add( badconsumer ); | |||
RepositoryScanner scanner = lookupRepositoryScanner(); | |||
RepositoryContentStatistics stats = | |||
RepositoryScanStatistics stats = | |||
scanner.scan( repository, knownConsumers, invalidConsumers, getIgnoreList(), RepositoryScanner.FRESH_SCAN ); | |||
assertNotNull( "Stats should not be null.", stats ); |
@@ -1,4 +1,4 @@ | |||
package org.apache.maven.archiva.repository.scanner; | |||
package org.apache.archiva.repository.scanner; | |||
/* | |||
* Licensed to the Apache Software Foundation (ASF) under one | |||
@@ -19,14 +19,14 @@ package org.apache.maven.archiva.repository.scanner; | |||
* under the License. | |||
*/ | |||
import java.util.Date; | |||
import java.util.List; | |||
import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; | |||
import org.apache.maven.archiva.consumers.AbstractMonitoredConsumer; | |||
import org.apache.maven.archiva.consumers.ConsumerException; | |||
import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; | |||
import java.util.Date; | |||
import java.util.List; | |||
/** | |||
* SampleKnownConsumer | |||
* |
@@ -0,0 +1 @@ | |||
not a real CVS root - for testing exclusions |
@@ -0,0 +1 @@ | |||
test KEYS file |
@@ -0,0 +1,26 @@ | |||
<?xml version="1.0" encoding="ISO-8859-1"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<!-- This metdata is intentionally wrong. --> | |||
<metadata> | |||
<groupId>javax.sql</groupId> | |||
<artifactId>jdbc</artifactId> | |||
<version>2.0</version> | |||
</metadata> |
@@ -0,0 +1,25 @@ | |||
<?xml version="1.0" encoding="ISO-8859-1"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<metadata> | |||
<groupId>javax.sql</groupId> | |||
<artifactId>jdbc</artifactId> | |||
<version>2.0</version> | |||
</metadata> |
@@ -0,0 +1,30 @@ | |||
<?xml version="1.0" encoding="ISO-8859-1"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<metadata> | |||
<groupId>javax.sql</groupId> | |||
<artifactId>jdbc</artifactId> | |||
<version>2.0</version> | |||
<versioning> | |||
<versions> | |||
<version>2.0</version> | |||
</versions> | |||
</versioning> | |||
</metadata> |
@@ -0,0 +1,25 @@ | |||
<?xml version="1.0" encoding="ISO-8859-1"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<metadata> | |||
<groupId>javax.sql</groupId> | |||
<artifactId>jdbc</artifactId> | |||
<version>2.0</version> | |||
</metadata> |
@@ -0,0 +1,300 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<parent> | |||
<groupId>org.apache</groupId> | |||
<artifactId>apache</artifactId> | |||
<version>3</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>org.apache.axis2</groupId> | |||
<artifactId>axis2</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<packaging>pom</packaging> | |||
<name>Apache Axis 2.0 - Root</name> | |||
<modules> | |||
<module>modules/adb</module> | |||
<module>modules/adb-codegen</module> | |||
<module>modules/addressing</module> | |||
<module>modules/codegen</module> | |||
<module>modules/fastinfoset</module> | |||
<module>modules/integration</module> | |||
<module>modules/java2wsdl</module> | |||
<module>modules/jibx</module> | |||
<module>modules/json</module> | |||
<module>modules/kernel</module> | |||
<module>modules/mex</module> | |||
<module>modules/mex-mar</module> | |||
<module>modules/mtompolicy</module> | |||
<module>modules/parent</module> | |||
<module>modules/ping</module> | |||
<module>modules/samples/version</module> | |||
<module>modules/soapmonitor</module> | |||
<module>modules/spring</module> | |||
<module>modules/tool/axis2-aar-maven-plugin</module> | |||
<module>modules/tool/axis2-ant-plugin</module> | |||
<module>modules/tool/axis2-eclipse-codegen-plugin</module> | |||
<module>modules/tool/axis2-eclipse-service-plugin</module> | |||
<module>modules/tool/axis2-idea-plugin</module> | |||
<module>modules/tool/axis2-java2wsdl-maven-plugin</module> | |||
<module>modules/tool/axis2-mar-maven-plugin</module> | |||
<module>modules/tool/axis2-wsdl2code-maven-plugin</module> | |||
<module>modules/webapp</module> | |||
<module>modules/xmlbeans</module> | |||
<module>modules/samples</module> | |||
<module>modules/scripting</module> | |||
</modules> | |||
<profiles> | |||
<profile> | |||
<activation> | |||
<property> | |||
<name>release</name> | |||
</property> | |||
</activation> | |||
<modules> | |||
<module>modules/distribution</module> | |||
</modules> | |||
</profile> | |||
<profile> | |||
<id>java14</id> | |||
<activation> | |||
<jdk>1.4</jdk> | |||
</activation> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java15</id> | |||
<activation> | |||
<jdk>1.5</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java16</id> | |||
<activation> | |||
<jdk>1.6</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
</profiles> | |||
<ciManagement> | |||
<system>continuum</system> | |||
<url>http://vmbuild.apache.org/continuum</url> | |||
<notifiers> | |||
<notifier> | |||
<configuration> | |||
<ADDRESS>axis2-cvs@ws.apache.org</ADDRESS> | |||
</configuration> | |||
</notifier> | |||
</notifiers> | |||
</ciManagement> | |||
<scm> | |||
<connection> | |||
scm:svn:http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</connection> | |||
<developerConnection> | |||
scm:svn:https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</developerConnection> | |||
<url>http://svn.apache.org/viewvc/webservices/webservices/axis2/trunk/java/</url> | |||
</scm> | |||
<distributionManagement> | |||
<repository> | |||
<id>apache-repo</id> | |||
<name>Maven Central Repository</name> | |||
<url> | |||
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url> | |||
</repository> | |||
<snapshotRepository> | |||
<id>apache-snapshots</id> | |||
<name>Apache Development Repository</name> | |||
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url> | |||
</snapshotRepository> | |||
</distributionManagement> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>build-helper-maven-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar-package</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>attach-artifact</goal> | |||
</goals> | |||
<configuration> | |||
<artifacts> | |||
<artifact> | |||
<file>target/lib/axis2-${pom.version}.jar</file> | |||
<type>jar</type> | |||
</artifact> | |||
</artifacts> | |||
</configuration> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<reporting> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-site-plugin</artifactId> | |||
<configuration> | |||
<xdocDirectory>${basedir}/xdocs</xdocDirectory> | |||
<resourcesDirectory>${basedir}/xdocs/resources</resourcesDirectory> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-javadoc-plugin</artifactId> | |||
<configuration> | |||
<aggregate>true</aggregate> | |||
<links> | |||
<link>http://java.sun.com/j2ee/1.4/docs/api</link> | |||
<link>http://java.sun.com/j2se/1.5.0/docs/api</link> | |||
<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> | |||
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/logging/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/pool/apidocs/</link> | |||
<link>http://www.junit.org/junit/javadoc/</link> | |||
<link>http://logging.apache.org/log4j/docs/api/</link> | |||
<link>http://jakarta.apache.org/regexp/apidocs/</link> | |||
<link>http://jakarta.apache.org/velocity/api/</link> | |||
</links> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</reporting> | |||
</project> |
@@ -0,0 +1 @@ | |||
69add9b3e2b7d27ae5c92de61acb2d23 |
@@ -0,0 +1 @@ | |||
e1b45d0a5c28f15e8b235a7b4b350513c790ef39 |
@@ -0,0 +1,300 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<parent> | |||
<groupId>org.apache</groupId> | |||
<artifactId>apache</artifactId> | |||
<version>3</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>org.apache.axis2</groupId> | |||
<artifactId>axis2</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<packaging>pom</packaging> | |||
<name>Apache Axis 2.0 - Root</name> | |||
<modules> | |||
<module>modules/adb</module> | |||
<module>modules/adb-codegen</module> | |||
<module>modules/addressing</module> | |||
<module>modules/codegen</module> | |||
<module>modules/fastinfoset</module> | |||
<module>modules/integration</module> | |||
<module>modules/java2wsdl</module> | |||
<module>modules/jibx</module> | |||
<module>modules/json</module> | |||
<module>modules/kernel</module> | |||
<module>modules/mex</module> | |||
<module>modules/mex-mar</module> | |||
<module>modules/mtompolicy</module> | |||
<module>modules/parent</module> | |||
<module>modules/ping</module> | |||
<module>modules/samples/version</module> | |||
<module>modules/soapmonitor</module> | |||
<module>modules/spring</module> | |||
<module>modules/tool/axis2-aar-maven-plugin</module> | |||
<module>modules/tool/axis2-ant-plugin</module> | |||
<module>modules/tool/axis2-eclipse-codegen-plugin</module> | |||
<module>modules/tool/axis2-eclipse-service-plugin</module> | |||
<module>modules/tool/axis2-idea-plugin</module> | |||
<module>modules/tool/axis2-java2wsdl-maven-plugin</module> | |||
<module>modules/tool/axis2-mar-maven-plugin</module> | |||
<module>modules/tool/axis2-wsdl2code-maven-plugin</module> | |||
<module>modules/webapp</module> | |||
<module>modules/xmlbeans</module> | |||
<module>modules/samples</module> | |||
<module>modules/scripting</module> | |||
</modules> | |||
<profiles> | |||
<profile> | |||
<activation> | |||
<property> | |||
<name>release</name> | |||
</property> | |||
</activation> | |||
<modules> | |||
<module>modules/distribution</module> | |||
</modules> | |||
</profile> | |||
<profile> | |||
<id>java14</id> | |||
<activation> | |||
<jdk>1.4</jdk> | |||
</activation> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java15</id> | |||
<activation> | |||
<jdk>1.5</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java16</id> | |||
<activation> | |||
<jdk>1.6</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
</profiles> | |||
<ciManagement> | |||
<system>continuum</system> | |||
<url>http://vmbuild.apache.org/continuum</url> | |||
<notifiers> | |||
<notifier> | |||
<configuration> | |||
<ADDRESS>axis2-cvs@ws.apache.org</ADDRESS> | |||
</configuration> | |||
</notifier> | |||
</notifiers> | |||
</ciManagement> | |||
<scm> | |||
<connection> | |||
scm:svn:http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</connection> | |||
<developerConnection> | |||
scm:svn:https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</developerConnection> | |||
<url>http://svn.apache.org/viewvc/webservices/webservices/axis2/trunk/java/</url> | |||
</scm> | |||
<distributionManagement> | |||
<repository> | |||
<id>apache-repo</id> | |||
<name>Maven Central Repository</name> | |||
<url> | |||
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url> | |||
</repository> | |||
<snapshotRepository> | |||
<id>apache-snapshots</id> | |||
<name>Apache Development Repository</name> | |||
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url> | |||
</snapshotRepository> | |||
</distributionManagement> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>build-helper-maven-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar-package</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>attach-artifact</goal> | |||
</goals> | |||
<configuration> | |||
<artifacts> | |||
<artifact> | |||
<file>target/lib/axis2-${pom.version}.jar</file> | |||
<type>jar</type> | |||
</artifact> | |||
</artifacts> | |||
</configuration> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<reporting> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-site-plugin</artifactId> | |||
<configuration> | |||
<xdocDirectory>${basedir}/xdocs</xdocDirectory> | |||
<resourcesDirectory>${basedir}/xdocs/resources</resourcesDirectory> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-javadoc-plugin</artifactId> | |||
<configuration> | |||
<aggregate>true</aggregate> | |||
<links> | |||
<link>http://java.sun.com/j2ee/1.4/docs/api</link> | |||
<link>http://java.sun.com/j2se/1.5.0/docs/api</link> | |||
<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> | |||
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/logging/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/pool/apidocs/</link> | |||
<link>http://www.junit.org/junit/javadoc/</link> | |||
<link>http://logging.apache.org/log4j/docs/api/</link> | |||
<link>http://jakarta.apache.org/regexp/apidocs/</link> | |||
<link>http://jakarta.apache.org/velocity/api/</link> | |||
</links> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</reporting> | |||
</project> |
@@ -0,0 +1 @@ | |||
69add9b3e2b7d27ae5c92de61acb2d23 |
@@ -0,0 +1 @@ | |||
e1b45d0a5c28f15e8b235a7b4b350513c790ef39 |
@@ -0,0 +1,300 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<parent> | |||
<groupId>org.apache</groupId> | |||
<artifactId>apache</artifactId> | |||
<version>3</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>org.apache.axis2</groupId> | |||
<artifactId>axis2</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<packaging>pom</packaging> | |||
<name>Apache Axis 2.0 - Root</name> | |||
<modules> | |||
<module>modules/adb</module> | |||
<module>modules/adb-codegen</module> | |||
<module>modules/addressing</module> | |||
<module>modules/codegen</module> | |||
<module>modules/fastinfoset</module> | |||
<module>modules/integration</module> | |||
<module>modules/java2wsdl</module> | |||
<module>modules/jibx</module> | |||
<module>modules/json</module> | |||
<module>modules/kernel</module> | |||
<module>modules/mex</module> | |||
<module>modules/mex-mar</module> | |||
<module>modules/mtompolicy</module> | |||
<module>modules/parent</module> | |||
<module>modules/ping</module> | |||
<module>modules/samples/version</module> | |||
<module>modules/soapmonitor</module> | |||
<module>modules/spring</module> | |||
<module>modules/tool/axis2-aar-maven-plugin</module> | |||
<module>modules/tool/axis2-ant-plugin</module> | |||
<module>modules/tool/axis2-eclipse-codegen-plugin</module> | |||
<module>modules/tool/axis2-eclipse-service-plugin</module> | |||
<module>modules/tool/axis2-idea-plugin</module> | |||
<module>modules/tool/axis2-java2wsdl-maven-plugin</module> | |||
<module>modules/tool/axis2-mar-maven-plugin</module> | |||
<module>modules/tool/axis2-wsdl2code-maven-plugin</module> | |||
<module>modules/webapp</module> | |||
<module>modules/xmlbeans</module> | |||
<module>modules/samples</module> | |||
<module>modules/scripting</module> | |||
</modules> | |||
<profiles> | |||
<profile> | |||
<activation> | |||
<property> | |||
<name>release</name> | |||
</property> | |||
</activation> | |||
<modules> | |||
<module>modules/distribution</module> | |||
</modules> | |||
</profile> | |||
<profile> | |||
<id>java14</id> | |||
<activation> | |||
<jdk>1.4</jdk> | |||
</activation> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java15</id> | |||
<activation> | |||
<jdk>1.5</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java16</id> | |||
<activation> | |||
<jdk>1.6</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
</profiles> | |||
<ciManagement> | |||
<system>continuum</system> | |||
<url>http://vmbuild.apache.org/continuum</url> | |||
<notifiers> | |||
<notifier> | |||
<configuration> | |||
<ADDRESS>axis2-cvs@ws.apache.org</ADDRESS> | |||
</configuration> | |||
</notifier> | |||
</notifiers> | |||
</ciManagement> | |||
<scm> | |||
<connection> | |||
scm:svn:http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</connection> | |||
<developerConnection> | |||
scm:svn:https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</developerConnection> | |||
<url>http://svn.apache.org/viewvc/webservices/webservices/axis2/trunk/java/</url> | |||
</scm> | |||
<distributionManagement> | |||
<repository> | |||
<id>apache-repo</id> | |||
<name>Maven Central Repository</name> | |||
<url> | |||
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url> | |||
</repository> | |||
<snapshotRepository> | |||
<id>apache-snapshots</id> | |||
<name>Apache Development Repository</name> | |||
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url> | |||
</snapshotRepository> | |||
</distributionManagement> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>build-helper-maven-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar-package</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>attach-artifact</goal> | |||
</goals> | |||
<configuration> | |||
<artifacts> | |||
<artifact> | |||
<file>target/lib/axis2-${pom.version}.jar</file> | |||
<type>jar</type> | |||
</artifact> | |||
</artifacts> | |||
</configuration> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<reporting> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-site-plugin</artifactId> | |||
<configuration> | |||
<xdocDirectory>${basedir}/xdocs</xdocDirectory> | |||
<resourcesDirectory>${basedir}/xdocs/resources</resourcesDirectory> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-javadoc-plugin</artifactId> | |||
<configuration> | |||
<aggregate>true</aggregate> | |||
<links> | |||
<link>http://java.sun.com/j2ee/1.4/docs/api</link> | |||
<link>http://java.sun.com/j2se/1.5.0/docs/api</link> | |||
<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> | |||
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/logging/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/pool/apidocs/</link> | |||
<link>http://www.junit.org/junit/javadoc/</link> | |||
<link>http://logging.apache.org/log4j/docs/api/</link> | |||
<link>http://jakarta.apache.org/regexp/apidocs/</link> | |||
<link>http://jakarta.apache.org/velocity/api/</link> | |||
</links> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</reporting> | |||
</project> |
@@ -0,0 +1 @@ | |||
69add9b3e2b7d27ae5c92de61acb2d23 |
@@ -0,0 +1 @@ | |||
e1b45d0a5c28f15e8b235a7b4b350513c790ef39 |
@@ -0,0 +1,300 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<parent> | |||
<groupId>org.apache</groupId> | |||
<artifactId>apache</artifactId> | |||
<version>3</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>org.apache.axis2</groupId> | |||
<artifactId>axis2</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<packaging>pom</packaging> | |||
<name>Apache Axis 2.0 - Root</name> | |||
<modules> | |||
<module>modules/adb</module> | |||
<module>modules/adb-codegen</module> | |||
<module>modules/addressing</module> | |||
<module>modules/codegen</module> | |||
<module>modules/fastinfoset</module> | |||
<module>modules/integration</module> | |||
<module>modules/java2wsdl</module> | |||
<module>modules/jibx</module> | |||
<module>modules/json</module> | |||
<module>modules/kernel</module> | |||
<module>modules/mex</module> | |||
<module>modules/mex-mar</module> | |||
<module>modules/mtompolicy</module> | |||
<module>modules/parent</module> | |||
<module>modules/ping</module> | |||
<module>modules/samples/version</module> | |||
<module>modules/soapmonitor</module> | |||
<module>modules/spring</module> | |||
<module>modules/tool/axis2-aar-maven-plugin</module> | |||
<module>modules/tool/axis2-ant-plugin</module> | |||
<module>modules/tool/axis2-eclipse-codegen-plugin</module> | |||
<module>modules/tool/axis2-eclipse-service-plugin</module> | |||
<module>modules/tool/axis2-idea-plugin</module> | |||
<module>modules/tool/axis2-java2wsdl-maven-plugin</module> | |||
<module>modules/tool/axis2-mar-maven-plugin</module> | |||
<module>modules/tool/axis2-wsdl2code-maven-plugin</module> | |||
<module>modules/webapp</module> | |||
<module>modules/xmlbeans</module> | |||
<module>modules/samples</module> | |||
<module>modules/scripting</module> | |||
</modules> | |||
<profiles> | |||
<profile> | |||
<activation> | |||
<property> | |||
<name>release</name> | |||
</property> | |||
</activation> | |||
<modules> | |||
<module>modules/distribution</module> | |||
</modules> | |||
</profile> | |||
<profile> | |||
<id>java14</id> | |||
<activation> | |||
<jdk>1.4</jdk> | |||
</activation> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java15</id> | |||
<activation> | |||
<jdk>1.5</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java16</id> | |||
<activation> | |||
<jdk>1.6</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
</profiles> | |||
<ciManagement> | |||
<system>continuum</system> | |||
<url>http://vmbuild.apache.org/continuum</url> | |||
<notifiers> | |||
<notifier> | |||
<configuration> | |||
<ADDRESS>axis2-cvs@ws.apache.org</ADDRESS> | |||
</configuration> | |||
</notifier> | |||
</notifiers> | |||
</ciManagement> | |||
<scm> | |||
<connection> | |||
scm:svn:http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</connection> | |||
<developerConnection> | |||
scm:svn:https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</developerConnection> | |||
<url>http://svn.apache.org/viewvc/webservices/webservices/axis2/trunk/java/</url> | |||
</scm> | |||
<distributionManagement> | |||
<repository> | |||
<id>apache-repo</id> | |||
<name>Maven Central Repository</name> | |||
<url> | |||
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url> | |||
</repository> | |||
<snapshotRepository> | |||
<id>apache-snapshots</id> | |||
<name>Apache Development Repository</name> | |||
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url> | |||
</snapshotRepository> | |||
</distributionManagement> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>build-helper-maven-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar-package</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>attach-artifact</goal> | |||
</goals> | |||
<configuration> | |||
<artifacts> | |||
<artifact> | |||
<file>target/lib/axis2-${pom.version}.jar</file> | |||
<type>jar</type> | |||
</artifact> | |||
</artifacts> | |||
</configuration> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<reporting> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-site-plugin</artifactId> | |||
<configuration> | |||
<xdocDirectory>${basedir}/xdocs</xdocDirectory> | |||
<resourcesDirectory>${basedir}/xdocs/resources</resourcesDirectory> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-javadoc-plugin</artifactId> | |||
<configuration> | |||
<aggregate>true</aggregate> | |||
<links> | |||
<link>http://java.sun.com/j2ee/1.4/docs/api</link> | |||
<link>http://java.sun.com/j2se/1.5.0/docs/api</link> | |||
<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> | |||
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/logging/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/pool/apidocs/</link> | |||
<link>http://www.junit.org/junit/javadoc/</link> | |||
<link>http://logging.apache.org/log4j/docs/api/</link> | |||
<link>http://jakarta.apache.org/regexp/apidocs/</link> | |||
<link>http://jakarta.apache.org/velocity/api/</link> | |||
</links> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</reporting> | |||
</project> |
@@ -0,0 +1 @@ | |||
69add9b3e2b7d27ae5c92de61acb2d23 |
@@ -0,0 +1 @@ | |||
e1b45d0a5c28f15e8b235a7b4b350513c790ef39 |
@@ -0,0 +1,300 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<parent> | |||
<groupId>org.apache</groupId> | |||
<artifactId>apache</artifactId> | |||
<version>3</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>org.apache.axis2</groupId> | |||
<artifactId>axis2</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<packaging>pom</packaging> | |||
<name>Apache Axis 2.0 - Root</name> | |||
<modules> | |||
<module>modules/adb</module> | |||
<module>modules/adb-codegen</module> | |||
<module>modules/addressing</module> | |||
<module>modules/codegen</module> | |||
<module>modules/fastinfoset</module> | |||
<module>modules/integration</module> | |||
<module>modules/java2wsdl</module> | |||
<module>modules/jibx</module> | |||
<module>modules/json</module> | |||
<module>modules/kernel</module> | |||
<module>modules/mex</module> | |||
<module>modules/mex-mar</module> | |||
<module>modules/mtompolicy</module> | |||
<module>modules/parent</module> | |||
<module>modules/ping</module> | |||
<module>modules/samples/version</module> | |||
<module>modules/soapmonitor</module> | |||
<module>modules/spring</module> | |||
<module>modules/tool/axis2-aar-maven-plugin</module> | |||
<module>modules/tool/axis2-ant-plugin</module> | |||
<module>modules/tool/axis2-eclipse-codegen-plugin</module> | |||
<module>modules/tool/axis2-eclipse-service-plugin</module> | |||
<module>modules/tool/axis2-idea-plugin</module> | |||
<module>modules/tool/axis2-java2wsdl-maven-plugin</module> | |||
<module>modules/tool/axis2-mar-maven-plugin</module> | |||
<module>modules/tool/axis2-wsdl2code-maven-plugin</module> | |||
<module>modules/webapp</module> | |||
<module>modules/xmlbeans</module> | |||
<module>modules/samples</module> | |||
<module>modules/scripting</module> | |||
</modules> | |||
<profiles> | |||
<profile> | |||
<activation> | |||
<property> | |||
<name>release</name> | |||
</property> | |||
</activation> | |||
<modules> | |||
<module>modules/distribution</module> | |||
</modules> | |||
</profile> | |||
<profile> | |||
<id>java14</id> | |||
<activation> | |||
<jdk>1.4</jdk> | |||
</activation> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java15</id> | |||
<activation> | |||
<jdk>1.5</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java16</id> | |||
<activation> | |||
<jdk>1.6</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
</profiles> | |||
<ciManagement> | |||
<system>continuum</system> | |||
<url>http://vmbuild.apache.org/continuum</url> | |||
<notifiers> | |||
<notifier> | |||
<configuration> | |||
<ADDRESS>axis2-cvs@ws.apache.org</ADDRESS> | |||
</configuration> | |||
</notifier> | |||
</notifiers> | |||
</ciManagement> | |||
<scm> | |||
<connection> | |||
scm:svn:http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</connection> | |||
<developerConnection> | |||
scm:svn:https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</developerConnection> | |||
<url>http://svn.apache.org/viewvc/webservices/webservices/axis2/trunk/java/</url> | |||
</scm> | |||
<distributionManagement> | |||
<repository> | |||
<id>apache-repo</id> | |||
<name>Maven Central Repository</name> | |||
<url> | |||
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url> | |||
</repository> | |||
<snapshotRepository> | |||
<id>apache-snapshots</id> | |||
<name>Apache Development Repository</name> | |||
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url> | |||
</snapshotRepository> | |||
</distributionManagement> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>build-helper-maven-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar-package</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>attach-artifact</goal> | |||
</goals> | |||
<configuration> | |||
<artifacts> | |||
<artifact> | |||
<file>target/lib/axis2-${pom.version}.jar</file> | |||
<type>jar</type> | |||
</artifact> | |||
</artifacts> | |||
</configuration> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<reporting> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-site-plugin</artifactId> | |||
<configuration> | |||
<xdocDirectory>${basedir}/xdocs</xdocDirectory> | |||
<resourcesDirectory>${basedir}/xdocs/resources</resourcesDirectory> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-javadoc-plugin</artifactId> | |||
<configuration> | |||
<aggregate>true</aggregate> | |||
<links> | |||
<link>http://java.sun.com/j2ee/1.4/docs/api</link> | |||
<link>http://java.sun.com/j2se/1.5.0/docs/api</link> | |||
<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> | |||
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/logging/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/pool/apidocs/</link> | |||
<link>http://www.junit.org/junit/javadoc/</link> | |||
<link>http://logging.apache.org/log4j/docs/api/</link> | |||
<link>http://jakarta.apache.org/regexp/apidocs/</link> | |||
<link>http://jakarta.apache.org/velocity/api/</link> | |||
</links> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</reporting> | |||
</project> |
@@ -0,0 +1 @@ | |||
69add9b3e2b7d27ae5c92de61acb2d23 |
@@ -0,0 +1 @@ | |||
e1b45d0a5c28f15e8b235a7b4b350513c790ef39 |
@@ -0,0 +1,300 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<parent> | |||
<groupId>org.apache</groupId> | |||
<artifactId>apache</artifactId> | |||
<version>3</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>org.apache.axis2</groupId> | |||
<artifactId>axis2</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<packaging>pom</packaging> | |||
<name>Apache Axis 2.0 - Root</name> | |||
<modules> | |||
<module>modules/adb</module> | |||
<module>modules/adb-codegen</module> | |||
<module>modules/addressing</module> | |||
<module>modules/codegen</module> | |||
<module>modules/fastinfoset</module> | |||
<module>modules/integration</module> | |||
<module>modules/java2wsdl</module> | |||
<module>modules/jibx</module> | |||
<module>modules/json</module> | |||
<module>modules/kernel</module> | |||
<module>modules/mex</module> | |||
<module>modules/mex-mar</module> | |||
<module>modules/mtompolicy</module> | |||
<module>modules/parent</module> | |||
<module>modules/ping</module> | |||
<module>modules/samples/version</module> | |||
<module>modules/soapmonitor</module> | |||
<module>modules/spring</module> | |||
<module>modules/tool/axis2-aar-maven-plugin</module> | |||
<module>modules/tool/axis2-ant-plugin</module> | |||
<module>modules/tool/axis2-eclipse-codegen-plugin</module> | |||
<module>modules/tool/axis2-eclipse-service-plugin</module> | |||
<module>modules/tool/axis2-idea-plugin</module> | |||
<module>modules/tool/axis2-java2wsdl-maven-plugin</module> | |||
<module>modules/tool/axis2-mar-maven-plugin</module> | |||
<module>modules/tool/axis2-wsdl2code-maven-plugin</module> | |||
<module>modules/webapp</module> | |||
<module>modules/xmlbeans</module> | |||
<module>modules/samples</module> | |||
<module>modules/scripting</module> | |||
</modules> | |||
<profiles> | |||
<profile> | |||
<activation> | |||
<property> | |||
<name>release</name> | |||
</property> | |||
</activation> | |||
<modules> | |||
<module>modules/distribution</module> | |||
</modules> | |||
</profile> | |||
<profile> | |||
<id>java14</id> | |||
<activation> | |||
<jdk>1.4</jdk> | |||
</activation> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java15</id> | |||
<activation> | |||
<jdk>1.5</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java16</id> | |||
<activation> | |||
<jdk>1.6</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
</profiles> | |||
<ciManagement> | |||
<system>continuum</system> | |||
<url>http://vmbuild.apache.org/continuum</url> | |||
<notifiers> | |||
<notifier> | |||
<configuration> | |||
<ADDRESS>axis2-cvs@ws.apache.org</ADDRESS> | |||
</configuration> | |||
</notifier> | |||
</notifiers> | |||
</ciManagement> | |||
<scm> | |||
<connection> | |||
scm:svn:http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</connection> | |||
<developerConnection> | |||
scm:svn:https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</developerConnection> | |||
<url>http://svn.apache.org/viewvc/webservices/webservices/axis2/trunk/java/</url> | |||
</scm> | |||
<distributionManagement> | |||
<repository> | |||
<id>apache-repo</id> | |||
<name>Maven Central Repository</name> | |||
<url> | |||
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url> | |||
</repository> | |||
<snapshotRepository> | |||
<id>apache-snapshots</id> | |||
<name>Apache Development Repository</name> | |||
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url> | |||
</snapshotRepository> | |||
</distributionManagement> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>build-helper-maven-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar-package</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>attach-artifact</goal> | |||
</goals> | |||
<configuration> | |||
<artifacts> | |||
<artifact> | |||
<file>target/lib/axis2-${pom.version}.jar</file> | |||
<type>jar</type> | |||
</artifact> | |||
</artifacts> | |||
</configuration> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<reporting> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-site-plugin</artifactId> | |||
<configuration> | |||
<xdocDirectory>${basedir}/xdocs</xdocDirectory> | |||
<resourcesDirectory>${basedir}/xdocs/resources</resourcesDirectory> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-javadoc-plugin</artifactId> | |||
<configuration> | |||
<aggregate>true</aggregate> | |||
<links> | |||
<link>http://java.sun.com/j2ee/1.4/docs/api</link> | |||
<link>http://java.sun.com/j2se/1.5.0/docs/api</link> | |||
<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> | |||
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/logging/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/pool/apidocs/</link> | |||
<link>http://www.junit.org/junit/javadoc/</link> | |||
<link>http://logging.apache.org/log4j/docs/api/</link> | |||
<link>http://jakarta.apache.org/regexp/apidocs/</link> | |||
<link>http://jakarta.apache.org/velocity/api/</link> | |||
</links> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</reporting> | |||
</project> |
@@ -0,0 +1 @@ | |||
69add9b3e2b7d27ae5c92de61acb2d23 |
@@ -0,0 +1 @@ | |||
e1b45d0a5c28f15e8b235a7b4b350513c790ef39 |
@@ -0,0 +1,300 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<parent> | |||
<groupId>org.apache</groupId> | |||
<artifactId>apache</artifactId> | |||
<version>3</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>org.apache.axis2</groupId> | |||
<artifactId>axis2</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<packaging>pom</packaging> | |||
<name>Apache Axis 2.0 - Root</name> | |||
<modules> | |||
<module>modules/adb</module> | |||
<module>modules/adb-codegen</module> | |||
<module>modules/addressing</module> | |||
<module>modules/codegen</module> | |||
<module>modules/fastinfoset</module> | |||
<module>modules/integration</module> | |||
<module>modules/java2wsdl</module> | |||
<module>modules/jibx</module> | |||
<module>modules/json</module> | |||
<module>modules/kernel</module> | |||
<module>modules/mex</module> | |||
<module>modules/mex-mar</module> | |||
<module>modules/mtompolicy</module> | |||
<module>modules/parent</module> | |||
<module>modules/ping</module> | |||
<module>modules/samples/version</module> | |||
<module>modules/soapmonitor</module> | |||
<module>modules/spring</module> | |||
<module>modules/tool/axis2-aar-maven-plugin</module> | |||
<module>modules/tool/axis2-ant-plugin</module> | |||
<module>modules/tool/axis2-eclipse-codegen-plugin</module> | |||
<module>modules/tool/axis2-eclipse-service-plugin</module> | |||
<module>modules/tool/axis2-idea-plugin</module> | |||
<module>modules/tool/axis2-java2wsdl-maven-plugin</module> | |||
<module>modules/tool/axis2-mar-maven-plugin</module> | |||
<module>modules/tool/axis2-wsdl2code-maven-plugin</module> | |||
<module>modules/webapp</module> | |||
<module>modules/xmlbeans</module> | |||
<module>modules/samples</module> | |||
<module>modules/scripting</module> | |||
</modules> | |||
<profiles> | |||
<profile> | |||
<activation> | |||
<property> | |||
<name>release</name> | |||
</property> | |||
</activation> | |||
<modules> | |||
<module>modules/distribution</module> | |||
</modules> | |||
</profile> | |||
<profile> | |||
<id>java14</id> | |||
<activation> | |||
<jdk>1.4</jdk> | |||
</activation> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java15</id> | |||
<activation> | |||
<jdk>1.5</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java16</id> | |||
<activation> | |||
<jdk>1.6</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
</profiles> | |||
<ciManagement> | |||
<system>continuum</system> | |||
<url>http://vmbuild.apache.org/continuum</url> | |||
<notifiers> | |||
<notifier> | |||
<configuration> | |||
<ADDRESS>axis2-cvs@ws.apache.org</ADDRESS> | |||
</configuration> | |||
</notifier> | |||
</notifiers> | |||
</ciManagement> | |||
<scm> | |||
<connection> | |||
scm:svn:http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</connection> | |||
<developerConnection> | |||
scm:svn:https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</developerConnection> | |||
<url>http://svn.apache.org/viewvc/webservices/webservices/axis2/trunk/java/</url> | |||
</scm> | |||
<distributionManagement> | |||
<repository> | |||
<id>apache-repo</id> | |||
<name>Maven Central Repository</name> | |||
<url> | |||
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url> | |||
</repository> | |||
<snapshotRepository> | |||
<id>apache-snapshots</id> | |||
<name>Apache Development Repository</name> | |||
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url> | |||
</snapshotRepository> | |||
</distributionManagement> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>build-helper-maven-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar-package</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>attach-artifact</goal> | |||
</goals> | |||
<configuration> | |||
<artifacts> | |||
<artifact> | |||
<file>target/lib/axis2-${pom.version}.jar</file> | |||
<type>jar</type> | |||
</artifact> | |||
</artifacts> | |||
</configuration> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<reporting> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-site-plugin</artifactId> | |||
<configuration> | |||
<xdocDirectory>${basedir}/xdocs</xdocDirectory> | |||
<resourcesDirectory>${basedir}/xdocs/resources</resourcesDirectory> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-javadoc-plugin</artifactId> | |||
<configuration> | |||
<aggregate>true</aggregate> | |||
<links> | |||
<link>http://java.sun.com/j2ee/1.4/docs/api</link> | |||
<link>http://java.sun.com/j2se/1.5.0/docs/api</link> | |||
<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> | |||
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/logging/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/pool/apidocs/</link> | |||
<link>http://www.junit.org/junit/javadoc/</link> | |||
<link>http://logging.apache.org/log4j/docs/api/</link> | |||
<link>http://jakarta.apache.org/regexp/apidocs/</link> | |||
<link>http://jakarta.apache.org/velocity/api/</link> | |||
</links> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</reporting> | |||
</project> |
@@ -0,0 +1 @@ | |||
69add9b3e2b7d27ae5c92de61acb2d23 |
@@ -0,0 +1 @@ | |||
e1b45d0a5c28f15e8b235a7b4b350513c790ef39 |
@@ -0,0 +1,300 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<parent> | |||
<groupId>org.apache</groupId> | |||
<artifactId>apache</artifactId> | |||
<version>3</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>org.apache.axis2</groupId> | |||
<artifactId>axis2</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<packaging>pom</packaging> | |||
<name>Apache Axis 2.0 - Root</name> | |||
<modules> | |||
<module>modules/adb</module> | |||
<module>modules/adb-codegen</module> | |||
<module>modules/addressing</module> | |||
<module>modules/codegen</module> | |||
<module>modules/fastinfoset</module> | |||
<module>modules/integration</module> | |||
<module>modules/java2wsdl</module> | |||
<module>modules/jibx</module> | |||
<module>modules/json</module> | |||
<module>modules/kernel</module> | |||
<module>modules/mex</module> | |||
<module>modules/mex-mar</module> | |||
<module>modules/mtompolicy</module> | |||
<module>modules/parent</module> | |||
<module>modules/ping</module> | |||
<module>modules/samples/version</module> | |||
<module>modules/soapmonitor</module> | |||
<module>modules/spring</module> | |||
<module>modules/tool/axis2-aar-maven-plugin</module> | |||
<module>modules/tool/axis2-ant-plugin</module> | |||
<module>modules/tool/axis2-eclipse-codegen-plugin</module> | |||
<module>modules/tool/axis2-eclipse-service-plugin</module> | |||
<module>modules/tool/axis2-idea-plugin</module> | |||
<module>modules/tool/axis2-java2wsdl-maven-plugin</module> | |||
<module>modules/tool/axis2-mar-maven-plugin</module> | |||
<module>modules/tool/axis2-wsdl2code-maven-plugin</module> | |||
<module>modules/webapp</module> | |||
<module>modules/xmlbeans</module> | |||
<module>modules/samples</module> | |||
<module>modules/scripting</module> | |||
</modules> | |||
<profiles> | |||
<profile> | |||
<activation> | |||
<property> | |||
<name>release</name> | |||
</property> | |||
</activation> | |||
<modules> | |||
<module>modules/distribution</module> | |||
</modules> | |||
</profile> | |||
<profile> | |||
<id>java14</id> | |||
<activation> | |||
<jdk>1.4</jdk> | |||
</activation> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java15</id> | |||
<activation> | |||
<jdk>1.5</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java16</id> | |||
<activation> | |||
<jdk>1.6</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
</profiles> | |||
<ciManagement> | |||
<system>continuum</system> | |||
<url>http://vmbuild.apache.org/continuum</url> | |||
<notifiers> | |||
<notifier> | |||
<configuration> | |||
<ADDRESS>axis2-cvs@ws.apache.org</ADDRESS> | |||
</configuration> | |||
</notifier> | |||
</notifiers> | |||
</ciManagement> | |||
<scm> | |||
<connection> | |||
scm:svn:http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</connection> | |||
<developerConnection> | |||
scm:svn:https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</developerConnection> | |||
<url>http://svn.apache.org/viewvc/webservices/webservices/axis2/trunk/java/</url> | |||
</scm> | |||
<distributionManagement> | |||
<repository> | |||
<id>apache-repo</id> | |||
<name>Maven Central Repository</name> | |||
<url> | |||
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url> | |||
</repository> | |||
<snapshotRepository> | |||
<id>apache-snapshots</id> | |||
<name>Apache Development Repository</name> | |||
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url> | |||
</snapshotRepository> | |||
</distributionManagement> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>build-helper-maven-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar-package</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>attach-artifact</goal> | |||
</goals> | |||
<configuration> | |||
<artifacts> | |||
<artifact> | |||
<file>target/lib/axis2-${pom.version}.jar</file> | |||
<type>jar</type> | |||
</artifact> | |||
</artifacts> | |||
</configuration> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<reporting> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-site-plugin</artifactId> | |||
<configuration> | |||
<xdocDirectory>${basedir}/xdocs</xdocDirectory> | |||
<resourcesDirectory>${basedir}/xdocs/resources</resourcesDirectory> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-javadoc-plugin</artifactId> | |||
<configuration> | |||
<aggregate>true</aggregate> | |||
<links> | |||
<link>http://java.sun.com/j2ee/1.4/docs/api</link> | |||
<link>http://java.sun.com/j2se/1.5.0/docs/api</link> | |||
<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> | |||
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/logging/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/pool/apidocs/</link> | |||
<link>http://www.junit.org/junit/javadoc/</link> | |||
<link>http://logging.apache.org/log4j/docs/api/</link> | |||
<link>http://jakarta.apache.org/regexp/apidocs/</link> | |||
<link>http://jakarta.apache.org/velocity/api/</link> | |||
</links> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</reporting> | |||
</project> |
@@ -0,0 +1 @@ | |||
69add9b3e2b7d27ae5c92de61acb2d23 |
@@ -0,0 +1 @@ | |||
e1b45d0a5c28f15e8b235a7b4b350513c790ef39 |
@@ -0,0 +1,300 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<!-- | |||
~ Licensed to the Apache Software Foundation (ASF) under one | |||
~ or more contributor license agreements. See the NOTICE file | |||
~ distributed with this work for additional information | |||
~ regarding copyright ownership. The ASF licenses this file | |||
~ to you 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 | |||
~ | |||
~ 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. | |||
--> | |||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||
<parent> | |||
<groupId>org.apache</groupId> | |||
<artifactId>apache</artifactId> | |||
<version>3</version> | |||
</parent> | |||
<modelVersion>4.0.0</modelVersion> | |||
<groupId>org.apache.axis2</groupId> | |||
<artifactId>axis2</artifactId> | |||
<version>1.3-SNAPSHOT</version> | |||
<packaging>pom</packaging> | |||
<name>Apache Axis 2.0 - Root</name> | |||
<modules> | |||
<module>modules/adb</module> | |||
<module>modules/adb-codegen</module> | |||
<module>modules/addressing</module> | |||
<module>modules/codegen</module> | |||
<module>modules/fastinfoset</module> | |||
<module>modules/integration</module> | |||
<module>modules/java2wsdl</module> | |||
<module>modules/jibx</module> | |||
<module>modules/json</module> | |||
<module>modules/kernel</module> | |||
<module>modules/mex</module> | |||
<module>modules/mex-mar</module> | |||
<module>modules/mtompolicy</module> | |||
<module>modules/parent</module> | |||
<module>modules/ping</module> | |||
<module>modules/samples/version</module> | |||
<module>modules/soapmonitor</module> | |||
<module>modules/spring</module> | |||
<module>modules/tool/axis2-aar-maven-plugin</module> | |||
<module>modules/tool/axis2-ant-plugin</module> | |||
<module>modules/tool/axis2-eclipse-codegen-plugin</module> | |||
<module>modules/tool/axis2-eclipse-service-plugin</module> | |||
<module>modules/tool/axis2-idea-plugin</module> | |||
<module>modules/tool/axis2-java2wsdl-maven-plugin</module> | |||
<module>modules/tool/axis2-mar-maven-plugin</module> | |||
<module>modules/tool/axis2-wsdl2code-maven-plugin</module> | |||
<module>modules/webapp</module> | |||
<module>modules/xmlbeans</module> | |||
<module>modules/samples</module> | |||
<module>modules/scripting</module> | |||
</modules> | |||
<profiles> | |||
<profile> | |||
<activation> | |||
<property> | |||
<name>release</name> | |||
</property> | |||
</activation> | |||
<modules> | |||
<module>modules/distribution</module> | |||
</modules> | |||
</profile> | |||
<profile> | |||
<id>java14</id> | |||
<activation> | |||
<jdk>1.4</jdk> | |||
</activation> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java15</id> | |||
<activation> | |||
<jdk>1.5</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
<profile> | |||
<id>java16</id> | |||
<activation> | |||
<jdk>1.6</jdk> | |||
</activation> | |||
<modules> | |||
<module>modules/jaxbri</module> | |||
<module>modules/metadata</module> | |||
<module>modules/saaj-api</module> | |||
<module>modules/saaj</module> | |||
<module>modules/jws-api</module> | |||
<module>modules/jaxws-api</module> | |||
<module>modules/jaxws</module> | |||
<module>modules/clustering</module> | |||
</modules> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-antrun-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar</id> | |||
<phase>package</phase> | |||
<configuration> | |||
<tasks> | |||
<mkdir dir="target/lib"/> | |||
<jar destfile="target/lib/axis2-${pom.version}.jar"> | |||
<fileset dir="modules/java2wsdl/target/classes"/> | |||
<fileset dir="modules/kernel/target/classes"/> | |||
<fileset dir="modules/addressing/target/classes"/> | |||
<fileset dir="modules/codegen/target/classes"/> | |||
<fileset dir="modules/adb/target/classes"/> | |||
<fileset dir="modules/adb-codegen/target/classes"/> | |||
<fileset dir="modules/xmlbeans/target/classes"/> | |||
<fileset dir="modules/clustering/target/classes"/> | |||
</jar> | |||
</tasks> | |||
</configuration> | |||
<goals> | |||
<goal>run</goal> | |||
</goals> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
</profile> | |||
</profiles> | |||
<ciManagement> | |||
<system>continuum</system> | |||
<url>http://vmbuild.apache.org/continuum</url> | |||
<notifiers> | |||
<notifier> | |||
<configuration> | |||
<ADDRESS>axis2-cvs@ws.apache.org</ADDRESS> | |||
</configuration> | |||
</notifier> | |||
</notifiers> | |||
</ciManagement> | |||
<scm> | |||
<connection> | |||
scm:svn:http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</connection> | |||
<developerConnection> | |||
scm:svn:https://svn.apache.org/repos/asf/webservices/axis2/trunk/java/ | |||
</developerConnection> | |||
<url>http://svn.apache.org/viewvc/webservices/webservices/axis2/trunk/java/</url> | |||
</scm> | |||
<distributionManagement> | |||
<repository> | |||
<id>apache-repo</id> | |||
<name>Maven Central Repository</name> | |||
<url> | |||
scpexe://people.apache.org//www/people.apache.org/repo/m2-ibiblio-rsync-repository</url> | |||
</repository> | |||
<snapshotRepository> | |||
<id>apache-snapshots</id> | |||
<name>Apache Development Repository</name> | |||
<url>scpexe://people.apache.org//www/people.apache.org/repo/m2-snapshot-repository</url> | |||
</snapshotRepository> | |||
</distributionManagement> | |||
<build> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.codehaus.mojo</groupId> | |||
<artifactId>build-helper-maven-plugin</artifactId> | |||
<executions> | |||
<execution> | |||
<id>axis2-jar-package</id> | |||
<phase>package</phase> | |||
<goals> | |||
<goal>attach-artifact</goal> | |||
</goals> | |||
<configuration> | |||
<artifacts> | |||
<artifact> | |||
<file>target/lib/axis2-${pom.version}.jar</file> | |||
<type>jar</type> | |||
</artifact> | |||
</artifacts> | |||
</configuration> | |||
</execution> | |||
</executions> | |||
</plugin> | |||
</plugins> | |||
</build> | |||
<reporting> | |||
<plugins> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-site-plugin</artifactId> | |||
<configuration> | |||
<xdocDirectory>${basedir}/xdocs</xdocDirectory> | |||
<resourcesDirectory>${basedir}/xdocs/resources</resourcesDirectory> | |||
</configuration> | |||
</plugin> | |||
<plugin> | |||
<groupId>org.apache.maven.plugins</groupId> | |||
<artifactId>maven-javadoc-plugin</artifactId> | |||
<configuration> | |||
<aggregate>true</aggregate> | |||
<links> | |||
<link>http://java.sun.com/j2ee/1.4/docs/api</link> | |||
<link>http://java.sun.com/j2se/1.5.0/docs/api</link> | |||
<link>http://jakarta.apache.org/commons/collections/apidocs-COLLECTIONS_3_0/</link> | |||
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/fileupload/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/httpclient/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/logging/apidocs/</link> | |||
<link>http://jakarta.apache.org/commons/pool/apidocs/</link> | |||
<link>http://www.junit.org/junit/javadoc/</link> | |||
<link>http://logging.apache.org/log4j/docs/api/</link> | |||
<link>http://jakarta.apache.org/regexp/apidocs/</link> | |||
<link>http://jakarta.apache.org/velocity/api/</link> | |||
</links> | |||
</configuration> | |||
</plugin> | |||
</plugins> | |||
</reporting> | |||
</project> |
@@ -0,0 +1 @@ | |||
69add9b3e2b7d27ae5c92de61acb2d23 |
@@ -0,0 +1 @@ | |||
e1b45d0a5c28f15e8b235a7b4b350513c790ef39 |