Please release maven-dependency-plugin 3.3.1

2022-11-02 Thread Andreas Sewe
. (FYI, I've built and tested a 3.3.1-SNAPSHOT myself and can confirm that the option works as advertised. :-) Best wishes, Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional comman

Re: Users of Mercurial (Hg) SCM provider

2021-10-22 Thread Andreas Sewe
Michael Osipov wrote: > Can you explain the benefit for you compared to Git (another DVCS)? > I don't have any experience with Mercurial. Speaking only for myself and not Václav and desperately hoping not to start a Git vs. Mercurial flamewar, for me the one-and-a-half things Mercurial does better

Re: Users of Mercurial (Hg) SCM provider

2021-10-20 Thread Andreas Sewe
Hi Michael, >> I use it (with Mercurial 4.5.3), both with the maven-release-plugin and >> for some basic operations like scm:tag in scripts (although that would >> be easily replaceable with a direct invocation). > > Any reason why you are not on 5.x? I don't even know what changes were > introdu

Re: Users of Mercurial (Hg) SCM provider

2021-10-18 Thread Andreas Sewe
Hi, > are there any Maven users who use Maven SCM Hg provider directly or > indirectly through Maven Release Plugin? > We are currently reviewing the vast amount of code in Maven SCM and try > to reduce what cannot reasonable maintain. > > Please raise your voice and tell us about your usecase an

Re: maven-gpg-plugin SHA512

2021-03-11 Thread Andreas Sewe
Andreas Sewe wrote: > Michael Osipov wrote: >>> Michael Osipov wrote: >>>> Don't waste your time. Read [1]: aether.checksums.algorithms >>>> >>>> [1] https://maven.apache.org/resolver/configuration.html >>> >>> Thank you for t

Re: maven-gpg-plugin SHA512

2021-03-11 Thread Andreas Sewe
; repository. What am I doing wrong? > > You need to update the bundled Maven Resolver version and it will work. > Mark Thomas is already using it with Maven Resolver Ant Tasks to push > Tomcat releases. (Replying to the Maven Users List as well, in case someone else is searching for

Re: maven-gpg-plugin SHA512

2021-03-11 Thread Andreas Sewe
uot; but can't get it to work: mvn deploy -Daether.checksums.algorithms=SHA-512,SHA-256,SHA1,MD5 The above still only created .sha1 and .md5 files in my staging repository. What am I doing wrong? Best wishes, Andreas Sewe signature.asc Description: OpenPGP digital signature

Re: Why does POM have precedence over -D property expressions?

2020-09-16 Thread Andreas Sewe
Andy Feldman wrote: >> My situation is unfortunately a bit more complex than that, as I have >> *two* s of the maven-enforcer-plugin, only one of which >> should be affected by -DskipChecks. The other simply uses the >> rule, which IMHO shouldn't easily be disabled (but >> should still respect -De

Re: Why does POM have precedence over -D property expressions?

2020-09-15 Thread Andreas Sewe
Denforcer.skip, being the more direct option, should take precedence over -DskipChecks. Any ideas? Best wishes, Andreas Sewe signature.asc Description: OpenPGP digital signature

Re: Why does POM have precedence over -D property expressions?

2020-09-15 Thread Andreas Sewe
Oliver B. Fischer wrote: > I had the same question some days back > (https://mail-archives.apache.org/mod_mbox/maven-users/202009.mbox/%3C922b4efc-3296-d35d-0675-d6c0090cc4b1%40swe-blog.net%3E) > and Stuart McCulloch sent me a link to this JIRA issue: > https://issues.apache.org/jira/browse/MNG-497

Why does POM have precedence over -D property expressions?

2020-09-14 Thread Andreas Sewe
Hi, I am currently sprinkling child elements like the following through my (parent) POMs for enforcer:enforce, tidy:check and checkstyle:check : ${skipChecks} This allows me to skip all kinds of checks with a simple -DskipChecks=true (or even -DskipChecks), just like I am used to for tests wi

Namespace-aware alternative to @Parameter PlexusConfiguration

2020-08-06 Thread Andreas Sewe
Hi, I am writing a Maven plugin (for XQuery) whose should allow variables to be bound to XML fragments. Moreover, the variable names are XML QNames (like all names in XQuery), i.e., (URI, String) pairs. An example: http://www.w3.org/2005/xquery-local-functions"; xmlns:html="http:

Injecting ${project.baseUri} as mojo parameter doesn't work

2020-08-03 Thread Andreas Sewe
Hi, I think I have encountered a bug (with Maven 3.6.3). While ${project.baseUri} is available during for POM interpolation, it is not injected into mojos: Neither > @Parameter(defaultValue = "${project.baseUri}", readonly = true, required = > true) > private String projectBaseUri; nor >

Profile activation depending on presence of toolchains file

2020-07-07 Thread Andreas Sewe
Hi, Maven allows the user to specify a toolchains file via its --toolchains parameter (defaulting to ~/.m2/toolchains.xml). While useful, this ability to override the file's location is unfortunately a problem if one wants to make the use of the maven-toolchains-plugin *conditional* upon the pres

maven-jxr-plugin release please (to generate report without forking lifecycle)

2020-05-12 Thread Andreas Sewe
Hi, the maven-javadoc-plugin and maven-surefire-report-plugin both have goals/reports (javadoc-no-fork and report-only, respectively) that don't require forking the build lifecycle. But unfortunately, a simpe mvn clean deploy site-deploy still needs to do that because of the maven-jxr-plugin.

Re: Best Practice for distributing test utilities?

2020-03-13 Thread Andreas Sewe
Mark Prins wrote: > refactor foo to a multimodule one with the test utilities as an artifact > and one with the code + tests for original foo, you can then depend on > the test module with scope test in the main module and keep everything > in source repo making it easy to stay in sync Grouping ev

Re: Best Practice for distributing test utilities?

2020-03-13 Thread Andreas Sewe
Anders Hammar wrote: > I'd say option 4 is the way to go. But you need to solve the circular > dependency problem. One way is to have a third api project/module, which > foo-test-utils have a compile time dependency on. Here you could use the > Service Provider Interface pattern. >> 4. Option 4 is

Best Practice for distributing test utilities?

2020-03-12 Thread Andreas Sewe
Hi, I am struggling to figure out what the Maven Way is for distributing test utils. Say I have a project "foo" along with some unit tests for it. Moreover, I have some utilities that help in testing "foo" (e.g., test data builders or test fixtures). These utilities are used by the unit tests for

Writing Maven plug-in: Recommended utils for file-set scanning

2019-05-05 Thread Andreas Sewe
Hi, I am currently writing a Maven plugin that transforms some input file set to some output file set and want to offer all the common goodies like , , and . Now I am wondering which utilities to use for this purpose. As far as I can see, for scanning I could use - DirectoryScanner from org.code

Re: Handling emails in pom.xml

2018-12-10 Thread Andreas Sewe
Hi Maxim, > Recently I noticed the issue with site generation [1] > > > mailto:mailaddrr AFAIK, the element takes just the plain e-mail address, not a (mailto) URI: j...@example.com See [1] for a longer example. Hope that helps. Andreas [1]

Re: Java 9 modules for Maven components for Java 9 based pluggins

2018-07-02 Thread Andreas Sewe
Robert Scholte wrote: > If you still think there's a reliable solution to let Maven use Java > Modules, I'd like to see your solution, there are probably more people > interested. Let me just jump into the discussion at this point: For all the reasons Robert mention, Maven plugins and the Core wo

Re: Accessing licenses/license as POM properties?

2018-05-19 Thread Andreas Sewe
Mark Raynsford wrote: > Spoke a bit too soon. I'm using the bnd-maven-plugin, but I don't think > that changes anything. I have: > > > biz.aQute.bnd > bnd-maven-plugin > ${io7m.bnd-maven-plugin.version} > > > > > >

Re: Accessing licenses/license as POM properties?

2018-05-18 Thread Andreas Sewe
Hi, > Is there a way to access the contents of the element as POM > properties? I'd like to reference the URL of the first license element > in a plugin execution, but there doesn't appear to be a > ${pom.license.url} or anything similar. here's what I use as an for the maven-bundle-plugin to g

maven-resolver tread-safe? Calling resolveDependencies in multiple threads

2017-12-08 Thread Andreas Sewe
Hi, is maven-resolver (specifically resolveDependencies) thread safe? I know that it places .lock files to avoid multiple threads trampling on each others partial downloads, but I seem to have encountered a deadlock (or some other phenomenon that causes it to hang). Here's an excerpt from a stack

Maven Resolver: Finding the primary artifact’s extension for a GAV

2017-11-22 Thread Andreas Sewe
Hi, for some analyses of third-party *-tests.jar artifacts I want to build a test classpath. My input is an Artifact coordinate like org.example:example:jar:tests:1.0. I can use this to download the example-1.0-tests.jar and also to download all test-scoped dependencies of org.example:example:1.0

Re: maven-artifact-transfer: How to build the classpath for arbitrary GAVs?

2017-11-22 Thread Andreas Sewe
Hi Robert, > have a look at > https://maven.apache.org/shared/maven-artifact-transfer/comparison.html > that should explain the difference between type/package/file-extension > > If it is still not clear enough, please help imrpove the documentation. One way to improve the documentation is to sh

Re: maven-artifact-transfer: How to build the classpath for arbitrary GAVs?

2017-11-21 Thread Andreas Sewe
Hi Robert, thank you for the pointer. > This should be the information you were looking for, Alas, the information doesn't quite solve my problems -- but maybe I'm just being obtuse. Let's say I want to built (and resolve) the test-scoped classpath of org.apache.maven.shared:maven-artifact-tran

Re: Maven-Indexer 6.0 Release

2017-11-21 Thread Andreas Sewe
Hi, > I am "ressurecting" an old topic. I wonder if it is possible to have some > news for 6.0 release of maven indexer. > > The old version of maven indexer make a plugin fail at runtime with maven > 3.1.1+ (see [2]). And works well with 6.0. FWIW, I'm also quite keen on proper r

maven-artifact-transfer: How to build the classpath for arbitrary GAVs?

2017-11-20 Thread Andreas Sewe
Hi, I am currently struggling with the maven-artifact-transfer 0.9.1 API. Here's what I am trying to accomplish: Given an arbitrary GAV and a scope (compile or test), construct the compile- or test-scoped flat classpath for that GAV. DependencyResolver seems to be the class I am after, but I have

Re: How to get a Wagon TransferListener wrapping the default Aether TransferListener

2017-10-11 Thread Andreas Sewe
Hi Robert, > Sounds like something which has to be added to maven-artifact-transfer[1] I created MSHARED-662 [2] to track this feature request. I've also since I asked about this written my own adapter, which I would be willing to share. Let's discuss this in JIRA. Best wishes, Andreas > [1]

How to get a Wagon TransferListener wrapping the default Aether TransferListener

2017-10-07 Thread Andreas Sewe
Hi, I am writing a Maven plugin that needs a *Wagon* TransferListener (org.apache.maven.wagon.events.TransferListener). To ensure a consistent user experience, this Wagon TransferListener should behave exactly like the (org.eclipse|org.sonatype).aether.transfer.TransferListener which Maven presuma

Maven Archiver: Suppress Built-By header

2017-07-26 Thread Andreas Sewe
Hi, in order to increase build reproduciblity, I am looking for a way to suppress the Built-By manifest header the Maven Archiver automatically generates. Unfortunately, I couldn't find a configuration option to do this. The following didn't work either (it generated an empty Built-By header inst

Re: [EXTERNAL] [ANN] Apache Maven Version 3.5.0-alpha-1 Released

2017-03-02 Thread Andreas Sewe
Stephen Connolly wrote: > Can you create an issue against the MNG project in the issue tracker and we > will consider it from there I'll leave that to Justin, as he has the need for this feature and can probably describe his requirements best: I just

Re: [EXTERNAL] [ANN] Apache Maven Version 3.5.0-alpha-1 Released

2017-03-02 Thread Andreas Sewe
Hi, > Any chance the Aether work would somehow enable declaring server credentials > only once in settings.xml and then reusing them for multiple > build.repositories.repository nodes in pom.xml (such as when you have > multiple independent repositories within the same authentication realm of a

Re: Clarification needed: is inherited?

2016-07-11 Thread Andreas Sewe
Hi Robert, > prerequisites are never inherited, see > https://github.com/apache/maven/blob/master/maven-model-builder/src/main/java/org/apache/maven/model/merge/MavenModelMerger.java#L190 thank you (and other on this thread). FYI, I filed a bug [1] with the versions-maven-plugin to reword their

Re: Accessing child of using property syntax?

2016-07-08 Thread Andreas Sewe
Sebastian Hoß wrote: > ${project.licenses[0].url} should do the trick Thanks, Sebastian. Works like a charm. Now I can generate even nicer OSGi Bundle-License headers than with the maven-bundle-plugin's defaults: > ${project.licenses[0].url};description="${project.licenses[0].name}" Best wishes

Accessing child of using property syntax?

2016-07-07 Thread Andreas Sewe
Hi, I vaguely recall having read the answer to this one years ago, but googling and searching through the Apache JIRA didn't turn it up again. :-( Is it possible to access a single child element of POM element using ${} property syntax? I tried ${project.licenses.1.url} ${project.licenses.1

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing (Take 3)

2016-07-07 Thread Andreas Sewe
Hi, > If you like to help making the next Maven release better it would be > nice if you could help a little bit. > > Please be aware of this *** This is not an official release *** > > Every kind of feedback is helpful. the good needs is that I found no regressions (testing several large build

Clarification needed: is inherited?

2016-07-06 Thread Andreas Sewe
Hi, I am confused by the following message of dependency:display-plugin-updates > [INFO] Project inherits minimum Maven version as: 3.0 and this statement from the enforcer rule [1]: > This rule enforces that the prerequisite is specified since it is not > inherited from its parent. Am I mi

Re: Javadocs generated by maven-javadoc-plugin does not include method parameter names for Eclipse

2016-04-07 Thread Andreas Sewe
Derek Hongar wrote: > I'm using Eclipse and I would like to attach a library's javadocs to my > project so that when I implement an interface and choose the option *Add > unimplemented methods* the *methods parameter names* show up correctly > instead of *arg0*, *arg1*, etc. AFAIK, this has nothin

Re: access to license node

2015-02-19 Thread Andreas Sewe
Hi, >> Have a look at . While it >> is marked as fixed, apparently things like >> ${project.licenses.0.license.name} did not (and still do not; I just >> checked) work. :-( > > The following works for me: > > ${project.licenses[0].name} Yes, I sp

Re: access to license node

2015-02-19 Thread Andreas Sewe
Hello, > I’m using Maven 3.2 with the pom definition > > http://www.w3.org/2001/XMLSchema-instance"; > xmlns="http://maven.apache.org/POM/4.0.0"; > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd";> > 4.0.0 > > > I have added th

Re: How to activate a profile when -offline?

2015-02-05 Thread Andreas Sewe
Hi Curtis, many thanks for your detailed reply. You wrote: >> Is this by design, i.e., is ${settings.offline} different from, >> say, a property ${my.offline} that I activate with -D? > > For better or for worse, Maven profiles cannot be activated based on Maven > properties, only based on Java

How to activate a profile when -offline?

2015-02-05 Thread Andreas Sewe
Hi, sometimes it's useful to configure a Maven plugin depending on whether the build runs in online or offline mode (-offline command-line option). Now, using mvn help:effective-settings -offline shows that ${settings.offline} == true. Alas, I cannot get the following profile to activate:

Activating a profile iff toolchains are configured?

2014-07-04 Thread Andreas Sewe
Hi, I wonder whether these is a portable way of activating a profile iff toolchains are properly configured, i.e., if either ~/.m2/toolchains.xml is present or, if -t is used, the file specified thereby. I would like to use toolchains (execute toolchain:toolchain and set the tycho-compiler-plugin

Re: Breadcrumb inheritance in site.xml

2014-06-12 Thread Andreas Sewe
Hi, > that wasn't possible during my time of activity, not sure if anything > changed since: > http://mail-archives.apache.org/mod_mbox/maven-users/201104.mbox/%3c4da464c8.2060...@apache.org%3E yes, got fixed and I have used the fix successfully in one

Re: opinion on obfuscator plugin default execution phase?

2013-07-11 Thread Andreas Sewe
Hi Richard, > I can see it both ways... If it runs at > the packaging phase, it'll start (by default) by processing the packaged > artifact created by the default packaging and either overwriting the > artifact or creating a new one with a classifier (e.g. "-small"). > If it runs at the pre-packag

Re: Using scope in dependencyManagement: good idea or bad?

2012-06-01 Thread Andreas Sewe
Joachim Van der Auwera wrote: > In my experience a bad idea (bitten by this in the past). If the same > dependency is mentioned in dependencyManagement in various places, then > you may end up with the wrong scope. > > I use dependencyManagement to specify the version and possibly > exclusions. Sc

Using scope in dependencyManagement: good idea or bad?

2012-06-01 Thread Andreas Sewe
Hi all, the subject say it all: Is declaring scopes in the dependencyManagement section of your parent POM a good idea or a bad idea? Best wishes, Andreas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additio

Maven-fluido-skin: How to explicitly set language for syntax highlighting?

2012-02-09 Thread Andreas Sewe
Hi, just a quick question that neither the maven-fluido-skin's website nor Google could answer: How to set the language ("lang-tex" in my case) on a XDoc source element in such a way that it ends up in the correct @class attribute in the generated HTML for Google Code Prettify to pick up? Best w

Re: Odd failure with maven-checkstyle-plugin in pluginManagement

2011-12-14 Thread Andreas Sewe
Stephen Connolly wrote: > Are you sure you know how to spell checkstyle? oops, my bad. :-( I thought I had copy-and-pasted the coordinates from search.maven.org throughout my POMs. Apparently, I missed one occurrence. Sorry. Best wishes, Andreas -

Odd failure with maven-checkstyle-plugin in pluginManagement

2011-12-14 Thread Andreas Sewe
Hi, I have encountered a very odd failure when adding the maven-checkstyle-plugin to my pluginManagement section. Below is the simplest POM that triggers this error (both under Maven 3.0.3 and 3.0.4-RC3): > > 4.0.0 > org.example > example > 0.0.1-SNAPSHOT > > > >

[maven-failsafe-plugin] Augmenting the fork configuration?

2011-12-09 Thread Andreas Sewe
Hi all, and sorry for the long post; what I want to acieve is a bit complex: I am currently integration-testing a tool that allows one to perform a variety of bytecode instrumentation tasks (for profiling/JVM research). Said tool consists of two components: a server running in a separate JVM inst

Re: maven-deploy-plugin: package vs deploy phase

2011-09-15 Thread Andreas Sewe
Hi Greg, Greg Sandell wrote: > I have a call to maven-deploy-plugin bound to package phase that works > correctly when I call "maven clean package" but if I call "maven clean > deploy" I get: > > "java.lang.IllegalStateException: Cannot add two different pieces of > metadata for: project com.thom

Re: Difference between build/extensions/extension and build/plugins/plugin/extensions?

2011-09-15 Thread Andreas Sewe
Hi Vincent, > As far as I understand, specifying build/plugins/plugin/**extensions set to > true allows plugins embedding a components.xml to actually declare these > components as part of the context. In such case you don't need to repeat the > plugin declaration in the build/extensions/extension

Difference between build/extensions/extension and build/plugins/plugin/extensions?

2011-09-07 Thread Andreas Sewe
Hi all, what is the difference between build/extensions/extension and build/plugins/plugin/extensions set to true. It seems somewhat redundant (yes, I could use a property) to have to specify the plugin's version twice, as in this snippet from the maven-archetype-plugin's site: ... mav

Re: Documentation for Maven3

2011-06-22 Thread Andreas Sewe
phases (that's when the @phase annotation takes effect if present). Any pointer would be really appreciated (even pointers to source code, I already looked into maven-jar, maven-ear and maven-war but they are all using the "old?" Javadoc annotations AFAIK, Jav

Re: Pretty-printing/compressing HTML in post-site phase

2011-06-01 Thread Andreas Sewe
Kathryn Huxtable wrote: My purpose in writing htmlfilter-site-maven-plugin was to better incorporate docbkx-tools output into Doxia-generated output. Yes, that seems to be the rationale for the maven-tidy-plugin as well, although

Pretty-printing/compressing HTML in post-site phase

2011-05-31 Thread Andreas Sewe
Hi all, are there any plugins that can be used to prettify or compress the output of Doxia/the maven-site-plugin in the post-site phase? I found Kathryn Huxtable's htmlfilter-site-maven-plugin, but that only seems to be able fix ("tidy") malformed HTML. I remember reading somewhere that Doxi

Re: Nested artifacts

2011-05-13 Thread Andreas Sewe
missing dependencies first. This is not a problem when using dependency:copy or dependency:unpack, however. I hope this helps. Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For addition

Re: How to use wagon-ssh-external instead of wagon-ssh?

2011-05-02 Thread Andreas Sewe
scope to "runtime"? Don't know if that will help though. No, it didn't. :-( Thanks for the suggestions, though. Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: How to use wagon-ssh-external instead of wagon-ssh?

2011-05-02 Thread Andreas Sewe
odehaus.org/browse/MNG-2163>. :-( Or am I mistaken? Best wishes, Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: How to use wagon-ssh-external instead of wagon-ssh?

2011-05-02 Thread Andreas Sewe
lugin dependency, the maven-site-plugin now has both org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-7 and org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-6 as a dependency, but it still insists on using the latter for sftp URIs. :-( Any other suggestions? Andreas

How to use wagon-ssh-external instead of wagon-ssh?

2011-05-01 Thread Andreas Sewe
figuration option / system property to make the wagon more chatty? Just running "mvn site-deploy -X" doesn't produce enough information to track down what's actually going over the wire. :-( Best wishes, Andreas Sewe --

Re: aggregator module includes its own parent as a sub-module

2011-04-14 Thread Andreas Sewe
Hi Oleg: Simple tests show that maven will accept such a project without any errors or even warnings, but I would like to know whether this kind of circular "parent"-"aggregator" dependency is bad. Any opinions why this should not be done? Not when it comes to the build itself, not. When it

Re: Site breadcrumbs: trouble with inheritance

2011-04-12 Thread Andreas Sewe
Hi Lukas, Two things: 1) breadcrumbs always get appended, you cannot override or remove a breadcrumb that has been added in a parent Yes, this explains why we have breadcrumb trails like the following. Apache > Maven > Apache Maven Site Here, both "Maven" and "Apache Maven Site" point to t

Re: Site breadcrumbs: trouble with inheritance

2011-04-12 Thread Andreas Sewe
Hi Lukas, Which version of the site plugin are you using? Please try latest snapshots (2.3- or 3.0-beta-4-) and report back. thanks for the quick reply. Forget to mention that I am using 3.0-beta-4-SNAPSHOT under Maven 3.0.3. Sorry about that. Best wishes, Andreas

Site breadcrumbs: trouble with inheritance

2011-04-12 Thread Andreas Sewe
Hi all, I have the following two projects: A dedicated website project for my root URL org.example:site (with http://example.org/) and an organizational POM org.example:parent (with http://example.org/parent) The parent of org.example:site is the organizational POM, org.example:parent.

Re: site.xml: property interpolation and inheritance

2011-01-18 Thread Andreas Sewe
Hi Lukas, That's an old bug: http://jira.codehaus.org/browse/MSITE-135 *sigh* I should really check the issue tracker first. :-( I am currently looking at site inheritance issues, maybe I'll get to it... That would be great. Thanks. Andreas ---

site.xml: property interpolation and inheritance

2011-01-18 Thread Andreas Sewe
Hi all, I have a question regarding property interpolation and inheritance in the case of site descriptors. I looks to my like these behave differently than property interpolation and inheritance in the case of the POM. Suppose I have the following element within my parent project's site.xml

Re: Chicken-and-egg problem: plugin dependencies as modules

2010-12-17 Thread Andreas Sewe
Hi Stephen, The organizational pom can prescribe the use of the most recently released ruleset. The next version of the ruleset would "technically" be checked against the previous version, but as rulesets are not java code the check will not be applied on that artifact. True. But its a littl

Re: Chicken-and-egg problem: plugin dependencies as modules

2010-12-17 Thread Andreas Sewe
Hi Wayne, thanks for the advice. What's the best way to resolve this kind of chicken-and-egg problem without introducing too many extra projects just to break the cycle? Any This is exactly what you have to do. The rulesets should be packaged and versioned independent of the project. Ideally

Chicken-and-egg problem: plugin dependencies as modules

2010-12-16 Thread Andreas Sewe
Hi all, I am experiencing a kind of chicken-and-egg problem in my usage of the m-pmd-p, the m-checkstyle-p, and the m-license-p. All these plugins are capable of loading their respective configurations (rulesets or license headers) from the plugin's classpath. As such it seems sensible to create d

Re: maven 3 & multi-module site

2010-11-16 Thread Andreas Sewe
Hi Jan, I have added org.apache.maven.plugins maven-site-plugin 3.0-beta-3 org.apache.maven.plugins maven-plugin-plugin 2.5.1 to the root pom. When I do 'mvn site', mojo docs are generated fine for each maven-plugin module in tar

Re: Maven-dependency-plugin: type and classifier for *-test-sources.jar?

2010-11-12 Thread Andreas Sewe
Hi Justin, type = jar classifier = test-sources yes, that did the trick. Thanks :-) Andreas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Maven-dependency-plugin: type and classifier for *-test-sources.jar?

2010-11-12 Thread Andreas Sewe
Hi all, I need to use the maven-dependency-plugin to copy a *-test-sources.jar artifact. Alas, I am unable to find the proper values for the artifactItem's and . I either end up copying *-sources-jar or *-tests.jar, but never *-test-sources.jar. :-( Can anyone please help me with this? How

Reporting plugins: How to report a plugin's configuration?

2010-11-08 Thread Andreas Sewe
Hi all, I have written a Maven plugin (custom packaging) which so far works fine. :-) Now I want to accompany it with a reporting mojo, which presents the plugin's configuration as a project report. This, alas, proves to be quite difficult; not only is the ${project} MavenProject quite unwie

Maven-site-plugin 3: how to properly add to inherited reportPlugins?

2010-10-20 Thread Andreas Sewe
Hi all, I am currently having trouble configuring the maven-site-plugin 3.0-beta-2. The setting is slightly more complex than the one described in the wiki : A parent POM configures a some reportPlugins and a child POM wants to add

Re: scm connection in parent pom

2010-10-20 Thread Andreas Sewe
Hi Stephen, IIRC the appending is controlled by the presence of a / at the end of the URI if the URI ends with a slash then it will not append the module name in children if the URI does not end with a slash then it will append the module name in children of course I could be mistaken and thi

Re: scm connection in parent pom

2010-10-20 Thread Andreas Sewe
Hi Phillip, Does it make sense and will it work to define the scm connection in a parent pom if all my projects follow the same layout in SVN? i.e., scm:svn:http://mysvnrep.com/svn/projects/${artifactId}/trunk in theory, the above makes sense, but in practice you will encounter a problem: i

Property interpolation to access the parent POM?

2010-10-12 Thread Andreas Sewe
Hi all, is it possible to access the parent POM by means of property interpolation? While the help:evaluate goal correctly interpolates ${project.parent.url}, using the property in the child POM doesn't trigger interpolation (in neither Maven 2.2 nor 3.0); the string stays as is. I could only get

Re: [ANN] Apache Maven 3.0 Released

2010-10-08 Thread Andreas Sewe
Thanks a lot for Maven 3.0! Thanks a lot for all the work and ... can't wait for the pom mixins ;) Speaking of which, it seems to me that POM mixins would offer a more flexible alternative to what is currently achieved by the packaging types' lifecycle bindings. Are there any plans to eventu

Re: Complex-valued maps as plugin parameter possible?

2010-07-22 Thread Andreas Sewe
Hi all, any takers for this one? I am writing a Maven plugin and have trouble getting a parameter defined as follows to work: /** * @parameter */ private Map map; Not matter how I configure in my POM, it only ever maps Strings to null, not to an instance of ComplexObjext:

Complex-valued maps as plugin parameter possible?

2010-07-21 Thread Andreas Sewe
Hi all, I am writing a Maven plugin and have trouble getting a parameter defined as follows to work: /** * @parameter */ private Map map; Not matter how I configure in my POM, it only ever maps Strings to null, not to an instance of ComplexObjext: 42 But as

Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Andreas Sewe
Hi all, I have a project which should produce a ZIP, with all contents of ${project.build.outputDirect} put into a base directory within the ZIP. So far, the maven-assembly-plugin with fits the bill perfectly. There is one issue, however, which I haven't been able to solve: I can't get the

Re: Passing ${basedir} into Exec plugin

2010-07-01 Thread Andreas Sewe
Hi, I need to invoke an external command using the Exec plugin, with one of the arguments equal to "${basedir}/target". The problem is that under Windows this expands to "c:\\temp\\project/target" because ${basedir} uses Windows-style slashes whereas the rest of the argument uses Unix-style slas

Re: standardized Maven GAV URN?

2010-06-30 Thread Andreas Sewe
Luke, are you aiming at IANA registration of the namespace identifier? (If not, please use a x- prefix to mark the NID as experimental: .) Best wishes, Andreas - To unsubscrib

Re: Provided-scoped dependencies and transitivity

2010-06-16 Thread Andreas Sewe
Hi Jörg, thanks for the quick reply. According to the matrix in a provided-scoped dependencies of a provided-scoped project dependency are themselves of scope provided (w.r.t. the project

Provided-scoped dependencies and transitivity

2010-06-16 Thread Andreas Sewe
re the transitive dependencies of my provided-scoped dependency. :-( So who's right: the documentation or the plugin? Best wishes, Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional comma

Re: Maven-assembly-plugin: outputFileNameMapping and ${artifact.*}

2010-06-10 Thread Andreas Sewe
lthough this does not solve my problem. :-( Best wishes, Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Maven-assembly-plugin: outputFileNameMapping and ${artifact.*}

2010-06-09 Thread Andreas Sewe
nly it doesn't. The copied dependency ends up named "{artifact.final.name}.dat". :-( Any thoughts? Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: AW: AW: Maven Best Pratices: Where to place generate re(sources)?

2010-06-08 Thread Andreas Sewe
ces only on artifact (containing the stuff described above). Simply producing a dummy artifact somehow feels wrong to me, like I am abusing the plugin for something it wasn't meant to do. Best wishes, Andreas Sewe - To unsubscrib

Re: AW: Maven Best Pratices: Where to place generate re(sources)?

2010-06-08 Thread Andreas Sewe
Hi Eric, I don't know if my practice is "best", but I certainly advise you to unpack to the ${project.build.directory}, since a) it's deleted during clear b) you don't want to mess up your source directories, especially if you use SCM true. And yes, you then need the buildhelper. Yes, the

Maven Best Pratices: Where to place generate re(sources)?

2010-06-08 Thread Andreas Sewe
build.directory}? (This is what dependency:unpack does by default, after all.) But this would require use of the buildhelper-m-p, for otherwise the unpacked sources won't be picked up by the compiler. :-( Any advice? Andreas Sewe

Re: Site plugin 2.1 and PMD/CPD don't play nicely

2010-04-09 Thread Andreas Sewe
t it. Has anyone else experienced this? Yes, using m-site-plugin 2.1 I see the same problem here. :-( My cpd.xml contains a bunch of duplications, but the resulting cpd.html only has a Duplications followed by an empty paragraph. Thanks for reporting the issue. (Already voted for it :-) An

Binding antrun:run to "clean" phase fails the build after initial project checkout

2010-02-26 Thread Andreas Sewe
. module2 module2 org.example module1 0.0.1-SNAPSHOT org.apache.maven.plugins maven-antrun-plugin 1.3 problematic-clean clean run

Maven-invoker-plugin: reactor build order in multi-module build

2010-02-22 Thread Andreas Sewe
nd "b" on the classpath at the same time (the two modules build two versions of the same project; this results in name clashes). Is there a way to overcome this problem? FWIW, the maven-failsafe-plugin doesn't help; I would need to "test" classpaths: on with "a"

Re: Plugin executions vs. POM inheritance

2010-02-03 Thread Andreas Sewe
Thanks Wayne, thanks Ron, that looks like an alternative way to achieve what I want: I am not sure what you are trying to do but I am wondering if you can build several parent POMs and set up each POM have the parent that suits its needs. Yes, this is the composition vs inheritance approach to

Re: Plugin executions vs. POM inheritance

2010-02-02 Thread Andreas Sewe
suppose its a bug in my understanding of rather than in Maven's.) Best wishes, Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: Sharing Module among Multiple Projects

2010-01-21 Thread Andreas Sewe
t in the former case points to the correct submodule.) Do you have any idea of what I am doing wrong here? Best wishes, Andreas Sewe - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

  1   2   >