[
http://jira.codehaus.org/browse/MRM-951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter updated MRM-951:
-----------------------------
Fix Version/s: (was: 1.2-M2)
1.3
> "Unable to find project model" although everything seems to be perfectly fine
> -----------------------------------------------------------------------------
>
> Key: MRM-951
> URL: http://jira.codehaus.org/browse/MRM-951
> Project: Archiva
> Issue Type: Bug
> Components: browser
> Affects Versions: 1.1.2
> Environment: Linux, Standalone-Version, Maven2-Repository
> Reporter: David Bilge
> Fix For: 1.3
>
> Attachments: MRM-951.patch
>
>
> We had a problem with our m2-repository (which Archiva uses as its
> "internal"-repository) in such a way that we could not install artifacts from
> one of our projects into the repository. We would get the error "Error
> installing artifact's metadata: Error installing metadata: Error updating
> group repository metadata input contained no data" - obviously something
> messed up with the maven-metadata.xml or maven-metadata-local.xml. So I
> deleted this directory from the repository and built the project again -
> unfortunately (now as before) whenever I try to view the version-properties
> via "browse", I get the following error:
> "Unable to find project model for [our.project.version]."
> Looking into the log-file I find:
> 2008-09-16 13:48:34,703 [btpool0-4] ERROR
> org.apache.maven.archiva.consumers.database.ProjectModelToDatabaseConsumer -
> Unable to process model
> /root/.m2/repository/our.company.project/version/artifact-version.pom due to
> : javax.jdo.JDOUserException : Field
> org.apache.maven.archiva.model.Exclusion.artifactId
> is null, but is mandatory as its described in the jdo metadata
> javax.jdo.JDOUserException: Field
> org.apache.maven.archiva.model.Exclusion.artifactId is null, but is mandatory
> as its described in the jdo metadata
> at
> org.jpox.store.rdbms.fieldmanager.ParameterSetter.storeStringField(ParameterSetter.java:120)
> at
> org.jpox.state.StateManagerImpl.providedStringField(StateManagerImpl.java:2757)
> at
> org.apache.maven.archiva.model.Exclusion.jdoProvideField(Exclusion.java)
> at
> org.apache.maven.archiva.model.Exclusion.jdoProvideFields(Exclusion.java)
> at
> org.jpox.state.StateManagerImpl.provideFields(StateManagerImpl.java:3115)
> at
> org.jpox.store.rdbms.request.InsertRequest.execute(InsertRequest.java:252)
> So I checked the pom which does not have an artifactId according to Archiva.
> There I find:
> <?xml version="1.0" encoding="UTF-8"?>
> <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>
> ...
> </parent>
> <artifactId>ARTIFACT</artifactId>
> <packaging>war</packaging>
> <name>Name</name>
> <build>
> ...
> </build>
> ...
> </project>
> I.e.: there is an artifactId in the pom.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira