diff options
author | Joakim Erdfelt <joakime@apache.org> | 2007-05-18 22:35:12 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2007-05-18 22:35:12 +0000 |
commit | 3dce54c7fbf91ab1484cf07c8ada97affd54a13d (patch) | |
tree | 07d4f992dbbbf7695cf56c7753f6751d4b8c3064 /archiva-base/archiva-consumers | |
parent | c870196fffc9bb7f12a5fff13f63166112af69c7 (diff) | |
download | archiva-3dce54c7fbf91ab1484cf07c8ada97affd54a13d.tar.gz archiva-3dce54c7fbf91ab1484cf07c8ada97affd54a13d.zip |
[MRM-346]: Show Artifact results in error 500.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@539619 13f79535-47bb-0310-9956-ffa450edef68
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 ) |