maven-scm

Why does mvn release:prepare fail while tagging?

With my multiproject pom I get an error while running release:prepare. There is nothing fancy about the project setup and every release-step before runs fine. The error I get is: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] -------------------------------------...

How to use maven to export a project from subversion?

Maven has a plugin called maven-scm-plugin, which can interact with source control systems. According to the documentation, I should be able to export a project like this: mvn scm:export -DconnectionUrl=scm:svn:svn://url... -DexportDirectory=./project-export However when I run this command with maven 2.0.9, I got the following error f...

Maven: How to deploy with deploy-file and custom wagon

I'm trying to use a custom maven wagon extension to deploy a jar to my own repository. Can I somehow configure in settings.xml that it recognizes the custom url scheme to be used with the specific wagon or do I have to always modify pom files to contain the wagon extension? There doesn't need to be a base pom or any pom available when...

using Maven SCM tag with Perforce

Does anyone have examples on how to configure the Maven SCM tag for perforce? ...

maven build execute svn get

I have a project build that needs to include files from another svn location during the build. I want to execute an svn get and then copy these files to the appropriate folder for the build. Researching this issue it seems I could use ant tasks but I wanted to find out what might be the best approach to take for this build. ...

How to setup Maven to connect with CVS using public key authentication?

I have a section in a POM that looks something like this: <scm> <connection>scm:cvs:ext:myhostname:/cvsroot/repo:module_name</connection> </scm> I typically use publickey auth to authentication against this cvs server, although it should accept my password as well. When I attempt to run mvn scm:update, mvn release:prepare, or any o...

Maven: Commit single artifact to svn repository

How can I commit a single artifact like a file or a directory to an arbitrary location in a svn repository in the deploy lifecycle phase? With repository I mean a plain Subversion repository here, not a Maven repository held in a Subversion repository! I have already evaluated the wagon-svn but it seems it can just be used to commit a w...

Externalising SCM credentials with Maven

Is there a method to externalize my SCM credentials so they are not stored in the project's POM? The problem being if they're contained in the project's POM, they will be visible to all when the project is deployed. ...

Unable to deploy using SVN as Maven repo

I'm trying to use Subversion as Maven repo utilizing Maven wagon. If I declare snapshot location using http as protocol I get 409 error back from server when trying to deploy (mvn clean deploy) <snapshotRepository> <uniqueVersion>false</uniqueVersion> <id>engtools_snapshots</id> <name>EngTools Maven Repository</n...

Credentials ignored with maven scmchangelog-plugin

When I configure the scmchangelog-plugin, as written in the examples/tutorial, and run the site-generation, the username and password I have set are ignored. The documentation says that username and password which should be used to access the SCM can be configured in the plugin-configuration. This looks like this: <reporting> <plugins...

Disable Maven SCM

Hello, Could I disable SCM integration option in Maven? I want it to build a local checked-out project without SCM integration ? is there some settings or some how?? thanx in advance ...

How can I configure Maven to commit to a Mercurial repository when I install:install

Maven's SCM plug-in doesn't appear to provide a "commit" goal. scm:checkin performs a commit AND push. I need to avoid the push. I'm simply interested in doing an hg commit during install:install. I'm not using the release plugin and don't need it yet. I'm simply working locally in a multi-module environment and want to ensure that my s...

Jalopy to format return/throw statements

Hi all, I would like Jalopy to format my return and throw statements such that they look like a method call since they are: return(true); throw(new IllegalArgumentException("You can't do that, what we you thinking?")); I have the rest of the code formatted exactly the way I want so this is the icing on the cake. Also as an aside, I...

How to configure Hudson/Maven2 to add SVN revision to name of EAR?

We use Hudson, Maven2 and maven-ear-plugin. Is it possible to have the built EAR files to contain SVN revision in their filename (something like project-1234.ear)? ...

maven build error

hi, when building a maven project. i am getting the following error. [ERROR]Runtime Exception thrown during execution [ERROR]The scm url cannot be null. Please hint me on how to resolve it. Thanks ...

How to exclude a folder in svn checkout in maven?

Im using maven to checkout some projects. I don't want maven to checkout a folder. But it seems to ignore the excludes tag in configuration. This is the svn structure: trunk/ |-- folder_to_include `-- folder_to_ignore And here it goes a sample of the pom.xml: <execution> <id>checkout_application</id> <configuration>...

SVN Authentication and authorization

Hi, I have created a multi module maven project. Now I have shared the project with a internal SVN repository. Now I want to give authorization to user based on the module user is owner of. So if a user does not have right to a project; he/she will not be able to checkout the project form svn repository. But he/she will get a source r...

Maven Buildnumber plugin - Git

Hi all, The Maven Buildnumber plugin doesn't appear to work with GIT yet. Is there a workaround for the time being? I recently switched from SVN to GIT and have found it to be an easy transition, but this is the only thing that I don't have working presently. Walter ...

Maven Mojo & SCM Plugin: Check for a valid working directory

Hi there. I'm using maven-scm-plugin from within a Mojo and am trying to figure out how to determine if a directory D is a valid working directory of an SCM URL U (i.e. a checkout of U to D already happened). The context is that I want to do a checkout of U if D is a working set or do an update if it isn't. The plan is to check out U...

Maven Mojo: Taking complete control over logging / Forbid other plugins to log

Hi there. I don't know if this is actually possible, but can I take complete control over logging from inside a Maven Mojo? With complete control I mean that only messages from my Mojo are logged or that I can decide wether a given message shall be logged. The context is that I'm using the maven-scm-plugin in my plugin to do some SCM a...