Re: Another Maven 1 to 2 upgrade issue.

2013-05-01 Thread Ansgar Konermann
Make all the dependencies of the supporting jar scopeprovided/scope Ensure your app brings these dependencies and all *theirj transitive ones in the correct version. provided basically cuts off transitive dependencies. Am 01.05.2013 17:15 schrieb tedhohio tedho...@gmail.com: I 'inherited'

Re: Sonatype Nexus and Read - Error transferring file: Read timed out

2013-04-05 Thread Ansgar Konermann
Am 05.04.2013 18:26 schrieb Peter Kahn citizenk...@gmail.com: Hi all, Does anyone know how to control the timeout settings for a mirror in the maven settings file or in the dependency plugin? I see that I can modify timeout settings for a server but not a repository or a mirror. I assume

Re: Hmmmm

2013-03-20 Thread Ansgar Konermann
Am 20.03.2013 20:56, schrieb Stephen Connolly: Freud believed that slips of the tongue provided an insight into the unconscious mind and that there were no accidents, every behavior (including slips of the tongue) was significant (i.e. all behavior is determined). Source:

Re: mvn -amd should honour dependencyManagement POM imports

2013-03-19 Thread Ansgar Konermann
Am 18.03.2013 19:01, schrieb Stephen Connolly: Smells like a bug, I'd be interested in other's thoughts, but absence further input to the contrary, please one a jira Filed MNG-5455 [1] Best regards Ansgar [1] https://jira.codehaus.org/browse/MNG-5455

mvn -amd should honour dependencyManagement POM imports

2013-03-18 Thread Ansgar Konermann
Hi all, some colleagues and me are wondering if it is intentional that mvn -amd does not build submodules which depend on a POM via means of a POM import in the dependencyManagement section, like so: dependencyManagement dependencies dependency groupIdamd-test/groupId

Re: Property inheritance does exist?

2013-02-07 Thread Ansgar Konermann
Property inheritance works for properties you put into the properties section of a parent pom. The m-build-helper-p creates properties dynamically *after* maven already executed pom parsing and property inheritance. I. e.: inheriting dynamic properties does not work. HTH Ansgar Am 07.02.2013

Re: Property inheritance does exist?

2013-02-07 Thread Ansgar Konermann
Am 07.02.2013 21:49 schrieb Ansgar Konermann ansgar.konerm...@googlemail.com: Property inheritance works for properties you put into the properties section of a parent pom. The m-build-helper-p s/build-helper/properties/ creates properties dynamically *after* maven already executed pom

Re: Problem with GPG plugin

2013-01-27 Thread Ansgar Konermann
Run mvn in interactive (i. e. non-batch mode). No idea how mvn ant tasks can be configured to use interactive mode though. rtfm. A. Am 28.01.2013 06:49 schrieb Lewis John Mcgibbney lewis.mcgibb...@gmail.com: Hi, Having looked high and low for a resolution, I've been unable to find one. I'm

Re: import plugin configurations

2013-01-04 Thread Ansgar Konermann
If you really do, please discuss your approach here on the mailing list. I'm sure it will be useful for others, too. Am 04.01.2013 23:11 schrieb Marcos Mendez mar...@jitisoft.com: thanks. i'll see if i can create a plugin to do it then. On Jan 4, 2013, at 16:38, Anders Hammar

Re: import plugin configurations

2013-01-04 Thread Ansgar Konermann
as there is already a standard way to handle it in Maven. And Maven is all about conventions and not inventing your own solution. /Anders On Fri, Jan 4, 2013 at 11:35 PM, Ansgar Konermann ansgar.konerm...@googlemail.com wrote: If you really do, please discuss your approach here

Re: Release preparation not removing SNAPSHOT suffix

2013-01-02 Thread Ansgar Konermann
Had a similar issue recently. In the directory you're trying to release, what is the output of git status? Am 03.01.2013 03:01 schrieb Julien Silland julien.sill...@turn.com: Hi, I'm in the process of fully automating the release of my artifacts which are currently checked-in an internal git

Re: Aggregate modules and parallel builds

2012-11-16 Thread Ansgar Konermann
Read this first (the useAllReactorProjects flag notes, especially): https://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-binary-inclusion-simple.html https://maven.apache.org/plugins/maven-assembly-plugin/faq.html#module-binaries Create a new child module to

Re: Compile and install sub-project on build

2012-11-15 Thread Ansgar Konermann
As a side note: an existing file or http server will suffice to host your artifacts (jars) that you want to share between you and your colleagues. No need to set up a maven repo mgr. Maven deploy plugin can use many types of remote repository. Am 16.11.2012 05:39 schrieb Ron Wheeler

Re: Multiple Local Repositories

2012-11-01 Thread Ansgar Konermann
During normal use of maven, one repository should be shared between your projects. Why do you feel the need to have separate repositories for each of your projects? Am 02.11.2012 02:26 schrieb iamanandkris iamanandk...@gmail.com: Hi Can we have more than one local maven repositories in a

Re: Maven and Macker

2012-10-26 Thread Ansgar Konermann
Deploy macker-rules.xml to repository. Use m-dependency-p to fetch these rules from repo during build. Configure m-macker-p to pick up rule file where m-dependency-p put it. Am 26.10.2012 20:04 schrieb Alberto Ivo alberto...@gmail.com: I know there is a specific discussion list for Macker but

Re: how to deploy maven 1 artifact into artifactory

2012-10-03 Thread Ansgar Konermann
I'd say the most obvious step should be to migrate your Maven 1 projects to Maven 3. Am 03.10.2012 10:11 schrieb ktaeter niko.ma...@googlemail.com: Hi guys, I have the problem that I have to maintain maven 1 and maven 3 projects. Therefore I try to deploy my maven 1 artifacts into artifactory.

Re: Is the release plugin intended to be run manually?

2012-09-11 Thread Ansgar Konermann
What will happen to maven if we moderate discussions touching continuous delivery aggressively? Those who do want to use CD, which tools will they use? Where can they learn how to use maven for CD? How can maven developers learn how maven could evolve to facilitate maven usage in CD setups?

Re: Arguments for Maven vs. Gradle

2012-09-11 Thread Ansgar Konermann
Am 11.09.2012 22:59 schrieb Arnaud Héritier aherit...@gmail.com: I find also such discussion interesting it is always good to know what is existing arround and if some inputs may drive to improve Maven itself. The fact to know also why Maven is here is an important thing to better us it.

Re: maven-dependency-plugin 2.5 no longer honors excludes property

2012-08-13 Thread Ansgar Konermann
Shouldn't there be an IT to catch this kind of regression? Am 13.08.2012 19:41 schrieb Laird Nelson ljnel...@gmail.com: I think that I've noticed that the Maven dependency plugin's excludes property (for the unpack goal) is no longer honored. Before I file a bug, is this a known issue? If

Re: Running tests from a maven test-jar

2012-08-10 Thread Ansgar Konermann
Found this in the docs: http://maven.apache.org/guides/mini/guide-attached-tests.html HTH Ansgar Am 10.08.2012 18:36 schrieb Billy Newman newman...@gmail.com: I have a test jar out there that test some main functionality of an api. I would like to run that suite of tests for all my impl

Re: Running tests from a maven test-jar

2012-08-10 Thread Ansgar Konermann
, but that will not actually run that suite of unit tests against my code. It just pulls it in as a dependency. Again is the link I provided the best way to pull in a test-jar and actually run its tests against another artifact? Thanks again! Sent from my iPhone On Aug 10, 2012, at 10:57 AM, Ansgar Konermann

Re: Failsafe Plugin: How to get resource dependencies for integration-tests?

2012-07-27 Thread Ansgar Konermann
If you don't need resource filtering, you could just put the jar with your resources on the test classpath, i. e. add a test-scoped dependency to the module containing the integration test. Am 27.07.2012 15:06 schrieb Markus Karg k...@quipsy.de: Hello Maven Community, I have a complex setup

Re: A plugin to check the pomfiles for certain standards?

2012-07-26 Thread Ansgar Konermann
idea: custom rules for m-enforcer-p? Am 26.07.2012 15:32 schrieb Dünnebeil Gerhard gerhard.duenneb...@ait.ac.at: Hello everybody, I am looking for a plugin that tests the pom-files of a project to adhere to certain standards. The reason behind is that I want/need to enforce certain rules

Re: Passing system arguments to the forked maven process for release:prepare and release:perform

2012-07-12 Thread Ansgar Konermann
Am 12.07.2012 22:33, schrieb Todd Nine: Hi all, I'm attempting to re-package a 3rd party open source project and create our own custom distribution. I've modified and the source, and the repo is available here. https://github.com/apigee/beanstalk-spring-integration/tree/usergrid I'm

Re: Deploying maven artifacts to a repo and assemblies to another repo

2012-07-05 Thread Ansgar Konermann
Make the pure maven artifacts a dependency of a dedicated assembly module instead of attaching the assembly to your pure maven artifact module, tell assembly plugin to package dependencies, set distribution management of assembly module to people.apache.org. Am 05.07.2012 09:03 schrieb Simone

Re: Can I do scm checkout from inside a plugin?

2012-06-26 Thread Ansgar Konermann
Inject a maven ScmManager into your Mojo. Checkout code is fairly simple. Can give example code later if desired. Sent on the go A Am 26.06.2012 15:26 schrieb Kathryn Huxtable kath...@kathrynhuxtable.org : I know the release plugin can do it, but the source is fairly complex. Is there an

Re: Maven toolchains plugin

2012-06-04 Thread Ansgar Konermann
Am 04.06.2012 14:50 schrieb Stephen Connolly stephen.alan.conno...@gmail.com: Animal-sniffer @ mojo is your man for that Unfortunately, it does not fully support Maven 3: http://jira.codehaus.org/browse/MANIMALSNIFFER-23 Got bitten by this issue recently. Ansgar On Monday, 4 June 2012,

Re: Plugin to determine release order for multiple projects

2012-05-25 Thread Ansgar Konermann
Hi there. We've been doing without multimodules for some time now, so we ended up with a number of standalone Maven modules and faced a very similar problem as you do now. We thus created a prototype of a Maven plugin which extracts the project interdependencies from the POMs which are deployed

Re: enabling optional dependency

2012-04-30 Thread Ansgar Konermann
Am 30.04.2012 10:18, schrieb Radim Kolar: Spring framework has optional dependency on CGLIB: dependency groupIdcglib/groupId artifactIdcglib-nodep/artifactId version2.2/version optionaltrue/optional /dependency Is there some knob to switch this optinal dependency on or i have to copy

Re: creating a property and filtering the path only once

2012-04-26 Thread Ansgar Konermann
Common approach: put your special resource in a jar module. Let the modules which should have access to the resource define a dependency to that jar. If this approach does not work, please elaborate. Best regards, Ansgar Am 26.04.2012 20:36 schrieb Ryan Wexler r...@iridiumsuite.com: I have a

Re: creating a property and filtering the path only once

2012-04-26 Thread Ansgar Konermann
project, but it doesn't work if I just want to build the module. It seems that maven doesn't properly reference the parent basedir if you don't build from that directory. On Thu, Apr 26, 2012 at 12:06 PM, Ansgar Konermann ansgar.konerm...@googlemail.com wrote: Common approach: put your

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread Ansgar Konermann
You could externalize the configuration bits of current.vertical.title into a config file or jndi parameter and have the web application read it at runtime/during startup. I doubt the WAR plugin can filter resources which are already packaged as WAR, that is: have already gone through phase

Re: Need to change parameters of War, when overlay.

2012-04-10 Thread Ansgar Konermann
You cannot use *Maven* properties in your application. You need to use some Java JRE call or equivalent in your application to load the configuration at startup or run time. Your pom is merely loading the properties from a file so that *maven* can use them during build time, i. e. you could

Re: Passive Mode

2012-04-08 Thread Ansgar Konermann
Am 08.04.2012 07:15 schrieb Domingo José González Cabrera doming...@gmrcanarias.com: Hi, How I can do for set Passive mode to false with maven3 What kind of passive mode are you referring to? Please give some more context regarding what you are trying to achieve. Regards, Ansgar

Re: Pom files organization / best practice

2012-04-03 Thread Ansgar Konermann
Am 03.04.2012 12:55 schrieb Bata Degen bat...@arcor.de: Hi list, I have set up a Java Enterprise project with Maven in Netbeans. The pom.xml files are organized hierarchically. I have poms for the entire project, for the ejb, the web and the assembly (ear) part of the project. I don't know

Re: dependency versioning design

2012-03-10 Thread Ansgar Konermann
Could you be a bit more concrete, give a few examples where you feel restricted, describe the workflow you'd like to implement... things like that. Regards, Ansgar Am 10.03.2012 18:43 schrieb Mike Power mpo...@dodtsair.com: Has there been any thought to changing the design maven uses for

Re: using build profiles for WAR plugin

2012-02-29 Thread Ansgar Konermann
Am 29.02.2012 22:33 schrieb offbyone r...@iridiumsuite.com: I have no interest in using JNDI. You certainly don't need to. Pick any mechanism you like to configure your application according to the needs of your runtime environment, as long as you do it by configuration at *runtime* (not

Re: How to deploy with 'classifier'

2012-02-28 Thread Ansgar Konermann
Am 28.02.2012 22:02 schrieb Billy Newman newman...@gmail.com: So what is the recommended way to create different flavors of jars with a 'classifier'? Also I don't see how I am fighting maven I am sure this is possible as people build a 'sources' and 'javadoc' classifier within one module.

Re: Maven command to get Integrated directory structure of two or more existing archetypes

2012-02-26 Thread Ansgar Konermann
Look into so-called partial archetypes. Am 27.02.2012 01:57 schrieb SanalkumaranGP sana...@gmail.com: Hi Kindly give a solution or maven command for the below problem. I have created an archetype with a directory structure having some basic java application files .And another archetype

Re: Help again for working with release:plugin

2012-02-20 Thread Ansgar Konermann
Hi Torsten, Am 20.02.2012 22:02, schrieb Dipl.-Ing. Torsten Liermann: My parent pom is on the same level as the children poms If you mean they're in the same directory: this is a configuration error. Maven is not designed to work with this setup. Please configure your project to follow Maven

Re: Help! What I'm doing wrong with release:branch?

2012-02-19 Thread Ansgar Konermann
Am 19.02.2012 01:29 schrieb Dipl.-Ing. Torsten Liermann l...@liermann-it.de: Hi, (sorry, I can't speak english :( ) I would like to create a branch with a release version in all pom's The Snapshot version of the trunk is 3.0.2-SNAPSHOT and the release version should be 3.0-b01. Change the

Re: Help! What I'm doing wrong with release:branch?

2012-02-19 Thread Ansgar Konermann
Try release:prepare release:perform -Dtag=3.0-b01 -Darguments=-Dtag=3.0-b01 You probably don't need a dedicated branch. Am 19.02.2012 16:11 schrieb Dipl.-Ing. Torsten Liermann l...@liermann-it.de: Yes, it is unfortunately. But, when release:branch ask me for the pom version of the branch,

Re: Junit ignored by Maven

2012-02-19 Thread Ansgar Konermann
Please upload your complete example project to github or similar, so someone can have a look at it. Am 19.02.2012 16:33 schrieb Gogirl claudia.fr...@gmail.com: My goal is to run different versions of Junit Framework work. Surefire supports three different generations of JUnit: JUnit 3.8.x,

RE: Copy two versions of same jar

2012-02-17 Thread Ansgar Konermann
Am 17.02.2012 04:51 schrieb Nalini nalini...@huawei.com: dependencies dependency groupIdtest/groupId artifactIdcastor/artifactId version0.9.5/version /dependency dependency groupIdtest/groupId

Re: Maven + QA Tools

2012-02-14 Thread Ansgar Konermann
Upload your pom.xml and the actual error messages somewhere (gist, pastebin) and post the links here, so someone can have a look at it. Am 14.02.2012 17:39 schrieb Paulo Cassiano pcassi...@gmail.com: When I try to run pmd:pmd, or checkstyle:checkstyle, Maven returns me error... How can I

Re: the simplest Maven Project that can possibly work in Intellij?

2012-02-14 Thread Ansgar Konermann
Am 14.02.2012 21:49 schrieb Gogirl claudia.fr...@gmail.com: The symbols String and System cannot be resolved by Idea. Make sure you define a Java SDK in your project settings.

Re: How to ensure proper transitive dependencies

2012-02-02 Thread Ansgar Konermann
Am 02.02.2012 21:16 schrieb Leon Rosenberg rosenberg.l...@gmail.com: On Thu, Feb 2, 2012 at 6:10 PM, Jörg Schaible joerg.schai...@scalaris.com wrote: Leon Rosenberg wrote: Hello, I have following question, I don't quite understand how to solve properly. I have 3 projects, A,B and C.

Re: Spring context dependency not found..

2012-01-31 Thread Ansgar Konermann
Am 31.01.2012 10:28, schrieb Stephane-3: [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure

Maven/Plexus Dependency injection questions

2012-01-30 Thread Ansgar Konermann
Hi all, I'm writing a plugin which analyzes the dependencies of a large project consisting of loosely related maven projects. In this plugin, I need the remoteProjectRepositories in a plexus component. I'm using the plexus annotation @Component(...) to indicate my class is a component, plus

Re: Maven release plugin suggestions

2012-01-30 Thread Ansgar Konermann
Am 30.01.2012 17:46, schrieb Maven User: I think the difference between the drools plugin and what I'm trying to do is, I'm trying to manage several different maven modules that are released together, but live in different repositories. From my experience, this does not work. If you want to

Re: Maven - Unresolved references to [javax.activation, javax.annotation]

2012-01-28 Thread Ansgar Konermann
Am 28.01.2012 21:58, schrieb rcbandit: I'm developing web application with OSGI. I have a maven configuration error which I cannot find. This is the complete source code: http://uploading.com/files/8e5c9888/SH_27_test.zip/ This is the POM file: [...] When I try to compile it with Netbeans

Re: Maven release plugin suggestions

2012-01-27 Thread Ansgar Konermann
Am 27.01.2012 17:43, schrieb Maven User: If your aggregate pom is NOT a parent pom, can you execute the release from there? Yes. This works. Doing it all the time in my projects. You can use any POM which is available from a Maven repository as parent of your child modules. It does not need to

Re: Maven release plugin suggestions

2012-01-27 Thread Ansgar Konermann
! I appreciate it! On Fri, Jan 27, 2012 at 5:50 PM, Ansgar Konermann ansgar.konerm...@googlemail.com wrote: Am 27.01.2012 17:43, schrieb Maven User: If your aggregate pom is NOT a parent pom, can you execute the release from there? Yes. This works. Doing it all the time in my projects. You

Re: Maven release plugin suggestions

2012-01-27 Thread Ansgar Konermann
Am 27.01.2012 18:02, schrieb Maven User: But the push is trying to push the aggregate repository, NOT the jar repository. Any suggestions? AFAIK, that's the way it works with DVCS like Git. Not done a release with a HG-based project though. DVCS version the whole repository, not single

Re: custom unique version

2012-01-24 Thread Ansgar Konermann
Am 24.01.2012 10:58, schrieb Cem Koc: For those who wants another use case for custom unique version is: At our legacy application based on JPA has persistence.xml. Our domain jars were divided into the two module and they are included at our persistence.xml at like this:

Re: custom unique version

2012-01-23 Thread Ansgar Konermann
Am 23.01.2012 08:36 schrieb Thomas Scheffler thomas.scheff...@uni-jena.de : Am 20.01.2012 16:27, schrieb Ron Wheeler: Of all of the developers that have built thousands of applications using Maven, you are the only one who wants to do this. Does that not raise any red flags? There must be

Re: Difference between compile and provided scope for jar artifacts

2012-01-20 Thread Ansgar Konermann
Am 20.01.2012 17:44 schrieb chad.da...@emc.com: When I build a jar file, the compile dependencies are not packaged into the jar. So, this means that they are expected to be provided somewhere else in the run time environment, doesn't it? Which means that it doesn't seem like there's a

Re: deploying custom build artifact

2012-01-20 Thread Ansgar Konermann
Maven build helper plugin. Goal attach-artifact. Am 20.01.2012 17:42 schrieb chad.da...@emc.com: I'm using the maven-exec-plugin to run a process that produces a binary executable, let's call it myBin.run I would like to treat this as my maven artifact, i.e. have it deployed to my nexus

RE: Difference between compile and provided scope for jar artifacts

2012-01-20 Thread Ansgar Konermann
and related Java EE APIs to scope provided because the web container provides those classes. This scope is only available on the compilation and test classpath, and is not transitive. -Original Message- From: Ansgar Konermann [mailto:ansgar.konerm...@googlemail.com] Sent: Friday, January

Re: Overriding default deploy plugin version in standalone invocation

2012-01-19 Thread Ansgar Konermann
Copy the fully qualified goal coordinates string from the manual page of the desired goal. It includes a version number. Use it instead of the abbreviated deploy:deploy-file goal specifier. Regards, Ansgar Am 19.01.2012 19:22 schrieb sebb seb...@gmail.com: I've got Maven 2.2.1 and 3.0.3

Re: Skip surefire but run failsafe?

2012-01-19 Thread Ansgar Konermann
Am 19.01.2012 22:39, schrieb Nord, James: I tried mvn -DskipTests=true -DskipITs=false verify but also this is skipping both surefire and failsafe It does so because both plugins support a property named skipTests. If you set it to false on the command line, both will assume they should not

Re: Changing the working directory of the release plugin...

2012-01-18 Thread Ansgar Konermann
Am 17.01.2012 23:48, schrieb Thiessen, Todd (Todd): Does anyone know how to change the working directory, that the prepare phase of the release plugin uses, without also changing where it checkouts out the tag? Basically, I want to run the top level pom, but from a different working

Re: Changing the working directory of the release plugin...

2012-01-18 Thread Ansgar Konermann
. Not that I know of anyway. Next guess: mvn -DworkingDirectory=$yourFavouriteDirectory release:perform Not sure if it needs to be passed via -Darguments=... also, probably not. HTH Ansgar -Original Message- From: Ansgar Konermann [mailto:ansgar.konerm...@googlemail.com] Sent: Wednesday

Re: Restricting versions of transitive dependencies

2012-01-15 Thread Ansgar Konermann
Am 15.01.2012 18:13 schrieb Stuart Sierra the.stuart.sie...@gmail.com: Hello, list! I have a project A that has a dependency on library B. Library B has a dependency on library C with a version range like [2.1,3.0). I want to pin library C to a specific version in my project A. But I also

Re: Failure to find org.apache.maven.plugins

2012-01-15 Thread Ansgar Konermann
Am 15.01.2012 21:04, schrieb hp: Thanks again. My current Nexus configuration comes from the default one. What sort of thing I shall look into? I get all my project dependencies with my current existing setting. If the maven-war-plugin should be there as a part of my project dependencies,

Re: Failure to find org.apache.maven.plugins

2012-01-14 Thread Ansgar Konermann
Am 13.01.2012 20:34, schrieb hp: How to resolve the following error? Failure to find org.apache.maven.plugins:maven-war-plugin:pom:2.3.2 in http://localhost:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update

Re: Failure to find org.apache.maven.plugins

2012-01-14 Thread Ansgar Konermann
Am 15.01.2012 01:36 schrieb hp admin0...@homepage.kgbinternet.com: Thanks Ansgar. I have a look at my local Maven repository directory You should have looked into your Nexus' configuration. That's why maven told you (!) it can't find the plugin in nexus - it's the name of the mirror in your

Re: how to configure maven plugins using compony repository with nexus

2012-01-13 Thread Ansgar Konermann
Am 13.01.2012 07:12 schrieb chandrasheker chandrasheke...@gmail.com: Hi, How to configure maven plugins to company repository with nexus ui.i download the jar from internal company repository It's described in the manual of Sonatype Nexus. Please rtfm. Besides, the exception stack trace

Re: No plugin found for prefix 'war' in the current project ...

2012-01-13 Thread Ansgar Konermann
Post your POM. Post your complete settings.xml (replace sensitive data like passwords with ***). Post the complete command line used to run maven. Post the complete error message. Am 13.01.2012 20:38 schrieb hp admin0...@homepage.kgbinternet.com: Why this error occurs? I commented out the

Re: How to configure properties-maven-plugin to report built in properties/variables

2012-01-04 Thread Ansgar Konermann
Am 03.01.2012 17:22 schrieb David Hoffer dhoff...@gmail.com: How can I get project variables/properties exported to property file? What are you going to do with these properties files? Depending on your use case, there might be quite easy solutions for you, without putting a lot of properties

Re: Could we delete old version jar in local repository by mvn ?

2012-01-04 Thread Ansgar Konermann
Am 04.01.2012 05:02, schrieb zuxiong lin: Append like: repository\org\springframework\spring-core -3.0.5.RELEASE -3.0.6.RELEASE -3.1.0.RELEASE I want to remove 3.0.5 and 3.0.6. The local maven repository is an artifact cache. Why do you want to remove anything from this cache? This does

Re: Could we delete old version jar in local repository by mvn ?

2012-01-04 Thread Ansgar Konermann
Am 05.01.2012 02:07 schrieb zuxiong lin linzuxiong1...@gmail.com: Because of my not enough disk space... Then it's okay. Maven will re-download what it needs. A. 2012/1/5 Ansgar Konermann ansgar.konerm...@googlemail.com Am 04.01.2012 05:02, schrieb zuxiong lin: Append like

Re: nexus repository creation

2011-12-28 Thread Ansgar Konermann
Am 28.12.2011 07:43 schrieb chandrasheker chandrasheke...@gmail.com: Hi , How to add the artifacts and maven related plugins to nexus repository. what are steps required ,create a new repository using nexus.. plz expain step by step This is not a Nexus mailing list. Please use google to

How to generate dependency diagram like on http://maven.apache.org/ref/3.0.3/

2011-12-27 Thread Ansgar Konermann
Hi all, I'd like to create a dependency diagram like the one depicted on http://maven.apache.org/ref/3.0.3/ How did this diagram get generated, or was it done by hand using an off the shelf drawing program? Kind regards Ansgar

Re: Conflicting Spring versions

2011-12-14 Thread Ansgar Konermann
Am 14.12.2011 23:49, schrieb Barrie Treloar: Use http://maven.apache.org/plugins/maven-dependency-plugin/ Either mvn dependency:tree or mvn dependency:list Plus: use maven-enforcer-plugin with rule dependencyConvergence

Re: scm plugin -- what are the config-info?

2011-11-20 Thread Ansgar Konermann
Am 20.11.2011 06:26, schrieb rop: But I cant find anywhere what is the purpose of the url tag? http://maven.apache.org/pom.html#SCM HTH Best regards Ansgar - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For

Re: multiple versions of jar in war

2011-11-19 Thread Ansgar Konermann
I get strange errors. Could you be more specific? Some actual error messages would be great. After a while I figured out that maven does package libs which should not be there. Be concrete: which libs? What makes you believe they should not be there? There are multiple versions of some

Re: Sort dependencies topologically

2011-11-08 Thread Ansgar Konermann
Am 07.11.2011 18:29, schrieb Jérémy: Hi, I'm trying to sort the dependencies expressed in the pom.xml (including the transitive ones) in a topological way. Sonatype / Eclipse Aether can help with this. I use it myself for exactly the purpose you describe here to build a post-order depth first

Re: Sort dependencies topologically

2011-11-08 Thread Ansgar Konermann
Am 08.11.2011 21:36, schrieb Ansgar Konermann: Example code can be found [...] Some more example code here: https://docs.sonatype.org/display/AETHER/Home Ansgar - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: Release plugin when POM is not in root directory

2011-11-01 Thread Ansgar Konermann
Am 01.11.2011 22:27, schrieb Jim Cook: This is where the problem occurs, since the pom.xml is not in the working directory. Just for clarity: does this mean, your pom.xml is not in the git repository you're trying to release? If so: DFMYL (Don't Fight Maven, You'll Lose!). Put your pom.xml

Re: Does the versions plugin deal with transitive references to two different versions of an artifact?

2011-10-28 Thread Ansgar Konermann
Am 28.10.2011 20:07 schrieb KARR, DAVID dk0...@att.com: If I have a build with a lot of modules, and I end up with two transitive dependency references to commons-lang, one for version 2.2, and one for version 2.4, does the versions plugin let me define rules that will let me choose either the

Re: Does the versions plugin deal with transitive references to two different versions of an artifact?

2011-10-28 Thread Ansgar Konermann
Hi Ron, Am 28.10.2011 23:39, schrieb Ron Wheeler: Doesn't your IDE let you know when there is a conflict in the transitive dependencies? Depends on your IDE. E. g. IntelliJ IDEA by default does not. I believe that Eclipse STS does that for us. Never used Eclipse STS, can't judge. Much simpler

Re: Does the versions plugin deal with transitive references to two different versions of an artifact?

2011-10-28 Thread Ansgar Konermann
Am 28.10.2011 23:04, schrieb KARR, DAVID: -Original Message- From: Ansgar Konermann [mailto:ansgar.konerm...@googlemail.com] Sent: Friday, October 28, 2011 12:15 PM To: Maven Users List Subject: Re: Does the versions plugin deal with transitive references to two different versions

Re: where to put common dependecies in multi-module project

2011-10-26 Thread Ansgar Konermann
Am 24.10.2011 11:08, schrieb codingplayer: And why not put it into the core module (e.g. sandbox-core) , since all other sub-modules would use the core anyway? Because it violates Law of Demeter; quoting [1]: The advantage of following the Law of Demeter is that the resulting software tends to

Re: Replacing properties with Maven.

2011-10-25 Thread Ansgar Konermann
Am 25.10.2011 16:37 schrieb MavenUser8979 mihir8...@yahoo.com: All, I have one requirement where I want to read all the parameterized properties from one file and replace it in other file. e.g. parameterized.properties is having below two properties. LOG_DIR=/application/logs

Re: Change the values of custom properties during project creation

2011-10-23 Thread Ansgar Konermann
Am 20.10.2011 15:09, schrieb ntzanos: I want to change the default values that I have set in my archetype pom.xml to some custom value during project creation. Is this possilble? Put a requiredProperties section into your archetype descriptor:

Re: writing a parent pom that does not execute its plugins

2011-10-19 Thread Ansgar Konermann
Am 18.10.2011 13:28, schrieb Dirk Olmes: I am aware of the pluginManagement section but fail to see if it would help: I'd still have to list all the plugins to be executed in the individual installer POMs. True, but IMHO a lot better than specifying the whole plugin configuration over and over

Re: Maven Enforcer Rule for Having annotation

2011-10-17 Thread Ansgar Konermann
You might want to consider PMD and Checkstyle. Another, simpler option is to write an integration test which iterates over your target directory and does some class filtering based on package name, then loads the desired classes using path name transform (directory + file name - package + class

Re: Activate profile with property set in a file

2011-10-15 Thread Ansgar Konermann
You could use project specific settings.xml, using command line switch -s. Not sure if this fits your use case though. Am 15.10.2011 18:35 schrieb Stanimir Stamenkov s7a...@netscape.net: Fri, 14 Oct 2011 09:35:26 +0200, /Jörg Schaible/: Any property used to activate a profile must be given

Re: default auth for settings.xml

2011-10-14 Thread Ansgar Konermann
nexus as a mirror somewhere at the beginning). Best regards Ansgar On Thu, Oct 13, 2011 at 12:06 PM, Ansgar Konermann ansgar.konerm...@googlemail.com wrote: Am 13.10.2011 20:57, schrieb Tommy Chheng: The server ids are different because each is a different proxied server. What exactly

Re: default auth for settings.xml

2011-10-13 Thread Ansgar Konermann
Am 13.10.2011 20:06, schrieb Tommy Chheng: I have a few servers in the settings.xml where the username/password is the same for all server ids. Hi, use a different password for different servers. The server administrators will probably be very grateful for this fine act of computer security.

Re: default auth for settings.xml

2011-10-13 Thread Ansgar Konermann
Am 13.10.2011 20:57, schrieb Tommy Chheng: The server ids are different because each is a different proxied server. What exactly do you mean by each is a different *proxied server*? a) I want to deploy to maven repositories on different servers which are located outside my organisation, but I

Re: Managing Different Java Versions

2011-10-10 Thread Ansgar Konermann
Am 10.10.2011 22:15, schrieb Eric Kolotyluk: I am not really sure why no-one recommended this to me in the first place as it effective and simple to understand. Maybe you led the crowd into the wrong direction by claiming: I am almost complete reworking things to run on a Java 5 run-time, and

Re: duplicate class error when using symlinks

2011-10-06 Thread Ansgar Konermann
Please use Google to find the relevant manual page of this particular plugin. No. Configuration is a little different. Am 06.10.2011 12:37 schrieb rajaram shetty rajaram...@gmail.com: Will the same tag work with gmaven plugin ? On Thu, Oct 6, 2011 at 11:11 AM, Ansgar Konermann ansgar.konerm

Re: duplicate class error when using symlinks

2011-10-05 Thread Ansgar Konermann
Am 05.10.2011 20:39, schrieb rajaram shetty: I cant remove the symlinks. it is a part of my version controller. What is the name of the version controller product (version control system) you are using? All the files are actually symlinks to the backend repo. and each folder has a sym linked

Re: duplicate class error when using symlinks

2011-10-05 Thread Ansgar Konermann
maven-compiler-plugin has a dedicated parameter to exclude sources from test compilation (testExcludes IIRC). Same should be the case for the other languages, but you will probably need to configure one dedicated plugin per language. Am 06.10.2011 04:02 schrieb rajaram shetty rajaram...@gmail.com:

Re: Adding modules from within a plugin?

2011-09-13 Thread Ansgar Konermann
Maybe you could convert your configuration data into a tailored aggregator pom, containing the optional modules depending on this data. The aggregator POM could then be used to fire off a maven build. Not sure if this fits your use case, but it's at least an idea. Best regards Ansgar Am

RE: [maven] Re: Preserving whitespace when configuring plugin?

2011-09-12 Thread Ansgar Konermann
Am 12.09.2011 20:18 schrieb Jason Pyeron jpye...@pdinc.us: -Original Message- From: Laird Nelson [mailto:ljnel...@gmail.com] Sent: Monday, September 12, 2011 14:11 To: Maven Users List Subject: [maven] Re: Preserving whitespace when configuring plugin? On Mon, Sep 12, 2011

Re: How can I tell if I'm building the parent or a module?

2011-09-12 Thread Ansgar Konermann
Am 12.09.2011 21:50, schrieb laredotornado-3: Hi, I'm using Maven 3.0.3. Within an antrun execution, how can I tell if I'm building a parent or building one of the modules that inherits from the parent? This antrun execution is located within the parent pom.xml file. Put the following task

Re: [maven] Re: Preserving whitespace when configuring plugin?

2011-09-12 Thread Ansgar Konermann
Am 12.09.2011 22:11, schrieb Jason Pyeron: I think that supporting the xml:space='preserve' would be best as it would be backwards compatible. But there are other disfunctions in the same parsing logic too. @Jason van Zyl: any chances to clean up these other disfunctions somewhen in the

  1   2   >