Netbeans: pwd: cannot access parent directories [No such file or directory]

View: New views
5 Messages — Rating Filter:   Alert me  

Netbeans: pwd: cannot access parent directories [No such file or directory]

by emerino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Netbeans: pwd: cannot access parent directories [No such file or directory]

by emerino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Re: Netbeans: pwd: cannot access parent directories [No such file or directory]

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Re: Netbeans: pwd: cannot access parent directories [No such file or directory]

by emerino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

test-maven.zip (1K) Download Attachment

Re: Re: Netbeans: pwd: cannot access parent directories [No such file or directory]

by Bugzilla from mkleint@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

well, the external execution boils down to
java.lang.Process execution with the given folder with pom.xml set as
working directory.

it would help if you could try with the latest netbeans 6.5 RC + maven
from update center.
The codebase changed quite a bit and I don't want to look into old code..
Also note that I haven't heard such a report so far so there could be
something different about your setup (compared to mainstream). Could
be even solaris-specific or solaris-java-specific.
Probably best to be filed as bug report at
http://www.netbeans.org/issues/enter_bug.cgi?component=maven with as
much details about the setup as possible.
Especially about your custom build of maven itself.

Milos


On Tue, Oct 28, 2008 at 6:37 PM, Edgar Merino <donvodka@...> wrote:

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

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email