-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building project from the command line #109
Comments
@hazendaz care to take a look? |
Yes I'll look at this tonight --- Original Message --- From: "Daniel Doubrovkine (dB.) @dblockdotorg" notifications@github.com @hazendaz care to take a look? Reply to this email directly or view it on GitHub: |
I tried installing all the items noted in the setting up development environment. At the moment, I'm running into msbuild errors. Not sure if it has to do with windows 8 since I could only find the windows 7 install files. Here is the output. Any ideas? Microsoft Windows Version 6.3.9600 2013 Microsoft Corporation. All rights reserved. C:\Windows\system32>cd C:\Users\Jeremy\Documents\GitHub\waffle C:\Users\Jeremy\Documents\GitHub\waffle>dir Directory of C:\Users\Jeremy\Documents\GitHub\waffle 07/06/2014 07:16 PM .07/06/2014 07:16 PM .. 07/09/2014 10:34 PM .git 06/13/2014 09:11 PM 505 .gitattributes 06/13/2014 09:11 PM 266 .gitignore 06/13/2014 09:11 PM 1,242 build.cmd 07/09/2014 09:40 PM 12,879 CHANGELOG.md 06/13/2014 09:11 PM Docs 06/13/2014 09:11 PM 1,198 HISTORY.md 06/13/2014 09:12 PM 11,368 LICENSE 07/09/2014 09:18 PM 5,486 README.md 06/13/2014 09:11 PM Source 06/13/2014 09:11 PM 4,097 Version.proj 06/13/2014 09:11 PM 21,899 waffle.jpg 07/09/2014 10:11 PM 6,364 Waffle.proj 06/13/2014 09:11 PM 4,917 Waffle.sln 12/16/2013 04:17 AM 596 Waffle.snk 12 File(s) 70,817 bytes 5 Dir(s) 1,329,960,747,008 bytes free C:\Users\Jeremy\Documents\GitHub\waffle>build all Build started 7/9/2014 10:38:12 PM. Build FAILED. "C:\Users\Jeremy\Documents\GitHub\waffle\Waffle.proj" (all target) (1) ->
Time Elapsed 00:00:00.11 C:\Users\Jeremy\Documents\GitHub\waffle> |
Did you install MSBuild community tasks? |
I do have that installed. I even tried the latest based off the link you provided. Still not having luck there. I did review the current zip file. I assume that is what the intent of the msbuild is. That said, at least for the java side, I'm going to write a maven assembly to put all that part together. That will at least resolve a large portion of the issue. I should be able to get that together over the weekend. It will be part of the waffle-parent pom. I have verified that maven build itself does work from command line as expected so this will be a good win even if not the full solution at the moment.. |
I have the multi-module maven assembly up and working. I think to make it work properly I need to mavenize all the demos. I definitely should have a PR by the end of the weekend. This is moving faster than expected. Before I ultimately PR this, can you take a look at the current PR I have for the Negotiate failure / NTLM working test case issue? |
As long as I can run |
The location to run maven from the msbuild would now be 'Source/JNA/waffle-parent'. Other than that there are a lot of expectations of what is getting built out under the tree which is no longer true. So the assembly I have will be able to take over for that piece. Essentially it will be placing a zip file under 'Source/JNA/waffle-distro/target' that will need picked up by the msbuild piece. So much less java related items in the msbuild will be required. It will just need to issue the build command then copy the resulting zip file. I'm using a zip file at the moment but that could as easily be a directory. |
I tried running
|
Got it! This clued me into the issue. I deleted my waffle repo entries and tried command line again. Now I get the error you have. This gives me a clear jumping off point to fix. Thanks. |
And just like that, fixed. If you want to test without taking the current pull request for initial verification, go into the 'Source/JNA/waffle-demo/waffle-demo-parent' and change the parent relative path from '../waffle-parent' to '../../waffle-parent'. |
New pull request will be made that fully mavenizes everything. See that request... |
I got the msbuild working finally. .net 3.5 appears to be a problem at least for me. So switched to 4.0 framework and it is now building. Test cases fail under .net side so skipped those to see if I could at least get a full build and ensure all else is working. Got through build but java stuff not getting copied properly. So working on that at the moment. |
Can you update the development environment docs for whatever you had to do for the MSBuild build to work? Clearly it was harder than we thought :) |
Failure doing
|
Strange that it cannot find the module that shows success. Does this happen each time you try to build? Maybe a second try would work. I'll try to reproduce tonight. --- Original Message --- From: "Daniel Doubrovkine (dB.) @dblockdotorg" notifications@github.com Failure doing
Reply to this email directly or view it on GitHub: |
This problem appears to be maven related. I've solved the problem by combining the 'mvn clean' and 'mvn install' into the jar section only as 'mvn clean install'. No real good reason to keep those apart anyway. I'll research this a bit more but after isolating the problem and running various things, I was able to reproduce this even using eclipse by just running 'mvn clean'. I'll do a pull request on this one tomorrow sometime. In the meantime, you can just switch the 'waffle.proj' file to skip the first 'mvn clean' call and then add the 'clean' first in the second maven call under jar section. That should get it working for you. |
This problem seems to be overall in maven issue. Probably something I hadn't noticed before since I almost always am in eclipse when running and have had prior builds first. Basically in multi module, anything without existing items in the .m2 seem to cause problems. So the above proposed solution will solve the issue. |
This got me further. I changed the .proj target to just not clean in clean and do I had two failures in the .NET tests, one of which was legit, now fixed. Tomcat5 giving me trouble:
|
K there is a bat file under third party now. Run that and it will install the third party items. Then build should be good. I'm going to add that to maven tonight so it is automatic. You also mentioned updating docs. Most already are. I did find a few old ant related items so will get that updated tonight. --- Original Message --- From: "Daniel Doubrovkine (dB.) @dblockdotorg" notifications@github.com This got me further. I changed the .proj target to just not clean in clean and do I had two failures in the .NET tests, one of which was legit, now fixed. Tomcat5 giving me trouble:
Reply to this email directly or view it on GitHub: |
Ok, good. I fixed its relative paths in d865a01. Try to really get a "build all" to succeed from top without anything preinstalled. This probably means calling out this batch as well. |
Good catch there. Definitely didn't want my machine... I'll try to get this all completed tonight. --- Original Message --- From: "Daniel Doubrovkine (dB.) @dblockdotorg" notifications@github.com Ok, good. I fixed its relative paths in d865a01. Try to really get a "build all" to succeed from top without anything preinstalled. This probably means calling out this batch as well. Reply to this email directly or view it on GitHub: |
This now works and passes all tests locally for me, closing. |
Running
build all
no longer works, we don't use ant. Needs to be updated with Maven.The text was updated successfully, but these errors were encountered: