Red5 / red5-server

Red5 Server core
Apache License 2.0
3.34k stars 982 forks source link

build.xml #3

Closed davorgit closed 8 years ago

davorgit commented 10 years ago

it would be nice to have build.xml in trunk for building ROOT.war

teu commented 10 years ago

I don't think you need ANT to build with Maven.

davorgit commented 10 years ago

Yes you're right! ..but with maven I got error using comand: mvn -Dmaven.test.skip=true -Dclassifier=bootstrap install error reading commons-pool-1.5.6.jar ..same error with spring-aop-3.1.4.RELEASE.jar ..and so on I have downloaded same versions from maven repository then I have Buid Success

..so how can I create .war in eclipse from here?

teu commented 10 years ago

Paste the exact error

as code

Have you read everything under https://code.google.com/p/red5/w/list ?

davorgit commented 10 years ago

l have a "build success" for packaging jar however if I run:

mvn -Dmaven.test.skip=true -Dclassifier=bootstrap war:war

I get this error:

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project red5-server: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode

this solves the issue, just add webXml path to pom.xml:,

<configuration>
    <webXml>src\main\server\war\web.xml</webXml>
    <packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>
</configuration>

after this I have BUILD SUCCESS

mondain commented 10 years ago

There is more to having a war version of red5 than just creating a war package out of the source. There are steps that must be taken to get it to start properly and to be able to communicate with the server instance itself. I have not maintained this war version for quite some time and you should be aware that your experience with what you've built may not work out in its current form with the latest source.

Paul

On Sat, Mar 22, 2014 at 3:12 PM, Davor notifications@github.com wrote:

l have a "build success" for packaging jar however if I run:

mvn -Dmaven.test.skip=true -Dclassifier=bootstrap war:war

I get this error:

Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project red5-server: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode

this solves the issue, just add webXml path to pom.xml:,

src\main\server\war\web.xml WEB-INF/lib/*.jar

after this I have BUILD SUCCESS

Reply to this email directly or view it on GitHubhttps://github.com/Red5/red5-server/issues/3#issuecomment-38365846 .

http://gregoire.org/ http://code.google.com/p/red5/

davorgit commented 10 years ago

Yes Paul it's true, it's not working :) I was struggling to create war multiple times but gave up. Now I would like to go till the end, so if you be so kind to explain step by step on how to create war by myself. I'm using war version because freebsd had issues with jetty some time ago, so the only option was with tomcat. Thank you.

mondain commented 10 years ago

The war option is not the best option in my opinion; I suggest running the server stand-alone. However someone on the red5 users list did get it working as a war, but you'll have to do a search for the steps.

On Sun, Mar 23, 2014 at 12:40 AM, Davor notifications@github.com wrote:

Yes Paul it's true, it's not working :) I was struggling to create war multiple times but gave up. Now I would like to go till the end, so if you be so kind to explain step by step on how to create war by myself. I'm using war version because freebsd had issues with jetty some time ago, so the only option was with tomcat. Thank you.

Reply to this email directly or view it on GitHubhttps://github.com/Red5/red5-server/issues/3#issuecomment-38376248 .

http://gregoire.org/ http://code.google.com/p/red5/

teu commented 10 years ago

Is there a build server btw? Would be good to get it built with every commit, don't you guys think? If there isn't any server available, we could always look for one.

solomax commented 10 years ago

https://builds.apache.org/view/M-R/view/OpenMeetings/

2 subprojects: server io client

teu commented 10 years ago

Great, thanks. Can we get the buildpasses plugin?

solomax commented 10 years ago

I'm afraid this is nightly builds only :( "On commit" builds will run too often.

otagtekin commented 9 years ago

Is there anyway for red5 team to a create step by step guide to build a target red5 server from the red-server trunk. In the older versions this wasn't an issue however the same run configurations do not work for the new version, since the bootstrap files are moved a separate location.

mondain commented 9 years ago

Here's the sequence that I use: red5-io, red5-server-common, red5-client, red5-service, and red5-server

otagtekin commented 9 years ago

Did you merge all the files into one big application? Thank you.