[Geoserver-devel] mvn compile war:war throws errors

Is the war goal for mvn supposed to work? It ends up with error(s)
about web.xml missing form various places.

Jira worthy?

Thanks,
Alex

it is supposed to work just fine. What errors are you getting?

Alexander Petkov wrote:

Is the war goal for mvn supposed to work? It ends up with error(s)
about web.xml missing form various places.

Jira worthy?

Thanks,
Alex

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,45e714c4131732207481331!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

On 3/1/07, Justin Deoliveira <jdeolive@anonymised.com> wrote:

it is supposed to work just fine. What errors are you getting?

Only relevant snippet:

[INFO] Generating war
/home/apetkov/workspace/geoserver-1.5.x/geoserver/maven/merger/target/merger-1.5.0-RC1.war
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error assembling WAR: Deployment descriptor:
/home/apetkov/workspace/geoserver-1.5.x/geoserver/maven/merger/target/merger-1.5.0-RC1/WEB-INF/web.xml
does not exist.

This is after I manually copied the web.xml to a few other locations.
Finally got sick of it.

Alex

Are you running it from the web/ module?

It will work from there, using the 'release' config: mvn -DconfigId=release war:war

Brent Owens
(The Open Planning Project)

Alexander Petkov wrote:

On 3/1/07, Justin Deoliveira <jdeolive@anonymised.com> wrote:
  

it is supposed to work just fine. What errors are you getting?
    
Only relevant snippet:

[INFO] Generating war
/home/apetkov/workspace/geoserver-1.5.x/geoserver/maven/merger/target/merger-1.5.0-RC1.war
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error assembling WAR: Deployment descriptor:
/home/apetkov/workspace/geoserver-1.5.x/geoserver/maven/merger/target/merger-1.5.0-RC1/WEB-INF/web.xml
does not exist.

This is after I manually copied the web.xml to a few other locations.
Finally got sick of it.

Alex

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

I believe brent is correct. You are running it from the root module so
it is executing for every single module, and since not every module is a
web based module it will fail. Executing from web as brent says should
fix it.

Perhaps we should make this more clear in the maven quickstart.

-Justin

Brent Owens wrote:

Are you running it from the web/ module?

It will work from there, using the 'release' config: mvn
-DconfigId=release war:war

Brent Owens
(The Open Planning Project)

Alexander Petkov wrote:

On 3/1/07, Justin Deoliveira <jdeolive@anonymised.com> wrote:

it is supposed to work just fine. What errors are you getting?
    
Only relevant snippet:

[INFO] Generating war
/home/apetkov/workspace/geoserver-1.5.x/geoserver/maven/merger/target/merger-1.5.0-RC1.war

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error assembling WAR: Deployment descriptor:
/home/apetkov/workspace/geoserver-1.5.x/geoserver/maven/merger/target/merger-1.5.0-RC1/WEB-INF/web.xml

does not exist.

This is after I manually copied the web.xml to a few other locations.
Finally got sick of it.

Alex

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to
share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,45e719f4136991995013331!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

On 3/1/07, Justin Deoliveira <jdeolive@anonymised.com> wrote:

I believe brent is correct. You are running it from the root module so
it is executing for every single module, and since not every module is a
web based module it will fail. Executing from web as brent says should
fix it.

Perhaps we should make this more clear in the maven quickstart.

-Justin

To be honest, I didn't look there, sorry (shame).

Alex

No problem, since it is not there :). I am going to add another section
to the quickstart titled "Building a Web Archive (war)".

-Justin

Alexander Petkov wrote:

On 3/1/07, Justin Deoliveira <jdeolive@anonymised.com> wrote:

I believe brent is correct. You are running it from the root module so
it is executing for every single module, and since not every module is a
web based module it will fail. Executing from web as brent says should
fix it.

Perhaps we should make this more clear in the maven quickstart.

-Justin

To be honest, I didn't look there, sorry (shame).

Alex

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

!DSPAM:1004,45e71c71139811804284693!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org