Issue Details (XML | Word | Printable)

Key: CONTINUUM-246
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: Major Major
Assignee: Unassigned
Reporter: jeremi Joslin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Continuum

"Missing 'scm' element in the POM" after a restart

Created: 20/Jul/05 04:19 AM   Updated: 13/Mar/06 04:05 AM   Resolved: 15/Sep/05 06:48 AM
Component/s: None
Affects Version/s: 1.0-alpha-3
Fix Version/s: 1.0-alpha-4

Time Tracking:
Not Specified

File Attachments: None
Image Attachments:

1. Screenshot.png
(24 kB)


 Description  « Hide

I add my pom.xml, all is Ok, my 3 projects are added and compile.
my pom : https://svn.codehaus.org/oxyd/trunk/pom.xml
after a restart of the server, i have this error at the build : Missing 'scm' element in the POM.

---------------
org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while mapping metadata.
=09at org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.u=
pdateProjectFromCheckOut(MavenTwoBuildExecutor.java:92)
=09at org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirect=
oryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction=
.java:45)
=09at org.apache.maven.continuum.buildcontroller.DefaultBuildController.bui=
ld(DefaultBuildController.java:183)
=09at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.e=
xecuteTask(BuildProjectTaskExecutor.java:50)
=09at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exe=
cutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
=09at java.lang.Thread.run(Thread.java:534)
Caused by: org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelper=
Exception:
Missing 'scm' element in the POM.
=09at org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelp=
er.getMavenProject(DefaultMavenBuilderHelper.java:203)
=09at org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelp=
er.mapMetadataToProject(DefaultMavenBuilderHelper.java:77)
=09at org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.u=
pdateProjectFromCheckOut(MavenTwoBuildExecutor.java:88)
=09... 5 more
------------------

I have to delete all projects and to re-add it. after, it works until the next server restart.



Yann Le Du added a comment - 20/Jul/05 04:54 AM

Maybe this has nothing to do with it but... your <scm><url> begins with a ':' Is it what you meant ?


Yann Le Du added a comment - 20/Jul/05 05:21 AM

Also, unless I'm mistaken, your <developerconnection> should be a <developerConnection>. Try sorting your POM into something closer to http://maven.apache.org/maven2/maven-model/maven.html too, maybe this has an importance (I'm not sure).


jeremi Joslin added a comment - 20/Jul/05 07:21 AM

oh yes, the ':' is a mistake and developerConnection too.
but i think continuum use the <connection>scm:svn:svn://svn.oxyd.codehaus.org/oxyd/scm/trunk/</connection> who is Ok.

Before a restart of the server :

  • nor problem, compiles are OK

After a restart

  • I have this error.

jeremi Joslin added a comment - 20/Jul/05 10:32 AM

my project archi is :

/oxyd/pom.xml
/oxyd/server/pom.xml
/oxyd/ClientAPI/pom.xml
/oxyd/core/pom.xml

the "/oxyd/pom.xml" reference others pom.xml and contain the scm information and others pom.xml have not the scm information.

When I add my project, continuum create 3 projects and builds are Ok.
when I click to view, I see this informations :
Phase/Goals clean:clean install
Project Name org.codehaus.oxyd.core:core:jar:0.1-SNAPSHOT
Scm Url scm:svn:svn://svn.oxyd.codehaus.org/oxyd/scm/trunk/core
Version 0.1-SNAPSHOT

After a restart of continuum, this informations have not changed, but I can't compile my project and i have the error "Missing 'scm' element in the POM"


Trygve Laugstol added a comment - 20/Jul/05 10:37 AM

Are you really sure that this only happens when you restart the server? No special processing of the projects happens after a restart so this is really wierd.


jeremi Joslin added a comment - 20/Jul/05 10:42 AM

screenshot of projects


jeremi Joslin added a comment - 20/Jul/05 10:44 AM

I use continuum since a week without restart and not problems. I have just this after a restart.