build-process

How to get rid of maven snapshot versions

放肆的年华 提交于 2019-12-03 08:45:38
I have been using maven for a while now. But I've never learnt how to get rid of the snapshot version. Please share some articles on how to do a release of the artifacts. i.e. how do I publish my 0.0.1-SNAPSHOT versions to (say) 1.0.0 Use the mvn:release plugin. mvn release:prepare mvn release:perform That's about all you need to do, in the general case. See here for the more complete documentation. 来源: https://stackoverflow.com/questions/758921/how-to-get-rid-of-maven-snapshot-versions

What tool to use for automatic nightly builds?

六眼飞鱼酱① 提交于 2019-12-03 07:54:18
问题 I have a few Visual Studio Solutions/Projects that are being worked on in my company, which now require a scheme for automatic nightly builds. Such a scheme needs to be able to check the latest versions from SVN, build the solutions, create the appropriate downloadable files (including installers, documentation, etc.), send e-mails to the developers upon errors and all sorts of other nifty things. What tool, or tool-set, should I use for this? I used to use FinalBuilder a few years ago and I

CruiseControl.net — How to checkin code during the build

久未见 提交于 2019-12-03 07:48:34
问题 I'm setting up CruiseControl.NET and during the build I want to modify my version.txt file and have it checked in. When I do this, CruiseControl.NET doesn't know this checkin was done by the build and so the next time it checks sources, it sees there were modifications and rebuilds again (I have IfModificationExists set in the project build). How do I tell CruiseControl.NET to check this file in or let it know that this one is OK so it doesn't keep re-triggering builds? 回答1: You can use

How can I ask Maven for a list of the default repositories?

陌路散爱 提交于 2019-12-03 07:44:17
问题 What command can I use to ask Maven for a list of the default repositories that it searches for its dependencies? If no such command exists, where else may I look to find this default list? 回答1: on the command line, execute mvn help:evaluate then, when prompted, enter ${project.repositories} see http://maven.apache.org/plugins/maven-help-plugin/evaluate-mojo.html 回答2: You can output the effective pom with the command mvn help:effective-pom There the default repositories are listed. 回答3: Use

Visual Studio: copy dependent DLLs to target folder

ε祈祈猫儿з 提交于 2019-12-03 07:34:38
问题 I realize that this question has been asked before - but none of the answers apply to my specific case: I have a solution containing a native C++ EXE project, which in turn depends on 40+ native C++ DLL projects (in the same solution). The EXE project has the usual Debug , Release (and Profile ) configuration, but since them same source code base is used to build three different applications (say A1 , A2 and A3 ). In addition, it targets x32 and x64, so that's a total of 3 x 3 x 2 = 18

build .net solution from batch file

為{幸葍}努か 提交于 2019-12-03 07:17:09
问题 I have a solution file comprising of 15 projects using a few third party dll references. I want to be able to build the solution from a batch file. What is the best way to do this? Thanks 回答1: Run msbuild - for example: msbuild MySolution.sln /p:Configuration=Release /p:Platform="Any CPU" 回答2: One of the simplest ways is to execute msbuild with the solution file as input: @echo off call %windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe path\to\solution.sln If this is done in a Visual

How to cope with “intrin.h: No such file or directory”?

微笑、不失礼 提交于 2019-12-03 06:51:48
问题 #include <intrin.h> The above will report: intrin.h: No such file or directory Which seems to be a MSVC header file,but I'm using eclipse cdt,how can I make it available?Is there some libraries needed? cdt uses MinGW for compiling,but there is no intrin.h : D:\Tools\MinGW\lib\gcc\mingw32\3.4.5\include>dir *intrin.h 2006-01-17 21:47 34,528 emmintrin.h 2006-01-17 21:47 22,281 mmintrin.h 2006-01-17 21:47 3,586 pmmintrin.h 2006-01-17 21:47 30,925 xmmintrin.h Is there anyone can help? 回答1: I have

What do you use for a complex build process? [closed]

一笑奈何 提交于 2019-12-03 05:59:24
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am trying to revamp our build process, which is currently a gigantic Ant build.xml that calls into other ant build files and executes several Java classes to perform more complex logic that would be impossible/scary to attemp in Ant. Background: experience in Java and Ant, some Groovy Windows platforms Goals:

Nant failing with bad permissions on build server

旧城冷巷雨未停 提交于 2019-12-03 05:57:51
Total newbie question. I am trying to run a Nant script on a build server (very basic script, not doing anything), and it's failing with the error System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. What should I do to get it running? @TK has the answer here, I believe, though it may not be as simple as whether or not nant is running from a network drive. I have had a similar issue as @Aidan. It turns out that I had copied the nantcontrib (v .86)

How can I best share Ant targets between projects?

若如初见. 提交于 2019-12-03 05:53:24
Is there a well-established way to share Ant targets between projects? I have a solution currently, but it's a bit inelegant. Here's what I'm doing so far. I've got a file called ivy-tasks.xml hosted on a server on our network. This file contains, among other targets, boilerplate tasks for managing project dependencies with Ivy . For example: <project name="ant-ivy-tasks" default="init-ivy" xmlns:ivy="antlib:org.apache.ivy.ant"> ... <target name="ivy-download" unless="skip.ivy.download"> <mkdir dir="${ivy.jar.dir}"/> <echo message="Installing ivy..."/> <get src="http://repo1.maven.org/maven2