Re: Improving the speed of ‘deploy’ ?

2014-09-12 Thread Curtis Rueden
Hi Kevin, I think the issue is that I”m using scpexe for my distributionManagement repository. Is there some reason you can't just use wagon-ssh? http://stackoverflow.com/a/14404990 Regards, Curtis On Fri, Sep 12, 2014 at 1:11 PM, Kevin Burton bur...@spinn3r.com wrote: mvn package” on my

Re: retrying flakey tests?

2014-09-19 Thread Curtis Rueden
Hi Kevin, Is there a way to retry a flakey test? In general I agree with Martin Todorov that tests should be small and atomic, and flakiness is a sign of larger problems. However, I also agree with you that sometimes flaky tests are a reality: my group has run into this with behavior of the JVM

Re: usage with Jenkins

2014-09-22 Thread Curtis Rueden
Hi Grover, CI build/packages successfully but not artifacts are listed on the jobs page For Jenkins to publish artifacts (for any build, not just Maven-based ones) you must use the publish artifacts option and specify the file path patterns to publish. Also, stay away from the Jenkins Maven

Re: usage with Jenkins

2014-09-23 Thread Curtis Rueden
2014, James Green james.mk.gr...@gmail.com wrote: On 23 September 2014 02:23, Curtis Rueden ctrue...@wisc.edu javascript:; wrote: Also, stay away from the Jenkins Maven style job. Freestyle is more flexible and less buggy. Based on ..? -- Sent from my phone

Re: usage with Jenkins

2014-09-23 Thread Curtis Rueden
wrote: News to me. Ironically I'm just setting up a new Jenkins job so tried the freeform style - I can no longer see Deploy artifacts to Maven repository as a post-build action. Dare I ask what I'm missing having chosen the full-fat option..? On 23 September 2014 14:02, Curtis Rueden ctrue

Announcing the NAR plugin for Maven 3.2.0

2014-10-02 Thread Curtis Rueden
of the NAR plugin for Maven, designed to support cross-platform development using JNI libraries. As always, this release would not be possible without a thriving developer community. Here is the shortlog: 26 Johannes Schindelin 21 Fredrik Orderud 14 Curtis Rueden 8 HongKee Moon 5

Re: [pre-verify over deploy]

2014-10-29 Thread Curtis Rueden
Hi Fay, Could i define a intermediate repository, everytime they deploy, jenkins will verify it. Why not have Jenkins do your deploys? I.e.: make it so that only Jenkins has deploy permission to your remote repository. So your devs can no longer run mvn deploy from the CLI and expect it to

Re: [pre-verify over deploy]

2014-10-29 Thread Curtis Rueden
as the latest deployed SNAPSHOT is not broken, since he stated: Currently my pain is our developer would deploy broken bytecode to our dev repository and broken others work. Regards, Curtis On Wed, Oct 29, 2014 at 5:15 PM, Barrie Treloar baerr...@gmail.com wrote: On 30 October 2014 08:38, Curtis Rueden

maven-javadoc-plugin: resource folders interpreted as illegal package names

2014-11-05 Thread Curtis Rueden
Hi everyone, I am trying to generate an aggregated set of javadocs from a collection of related projects, like so: https://github.com/imagej/imagej-javadoc/blob/83d2fe7f2d546cdc0971f323dfaf56d0089e715d/pom.xml Basically, this POM project declares a bunch of dependencies and then uses the

Re: maven-javadoc-plugin: resource folders interpreted as illegal package names

2014-11-06 Thread Curtis Rueden
Hi all, OK, given the deafening silence, I posted it on SO: http://stackoverflow.com/q/26787825/1207769 Regards, Curtis On Wed, Nov 5, 2014 at 12:42 PM, Curtis Rueden ctrue...@wisc.edu wrote: Hi everyone, I am trying to generate an aggregated set of javadocs from a collection of related

Re: Little documentation issues

2014-12-09 Thread Curtis Rueden
Hi all, Can someone suggest a description of plugin and Mojo that is written from a developer's point of view but sufficiently close to the technical reality that it will not cause trouble when someone starts to read the Plugin Developer's sections. Here's my first cut at it: A *plugin* is

Re: [scala-debate] Emotional Support Group for Typesafe Maven Users

2014-12-09 Thread Curtis Rueden
Hi Eric, Is there some alternative to Play, such that we can migrate existing Play projects to something that is Maven friendly? Grails? http://grails.org/doc/latest/guide/commandLine.html#antAndMaven http://raibledesigns.com/rd/entry/play_vs_grails_smackdown_at Regards, Curtis On Tue, Dec

Re: Best practice for optional dependencies?

2015-02-04 Thread Curtis Rueden
Hi Mark, I'm working on a project which has an optional transitive dependency. That is: we depend on someone else's artifact (let's call it A), which itself depends *in some circumstances* on a third artifact (from a third source) which I'll call B. That is: if you never trigger a certain

Re: How to activate a profile when -offline?

2015-02-05 Thread Curtis Rueden
Hi Andreas, Now, one might argue that the m-jarsigner-p needs to become smarter and aware of Maven's offline mode, but that would require it to deal with special cases, like localhost URLs being reachable even in offline mode I would argue that, yeah. And that it should ignore such special

Re: How to activate a profile when -offline?

2015-02-05 Thread Curtis Rueden
Hi Andreas, 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 system properties and/or environment variables. That is,

Re: Best practice for optional dependencies?

2015-02-06 Thread Curtis Rueden
On 04/02/2015 5:32 PM, Curtis Rueden wrote: Hi Mark, I'm working on a project which has an optional transitive dependency. That is: we depend on someone else's artifact (let's call it A), which itself depends *in some circumstances* on a third artifact (from a third source) which I'll

Re: maven 3.0.6 release date

2015-02-02 Thread Curtis Rueden
Hi David, I feel compelled to throw out the obligatory It's open source; scratch your itch response here. It sounds like your team could really use this feature, you seem to think it would be easy to implement, you have an existing template for how another related build tool already does this,

Re: Avoiding situations where duplicate classnames are imported?

2015-01-20 Thread Curtis Rueden
Hi Kevin, The main situation I see is when the artifact and group ID differ … The Maven Enforcer Plugin is the first party plugin solution. The rule you want, banDuplicateClasses, is part of the Mojo project's Extra Enforcer Rules:

Re: copy resources to other places after build

2015-02-12 Thread Curtis Rueden
Hi James, i would like maven can move the packaged jar to some place specified after build The dependency:copy goal might work for your use case. But as Dan says, be careful with this route: there can be subtle consequences. http://stackoverflow.com/q/7063475/1207769 Regards, Curtis On Thu,

Re: access to license node

2015-02-19 Thread Curtis Rueden
Hi Andreas and Philipp, Have a look at http://jira.codehaus.org/browse/PLXUTILS-37. 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}

Re: access to license node

2015-02-19 Thread Curtis Rueden
Hi Baptiste, Sorry cannot check just now, but off the top of my head, shouldn't it be more something along: ${project.licenses[0].license.name} I checked. It is: ${project.licenses[0].name} Regards, Curtis On Thu, Feb 19, 2015 at 11:00 AM, Baptiste Mathus bapti...@codehaus.org wrote:

Re: Question about Java version range using in Maven Enforcer Plugin

2015-01-27 Thread Curtis Rueden
Hi Sandra, I discussed with my team how they interprets the range value [1.6,1.8]. They would interpret this as every Java 8 version is possible. Is this a misinterpretation of us? For the most part, the RequireMavenVersion and RequireJavaVersion rules use the standard Maven version range

Re: Resolving classpath hell issues by allowing libraries to only use the version they request?

2015-01-05 Thread Curtis Rueden
Hi Kevin, I agree with Steven. One way of resolving this sort of problem without OSGi is to use a consistent, meaningful versioning system such as Semantic Versioning (http://semver.org/). Once you have the ability to reason about forwards and backwards compatibility, it is easier to resolve

Re: Cleaning source code repositories

2015-02-13 Thread Curtis Rueden
Hi Viktor, Do you actually consider this situation as a problem or is it just a perfectionist talking to me? ;-) I would say it is a very real challenge of managing projects with many components. how would you approach determining those, which are required for final deliveries, and those,

Analyzing dependencies of a project with a non-Maven build

2015-02-10 Thread Curtis Rueden
Hi everyone, I am trying to interface with a largish project that publishes artifacts to a Maven repository, but does not do its builds using Maven. (It uses Ant+Ivy.) The problem is that the published POM dependencies have problems in both directions: undeclared-but-used dependencies, and

Re: Why would maven download a pom and not a jar?

2015-03-11 Thread Curtis Rueden
Hi Dan, What I really need is a way to determine only the deps (and sub deps) for the application itself. Maven makes this really easy. As others have said, the dependency plugin has several helpful goals. If all you need is to _list_ the dependencies, then you already found dependency:tree.

Re: artifactasc/artifactId missing ?

2015-03-13 Thread Curtis Rueden
Hi Martin, org.sonatype.flexmojos:flexmojos-flex-compiler:3.8-SNAPSHOT is ancient. There are several new major versions, including a groupId change to net.flexmojos.oss: https://repository.sonatype.org/#nexus-search;quick~flexmojos-flex-compiler The latest on Maven Central is:

Re: artifactasc/artifactId missing ?

2015-03-12 Thread Curtis Rueden
Hi Martin, flex-compiler-mojo identitifies dependency asc which I cannot locate Which flex-compiler-mojo? This one? https://repository.sonatype.org/service/local/repositories/atlassian/content/info/flex-mojos/flex-compiler-mojo/2.0.3/flex-compiler-mojo-2.0.3.pom No asc in there as far as I

Re: write developers contributors into Jar

2015-03-01 Thread Curtis Rueden
Hi Phillipp, If you want to just have the information in the jar somewhere, the pom file will already be in the jar by default. I second Manfred's suggestion, if using the POM works for your use case. I'm sure other projects have invented their own version of this, but just in case it's

Re: takari-plugin-integration-testing requires one takari-jar project ?

2015-02-27 Thread Curtis Rueden
of it. Best regards, Curtis On Feb 27, 2015 6:13 PM, Jason van Zyl ja...@takari.io wrote: On Feb 27, 2015, at 3:15 PM, Curtis Rueden ctrue...@wisc.edu wrote: Hi Manfred, I think the same should apply for all other plugins. By that logic, an Ubuntu Linux mailing list should answer all

Re: takari-plugin-integration-testing requires one takari-jar project ?

2015-02-27 Thread Curtis Rueden
Hi Manfred, I think the same should apply for all other plugins. By that logic, an Ubuntu Linux mailing list should answer all questions about all packages available for Ubuntu, even multiverse packages. Seems impossible to me. That said, of course the people here are friendly and make a best

Re: Plugin dependency resolution from plugin pom?

2015-03-26 Thread Curtis Rueden
Hi Gary, I'm trying to patch a third-party plugin at the moment as a temporary workaround for a problem. (I don't want to get into details because it's not important) Since the workaround is temporary, could you not simply clone the plugin's SCM repository to a local Git repository, then

Re: dependency plug-in docs wrong or misleading.

2015-05-08 Thread Curtis Rueden
Hi Ron, This should be added as a configuration and explanation to the main examples page IIUC, we can submit patches for this sort of change. The repo on GitHub is: https://github.com/apache/maven-plugins/blob/trunk/maven-dependency-plugin/src/site/apt/examples/copying-artifacts.apt.vm As

Re: (Very basic) Command line completion for Fish-Shell

2015-05-14 Thread Curtis Rueden
Hi Johannes, https://github.com/jschneider/fish-maven-completion/blob/master/mvn.fish FWIW, zsh is also a great modern shell, with many plugins available, including pretty nice completion for Maven [1] from the Oh My Zsh! project. Using a plugin manager like zgen [2] with zsh, you can easily

Re: [ANN] Apache Maven Verifier Plugin Version 1.1 Released

2015-04-16 Thread Curtis Rueden
Hi Karl, The Apache Maven team is pleased to announce the release of the Apache Maven Verifier Plugin, version 1.1 Congratulations on the release. Out of curiosity, I was wondering... What is the purpose of the maven-verifier-plugin, compared to the maven-enforcer-plugin? From the Verifier

Re: Maven + Jenkins not packaging war with jars

2015-04-17 Thread Curtis Rueden
Hi Murthy, You might get a better response on a Jenkins mailing list: https://jenkins-ci.org/content/mailing-lists That said, I do have one question/suggestion: are you using the Maven-style job? Or Freestyle job? If you are using the Maven-style job, try switching to Freestyle, and use the

Re: What is all this junk?

2015-04-08 Thread Curtis Rueden
Hi Steve, What's an MCVE? http://lmgtfy.com/?q=mcve -Curtis On Wed, Apr 8, 2015 at 12:23 PM, Steve Cohen stevec...@comcast.net wrote: What's an MCVE? On 04/08/2015 11:45 AM, Curtis Rueden wrote: Hi Steve, I don't see that stuff with my builds. Post an MCVE somewhere. -Curtis

Re: What is all this junk?

2015-04-08 Thread Curtis Rueden
Hi Steve, I don't see that stuff with my builds. Post an MCVE somewhere. -Curtis On Wed, Apr 8, 2015 at 11:36 AM, Steve Cohen sco...@javactivity.org wrote: I finally got around to making the warnings about slf4j static logger disappear from my Eclipse builds and now I get this, instead with

Re: Force install of dependent modules before package

2015-04-08 Thread Curtis Rueden
Hi Eric, project A mvn package such that modules 1 2 will automatically be installed before the shade plugin runs for module 3? My understanding is that you would need to run mvn install (not mvn package) from the project A base directory, if you want 1 and 2 to be installed. But it should

Re: -P overrides activeByDefault in pom.xml

2015-06-08 Thread Curtis Rueden
Hi Alexander, Personally I avoid using activeByDefault, since as you encountered, it can be confusing. Instead, you can use activation based on system properties. That tends to behave in a more intuitive way, and is also much more flexible, IMO. Then instead of writing -PmyProfile you write

Re: Help needed with a strange fixed filename

2015-06-08 Thread Curtis Rueden
Hi Thomas, it's name cannot be changed because during runtime it is checked and if changed a runtime exception is thrown IMHO, the fact that your third party JAR does that is incredibly terrible. Yes, we could change the code with the filename check. But I'm loath to do it since it is a 3rd

Re: Codehaus Mojo repository

2015-06-03 Thread Curtis Rueden
, Curtis Rueden ctrue...@wisc.edu wrote: Hi everyone, It looks like Codehaus SVN is finally kaput: $ svn checkout http://svn.codehaus.org/mojo svn: E175011: Unable to connect to a repository at URL ' http://svn.codehaus.org/mojo' svn: E175011: Repository moved temporarily

Codehaus Mojo repository

2015-06-03 Thread Curtis Rueden
Hi everyone, It looks like Codehaus SVN is finally kaput: $ svn checkout http://svn.codehaus.org/mojo svn: E175011: Unable to connect to a repository at URL ' http://svn.codehaus.org/mojo' svn: E175011: Repository moved temporarily to 'http://www.codehaus.org'; please relocate But

Re: Use of Multiple Local Repositories

2015-06-04 Thread Curtis Rueden
Hi Mehdi, it could be great if we can use multiple local reposiry for a build That has been discussed before on the list [1]. It was an interesting discussion but ultimately Maven does not support such a feature. I think it would be useful if a motivated party pursued it, though. Regards,

Re: Maven Shad Plugin with AWS Java SDK

2015-06-25 Thread Curtis Rueden
Hi Matt and Michael, Matt Benson wrote: In my experience you must relocate each individual package; simply relocating org.apache.http is not sufficient. In my experience, the maven-shade-plugin will process subpackages which match the given patterns. Here is a working example that shades all

Re: Why are extensions project based and not global?

2015-05-28 Thread Curtis Rueden
Hi, Even with a single organization having config outside the project is a right pain. Instead of it's maven, you know what to do, you have some weird site specific ritual to perform, and this creates friction. FWIW, in general, I agree 100%. One of the beautiful things about Maven is that

Re: Skill set to maintain a enterprise build system using Maven

2015-05-31 Thread Curtis Rueden
Hi Dan, PS. Would love to hear other experiences from community rather me sucking out Mirko's :-) Not sure how relevant my scenario is, but here goes: My group consists of an international collaboration of OSS developers at universities etc., rather than a company. But a lot of our needs are

Re: Maven Shad Plugin with AWS Java SDK

2015-07-02 Thread Curtis Rueden
thought it would fix the constructor for S3ObjectInputStream to match the newly relocated org.apache.http.client.methods.HttoRequestBase class. If this isn't the way it should work, how then do I get the shaded project to build? Thanks, Michael On 6/26/2015 5:52 AM, Curtis Rueden wrote: Hi

Re: mvn -nsu (--no-snapshot-updates) is still downloading SNAPSHOT versions

2015-05-26 Thread Curtis Rueden
Hi Robert, Is there a way to let a maven build fail if we depend on nonexistent or SNAPSHOT dependencies? Check out the requireReleaseDeps rule of the Maven Enforcer plugin: http://maven.apache.org/enforcer/enforcer-rules/requireReleaseDeps.html Regards, Curtis On Tue, May 26, 2015 at 6:55

Re: Maven Shad Plugin with AWS Java SDK

2015-06-26 Thread Curtis Rueden
/relocations Has anyone else had luck with trying to shade the AWS Java SDK? Can anyone with more experience try and build the project given my configuration and tell me the results? Thanks, Michael On 6/25/2015 10:27 AM, Curtis Rueden wrote: Hi Matt and Michael, Matt Benson wrote: In my

Re: Parent snapshot pom questions

2015-07-30 Thread Curtis Rueden
Hi Dave, Maven is not safe for concurrent builds from the same local repository cache. Do these CI jobs share the same cache? If so that would explain the nondeterminism you are seeing. It is best practice if each job has its own local repo cache, as expensive as that is disk-wise. Or you can

Re: build error on strutsel

2015-07-27 Thread Curtis Rueden
? Hector -Original Message- From: ctrueden.w...@gmail.com [mailto:ctrueden.w...@gmail.com] On Behalf Of Curtis Rueden Sent: Friday, July 24, 2015 4:13 PM To: Maven Users List Subject: Re: build error on strutsel Hi Hector, Maybe you are depending on the wrong version of those

Re: How to delete certain snapshots from Nexus

2015-07-21 Thread Curtis Rueden
Hi Dave, Our IT group handles managing Nexus and they say there is no Nexus interface/feature to do this. You can use the Remove Snapshots from Repository scheduled task. See: https://books.sonatype.com/nexus-book/reference/scheduled-tasks.html Regards, Curtis On Tue, Jul 21, 2015 at 1:20

Re: build error on strutsel

2015-07-24 Thread Curtis Rueden
aspose.pdf [INFO] 8 errors -Original Message- From: ctrueden.w...@gmail.com [mailto:ctrueden.w...@gmail.com] On Behalf Of Curtis Rueden Sent: Friday, July 24, 2015 1:13 PM To: Maven Users List Subject: Re: build error on strutsel Hi Hector, package com.aspose.cells does not exist

Re: build error on strutsel

2015-07-24 Thread Curtis Rueden
[mailto:ctrueden.w...@gmail.com] On Behalf Of Curtis Rueden Sent: Friday, July 24, 2015 12:35 PM To: Maven Users List Subject: Re: build error on strutsel Hi Hector, I clicked on the link and it returns nothing. How do I search for it in the repository ? That's baffling. I see this: [Inline

Re: How to delete certain snapshots from Nexus

2015-07-24 Thread Curtis Rueden
, Jul 22, 2015 at 10:12 PM, Curtis Rueden ctrue...@wisc.edu wrote: Hi Dave, if you have a plugin that solves the same problem that is fine. If you could elaborate on your solution that would be great. The plugin I mentioned, scijava-maven-plugin [1], has a verify-no-snapshots goal

Re: build error on strutsel

2015-07-24 Thread Curtis Rueden
Hi Hector, I can't find it in the maven repository. http://search.maven.org/#search%7Cga%7C1%7Cfc%3A%22org.apache.strutsel.taglib.utils%22 -Curtis On Fri, Jul 24, 2015 at 12:11 PM, Magnanao, Hector hector.magna...@sap.com wrote: How do I resolve this package error ? I can't find it in the

Re: build error on strutsel

2015-07-24 Thread Curtis Rueden
...@sap.com wrote: Hi Curtis, I clicked on the link and it returns nothing. How do I search for it in the repository ? -Original Message- From: ctrueden.w...@gmail.com [mailto:ctrueden.w...@gmail.com] On Behalf Of Curtis Rueden Sent: Friday, July 24, 2015 12:17 PM To: Maven Users List

Re: How to delete certain snapshots from Nexus

2015-07-22 Thread Curtis Rueden
is managed by IT and it's difficult for devs to get more than read privileges. -Dave On Wed, Jul 22, 2015 at 8:24 AM, Curtis Rueden ctrue...@wisc.edu wrote: Hi Dave, This problem strikes me as just a particular incarnation of make sure only approved deps are used where old snapshot

Re: Fetch all remote dependencies NOT in my pom?

2015-07-22 Thread Curtis Rueden
Hi Kevin, What I want to do is just download all artifacts not in com.spinn3r.* “ group ID. Did you try: mvn dependency:go-offline -DexcludeGroupIds=com.spinn3r ... ? Regards, Curtis On Wed, Jul 22, 2015 at 10:50 PM, Kevin Burton bur...@spinn3r.com wrote: What I want to do is just

Re: How to delete certain snapshots from Nexus

2015-07-22 Thread Curtis Rueden
Hi Dave, This problem strikes me as just a particular incarnation of make sure only approved deps are used where old snapshot versions of 1st party modules are no longer approved after a refactoring. As such, I would suggest looking for tools intended to support such dependency analysis more

Re: Add third party jars from the file system to final executable jar without adding the third party jars in local maven repo

2015-10-26 Thread Curtis Rueden
Hi Reena, Stephen Connelly wrote a great blog post a couple of years ago addressing similar use cases. The URL is/was: http://developer-blog.cloudbees.com/2013/03/playing-trade-offs-with-maven.html Unfortunately, it seems the CloudBees Developer Blog is currently not working (it redirects to

Re: Build Number Maven Plugin branch naming

2015-11-11 Thread Curtis Rueden
Hi Victor, > I would like to change the way $svnVersion is set for my branches. > That is, I would like to shorten it a bit Not sure if the buildnumber-maven-plugin has a direct way, but the build-helper-maven-plugin has a regex-property goal for manipulating properties.

Re: regex-property goal of build-helper-maven-plugin documentation is incorrect

2015-11-16 Thread Curtis Rueden
Hi Steve, > Can someone fix it? I was going to respond with "You can!" But it seems it was already fixed almost a year ago: https://github.com/mojohaus/build-helper-maven-plugin/commit/cdaa047253fdcb64f94e81a6e8575191b5919ab0 The site just hasn't been regenerated and uploaded, I guess?

Re: Installing on Solaris

2015-11-06 Thread Curtis Rueden
Hi James, Probably you meant to set JAVA_HOME, not CLASSPATH. The JAVA_HOME variable points to your Java installation, whereas CLASSPATH points to .jar files (and/or directories of .class files) you want to be available to Java after it starts up. Regards, Curtis On Fri, Nov 6, 2015 at 12:24

Re: War file name and sftp to server

2015-10-08 Thread Curtis Rueden
Hi K R, > How do I sftp it to the server? What kind of server? Web server? Maven repository? Something else? == Web server == If it's just a web server, typically that is done outside of the Maven build. You can also rename the file at that point. Alternately, you can use the exec-maven-plugin

Re: publishing sub-modules without requiring the parent module to be published?

2015-10-12 Thread Curtis Rueden
Hi Kevin, Having a public project extend a private one seems fundamentally broken/impossible to me. Presumably your "parent project" is just a POM and not a JAR, right? Can you use a structure like: toplevelPublicPOM - publicProject1 - publicProject2 - privateParentPOM -- privateProjectA

Re: Copy-dependencies goal error

2015-10-05 Thread Curtis Rueden
Hi Michael, > Can you explain " you are using dependencyManagement with dependencies > declared with scope "import""? https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies > I don't see anything in either my settings.xml or pom.xml that >

Re: Copy-dependencies goal error

2015-10-06 Thread Curtis Rueden
Hi Wayne, > I'm glad Greg was able to help you solve your problem. Greg's response was great. But in fairness, it was Bernd who actually stated the solution to Michael's problem. It would be nice if this thread could wrap up with Michael acknowledging that Bernd's fix actually does the job.

Re: Please reopen MNG-4533 Add an always active profile activator

2015-11-14 Thread Curtis Rueden
Hi Arend, > The idea is to have a profile which is always active, unless > explicitly deactivated. To achieve that use case, I like to activate based on a property value. Then you can change the property value from the CLI to deactivate it, without affecting any other profiles. This is more

Re: License Auditing

2015-10-05 Thread Curtis Rueden
Hi Jim, I struggled with licensing-related tooling too when I researched it awhile back—and my needs were simpler than yours. We ended up using license-maven-plugin to programmatically manage license headers of all our sources, with a single header with unified copyright date range and

Re: MRELEASE: Release only modules, not project itself

2015-09-24 Thread Curtis Rueden
Hi Wouter, Is the top-level POM also the parent pom of the modules? Or only an aggregator? If it's the parent, then you have to release it [1], because consuming the modules later will require the parent POM as a "dependency" of sorts in order to fully interpolate each module POM. If it's only

Re: Best strategy for using lots of modules/projects with some private and some OSS

2015-09-22 Thread Curtis Rueden
Hi Kevin, My projects opt for independent versioning of modules to facilitate "release early, release often." To do this for large sets of components like yours requires a Bill of Materials -- i.e., common parent POM with dependencyManagement section. FWIW, the docs we have about our projects

Re: Extracting classes from a separate project?

2015-12-01 Thread Curtis Rueden
Great question! I see a couple of approaches: 1) Technical solution: I think you are on the right track to use the maven-shade-plugin. But you shouldn't need the maven-dependency-plugin. The shade plugin is pretty powerful. Why not just make your single-module library artifact an "uber-JAR"

Re: Compilation Error -Incompatible Types

2015-11-26 Thread Curtis Rueden
Hi Adrien, > most of the time differences between eclipse and command line > compilation are due to scopes problems. I agree that Eclipse's handling of scopes is a common reason for code which works in Eclipse, but actually fails on the CLI. However, there are also significant differences in

Re: animal-sniffer-maven-plugin repo missing

2015-11-26 Thread Curtis Rueden
You mean this? https://github.com/mojohaus/animal-sniffer/tree/master/animal-sniffer-maven-plugin On Thu, Nov 26, 2015 at 9:44 PM, Martin Gainty wrote: > anyone know what happened to animal-sniffer-maven-plugin repo? >

Re: Maven and Eclipse

2016-06-08 Thread Curtis Rueden
if you migrated your workspace from Luna it might be that something got hosed up there. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden Did you know ImageJ has a forum? http://forum.imagej.net/

Re: Maven and Eclipse

2016-06-14 Thread Curtis Rueden
f Eclipse complains about the pom.xml being out of sync. This will likely depend on how you updated from your SCM: through Eclipse or externally. Glad that you figured out about the settings.xml file. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software Imag

Re: Maven and Eclipse

2016-06-14 Thread Curtis Rueden
it is supposed to? -Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software On Tue, Jun 14, 2016 at 12:35 PM, <michael.ctr.taru...@faa.gov> wrote: > And one last thing on this. > > So now that I have resolved the Maven Dependencies problem, which it > appea

Re: How does maven internally manages package dependency?

2016-06-16 Thread Curtis Rueden
> Maven does manage dependencies at the package level By which I meant "Maven does _not_ manage dependencies at the package level" On Thu, Jun 16, 2016 at 10:41 AM, Curtis Rueden <ctrue...@wisc.edu> wrote: > I almost responded to this question with "Mav

Re: How does maven internally manages package dependency?

2016-06-16 Thread Curtis Rueden
I almost responded to this question with "Maven does manage dependencies at the package level. Use OSGi for that." But then I realized that Debraj is specifically asking about how the Maven project itself keeps track of its package interdependencies. Debraj, I am an outsider, so do not know for

Re: Way Java 8 resolves interface dependencies seems to play havoc

2016-02-04 Thread Curtis Rueden
uot; in the JBoss BOM. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden Did you know ImageJ has a forum? http://forum.imagej.net/ On Wed, Feb 3, 2016 at 11:07 PM, Shaddy Baddah < beryllium-b

Re: Installation issue

2016-02-18 Thread Curtis Rueden
Hi Patric, I suggest installing Maven on OS X using Homebrew (http://brew.sh/). Installation is as simple as "brew install maven" and then the "mvn" command exists in /usr/local/bin. Regards, Curtis On Tue, Feb 16, 2016 at 4:52 AM, Patric Hindenberger < patric.hindenber...@gmail.com> wrote: >

Re: "conditional" parent POM?

2016-03-10 Thread Curtis Rueden
Hi Max, Why do you need two different parents? What configuration is different between your "wild" parent and your internal one? Would it be sufficient to enclose the internal-specific configuration (e.g., distributionManagement) in a profile? This technique is what my OSS projects do [1].

Re: Anyone using annotationProcessorPaths in maven-compiler-plugin

2016-03-24 Thread Curtis Rueden
Hi Mark, The javadoc of annotationProcessorPaths [1] is not very reassuring for your intended use case: "Classpath elements to supply as annotation processor path. If specified, the compiler will detect annotation processors only in those classpath elements." That makes it sounds like it merely

Re: Dealing with .jars that have overlapping .classes

2016-04-22 Thread Curtis Rueden
excludes to your maven-enforcer-configuration. Especially for cases like joda, chances are the two copies of the classes are identical, so having both on the classpath will work just fine, pragmatically. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software

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

2016-08-12 Thread Curtis Rueden
tter to me. However, if this behavior really must be changed, I would suggest pushing it till Maven 4, since it will surely break a lot of existing builds. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rued

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

2016-08-12 Thread Curtis Rueden
rds compatibility. All my old builds which used to work will no longer work. Wouldn't it be better to have some new configuration to achieve the desired result for previously broken builds? Maven component releases are immutable -- I can't go back and fix all my old releases to work with Maven 3.4.0

Re: Increasing Java Heap Size

2016-08-08 Thread Curtis Rueden
ort of application, personally.) Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden Did you know ImageJ has a forum? http://forum.imagej.net/ On Mon, Aug 8, 2016 at 8:47 PM, lando <lan...@gmail.com&

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

2016-08-16 Thread Curtis Rueden
be ideal if in the future (something for Maven 4?), as much of this logic as possible could be pushed out of core and into plugins, so that they can be pinned in the POM, to promote better build reproducibility. If you actually made it through this whole thing: thank you for reading. Regards, Cu

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

2016-08-15 Thread Curtis Rueden
Hi Stephane, Why can't we have the best of both worlds? Backwards compatibility, but with a "stop sucking" flag which enables the new better behavior? As I said previously, unless the previous behavior is preserved, all of my communy's existing releases (hundreds of projects, thousands of tags)

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

2016-08-17 Thread Curtis Rueden
rride the value of foo.version in your POM properties. This worked in Maven 3.3, but is currently broken in 3.4.0-SNAPSHOT. My understanding is that this is a bug distinct from the parent-vs-BOM versioning issue. No? Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/softw

Re: Building Docker image works in subproject, not from aggregator

2016-08-17 Thread Curtis Rueden
Hi David, Just a shot in the dark, but does it work to write: ${baseDir}/src/docker instead? Regards, Curtis On Wed, Aug 17, 2016 at 1:04 PM, KARR, DAVID wrote: > I'm using the "docker-maven-plugin" to build a simple image based on > TomEE. This is one subproject in a

Re: Managing offline links across a multi-module project with javadoc

2017-01-16 Thread Curtis Rueden
of: * ${session.executionRootDirectory} * directory:execution-root goal (via https://github.com/jdcasey/ directory-maven-plugin) * scijava:set-rootdir goal (via https://github.com/scijava/ scijava-maven-plugin) Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer

Re: jaxb archetype (newbie)

2017-01-17 Thread Curtis Rueden
tps://maven.apache.org/guides/plugin/guide-java-plugin-development.html "Important Notice" [3] https://maven.apache.org/guides/mini/guide-creating-archetypes.html "Alternative way to start creating your Archetype" -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/so

Re: jaxb archetype (newbie)

2017-01-16 Thread Curtis Rueden
. > 3. Pointers to how to convert a custom ant task into a maven goal? You can use the maven-antrun-plugin: http://maven.apache.org/plugins/maven-antrun-plugin/ Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://i

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

2016-08-19 Thread Curtis Rueden
. for the colorized output. So beautiful! -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden Did you know ImageJ has a forum? http://forum.imagej.net/ On Fri, Aug 19, 2016 at 3:05 AM, Christian Schulte &l

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

2016-08-15 Thread Curtis Rueden
ub.com/ctrueden/a49622e77a65437208feb915a887f929 (Apologies if I misunderstood what you were asking to be tested.) Regards, Curtis P.S. The "Multiple conflicting imports" warning is very helpful. -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji m

Re: Create test jar during build without attaching

2016-08-19 Thread Curtis Rueden
. Regards, Curtis -- Curtis Rueden LOCI software architect - http://loci.wisc.edu/software ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden Did you know ImageJ has a forum? http://forum.imagej.net/ On Fri, Aug 19, 2016 at 1:46 PM, Christopher <ctubb...@apache.org> wrote: >

Re: Create test jar during build without attaching

2016-08-19 Thread Curtis Rueden
he question asked. > > The purpose of this thread is to figure out the best way to create a jar > during the build without attaching. That's the requirement. That's the > goal. > > On Fri, Aug 19, 2016 at 5:09 PM Curtis Rueden <ctrue...@wisc.edu> wrote: > > > Hi C

<    1   2   3   4   >