Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » build questions
build questions [message #162923] Mon, 06 March 2006 15:39 Go to next message
Eclipse UserFriend
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 #162939 is a reply to message #162923] Mon, 06 March 2006 16:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rairamos.deltafunding.com

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
Re: build questions [message #162955 is a reply to message #162939] Mon, 06 March 2006 22:55 Go to previous message
Eclipse UserFriend
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
Previous Topic:Cannot publish to the server
Next Topic:server-config.wsdd Missing (JBOSS 4.0.3 with WTP 1.0.1)
Goto Forum:
  


Current Time: Sat Apr 20 00:58:45 GMT 2024

Powered by FUDForum. Page generated in 0.03120 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top