build-process

Why is there no need for Maven in .NET?

南笙酒味 提交于 2019-11-29 20:32:51
I have the impression, that in the .NET-world, there is no real need for a Maven-like tool. I am aware that there is Byldan and NMaven (is it still alive?), but I have not yet seen a real-world project that uses them. Also in most .NET projects I have worked on, there never was voiced an need for a Maven-like tool. The problems Maven maven is addressing (automatic dependency-resolution, conventions based build structure ...) seem not to be so important in .NET. Is my perception correct? Why is this the case? What are people really using in .NET? No automatic dependency resolution at all? Are

Maven Deploy To Multiple Tomcat Servers

本秂侑毒 提交于 2019-11-29 19:39:22
What is the most minimal example of deploying a war to multiple tomcat servers using maven that can be written? I've tried the following URLs and asked the mailing list, but not coming up with anything that was short and would simply work. http://www.nabble.com/Deploying-to-Multiple-Servers-at-Once-td21592419.html The example should have the servers defined in the example somewhere (with sample usernames/passwords) Romain Linsolas The idea of Markus Lux can be also applied with a Maven2 solution, with the profiles management: <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId>

Skipping tests in some modules in Maven

混江龙づ霸主 提交于 2019-11-29 19:31:23
I would like my Maven builds to run most unit tests. But there are unit tests in one project which are slower and I'd like to generally exclude them; and occasionally turn them on. Question : How do I do this? I know about -Dmaven.test.skip=true , but that turns off all unit tests. I also know about skipping integration tests, described here . But I do not have integration tests, just unit tests, and I don't have any explicit calls to the maven-surefire-plugin. (I am using Maven 2 with the Eclipse-Maven plugin). Romain Linsolas What about skipping tests only in this module ? In the pom.xml of

Popular folder structure for build

流过昼夜 提交于 2019-11-29 19:27:45
I am wondering what the popular or best way to organise your build assets and source code within a project is? Personaly I use /client/projectname/trunk/source/Solution Name.sln /client/projectname/trunk/source/Project.One /client/projectname/trunk/source/Project.Two /client/projectname/trunk/source/Project.Three /client/projectname/trunk/source/SQL/ /client/projectname/trunk/source/SQL/SomeScript.sql /client/projectname/trunk/libraries /client/projectname/trunk/resources/Nunit /client/projectname/trunk/resources/LLBLGEN /client/projectname/trunk/documentation /client/projectname/trunk/builds

In Maven 2, how do I know from which dependency comes a transitive dependency?

怎甘沉沦 提交于 2019-11-29 18:54:46
I would like to know which dependency described in my pom.xml brings a transitive dependency in my target directory. To be more precise, I have the library "poi-2.5.1-final-20040804.jar" in my WEB-INF/lib directory and I would like to know which dependency in my pom.xml brings that. To add to @David Crow, here's a dependency:tree example from the Maven site: mvn dependency:tree -Dincludes=velocity:velocity might output [INFO] [dependency:tree] [INFO] org.apache.maven.plugins:maven-dependency-plugin:maven-plugin:2.0-alpha-5-SNAPSHOT [INFO] \- org.apache.maven.doxia:doxia-site-renderer:jar:1.0

Command line compiling an iPhone Application

跟風遠走 提交于 2019-11-29 17:43:30
问题 I would like to find a way to compile and package our iPhone application as part of our automated nightly build. At present we always have to manually kick off a build on a shared Mac that has the adhoc certificates installed on the box and then post the resulting test binaries some place where testers can pull them down and install them. Has anyone found an approach to automation that works for them? 回答1: There's a command line tool to build Xcode projects: xcodebuild 回答2: Try using

How to run a TeamCity build only for tags?

旧时模样 提交于 2019-11-29 17:32:33
问题 I have several projects that produce NuGet packages that I publish to an internal server. We're using semantic versioning, and using tags in our Git repository to control the version numbers. I'm tagging like this: git tag -a v1.0.0 -m "tagged" And, during the TeamCity build, I run git describe --long , which produces an output like this: v1.0.0-0-ge9c047d The fourth number in the output is the number of commits after the tag. The 0 here means that no commits have been made since the tag. I

Starting external process during integration testing in maven

断了今生、忘了曾经 提交于 2019-11-29 15:52:50
问题 I want completely automated integration testing for a Maven project. The integration tests require that an external (platform-dependent) program is started before running. Ideally, the external program would be killed after the unit tests are finished, but is not necessary. Is there a Maven plugin to accomplish this? Other ideas? 回答1: You could use the antrun plugin. Inside you would use ant's exec apply task. Something like this. <plugin> <groupId>org.apache.maven.plugins</groupId>

Keeping projects in sync across multiple .NET versions

本小妞迷上赌 提交于 2019-11-29 15:03:29
I need to create some core libraries within my application which will be available in both .NET 3.5 and .NET 4.0. I'm happy creating multiple projects, creating the required defines and using #ifdef to control which code make it into which output assembly. However, what I would like to know is if there is a way of keeping those projects in sync? When I am developing under XNA, I have a Windows build and a Windows Phone build - and XNA injects a property into the project file called XnaCrossPlatformGroupID . What it does with that is enable Visual Studio to automagically make sure that when a

TFS Build error - “The specified path, file name, or both are too long…”

时间秒杀一切 提交于 2019-11-29 14:43:37
问题 I'm writing the Custom Activities of build process template. I got the below issue when build the activity. >XamlBuildTask : error XC1043: Extension 'Microsoft.Activities.Build.BeforeInitializeComponentExtension' threw an exception of type 'System.IO.PathTooLongException' : 'The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.'. Do you have any ideas? Please help! 回答1: I