Sorry, I just gave an example. But your statement below is worrying for me.
Why can't I specify a non-default directory, which does not exist in the
project. What If I have 100 projects and I want to build all of them in the
same directory so that classpath can be specified to single libs folder.

"You can use any non-default directory for your project, in m2e, as long as
it's located under your project."

On Mon, Nov 19, 2012 at 4:11 PM, Fred Bricon <[email protected]> wrote:

> Having a hard-coded, absolute path for your build directory for your
> project(s) is a bad bad practice. It makes your project(s) not portable
> across machines.
> It certainly isn't supported in m2e.
>
> You can use any non-default directory for your project, in m2e, as long as
> it's located under your project.
>
> Now if you could explain the rationale of having such a setup, we might
> help you find a proper solution.
>
> Fred
>
> On Mon, Nov 19, 2012 at 4:58 PM, Shumail Arshad 
> <[email protected]>wrote:
>
>> Do you mean that I can only build my system into target directory of the
>> project and not anywhere else :-(
>>
>>
>> On Mon, Nov 19, 2012 at 3:53 PM, Fred Bricon <[email protected]> wrote:
>>
>>> Sounds like you're referring to a directory that is not directly under
>>> your project(module) root.
>>> m2e doesn't support such structure :
>>> http://dev.eclipse.org/mhonarc/lists/m2e-users/msg03297.html
>>>
>>>
>>> On Mon, Nov 19, 2012 at 4:42 PM, Shumail Arshad <[email protected]
>>> > wrote:
>>>
>>>> Yes.. It works in code line perfectly fine but when I try to use
>>>> directory tag with in build tag, it throws the error if I try to change
>>>> anything in that project.
>>>>
>>>> I have the pom at home which I will send you when I will go home with
>>>> all the screen shots.
>>>>
>>>> http://www.youtube.com/watch?v=5Tp3XCEfMGk
>>>>
>>>> Above video shows pom editor which contains Repositories, Build,
>>>> Profiles, Team, Lifecycle Mapping tabs. I am unable to see similar
>>>> interface in my eclipse. Is it normal?
>>>>
>>>> Thank you very much for replying to my message.
>>>>
>>>> Regards
>>>> Shumail
>>>>
>>>>
>>>> On Mon, Nov 19, 2012 at 3:33 PM, Marc Pasteur 
>>>> <[email protected]>wrote:
>>>>
>>>>> please provide more information if you need some help. We don't have
>>>>> to randomly guess what you try to do.
>>>>> a minima provide a pom.xml....
>>>>> did your pom.xml works with maven in command line mode ?
>>>>>
>>>>> regards,
>>>>>
>>>>>
>>>>> 2012/11/19 Shumail Arshad <[email protected]>
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> Looks like m2e users are so busy that they don't have time to help a
>>>>>> new member who is having trouble with m2e. I have not received any answer
>>>>>> on this even after sending it thrice.
>>>>>>
>>>>>> I am new to maven and m2eclipse. I have installed m2eclipse
>>>>>> successfully into my eclipse juno version. I have certain training videos
>>>>>> in youtube by sonatype. I am unable to see similar pom editor tool as it 
>>>>>> is
>>>>>> shown in the video. In my editor tool I can only amend artifects, 
>>>>>> modules,
>>>>>> dependency. I cannot amend plugins, build, etc.
>>>>>>
>>>>>> Also, I am unable to build project into different directory other
>>>>>> than target folder with in . If I use directory tag in build tag to 
>>>>>> specify
>>>>>> directory, I get:
>>>>>>
>>>>>> Errors occurred during the build.
>>>>>>         Errors running builder 'Maven Project Builder' on project
>>>>>> 'BuildInfrastructure'.
>>>>>>            Path must include project and resource name: /
>>>>>>
>>>>>> Can anyone please help me to resolve it?
>>>>>>
>>>>>> Thanks
>>>>>> Shumail
>>>>>>
>>>>>> _______________________________________________
>>>>>> m2e-users mailing list
>>>>>> [email protected]
>>>>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> m2e-users mailing list
>>>>> [email protected]
>>>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> m2e-users mailing list
>>>> [email protected]
>>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>>>
>>>>
>>>
>>>
>>> --
>>> "Have you tried turning it off and on again" - The IT Crowd
>>>
>>> _______________________________________________
>>> m2e-users mailing list
>>> [email protected]
>>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>>
>>>
>>
>> _______________________________________________
>> m2e-users mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>>
>
>
> --
> "Have you tried turning it off and on again" - The IT Crowd
>
> _______________________________________________
> m2e-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to