Best practice wrt. `mvn install`, multi-module projects, and running one submodule

2012-05-22 Thread Thomas Broyer
? (and leaning to resolving from the reactor build in Maven 3, but that requires plugins to update) [1]: https://github.com/tbroyer/gwt-maven-archetypes [2]: http://jira.codehaus.org/browse/JETTY-1206 [3]: http://jira.codehaus.org/browse/JETTY-1517 [4]: https://gith

Re: How to escape variable interpolation?

2015-01-29 Thread Thomas Broyer
On Wed Jan 28 2015 at 20:18:53 David Hoffer wrote: > I have a case where I have a text file that is generated with a hard coded > string and I would like to replace that with Maven variables, but I want > the literal variable string to go in the file not the interpolated values. > > I read http:/

Re: compile with different source option

2015-02-16 Thread Thomas Broyer
On Mon Feb 16 2015 at 14:20:18 Philipp Kraus wrote: > Hello, > > I use in my pom.xml the items: > > > UTF-8 > UTF-8 reporting.outputEncoding> > 1.8 > 1.8 > > > and I would like to compile only one Java file with Javac 1.7, the whole > project / all other files should use 1.8. >

Re: maven-compiler-plugin ignores Javac annotation processor error

2015-02-21 Thread Thomas Broyer
On Sat Feb 21 2015 at 10:12:23 Jeff MAURY wrote: > Sure this is not a Javac problem ? > No it's not. target/classes contains the META-INF/services/javax.annotation.processing.Processor and it's put in the classpath, and because there's no support for processorpath [1], javac looks up annotation

Re: maven-compiler-plugin ignores Javac annotation processor error

2015-02-21 Thread Thomas Broyer
On Fri Feb 20 2015 at 21:11:14 Sébastien Lesaint < sebastien.lesa...@gmail.com> wrote: > Hello, > > I have been into annotation processing a lot for the past year and a half > and I am now going back to the basics so that I can share knowledge I > gathered. > > Doing so, I stumbled upon, again, a

Re: maven-compiler-plugin ignores Javac annotation processor error

2015-02-23 Thread Thomas Broyer
On Mon Feb 23 2015 at 09:53:24 Sébastien Lesaint < sebastien.lesa...@gmail.com> wrote: > Hello, > > Thanks Thomas for your extensive answer. But you seemed to focus only on > the first problem (which I had identified as potentially _not_ a bug). > > What about the fact that m-compiler-p ignores th

Re: Skipping tests

2015-05-18 Thread Thomas Broyer
Because maven.test.skip takes precedence over skipTests (i.e. means the same thing for plugins that support both; maven.test.skip being understood by more plugins –e.g. maven-compiler-plugin–, that don't support skipTests), maybe you could define the skipTest property defaulting to maven.test.skip?

Re: How do you manage your settings.xml for enterprise build??

2015-05-21 Thread Thomas Broyer
So you have a "large number of Jenkins slaves" and no configuration management system? (Puppet, Chef, Ansible, whatever) Isn't that asking for trouble? Le ven. 22 mai 2015 06:31, Dan Tran a écrit : > Hi > > As you already know place settings.xml under ~/.m2 with NFS is unsafe > > How do you mana

Re: Where's the new home for the clirr-maven-plugin?

2015-06-07 Thread Thomas Broyer
https://github.com/mojohaus/clirr-maven-plugin ? On Mon, Jun 8, 2015 at 12:26 AM Martijn Dashorst wrote: > The clirr-maven-plugin was one of the unfortunate casualties of > codehaus' demise. > > It should get a new home, but my google-fu leaves me without any > results. Where does this plugin l

Re: Compiler plugin: generated files by processor not in target/generated-sources

2015-06-19 Thread Thomas Broyer
On Fri, Jun 19, 2015 at 9:40 AM Jeff MAURY wrote: > Hello, > > I have a project which uses an annotation processor to generated files. I > switched source and target from 1.6 to 1.5 > With 1.6 the files where generated in target/generated-sources. > With 1.5 the files are now generated in target/

Re: Archetype - filter out archetype plugin

2015-08-17 Thread Thomas Broyer
On Mon, Aug 17, 2015 at 2:15 PM Jordan Zimmerman wrote: > I’m not using packaging “maven-archetype”. It doesn’t seem to work with > multi-module projects. Works pretty-well for me: https://github.com/tbroyer/gwt-maven-archetypes/

Re: Archetype - filter out archetype plugin

2015-08-17 Thread Thomas Broyer
r each is in src/main/resources/archetype-resources though; so the projects cannot be used as examples at the same time) > > On August 17, 2015 at 7:24:54 AM, Thomas Broyer (t.bro...@gmail.com) > wrote: > > On Mon, Aug 17, 2015 at 2:15 PM Jordan Zimmerman < > jor...@jordanzim

Re: AW: AW: How to manage dependency "includes"?

2016-01-09 Thread Thomas Broyer
IIUC, what you really want is a "replace with" rule. Couldn't that be done by a plugin? You could then configure it in the parent POM and have it executed everywhere. Le sam. 9 janv. 2016 10:59, Christofer Dutz a écrit : > Thanks for that detailed post, but it's still not what I asked for :-( >

Re: [ANN] Apache Maven Compiler Plugin Version 3.5 Released

2016-01-21 Thread Thomas Broyer
On Wed, Jan 20, 2016 at 8:43 PM Andreas Gudian wrote: > ** New Feature > * [MCOMPILER-203] - Allow compiler-plugin to specify annotation > processor dependencies > Great! But… I don't get how you can add a feature about annotation processors and not at the same time fix one of the most anno

Re: Anyone using annotationProcessorPaths in maven-compiler-plugin

2016-03-25 Thread Thomas Broyer
Have you set source and target to at least 1.6 or 6? You should see the -processorpath argument being passed to JavaC when running with -X. Le jeu. 24 mars 2016 00:37, Mark Derricutt a écrit : > Hey all, > > Has anyone successfully used the new setting > in the maven-compiler-plugin at all? > >

Re: Deploying asc files

2016-05-13 Thread Thomas Broyer
AFAIK, you can't do that with the maven-deploy-plugin, you need to use maven-gpg-plugin:sign-and-deploy-file (which will do the signing too). On Fri, May 13, 2016 at 12:47 PM Jochen Wiedmann wrote: > Hi, > > I am deploying my release to a Nexus staging repository by using > >mvn deploy:deplo

Re: mvn -U dependency:sources re-downloads released sources JARs

2016-05-17 Thread Thomas Broyer
On Tue, May 17, 2016 at 11:29 AM Adam Mitchell wrote: > -U is force update, it tells maven to ignore locally cached artifacts and > to download them afresh, what behaviour were you expecting? > -U stands for "update-snapshots" and aims at downloading only "missing releases" (and "updated snapsho

Re: Maven Plugin and JSR330

2016-08-31 Thread Thomas Broyer
On Wed, Aug 31, 2016 at 8:43 AM Dan Tran wrote: > Hi > > I have a need to inject my jsr330 component into my plugins[1] and I > found 2 issues > > 1. @Inject under MOJO works, but my singleton component @PreDestroy never > got called > @PreDestroy is not part of JSR 330, it's a CDI thing, so n

Re: Maven Compiler Plugin 3.5.1 bug

2016-10-22 Thread Thomas Broyer
This is not a bug, it's a bug fix! Bug introduced in 3.2, fixed in 3.5.1 (see release notes for that version). Your plugin should use its own output directory and add it as a source root. Le sam. 22 oct. 2016 23:18, Robert Patrick a écrit : > Periodically, I update the versions of the Maven plu

Re: Is it time to change the defaults for source and target?

2017-01-18 Thread Thomas Broyer
One shouldn't ever use source/target without also setting a corresponding bootclasspath (and Java 8 displays a warning when that's not the case; as it could lead to code that doesn't actually run on the targeted JVM), so those settings should have NO default value. Java 9 will make it better with r

Re: generated resources not in target jar

2017-01-23 Thread Thomas Broyer
You have a chicken-and-egg problem: resources:copy is run before compile:compile, and jar:jar takes what was copied/written to target/classes. So if you generate resources after the process-resources phase, then you either have to write them directly to target/classes or run the maven-resources-plu

Re: Possible to use maven API to get another projects binaries ?

2017-03-07 Thread Thomas Broyer
On Tue, Mar 7, 2017 at 11:59 AM Tushar Kapila wrote: > hello > > I would like to get output binaries -how many/ name and output paths, > of an arbitrary maven project. It could have multiple ways / profiles > of being built (for example client jar, service app and front end war > file, the way t

Re: Possible to use maven API to get another projects binaries ?

2017-03-08 Thread Thomas Broyer
Le mar. 7 mars 2017 12:49, Tushar Kapila a écrit : > So is my best bet to make a OS Process, collect the output and parse > the text to get files created like the following maven run snippet: > > > > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] > [INFO] --- maven-jar-plugin:2.4:jar

Re: [Help] Force maven[-surefire] to run in parallel

2017-03-15 Thread Thomas Broyer
Hi, On Wed, Mar 15, 2017 at 2:11 PM Luis Henrique de Souza Melo < l...@cin.ufpe.br> wrote: > Hi, > > I am a student at the Federal University of Pernambuco, and our group is > having some issues with Maven to run some tests in a huge amount of > projects. > > We plan to run all theses open-source

Re: Gentoo packaging / reproducibility of Maven-based Java projects

2017-03-20 Thread Thomas Broyer
Disclaimer: I don't know Gentoo. On Mon, Mar 20, 2017 at 4:19 PM Curtis Rueden wrote: > > The main question I have is about Maven plugins: since Maven builds do some > bootstrapping, but Gentoo builds are not supposed to download things from > the network, it means we might need a pre-baked Mave

Re: Continuous Delivery with Maven now possible?

2017-05-04 Thread Thomas Broyer
How about everybody read their mail? (see below) On Thu, May 4, 2017 at 6:10 PM Curtis Rueden wrote: > Hi Dan, Karl & everyone, > > > See Karl's Blog > > Link, please? > […] > > > > On 03/05/17 20:39, Dan Tran wrote: > > > > > > > >> Hi > > > >> > > > >> I have been experimenting with suggestio

Re: dependency:analyze controversial result

2017-05-17 Thread Thomas Broyer
activemq-all, as its name suggests, bundles third-party dependencies in its JAR (rather than declaring them as dependencies), and it happens to include slf4j: http://grepcode.com/snapshot/repo1.maven.org/maven2/org.apache.activemq/activemq-all/5.11.1 So I suppose, the first run finds slf4j classes

Re: If anyone ever wanted to download a bunch of deps specified in a Maven POM for an Ant build

2017-06-11 Thread Thomas Broyer
Wouldn't have dependency:copy-dependencies helped here rather than sed/grep/wget? (maybe not, devil is in the details and I just skimmed through your script) https://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html Le dim. 11 juin 2017 20:53, Paul Hammant a écrit : >

Re: Auditing version ranges

2017-08-15 Thread Thomas Broyer
Maven Enforcer Plugin's Require Upper Bound Dependencies might be enough for your use-case (also notice there's a Require Release Dependencies rule to prohibit snapshot dependencies) http://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html Le mar. 15 août 2017 12:06, Mark Raynsfo

Re: There must be a better way.

2017-08-30 Thread Thomas Broyer
You're using both m-assembly-p's jar-with-dependencies and m-shade-p, could it be a conflict between them? (or possibly you don't look at the correct JAR) If you use m-shade-p, you don't need m-assembly-p's jar-with-dependencies; m-shade-p does the same thing, better, and does more (class renaming,

Re: There must be a better way.

2017-08-30 Thread Thomas Broyer
> Sadly it's done only for the regular jar. Not the jar-with-dependencies > > one. > > > > And yes I've updated the versions in the new build file. So assembly > > plugin and shade plugin both run with 3.1.0. > > > > Best regards > > > > Dani

Re: Where does shaded JAR get its POM?

2017-09-04 Thread Thomas Broyer
AFAIK, as soon as you use a in a dependency, the transitive dependencies from its POM aren't used (actually, Maven might even not download the POM at all in this case); so you should be OK using shaded. Note however that, this shaded JAR still depends on Guava, SLF4J API and Immutables, so you'll

Re: Maven Extension Idea: iJar support

2017-10-04 Thread Thomas Broyer
AFAIK, the ijar (for "interface jar") is a standard JAR, with standard *.class files *except* that the method bodies and private members have been stripped out (and timestamps are normalized too). That way, if you change a method implementation, or a private member (add/remove private field or meth

Re: Maven Extension Idea: iJar support

2017-10-04 Thread Thomas Broyer
See https://melix.github.io/javaone-2017-max-incremental/ for how Gradle does it (and so it uses it not only for incremental compilation, but also compilation avoidance). Bazel's ijars are a similar mechanism to avoid unnecessary work. On Wed, Oct 4, 2017 at 5:19 PM Thomas Broyer wrote: &g

Strange NoSuchMethodError in plugin, any idea?

2017-10-10 Thread Thomas Broyer
Hi all, A net.ltgt.gwt.maven:gwt-maven-plugin user reported to me today [1] that after updating the plugin from the latest release to the latest snapshot, he faces a NoSuchMethodError on org.codehaus.plexus.util.StringUtils.isBlank(Ljava/lang/String;)Z. Between the two tested versions, I updated o

Re: Strange NoSuchMethodError in plugin, any idea?

2017-10-10 Thread Thomas Broyer
gt; > On Tue, 10 Oct 2017 15:51:34 +0200, Thomas Broyer > wrote: > > > Hi all, > > > > A net.ltgt.gwt.maven:gwt-maven-plugin user reported to me today [1] that > > after updating the plugin from the latest release to the latest

Re: using includes in maven-source-plugin induces sources are not found anymore

2017-11-02 Thread Thomas Broyer
maven-assembly-plugin would likely be less ugly. Have you tried that? Le jeu. 2 nov. 2017 22:26, MAISONOBE Luc a écrit : > Hi, > > MAISONOBE Luc a écrit : > > > Hervé BOUTEMY a écrit : > > > >> Hi, > > > > Hi Hervé, > > > >> > >> AFAIK, reading the plugin source code, there is no feature to ad

Re: Running tomcat maven plugin in a multi modules project

2018-01-13 Thread Thomas Broyer
Tomcat Maven plugin has built-in support for reactors, so run it at root rather than within the web submodule (possibly with "-pl web -am"). It will automatically compile all (needed) submodules and launch Tomcat, and with auto-deploy will automatically reload the webapp to pickup changes in any su

Re: Running tomcat maven plugin in a multi modules project

2018-01-13 Thread Thomas Broyer
On Sat, Jan 13, 2018 at 3:20 PM Thomas Broyer wrote: > Tomcat Maven plugin has built-in support for reactors, so run it at root > rather than within the web submodule (possibly with "-pl web -am"). It will > automatically compile all (needed) submodules and launch Tomcat, and

Re: Running tomcat maven plugin in a multi modules project

2018-01-14 Thread Thomas Broyer
Oh great, thanks for the heads up! (I had asked for this years ago and then they moved to Eclipse and I lost track) Le sam. 13 janv. 2018 23:24, Olivier Lamy a écrit : > Hi, > Well to be fair Jetty Maven Plugin has now this feature as well... > > On 14 January 2018 at 03:25, T

Re: Maven bug in conjunction with annotation processing ?

2013-07-20 Thread Thomas Broyer
Maven, more accurately here the maven-compiler-plugin or the plexus-compiler, (just like many other build tools) *is* broken; and, being "by design", it's unfixable. http://blog.ltgt.net/ Le 20 juil. 2013 12:31, "Tommy Svensson" a écrit : > Hello Russ, > > No, the sources are only generated once.

Re: Any reason ant should compile faster?

2013-07-24 Thread Thomas Broyer
scans the 4000 files whereas your Ant script only scanned 300 files. The way the compiler is invoked might play a role too, the default depends on the version of the maven-compiler-plugin (and plexus-compiler) you're using. -- Thomas Broyer /tɔ.ma.bʁwa.je/ -

Re: [DISCUSS] Should the Maven PMC be an example of how we want the Maven Community to behave (was Re: svn commit: r1506778 - /maven/site/trunk/content/markdown/project-roles.md)

2013-07-25 Thread Thomas Broyer
ng, or improving Maven code to >> +alternative projects outside of this community for the purposes of >> +reintroducing them as replacement for existing Maven code. While there >> +is a danger here of falling into a Not Invented Here mentality, new >> projects >

Re: [DISCUSS] On the Maven PMC roles... (was [DISCUSS] Should the Maven PMC be an example of how we want the Maven Community to behave...)

2013-08-03 Thread Thomas Broyer
n master/trunk I mean – but of course, because SVN doesn't give you tools to easily look back at your commit history, you tend to not care that much about having a "clean history"; "git svn" mitigates it a bit). -- Thomas Broyer /tɔ.ma.bʁwa.je/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org

Re: Error when loading dependency on a personal repository

2013-08-17 Thread Thomas Broyer
The error is in resolving the dependency, not deploying it. So I'd say the error is the missing ":" in the repository URL. Le 12 août 2013 15:12, "Baptiste Mathus" a écrit : > Hi, > Sure Tomcat isn't required (btw, Apache Httpd also supports webdav). > > From the error excerpt you provided("http/

Re: Maven - slf4j noclassdeffound error

2013-10-23 Thread Thomas Broyer
None of the transitive dependencies of spark are in the classpath. It generally happens if the POM is "invalid". What does "mvn dependency:tree" says? Is there any error/warning in IDEA? Le 23 oct. 2013 14:28, "Seenu" a écrit : > I am using intellij and maven, > > I have used the following pom.x

Re: Maven Central Opinion

2014-01-05 Thread Thomas Broyer
what you're ranting about is about releasing artifacts with Maven and deploying them to a repository, and more specifically about the maven-release-plugin (and many people hate it); only a couple points are about Sonatype OSS and Central. -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Maven Central Opinion

2014-01-05 Thread Thomas Broyer
On Sun, Jan 5, 2014 at 5:29 PM, Tommy Svensson wrote: > Well, I guess I have my answer, I am alone :-). > > Many people are telling me that both the sonatype super pom and SNAPSHOTs > are optional. I obviously have been reading the wrong instructions. Maven dependency versionning is based on sn

Re: short and snappy description of what Maven is

2014-01-06 Thread Thomas Broyer
Le 6 janv. 2014 22:34, "Stephen Connolly" a écrit : > > I don't want a religious war. If Gradle or ANT are a better fit for the way > some people think about building software... well good for them... and the > faster we can help them realise that Maven takes a different tack the > better. > > I h

Re: short and snappy description of what Maven is

2014-01-06 Thread Thomas Broyer
Le 6 janv. 2014 23:25, "Stephen Connolly" a écrit : > > On 6 January 2014 22:18, Thomas Broyer wrote: > > > Le 6 janv. 2014 22:34, "Stephen Connolly" < stephen.alan.conno...@gmail.com > > > > > a écrit : > > > > > > I don&#x

Re: Maven install phase - Access is denied

2014-01-08 Thread Thomas Broyer
Le 8 janv. 2014 20:39, "andre999" a écrit : > > Caused by: java.io.FileNotFoundException: > P:\Projects\HlkProjects\CertLoader\hlk-certloader\trunk\target\install4j\certImport > (Access is denied) > at java.io.FileInputStream.open(Native Method) Isn't the problem that you're trying to ins

Re: Maven install phase - Access is denied

2014-01-08 Thread Thomas Broyer
I'd rather say the question is why does it even tries to install it? There must be some plugin that attaches it. Le 8 janv. 2014 22:34, "andre999" a écrit : > That's the problem. I do not know how to order maven install NOT to read > the > directory and not to create repository. Maven install rea

Re: Maven2/Maven3 plugin development: Ensuring only the available parameters are allowed

2014-01-14 Thread Thomas Broyer
> S. Ali Tokmen > http://ali.tokmen.com/ > > My IM, GSM, PGP and other contact details > are on http://contact.ali.tokmen.com > > > --------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: versions maven plugin

2014-01-20 Thread Thomas Broyer
Possibly using 1.0-SNAPSHOT instead of 1.0-RC-SNAPSHOT as your naming rule would make it easier: you're working towards 1.0 and on the path to this release you cut a few RCs: 1.0-RC-1, 1.0-RC-2, etc. Le 20 janv. 2014 19:34, a écrit : > Thank you Stephen. Are there any other ways to stabilize my d

Re: Best practices for Java EE 7 dependencies

2014-02-07 Thread Thomas Broyer
specify the exact dependencies and investigate some more > work in POM maintainance? What would this gain me? > > What do you think? > > - martin > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Possible build collision between CI snapshot build and Release build

2014-02-15 Thread Thomas Broyer
wakeup at the same time. Is there a way to prevent this? > > like a a profile to fail the build if the version happen to be a release > > version. Ie is there a way to detect this in a profile? > > > > I currently have to keep remind my self to turn off CI snapshot build >

Re: Using github as a maven repo

2014-03-05 Thread Thomas Broyer
>From the point of view of Git, you're bloating your repo forcing everyone to download all the JARs when they clone your repo. >From the point of view of GitHub, they don't want you to do that and might very well break it in the future. At least use gh-pages, but that doesn't solve the Git issue.

Re: Using github as a maven repo

2014-03-05 Thread Thomas Broyer
Le 5 mars 2014 23:47, "Olivier Lamy" a écrit : > > Ideologic POV: Perso I'm very happy to download software from various > sources (I believe in linux you can have different sources) > So why we should have only ONE "artifacts source"? +1 > Having a sort of routing per groupId is definitely some

Re: m-invoker-p: only 2 out of 3 ITs executed

2014-03-18 Thread Thomas Broyer
root, and is > using invoker.project property. > > Haven't had a look in the m-invoker-p code, but if anyone has a hint about > this, or can point me to an existing JIRA that'd help. > > Thanks > > -- > Baptiste MATHUS - http://batmat.net > Sauvez un arbre, > Mangez un castor ! > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: multi-module phases sequence

2014-03-24 Thread Thomas Broyer
dule projects. Want to skip tests? add -DskipTests. Want to run only selected tests? (e.g. those from a single module) use -Dtest=my/test/pattern/* -Dsurefire.failIfNoSpecifiedTests (see http://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.htmland http://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#test) -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: multi-module phases sequence

2014-03-24 Thread Thomas Broyer
Le 24 mars 2014 12:19, "Karl Heinz Marbaise" a écrit : > > Hi, > > > > > >> >> There is one multi-module project where module 1 is dependend on module 2. >> Module 1 uses assembly plugin in the package phase to produce the final >> artifact (zip file). Modul 2 uses dependency plugin in the generat

Re: multi-module phases sequence

2014-03-27 Thread Thomas Broyer
r “run the test phase on these modules and the package phase on all the modules they depend on” (enhanced “-am”). See http://blog.ltgt.net/maven-is-broken-by-design for other issues with how reactor (multi-module) builds are “broken by design”. -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: multi-module phases sequence

2014-03-27 Thread Thomas Broyer
://maven.40175.n5.nabble.com/multi-module-phases-sequence-tp5789365p5789696.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apach

Re: multi-module phases sequence

2014-03-27 Thread Thomas Broyer
5789704.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: multi-module phases sequence

2014-03-28 Thread Thomas Broyer
Well, we clearly disagree on whose "fault" it is at least. Declarative inputs and outputs also help with incremental builds (exactly what Takari built, but only serves within a plugin to know whether it should do real work or just be a no-op). Le 28 mars 2014 08:35, "mkarg" a écrit : > Now I unde

Any workaround for SCM-530

2014-03-28 Thread Thomas Broyer
Hi, I'm importing external test resources as a git submodule (in src/test/resources) and that makes release:perform fail because my test doesn't find its data. This is because the git clone doesn't check the submodules out. Anyone would know (or imagine) a workaround? (as a last resort, I'll copy

Re: Hot deployment using jetty 8 and maven

2014-04-10 Thread Thomas Broyer
; > > > > > > I can see, that maven realizes that files in source folder (src) had been > changed, but does not compile into the directory: > "*/src/main/webapp/WEB-INF/classes*" > > I would really appreciate an

Re: Hot deployment using jetty 8 and maven

2014-04-10 Thread Thomas Broyer
tory) IDEA can be configured to use the same output directory as Maven too. Can't tell for other IDEs. -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Velocity escaping; I can't escape

2014-04-14 Thread Thomas Broyer
unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Struggling to release:perform with git and deployer key

2014-04-18 Thread Thomas Broyer
gt; > What am I doing wrong? > > ----- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

M2Eclipse vs. maven-eclipse-plugin: which is preferred?

2014-05-15 Thread Thomas Broyer
ground: I'm in a argument in a code review for an archetype about whether to include maven-eclipse-plugin configuration within the POM or not; and any "official" choice would help us avoid "bikeshedding". -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Adding Atlassian repos but keeping maven central?

2014-06-06 Thread Thomas Broyer
AFAICT, Central will always be used unless overridden by another repo with the same ID, or defining a mirror. Profiles add up to the default configuration, they don't replace. Le 6 juin 2014 10:13, "Steinar Bang" a écrit : > If I add the atlassian repos (the SDK local disk repo and the > https:/

How to resolve artifacts while respecting projects' dependency management? (or finding an alternative)

2014-10-12 Thread Thomas Broyer
r at least make them better), but if the best practice is to add the dependencies to the project using the plugin, I'd just leave resolution as it is today but disable it behind a flag (either the plugin extends the classpath in some "broken" way, or you add the dependencies to your pr

Re: How to resolve artifacts while respecting projects' dependency management? (or finding an alternative)

2014-10-13 Thread Thomas Broyer
er plugin); and in some cases the project will have a direct dependency on the "junit-runner", in which case you'd expect it to be used, and the plugin to not add anything. > /Anders > > On Mon, Oct 13, 2014 at 1:17 AM, Thomas Broyer wrote: > > > Hi all, > >

Re: javadoc:jar and generated sources

2018-03-15 Thread Thomas Broyer
Be careful in your testing: javadoc:javadoc forks a lifecycle at 'generate-sources' phase (and javadoc:aggregate at 'compile' phase), whereas javadoc:jar does not! So running 'mvn javadoc:jar' alone indeed won't run your protoc plugin, which won't add the generated sources as a compile source root.

Re: maven-license plugin's license-list

2018-05-22 Thread Thomas Broyer
No, AFAICT, it's the list of all licences known to the plugin, irrespective of "applicability" and/or your dependencies. On Tue, May 22, 2018 at 5:20 PM Désilets, Alain < alain.desil...@nrc-cnrc.gc.ca> wrote: > This may sound a bit nit-picky, but I need to be 100% about this... > > > I am using t

Re: mvn dependency:purge-local-repository

2018-06-15 Thread Thomas Broyer
On Fri, Jun 15, 2018 at 5:45 PM Karen Goh wrote: > Hi, > > I run into a problem in my Spring Boot Web project and then there's an > advice following this URL : > > https://github.com/spring-projects/spring-boot/issues/12398 > > But, when I run mvn dependency:purge-local-repository, I get another

Re: Release a snapshot version

2018-06-27 Thread Thomas Broyer
It looks like you just want to deploy your snapshot to a repository; in that case you'll want to simply "mvn deploy", without even using the maven-release-plugin (for the reasons Karl Heinz gave) Le mer. 27 juin 2018 18:30, Ravindranatha Panikar, Renjith < rr...@allstate.com> a écrit : > I am pla

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

2018-06-28 Thread Thomas Broyer
On Thu, Jun 28, 2018 at 5:59 PM Karl Heinz Marbaise wrote: > Hi, > > On 28/06/18 12:59, Václav Haisman wrote: > > Hi. > > > > Is there any effort to make Maven Java 9 friendly and provide modules? I > > have hit some issues when I was trying to compile a 3rd party Maven > plugin > > (nashorn-mave

Re: Distribution management

2018-07-10 Thread Thomas Broyer
altDeploymentRepository (or alternatively altReleaseDeploymentRepository/altSnapshotDeploymentRepository) sounds like THE solution to this problem: https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html#altDeploymentRepository mvn deploy -DaltDeploymentRepository=company-repo:defaul

Re: maven - pom.xml file

2018-07-24 Thread Thomas Broyer
What you're looking for is https://maven.apache.org/pom.html (from https://maven.apache.org/ click "User Center" then "POM Reference") Le mar. 24 juil. 2018 19:40, Angelo Moreschini a écrit : > How course I found the document at link : " > http://maven.apache.org/xsd/maven-4.0.0.xsd"; > > But th

Re: Integration testing of command line tools?

2018-08-20 Thread Thomas Broyer
One approach could be to have a main() overload taking an additional Environment argument to abstract access to environment variables, system properties, and standard I/O; and returning an int as the possible System.exit() value. That way, you can easily stub the environment for tests. Your standar

Re: Could not resolve dependencies error

2018-08-29 Thread Thomas Broyer
On Wed, Aug 29, 2018 at 8:36 AM Guido van Brakel < guido.vanbra...@outlook.com> wrote: > Hi, > > We have an issue with Maven not finding a certain dependency, anyone able > to help this Maven. Keep in mind that I’m quite newbie to Maven, and just > try run a build > > [ERROR] Failed to execute goa

Re: JDK Version for new project generated by mvn archetype:generate

2018-09-11 Thread Thomas Broyer
Either change the artifact (if you can) so it generates a pom.xml with the appropriate source/target version [1], or indeed change the project pom.xml (after it's been generated by the archetype) [1] and possibly a profile for JDK 9+ that uses , assuming the target is <= 8; otherwise use instead

Re: Running integration tests twice against different webapp configurations

2018-10-12 Thread Thomas Broyer
Alternatively, if possible, you could possibly run the app with both configurations in parallel (two executions of jetty-maven-plugin in pre-integration-test and post-integration-test phase, using different ports), and run you tests twice, for each app / port (two executions of failsafe at integrat

Re: Attaching Java Agent to Tests Using Custom Plugin

2018-10-16 Thread Thomas Broyer
Have a look at how JaCoCo does it, as AFAICT it has exactly the same needs: https://www.eclemma.org/jacoco/trunk/doc/maven.html (source code: https://github.com/jacoco/jacoco/tree/master/jacoco-maven-plugin/src/org/jacoco/maven ) TL;DR: prepare-agent goal sets a property that you can then use to c

Re: New (unofficial) Maven Plugin: Go Offline Maven Plugin

2018-10-17 Thread Thomas Broyer
How about, say, maven-compiler-plugin's annotationProcessorPaths? Le mer. 17 oct. 2018 12:29, Andreas Janning a écrit : > Hello maven users, > > I have just released a new open source maven plugin: The Go Offline Maven > Plugin. > > It can be used to download all dependencies and plugins require

Re: Need advice to put my bootstrap template in Maven archetype web app

2018-11-02 Thread Thomas Broyer
On Thu, Nov 1, 2018 at 5:55 AM Karen Goh wrote: > > > On Tue, 10/30/18, jieryn wrote: > > Subject: Re: Need advice to put my bootstrap template in Maven archetype > web app > To: "Maven Users List" , karenwo...@yahoo.com > Date: Tuesday, October 30

Re: Fw: Re: Need advice to put my bootstrap template in Maven archetype web app

2018-11-06 Thread Thomas Broyer
I really hope how should I make the > my URL correct. Do I move all the jsp to above image folder and just below > WEB-INF ? > > Tks & regards, > Karen > > --- On Sun, 11/4/18, Karen Goh wrote: > > > From: Karen Goh > > Subject: Re: Need advice to put my bo

Re: Fw: Re: Need advice to put my bootstrap template in Maven archetype web app

2018-11-06 Thread Thomas Broyer
right. > > > > Here's my latest attempt : > > > > https://ibb.co/g4atCq > > > > https://ibb.co/kppH5A > > > > I am so sorry to trouble you again but > > I really hope how should I make the my URL correct. Do > > I move all the jsp to

Re: Running a plugin only once after the whole build pass

2018-11-26 Thread Thomas Broyer
This needs to be built into the plugin that will do the aggregation. The mojo needs to be marked as being an "aggregator": https://maven.apache.org/developers/mojo-api-specification.html On Mon, Nov 26, 2018 at 12:55 PM Neeraj Mahajan wrote: > Hi , > > I have multi module project and each module

Re: Puzzling Aether behaviour

2018-12-22 Thread Thomas Broyer
Le ven. 21 déc. 2018 20:23, Robert Scholte a écrit : > There are a couple of things happening here. > > 1. dependencies are checked even though they are downloaded > This ensures that the build doesn't rely on *your* *local* repository. At > any time anybody should be able to build the project, i

Re: Maven plugin with annotations: default lifecycle phase?

2019-02-12 Thread Thomas Broyer
Adding the plugin won't be enough, you'll have explicitly name the mojo in an . What defaultPhase does is that you don't have to specify a in the . Actually, you can even list all mojos in the same even if they're bound to different default phases: … … … mojo1

Re: Using maven-dependency-plugin:unpack in "mvn compile" build

2019-03-24 Thread Thomas Broyer
Rule of thumb: in a react build, don't ever use any lifecycle phase prior to package, and if you want to skip tests, use -DskipTests or -Dmaven.test.skip. Corollary: stick with "package" and "verify" (I consider "mvn install" is an anti-pattern). BTW, as another rule of thumb, use "processClasses"

Re: Maven adjusts transitive compile-scope dependency to test-scope

2019-05-14 Thread Thomas Broyer
There might be a rule in the enforcer plugin (I haven't checked). If one really wanted to change the dependency scope, he could add an exclusion in the Y dependency to break the transitivity. Fwiw, whenever you change your dependencies, it's a good idea to run mvn dependency:tree and look at the o

Re: Problem with use of enforcer-plugin after upgrading the Apache parent POM (18->21)

2019-06-24 Thread Thomas Broyer
-------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: the surefire maven plugin and codehaus

2019-06-29 Thread Thomas Broyer
> BR018923), Registered Branch Office: 25 Canada Square, London, E14 5LQ; FIS > Investment Systems LLC is a limited liability company formed in the USA > registered on file with the Office of the Delaware Secretary of State, > Division of Corporations (File No. 0881255), Head Office: 377 E. > Butterfield Road, Suite 800, Lombard, IL 60148, USA | Calls to and from the > companies may be recorded for quality purposes. | All of the named > companies are part of FIS (Fidelity National Information Services, Inc.). > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: the surefire maven plugin and codehaus

2019-06-29 Thread Thomas Broyer
On Sat, Jun 29, 2019 at 4:50 PM Tibor Digana wrote: > Where do we use dependency with groupId "org.codehaus.mojo"? > I wasn't replying to the surefire part of the OP, Tibor; only about org.codehaus.mojo groupId and whether those are "dead components".

Re: Same snapshot deploy number for entire build - possible

2019-09-13 Thread Thomas Broyer
rsion-timestamp-NN > > > > > > > > where NN auto-incremented at each maven module and the number varies > > > > > > > > Is there a way to use same snapshot NN for the entire multi-module > > maven > > > > build? > > > > > > > > If I have to implement a solution, would it be as an extension or I > > have > > > > to tinker with maven-deploy-plugin? > > > > > > > > Very appreciated any advice > > > > > > > > -D > > > > > > > > > > > > > > > > > > > > > > > > > > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

Re: Maven compiler plugin - test compiler arguments with double dash

2019-10-09 Thread Thomas Broyer
nature > > > > > > > > GSMA Associate Member / Mobey Forum Member > > This message is private and confidential. Any views or opinions > expressed are solely those of the author and do not necessarily represent > those of Infobip d.o.o. If you have received this message in error, please > notify us immediately via email to customer.supp...@infobip.com customer.supp...@infobip.com> or telephone +442032864231. > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > -- Thomas Broyer /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>

  1   2   3   >