Hello Milos,
I'm using my own build of maven. It's also possible to build the
project from the command line, which is what makes me think the problem
is within netbeans support for maven (or mavenide). Since it cannot
access the directory where the project is, it simply fails saying
there's no pom.xml file. It does this randomly, if I create a new
project it may not suffer from this bug, but the next one may, I'm
attaching a sample project created with default options that is causing
troubles, but really, it is doing it randomly (and apparently, for no
reason at all). Here's the output of trying to build the project:
WARNING: You are running Maven builds externally, some UI functionality
will not be available.
Executing:/opt/maven/bin/mvn install
pwd: cannot access parent directories [No such file or directory]
Scanning for projects...
------------------------------------------------------------------------
Building Maven Default Project
task-segment: [install]
------------------------------------------------------------------------
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
Cannot execute mojo: resources. It requires a project with an existing
pom.xml, but the build is not using one.
------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 1 second
Finished at: Tue Oct 28 10:28:59 CST 2008
Final Memory: 4M/69M
------------------------------------------------------------------------
Sorry for the late response,
Edgar Merino
Milos Kleint escribió:
> do you have a sample project demonstrating the problem?
> does it build on the command line? if so, set the
> Tools/Options/Misc/Maven preference to command line maven, the
> embedded one has multitude of problems.
>
> Milos
>
> On Sat, Oct 25, 2008 at 5:31 AM, Edgar Merino <
donvodka@...> wrote:
>
>> By the way, this is the latest version of the mavenide plugin (3.1.5) and
>> netbeans 6.1.
>>
>>
>> Edgar Merino escribió:
>>
>>> Hello,
>>>
>>> I recently downloaded the mavenide plugin for netbeans, it was working
>>> ok, but it started to give errors when building/cleaning the application:
>>> pwd: cannot access parent directories [No such file or directory]. Because
>>> of this maven fails to build the project with the following error: Cannot
>>> execute mojo: resources. It requires a project with an existing pom.xml, but
>>> the build is not using one. I noticed this happened after I set the <name>
>>> of a project to a name containing spaces like "my project", but then even
>>> after restarting the ide any other project that I create fails to build with
>>> the same errors (even when the name contains no spaces at all).
>>>
>>> This has to be a bug, but I don't know how to solve this, can anyone
>>> give me a hint? This is under opensolaris 2008.05.
>>>
>>> Regards,
>>> Edgar Merino
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>
http://xircles.codehaus.org/manage_email>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>
http://xircles.codehaus.org/manage_email>
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email