You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@continuum.apache.org by Henrique Prange <hp...@gmail.com> on 2006/12/17 20:46:14 UTC
Cannot build maven project
Hi List,
I'm using Continuum for a time without problems. Today, however, my
projects stop building with the following error:
****************************************************************************
Build Error:
****************************************************************************
org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
Error while mapping metadata.
at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:117)
at
org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:64)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:273)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:613)
Caused by:
org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelperException:
Cannot build maven project from
/usr/local/continuum/apps/continuum/working-directory/1/pom.xml (null).
at
org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:339)
at
org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.mapMetadataToProject(DefaultMavenBuilderHelper.java:112)
at
org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:113)
... 5 more
Caused by: java.lang.NullPointerException
at
org.codehaus.plexus.util.xml.pull.MXSerializer.writeElementContent(MXSerializer.java:912)
at
org.codehaus.plexus.util.xml.pull.MXSerializer.text(MXSerializer.java:776)
at
org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.writeSettings(SettingsXpp3Writer.java:581)
at
org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.write(SettingsXpp3Writer.java:71)
at
org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.writeSettings(DefaultMavenBuilderHelper.java:489)
at
org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:301)
... 7 more
The projects were building normally sometime ago. If I try to build
using maven manually on working directory, the build works.
Also, I can't add new projects to the project list too, because of the
same problem. Any ideas?
Thanks,
Henrique
--
\o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda
| Phone: 55-21-2710-0178 E-mail: hprange@moleque.com.br
/ \ http://www.moleque.com.br
Re: Cannot build maven project
Posted by Henrique Prange <hp...@gmail.com>.
Thank you, Robert. I changed the log level to DEBUG, but no more useful
information was logged.
As a desperate solution, I made a backup of Continuum and installed a
new one from the scratch. I created a very simple project that works
outside Continuum. The "mvn help:effective-pom help:effective-settings"
command don't reveal anything suspicious for this project. But the
problem still remains. Now, even with a fresh installation, Continuum
doesn't work and I can't add any project.
Following is the pom.xml of the project:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>moleque.test</groupId>
<artifactId>simple-app</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>simple-app</name>
<url>http://maven.apache.org</url>
<scm>
<connection>
scm:svn:http://dev.moleque.com.br:8086/svn/simple-app/trunk
</connection>
<developerConnection>
scm:svn:http://dev.moleque.com.br:8086/svn/simple-app/trunk
</developerConnection>
</scm>
<distributionManagement>
<site>
<id>simple-app.site</id>
<url>
file:///Library/WebServer/Documents/docs/simple-app
</url>
</site>
<snapshotRepository>
<id>dev.moleque.repo.snapshot</id>
<name>Snapshot Repository Moleque</name>
<url>file:///Users/devadmin/proximity/inhouse</url>
</snapshotRepository>
</distributionManagement>
</project>
I don't know if it's a bug. But if it is, I don't know how to reproduce. :(
Any suggestions are very welcome. :)
Thanks in advance,
Henrique
Robert Dale wrote:
> <continuum install>/apps/continuum/conf/application.xml:
> There's a logging component at the bottom. Modify <level>LEVEL</level>.
>
--
\o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda
| Phone: 55-21-2710-0178 E-mail: hprange@moleque.com.br
/ \ http://www.moleque.com.br
Re: Cannot build maven project
Posted by Robert Dale <ro...@duke.edu>.
<continuum install>/apps/continuum/conf/application.xml:
There's a logging component at the bottom. Modify <level>LEVEL</level>.
--
Robert Dale
Henrique Prange <hp...@gmail.com> wrote on 12/18/2006 07:20:14 AM:
> Hi Rahul,
>
> Maybe it is a stupid question, but how can I turn on DEBUG level on
> Continuum?
>
> I removed the settings.xml from the user .m2 configuration folder. Also,
> I verified that settings.xml from maven installation folder is the
> original version (without changes). I think the problem is not on Maven
> settings, because "mvn clean deploy" command works with the projects on
> Continuum working directory. Could a Continuum specific option be the
> problem?
>
> Thanks,
>
> Henrique
>
> Rahul Thakur wrote:
> > Hi,
> >
> > I don't think if there is a way to verify the settings.xml (someone
can
> > correct if I am wrong). You can turn on the DEBUG level for continuum
> > and see what settings.xml it logs on the console in the scenario where
> > this error occurs.
> >
> > I ran into same error few weeks ago and ended up reverting the
> > settings.xml to a sane revision and then making small incremental
> > updates to it. Is that new repository location missing a property
like
> > - id, name?
> >
> > Cheers,
> > Rahul
> >
> >
> > Henrique Prange wrote:
> >> Hi Rahul,
> >>
> >> Thank you to answer. I've changed the settings.xml to add a new
> >> repository location (this configuration seems to work correctly).
> >> Anyway, I removed the settings.xml file from ~/.m2 and the error
> >> persists. I really can't figure out what is the reason for that
> >> problem. Is there a way to verify the correctness of Continuum
> >> configuration?
> >>
> >> Cheers,
> >>
> >> Henrique
> >>
> >> Rahul Thakur wrote:
> >>>
> >>> Has something changed in the settings.xml lately for the user
account
> >>> under with Continuum is running?
> >>>
> >>>
> >>> Henrique Prange wrote:
> >>>> Hi List,
> >>>>
> >>>> I'm using Continuum for a time without problems. Today, however, my
> >>>> projects stop building with the following error:
> >>>>
> >>>>
>
****************************************************************************
> >>>>
> >>>> Build Error:
> >>>>
>
****************************************************************************
> >>>>
> >>>>
org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
> >>>> Error while mapping metadata.
> >>>> at
> >>>> org.apache.maven.continuum.execution.maven.m2.
> MavenTwoBuildExecutor.
> updateProjectFromCheckOut(MavenTwoBuildExecutor.java:117)
> >>>>
> >>>> at
> >>>> org.apache.maven.continuum.core.action.
> UpdateProjectFromWorkingDirectoryContinuumAction.
> execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:64)
> >>>>
> >>>> at
> >>>> org.apache.maven.continuum.buildcontroller.
> DefaultBuildController.build(DefaultBuildController.java:273)
> >>>>
> >>>> at
> >>>> org.apache.maven.continuum.buildcontroller.
> BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
> >>>>
> >>>> at
> >>>> org.codehaus.plexus.taskqueue.execution.
> ThreadedTaskQueueExecutor$ExecutorRunnable.
> run(ThreadedTaskQueueExecutor.java:103)
> >>>>
> >>>> at java.lang.Thread.run(Thread.java:613)
> >>>> Caused by:
> >>>> org.apache.maven.continuum.execution.maven.m2.
> MavenBuilderHelperException:
> >>>> Cannot build maven project from
> >>>> /usr/local/continuum/apps/continuum/working-directory/1/pom.xml
(null).
> >>>>
> >>>> at
> >>>> org.apache.maven.continuum.execution.maven.m2.
>
DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:339)
> >>>>
> >>>> at
> >>>> org.apache.maven.continuum.execution.maven.m2.
> DefaultMavenBuilderHelper.
> mapMetadataToProject(DefaultMavenBuilderHelper.java:112)
> >>>>
> >>>> at
> >>>> org.apache.maven.continuum.execution.maven.m2.
> MavenTwoBuildExecutor.
> updateProjectFromCheckOut(MavenTwoBuildExecutor.java:113)
> >>>>
> >>>> ... 5 more
> >>>> Caused by: java.lang.NullPointerException
> >>>> at
> >>>> org.codehaus.plexus.util.xml.pull.MXSerializer.
> writeElementContent(MXSerializer.java:912)
> >>>>
> >>>> at
> >>>> org.codehaus.plexus.util.xml.pull.MXSerializer.
> text(MXSerializer.java:776)
> >>>>
> >>>> at
> >>>> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.
> writeSettings(SettingsXpp3Writer.java:581)
> >>>>
> >>>> at
> >>>> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.
> write(SettingsXpp3Writer.java:71)
> >>>>
> >>>> at
> >>>> org.apache.maven.continuum.execution.maven.m2.
>
DefaultMavenBuilderHelper.writeSettings(DefaultMavenBuilderHelper.java:489)
> >>>>
> >>>> at
> >>>> org.apache.maven.continuum.execution.maven.m2.
>
DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:301)
> >>>>
> >>>> ... 7 more
> >>>>
> >>>> The projects were building normally sometime ago. If I try to build
> >>>> using maven manually on working directory, the build works.
> >>>>
> >>>> Also, I can't add new projects to the project list too, because of
> >>>> the same problem. Any ideas?
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Henrique
> >>>>
> >>>
> >>
> >
>
> --
>
> \o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda
> | Phone: 55-21-2710-0178 E-mail: hprange@moleque.com.br
> / \ http://www.moleque.com.br
Re: Cannot build maven project
Posted by Henrique Prange <hp...@gmail.com>.
Hi Rahul,
Maybe it is a stupid question, but how can I turn on DEBUG level on
Continuum?
I removed the settings.xml from the user .m2 configuration folder. Also,
I verified that settings.xml from maven installation folder is the
original version (without changes). I think the problem is not on Maven
settings, because "mvn clean deploy" command works with the projects on
Continuum working directory. Could a Continuum specific option be the
problem?
Thanks,
Henrique
Rahul Thakur wrote:
> Hi,
>
> I don't think if there is a way to verify the settings.xml (someone can
> correct if I am wrong). You can turn on the DEBUG level for continuum
> and see what settings.xml it logs on the console in the scenario where
> this error occurs.
>
> I ran into same error few weeks ago and ended up reverting the
> settings.xml to a sane revision and then making small incremental
> updates to it. Is that new repository location missing a property like
> - id, name?
>
> Cheers,
> Rahul
>
>
> Henrique Prange wrote:
>> Hi Rahul,
>>
>> Thank you to answer. I've changed the settings.xml to add a new
>> repository location (this configuration seems to work correctly).
>> Anyway, I removed the settings.xml file from ~/.m2 and the error
>> persists. I really can't figure out what is the reason for that
>> problem. Is there a way to verify the correctness of Continuum
>> configuration?
>>
>> Cheers,
>>
>> Henrique
>>
>> Rahul Thakur wrote:
>>>
>>> Has something changed in the settings.xml lately for the user account
>>> under with Continuum is running?
>>>
>>>
>>> Henrique Prange wrote:
>>>> Hi List,
>>>>
>>>> I'm using Continuum for a time without problems. Today, however, my
>>>> projects stop building with the following error:
>>>>
>>>> ****************************************************************************
>>>>
>>>> Build Error:
>>>> ****************************************************************************
>>>>
>>>> org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
>>>> Error while mapping metadata.
>>>> at
>>>> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:117)
>>>>
>>>> at
>>>> org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:64)
>>>>
>>>> at
>>>> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:273)
>>>>
>>>> at
>>>> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
>>>>
>>>> at
>>>> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
>>>>
>>>> at java.lang.Thread.run(Thread.java:613)
>>>> Caused by:
>>>> org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelperException:
>>>> Cannot build maven project from
>>>> /usr/local/continuum/apps/continuum/working-directory/1/pom.xml (null).
>>>>
>>>> at
>>>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:339)
>>>>
>>>> at
>>>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.mapMetadataToProject(DefaultMavenBuilderHelper.java:112)
>>>>
>>>> at
>>>> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:113)
>>>>
>>>> ... 5 more
>>>> Caused by: java.lang.NullPointerException
>>>> at
>>>> org.codehaus.plexus.util.xml.pull.MXSerializer.writeElementContent(MXSerializer.java:912)
>>>>
>>>> at
>>>> org.codehaus.plexus.util.xml.pull.MXSerializer.text(MXSerializer.java:776)
>>>>
>>>> at
>>>> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.writeSettings(SettingsXpp3Writer.java:581)
>>>>
>>>> at
>>>> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.write(SettingsXpp3Writer.java:71)
>>>>
>>>> at
>>>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.writeSettings(DefaultMavenBuilderHelper.java:489)
>>>>
>>>> at
>>>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:301)
>>>>
>>>> ... 7 more
>>>>
>>>> The projects were building normally sometime ago. If I try to build
>>>> using maven manually on working directory, the build works.
>>>>
>>>> Also, I can't add new projects to the project list too, because of
>>>> the same problem. Any ideas?
>>>>
>>>> Thanks,
>>>>
>>>> Henrique
>>>>
>>>
>>
>
--
\o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda
| Phone: 55-21-2710-0178 E-mail: hprange@moleque.com.br
/ \ http://www.moleque.com.br
Re: Cannot build maven project
Posted by Rahul Thakur <ra...@gmail.com>.
Hi,
I don't think if there is a way to verify the settings.xml (someone can
correct if I am wrong). You can turn on the DEBUG level for continuum
and see what settings.xml it logs on the console in the scenario where
this error occurs.
I ran into same error few weeks ago and ended up reverting the
settings.xml to a sane revision and then making small incremental
updates to it. Is that new repository location missing a property like
- id, name?
Cheers,
Rahul
Henrique Prange wrote:
> Hi Rahul,
>
> Thank you to answer. I've changed the settings.xml to add a new
> repository location (this configuration seems to work correctly).
> Anyway, I removed the settings.xml file from ~/.m2 and the error
> persists. I really can't figure out what is the reason for that
> problem. Is there a way to verify the correctness of Continuum
> configuration?
>
> Cheers,
>
> Henrique
>
> Rahul Thakur wrote:
>>
>> Has something changed in the settings.xml lately for the user account
>> under with Continuum is running?
>>
>>
>> Henrique Prange wrote:
>>> Hi List,
>>>
>>> I'm using Continuum for a time without problems. Today, however, my
>>> projects stop building with the following error:
>>>
>>> ****************************************************************************
>>>
>>> Build Error:
>>> ****************************************************************************
>>>
>>> org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
>>> Error while mapping metadata.
>>> at
>>> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:117)
>>>
>>> at
>>> org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:64)
>>>
>>> at
>>> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:273)
>>>
>>> at
>>> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
>>>
>>> at
>>> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
>>>
>>> at java.lang.Thread.run(Thread.java:613)
>>> Caused by:
>>> org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelperException:
>>> Cannot build maven project from
>>> /usr/local/continuum/apps/continuum/working-directory/1/pom.xml (null).
>>>
>>> at
>>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:339)
>>>
>>> at
>>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.mapMetadataToProject(DefaultMavenBuilderHelper.java:112)
>>>
>>> at
>>> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:113)
>>>
>>> ... 5 more
>>> Caused by: java.lang.NullPointerException
>>> at
>>> org.codehaus.plexus.util.xml.pull.MXSerializer.writeElementContent(MXSerializer.java:912)
>>>
>>> at
>>> org.codehaus.plexus.util.xml.pull.MXSerializer.text(MXSerializer.java:776)
>>>
>>> at
>>> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.writeSettings(SettingsXpp3Writer.java:581)
>>>
>>> at
>>> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.write(SettingsXpp3Writer.java:71)
>>>
>>> at
>>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.writeSettings(DefaultMavenBuilderHelper.java:489)
>>>
>>> at
>>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:301)
>>>
>>> ... 7 more
>>>
>>> The projects were building normally sometime ago. If I try to build
>>> using maven manually on working directory, the build works.
>>>
>>> Also, I can't add new projects to the project list too, because of
>>> the same problem. Any ideas?
>>>
>>> Thanks,
>>>
>>> Henrique
>>>
>>
>
Re: Cannot build maven project
Posted by Henrique Prange <hp...@gmail.com>.
Hi Rahul,
Thank you to answer. I've changed the settings.xml to add a new
repository location (this configuration seems to work correctly).
Anyway, I removed the settings.xml file from ~/.m2 and the error
persists. I really can't figure out what is the reason for that problem.
Is there a way to verify the correctness of Continuum configuration?
Cheers,
Henrique
Rahul Thakur wrote:
>
> Has something changed in the settings.xml lately for the user account
> under with Continuum is running?
>
>
> Henrique Prange wrote:
>> Hi List,
>>
>> I'm using Continuum for a time without problems. Today, however, my
>> projects stop building with the following error:
>>
>> ****************************************************************************
>>
>> Build Error:
>> ****************************************************************************
>>
>> org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
>> Error while mapping metadata.
>> at
>> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:117)
>>
>> at
>> org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:64)
>>
>> at
>> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:273)
>>
>> at
>> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
>>
>> at
>> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
>>
>> at java.lang.Thread.run(Thread.java:613)
>> Caused by:
>> org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelperException:
>> Cannot build maven project from
>> /usr/local/continuum/apps/continuum/working-directory/1/pom.xml (null).
>>
>> at
>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:339)
>>
>> at
>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.mapMetadataToProject(DefaultMavenBuilderHelper.java:112)
>>
>> at
>> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:113)
>>
>> ... 5 more
>> Caused by: java.lang.NullPointerException
>> at
>> org.codehaus.plexus.util.xml.pull.MXSerializer.writeElementContent(MXSerializer.java:912)
>>
>> at
>> org.codehaus.plexus.util.xml.pull.MXSerializer.text(MXSerializer.java:776)
>>
>> at
>> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.writeSettings(SettingsXpp3Writer.java:581)
>>
>> at
>> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.write(SettingsXpp3Writer.java:71)
>>
>> at
>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.writeSettings(DefaultMavenBuilderHelper.java:489)
>>
>> at
>> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:301)
>>
>> ... 7 more
>>
>> The projects were building normally sometime ago. If I try to build
>> using maven manually on working directory, the build works.
>>
>> Also, I can't add new projects to the project list too, because of the
>> same problem. Any ideas?
>>
>> Thanks,
>>
>> Henrique
>>
>
--
\o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda
| Phone: 55-21-2710-0178 E-mail: hprange@moleque.com.br
/ \ http://www.moleque.com.br
Re: Cannot build maven project
Posted by Rahul Thakur <ra...@gmail.com>.
Has something changed in the settings.xml lately for the user account
under with Continuum is running?
Henrique Prange wrote:
> Hi List,
>
> I'm using Continuum for a time without problems. Today, however, my
> projects stop building with the following error:
>
> ****************************************************************************
>
> Build Error:
> ****************************************************************************
>
> org.apache.maven.continuum.execution.ContinuumBuildExecutorException:
> Error while mapping metadata.
> at
> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:117)
>
> at
> org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java:64)
>
> at
> org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:273)
>
> at
> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
>
> at
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
>
> at java.lang.Thread.run(Thread.java:613)
> Caused by:
> org.apache.maven.continuum.execution.maven.m2.MavenBuilderHelperException:
> Cannot build maven project from
> /usr/local/continuum/apps/continuum/working-directory/1/pom.xml (null).
>
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:339)
>
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.mapMetadataToProject(DefaultMavenBuilderHelper.java:112)
>
> at
> org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:113)
>
> ... 5 more
> Caused by: java.lang.NullPointerException
> at
> org.codehaus.plexus.util.xml.pull.MXSerializer.writeElementContent(MXSerializer.java:912)
>
> at
> org.codehaus.plexus.util.xml.pull.MXSerializer.text(MXSerializer.java:776)
>
> at
> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.writeSettings(SettingsXpp3Writer.java:581)
>
> at
> org.apache.maven.settings.io.xpp3.SettingsXpp3Writer.write(SettingsXpp3Writer.java:71)
>
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.writeSettings(DefaultMavenBuilderHelper.java:489)
>
> at
> org.apache.maven.continuum.execution.maven.m2.DefaultMavenBuilderHelper.getMavenProject(DefaultMavenBuilderHelper.java:301)
>
> ... 7 more
>
> The projects were building normally sometime ago. If I try to build
> using maven manually on working directory, the build works.
>
> Also, I can't add new projects to the project list too, because of the
> same problem. Any ideas?
>
> Thanks,
>
> Henrique
>