diff options
Diffstat (limited to 'archiva-base/archiva-consumers')
-rw-r--r-- | archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumer.java b/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumer.java index cc4558d9d..0b13f8b1a 100644 --- a/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumer.java +++ b/archiva-base/archiva-consumers/archiva-database-consumers/src/main/java/org/apache/maven/archiva/consumers/database/ProjectModelToDatabaseConsumer.java @@ -38,6 +38,7 @@ import org.apache.maven.archiva.repository.project.ProjectModelReader; import java.io.File; import java.util.ArrayList; +import java.util.Date; import java.util.List; /** @@ -130,6 +131,9 @@ public class ProjectModelToDatabaseConsumer try { ArchivaProjectModel model = project400Reader.read( artifactFile ); + + model.setOrigin( "filesystem" ); + dao.getProjectModelDAO().saveProjectModel( model ); } catch ( ProjectModelException e ) |