Continuum

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: 1.0-alpha-3
  • Fix Version/s: 1.0-alpha-4
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

Description

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.

Activity

Hide
Yann Le Du added a comment -

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

Show
Yann Le Du added a comment - Maybe this has nothing to do with it but... your <scm><url> begins with a ':' Is it what you meant ?
Hide
Yann Le Du added a comment -

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).

Show
Yann Le Du added a comment - 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).
Hide
jeremi Joslin added a comment -

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.
Show
jeremi Joslin added a comment - 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.
Hide
jeremi Joslin added a comment -

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"

Show
jeremi Joslin added a comment - 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"
Hide
Trygve Laugstol added a comment -

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.

Show
Trygve Laugstol added a comment - 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.
Hide
jeremi Joslin added a comment -

screenshot of projects

Show
jeremi Joslin added a comment - screenshot of projects
Hide
jeremi Joslin added a comment -

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

Show
jeremi Joslin added a comment - I use continuum since a week without restart and not problems. I have just this after a restart.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: