build questions [message #162923] |
Mon, 06 March 2006 10:39  |
Eclipse User |
|
|
|
Originally posted by: dwhitehurst.citadel.com
Is there a way to invoke a build of an eclipse dynamic web project form the
command line (eg for a nightly build?) Alternatively, is there an Ant build
script that is generated (or geenratable) for a dynamic web project?
I have done a lot of web searching trying to find a way to do this but
either I am looking in the wrong places or not asking the questions right
because I have not found anything that will help.
I am currently using wtp 1.0.1.
Any help would be appreciated.
Thanks,
Dick
|
|
|
|
Re: build questions [message #162955 is a reply to message #162939] |
Mon, 06 March 2006 17:55  |
Eclipse User |
|
|
|
Originally posted by: dwhitehurst.citadel.com
"Rainier Ramos" <rairamos@deltafunding.com> wrote in message
news:duhpi0$ucd$1@eclipse.org...
> Dick Whitehurst wrote:
>> Is there a way to invoke a build of an eclipse dynamic web project form
>> the command line (eg for a nightly build?) Alternatively, is there an Ant
>> build script that is generated (or geenratable) for a dynamic web
>> project?
>> I have done a lot of web searching trying to find a way to do this but
>> either I am looking in the wrong places or not asking the questions right
>> because I have not found anything that will help.
>>
>> I am currently using wtp 1.0.1.
>>
>> Any help would be appreciated.
>>
>> Thanks,
>> Dick
>
> You might want to look into Maven2. It's perfect for nightly builds and
> I've found that it works pretty well with wtp 1.0.1. To register a
> "Mavenized" web project as a Dynamic Web Project in Eclipse, execute the
> following command:
>
> mvn -Dwtpversion=1.0 eclipse:clean eclipse:eclipse
>
> check here for more details:
> http://maven.apache.org/plugins/maven-eclipse-plugin/overvie w.html
>
>
> Hope that helps.
>
>
> King
This sounds like a good possibility. What is the minimum Maven setup I
need. I installed it and tried the eclipse:add-maven-repo, which appeared
to work, but when I tried the command you suggested I got the following
error:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------ ----------------
[INFO] Cannot execute mojo: resources. It requires a project with an
existing pom.xml, but the build is not using one.
I can't find any new files in the .m2 directory (or any of its children) as
a result of any of the mvn invocations. If there's something simple I'm
missing or a doument you can point to, that might help. Otherwise, since
this is the only java project at our company, I'll just go down the path of
building my own ant build scripts...arghhh
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.26663 seconds