Re: Can a plugin permit a dependency override by the user setting a simple option?

2024-02-07 Thread Jörg Schaible
On Wednesday, 7. February 2024, 01:00:50 CET Alexander Kriegisch wrote: > 3rd party parent? Are you maybe mixing up my questions about different > topics? There is not parent POM involved here, it is about a plugin and an > application using it. You talk about "override by the user" which implies

Re: Can a plugin permit a dependency override by the user setting a simple option?

2024-02-06 Thread Jörg Schaible
Hi Alexander, On Tuesday, 6. February 2024, 02:39:09 CET Alexander Kriegisch wrote: > Jörg, > > I asked for a working example and not theory for a reason: The plugin > POM already uses properties, and it simply does not work to override > them. Since you seem to use a 3rd party parent, is it pub

Re: How to completely override/replace parent's site.xml

2024-02-06 Thread Jörg Schaible
Hi Alexander, On Tuesday, 6. February 2024, 02:18:36 CET Alexander Kriegisch wrote: > Thanks Jörg, > > but that does not answer my question. I do not want to generate a site > for the parent. I am talking about the module using the parent POM. BTW, > the parent POM is not even under my control, i

Re: How to completely override/replace parent's site.xml

2024-02-05 Thread Jörg Schaible
Hi Alexander, On Monday, 5. February 2024, 05:36:35 schrieb Alexander Kriegisch wrote: > Neither in [1] nor in [2] I can find a way to completely disregard or > override a site.xml from the parent POM. I want to inherit a lot from a > specific parent POM, such as dependency management and properti

Re: Can a plugin permit a dependency override by the user setting a simple option?

2024-02-05 Thread Jörg Schaible
Hello Alexander, On Sunday, 4. February 2024, 04:20:22 CET Alexander Kriegisch write: > Hi Jörg. > > Thanks for the reply. Can you please elaborate with examples? Option 1 > is what I need, but that does not work. Or maybe we have a > misunderstanding about the term "property". Are we talking abo

Re: Can a plugin permit a dependency override by the user setting a simple option?

2024-02-03 Thread Jörg Schaible
Hi Alexander, On Saturday, 3. February 2024, 06:03:27 CET Alexander Kriegisch wrote: > Many plugins, e.g. compiler plugins, depend on other libraries, in this > case compilers. This is true for plugins such as Plexus Compiler, > AspectJ Maven, GMaven+. Usually, what a user needs to do to override

Re: Modifying classifiers of transitive dependencies

2024-01-31 Thread Jörg Schaible
On Wednesday, 31. January 2024, 16:34:22 CET Mansour Al Akeel wrote: > We have a large number of legacy dependencies that we need to sign. I am > trying to cache those that are not signed into an internal repository to > reduce build time. > > So I created another project to sign them and load the

Re: Version Management in 'mvn dependency:tree'

2023-11-01 Thread Jörg Schaible
On Wednesday, 1. November 2023, 06:37:31 CET yukai zhao wrote: > Thank you for your response! > Additionally, I've noticed that in this situation, if I delete 3.12.0 from > my local repository and then recompile the project, Maven still downloads > 3.12.0. Is this behavior normal? In this case, ye

Re: Confused about how to override a transient artifact version

2023-07-29 Thread Jörg Schaible
Hi David, On Saturday , 29. July 2023, 01:29:14 CEST David Karr wrote: > In general, I know how to override transient artifact versions. You add an > "exclusion" for the artifact on the dependency that is including that > dependency, and then you manually add that dependency in the same pom where

Re: AW: [m-deploy-plugin] Deploy javadoc archive only

2023-02-24 Thread Jörg Schaible
Hi Bernhard, [snip] > Initially I tried to find a solution with a short command to produce and > deploy the javadoc archive manually. However, the next step is anyway to > automate this process and then it's less of a problem to split creation of > the javadoc archive and deploying it into two st

Re: Tricky dependencies in multi module projects

2022-07-08 Thread Jörg Schaible
Hi, simply declare the dependency with scope "provided" in the project that shades it. Regards, Jörg On Fritday, 8. July 2022, 17:43:16 CEST Francois Marot wote: > Hello Niels, > > I believe you used the shade maven plugin or equivalent. I faced this > problem multiple times and to my knowledg

Re: How to produce a pom.xml that is guaranteed to fail, with specific error messages

2022-03-30 Thread Jörg Schaible
Hi David, On Wednesday, 30. March 2022, 19:46:35 CEST David Karr wrote: > I work in a large company on a large project with hundreds of services, > most of which are Java Maven projects. We have an "archetype" we use for > new services. It doesn't use the Maven archetype process. There are > par

Re: Maven 3.6.3 configuration enquiry

2021-01-07 Thread Jörg Schaible
Am Donnerstag, 7. Januar 2021, 20:23:27 CET schrieb Bernd Eckenfels: > You did not say what build servers you use, but normally you can have many > different maven versions installed in different directories. Usually CI > servers are fine to pick one (some like Jenkins can even install them > dynam

Re: [ANN] Apache Maven JLink Plugin Version 3.0.0 Released

2020-11-26 Thread Jörg Schaible
Hallo Karl- Heinz, Am Mittwoch, 25. November 2020, 20:49:52 CET schrieb Karl Heinz Marbaise: > The Apache Maven team is pleased to announce the release of the Apache Maven > JLink Plugin, version 3.0.0 Here we have the description for the dependency plugin: > The dependency plugin provides the c

Re: How to use error-prone 2.3.4 plugin with Maven

2020-11-18 Thread Jörg Schaible
Just overwrite that property from command line: docker run -it --rm -v $HOME/.m2:/root/.m2 -v $PWD:/root/trellis-t3 -w /root/trellis-t3 maven:latest mvn clean install -Derrorprone.version=2.3.4 BTW: That's one of the reasons to declare all versions with properties in POMs. Am Mittwoch, 18. Novem

Re: AW: Creating JAR file in WAR module leads to error in EAR creation

2020-11-12 Thread Jörg Schaible
Am Donnerstag, 12. November 2020, 14:13:42 CET schrieb Hohl, Gerrit: > Hello everyone, > > > maybe some additional information will be helpful. > The project structure is like (and also build in this order due to the > dependencies of the modules): > > - XXX-pom > - XXX-ejb > - XXX-web > -

Re: Merged configuration between parent & child?

2020-10-15 Thread Jörg Schaible
If you put your configuration additionally into a profile in the parent, that is activated e.g. on the existence of the file "profiles/lombok". Then you can simply create that in those child projects individually that use the processor. Personally I share typically the profile's name with the one o

Re: How should I represent a library with two configurations in Maven Central?

2020-09-22 Thread Jörg Schaible
On Tuesday, 22. September 2020, 23:05:12 CEST Alan Snyder wrote: > I know that. But you also can’t exclude a dependency based on its version. > > So, what comparison are you making? You don't have to exclude a dependency based on its version, this does not make sense. Maybe you should make your

Re: How should I represent a library with two configurations in Maven Central?

2020-09-22 Thread Jörg Schaible
On Tuesday, 22. September 2020, 01:13:11 CEST Alan Snyder wrote: > I would still like to understand what you meant when you said that > classifiers are worse then versions. You cannot exclude a dependency based on its classifier. Regards, Jörg --

Re: How should I represent a library with two configurations in Maven Central?

2020-09-21 Thread Jörg Schaible
2020, 01:01:58 CEST schrieb Alan Snyder: By implication, exclusions can work on versions? I have not seen any documentation that says this. Or are you talking about Gradle? On Sep 21, 2020, at 2:19 PM, Jörg Schaible wrote: Using a classifier is worse, because exclusions do not wo

Re: How should I represent a library with two configurations in Maven Central?

2020-09-21 Thread Jörg Schaible
Hi Alan, On Sonday, 20. September 2020, 23:50:21 CEST Alan Snyder wrote: > I’ve posted a question on StackOverflow that has not yet been answered. > Perhaps someone here has an answer? > > https://stackoverflow.com/q/63906798/1652984?sem=2 > I

Re: [ANN] Apache Maven Dependency Analyzer Plugin 1.11.2 Released

2020-08-04 Thread Jörg Schaible
Hmmm. This is neither a plugin nor is the groupId correct ... Am Mittwoch, 29. Juli 2020, 20:03:02 CEST schrieb Elliotte Rusty Harold: > The Apache Maven team is pleased to announce the release of the Apache > Maven Dependency Analyzer Plugin, version 1.11.2 > > This plugin analyzes the dependenci

Re: Maven Dependencies Pop Quiz

2020-03-26 Thread Jörg Schaible
BTW: I am quite sure, it depends also on the Maven version. The version handling of something like 25.1-android has changed over time. Am Donnerstag, 26. März 2020, 18:00:52 CET schrieb Andres Almiray: > Hello everyone! > > If I can ask you for 15 minutes of your time, I've put of a 14 question

Re: Profile file activation in a reactor pom, using paren't relative dir - odd behavior

2019-11-27 Thread Jörg Schaible
Hi, Am Mittwoch, 27. November 2019, 20:15:11 CET schrieb Danny Shemesh: > Hey everyone, > > I’m trying to activate a profile in a multi-module project, with several > reactor poms, based on a file existing (or missing) from the parent > directory of the root ‘grand’ parent pom. [snip] > It seem

Regression: Maven 3.6.2 breaks Tycho pomless builds

2019-09-09 Thread Jörg Schaible
Hi, Maven 3.6.2 breaks builds using Tycho with pomless extension completely. When it is scanning for projects I get an error message for every pomless project like. [ERROR] The project (/home/me/work/branches/master/plugins/ org.vafada.swtcalendar/.polyglot.build.properties) has 1 error [ERR

Re: Enforce no local versions

2019-01-29 Thread Jörg Schaible
Hi Tamás, On Tue, 29 Jan 2019 11:40:03 +0100 Tamás Cservenák wrote: > So, if I understand correctly: to enforce there is no reactor project in > depMgt section of child modules? No. I don't want that someone uses a version tag in the dependency section of a POM, since all versions have been de

Re: Enforce no local versions

2019-01-28 Thread Jörg Schaible
On Mon, 28 Jan 2019 22:34:56 +0100 Harald Wellmann wrote: > Do you mean a rule to enforce no snapshot dependencies? In that case, > there is a rule called "requireReleaseDeps". No. > "No local versions" does not really make sense to me, because any remote > dependency will first be downloaded to

Enforce no local versions

2019-01-24 Thread Jörg Schaible
Hi, is there an enforcer rule to ensure that no local versions have been defined for dependencies? I always thought, there is one already available, but somehow I do not find it... Cheers, Jörg - To unsubscribe, e-mail: user

Re: Inheritable Profiles or Decision making in POM

2018-12-21 Thread Jörg Schaible
On Fri, 21 Dec 2018 17:50:42 +0100 Tibor Digana wrote: > I had a discussion with Robert about inheritable profiles. Actually, they are inherited, but just the declaration. The activation is based on the conditions of the current (sub)project. > As Robert said, this would introduce new issues a

Java 11 and java.xml.bin, etc.

2018-09-13 Thread Jörg Schaible
Hi, now with Java 11 not containing several jave.ee modules, what's the best approach for a library that supports still Java 8? I guess profiles based on the current Java version declaring the missing stuff as dependency are a bad idea. Should a library developer add the new dependencies neverthel

Re: [Maven Dependency Plugin] Inheriting transitive dependencies whilst defining an artifact output directory

2018-02-23 Thread Jörg Schaible
Hi, if you use the copy goal, you don't have to add them to your list of dependencies. Personally I would use the copy-dependencies goal and copy only the ones with scope provided (i.e. you don't have to specify each one again). Cheers, Jörg Am Fri, 23 Feb 2018 09:58:09 -0800 schrieb lewis

Re: Is there another alternative to using maven plug-in ?

2018-02-03 Thread Jörg Schaible
Hi Karen, Am Wed, 31 Jan 2018 08:06:31 + schrieb Karen Goh: > Hi John, > > I changed my pom according to what you said, by removing the provided > portion. > However, I am still getting the below error : > > Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war > (default

Re: org.openjdk.source.tree.Tree location

2017-10-02 Thread Jörg Schaible
Hi Martin, Am Sat, 30 Sep 2017 01:49:39 + schrieb Martin Gainty: > guava contains import org.openjdk.source.tree.Tree > > > any ideas where i can locate jar which contains Tree from openjdk? http://search.maven.org/#search%7Cga%7C1%7Cfc%3A% 22org.openjdk.source.tree.Tree%22 Use class-base

MavenArchiver: Add file to archive

2017-08-01 Thread Jörg Schaible
Hi, is it possible to use the MavenArchiver for adding a single file to an existing archive without extracting and packing the complete content again? Cheers, Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org F

Re: project.basedir in file-based profile activation

2017-06-22 Thread Jörg Schaible
Justin Georgeson wrote: > With 3.3.9 and 3.5.0 When I use this > > > > my-profile-id > > > ${project.basedir}${file.separator}somefile.txt > > > > > > > I see this warning > > [WARNING] Some problems were encountered whi

Re: Producing java8 and java7 versions

2017-06-09 Thread Jörg Schaible
Hi Paul, Paul Hammant wrote: > Older releases tried to have a single jar that had adaptive bytecode > within, right Jörg > > Specifically, class file formats 49, 50, 51 in one Jar. This is still the case. The -java7 version just omits class files targetting Java 8, because in some environments

Re: Producing java8 and java7 versions

2017-06-08 Thread Jörg Schaible
Hi Chistopher, Christofer Dutz wrote: > Perhaps not adding any suffix to the version for the java8 version would > be ok and to add “java7” to the version for the legacy builds would be a > good compromise. That's what XStream has done with the last release. Cheers, Jörg -

Re: Using files to activate Maven profiles

2017-06-06 Thread Jörg Schaible
Hi Darius, DariusX wrote: > On a micro-service leaning project, I have various modules that share > certain common aspects among them but not everything. For instance, 5 > modules may require Swagger-UI to be downloaded and unzipped into my > target/webapp. Some other grouping of 5 modules may re

Re: Work-around for antrun AttachArtifact not working in external Ant build file

2017-05-29 Thread Jörg Schaible
Hi Jürgen, Jürgen Weber wrote: > What is the recommended work-around for attaching artifacts created by > antrun? > > * forward target directory as variable to ant ? That helps if the created files should be removed in a normal "clean" phase. > * build-helper-maven-plugin attach-artifact ? De

[OT] Polyglot and release prepare

2017-04-18 Thread Jörg Schaible
Hi last week I played with Maven Polyglot (https://github.com/takari/polyglot-maven) and transformed some POMs into YAML format and was quite impressed by the increased readability in combination with three times shorter files. However, what happens with the release:prepare goal? IIRC, this on

Re: Strategies for overriding parent plugin configuration in some modules without duplicating config code?

2017-02-21 Thread Jörg Schaible
Hi Anders, Anders Hammar wrote: > Profiles are never a "perfect match". They are evil. Profiles are a tool, that can be used for good or bad (e.g. defining additional/different dependencies). There's no need to demonise it. Cheers, Jörg ---

Re: Strategies for overriding parent plugin configuration in some modules without duplicating config code?

2017-02-20 Thread Jörg Schaible
Hi David, this is a perfect match for a profile. Define your "fixed" configuration in a profile of the parent that is activated based on the existance of a file. Add such a "dummy" file in all sub project that should run with the profile activated, e.g. "touch profiles/fixed". Then you will no

Re: generated resources not in target jar

2017-01-20 Thread Jörg Schaible
Give target/generated-resources a try. Gary Aitken wrote: > I'm having trouble getting resources generated post-compile into the final > jar package (packaging type jar). > > During the process-classes phase, I run a task which reads some xml files > and produces other xml files. I can't figure

Re: Maven-Site-Plugin: Generated content?

2016-11-07 Thread Jörg Schaible
Hi Gerrit, Hohl, Gerrit wrote: > Hello everyone, :-) > > > > I'm trying to create some content for the Maven site during the Maven > build process. > > > > I recognized that the maven-site-plugin has a > configuration property which allows defining a directory which holds > such generate

Re: Build behavior differences between 3.2.5 and 3.3.9 with dependency shading

2016-11-06 Thread Jörg Schaible
Stephen Connolly wrote: > Hmmm I did some digging... > > https://maven.apache.org/ref/3.2.3/apidocs/org/apache/maven/artifact/handler/ArtifactHandler.html#isIncludesDependencies() > is i think the idea JvZ was hinting at. > > For the case where a shaded JAR shades *everything* then a custom > p

Re: Skipping install phase for a particular artifact in a project

2016-11-04 Thread Jörg Schaible
Hi, Gupta, Nishant. wrote: > Hi, > > I was wondering if there is a way by which we can skip the install phase > for a particular artifact. My use case is that I am using > maven-assembly-plugin with two assembly descriptors in it. The output of > first assembly descriptor is being used as input

Re: How to filter dependency:tree

2016-10-19 Thread Jörg Schaible
Hi, Elliot Huntington wrote: > Hi, > > I work for a company that produces hundreds of artifacts which depend on > each other. I'm trying to use `dependency:tree` to create a graph (with > graphviz) to better understand the relationships of these artifacts. The > problem I'm running into is that

Re: mvn deploy without rebuilding?

2016-05-04 Thread Jörg Schaible
thully wrote: > We can run mvn deploy whenever we make an RC build - however, the problem > with that ends up being that we are deploying artifacts to our repository > that may not be the final release. That's what we want to avoid - while we > can re-deploy if we end up doing a second RC, the lac

Re: Why isn't maven-dependency-plugin copying my artifacts anymore?

2016-03-11 Thread Jörg Schaible
David M. Karr wrote: > On 03/10/2016 09:43 PM, Uwe Barthel wrote: >> I tried: >> 'mvn clean' removes the lib/ and target/ folder. >> 'mvn package' puts the libs into lib/ again. >> >> I delete all libs in lib/ folder but let the lib/ folder itself and the >> target folder untouched. ‘mvn package’

Re: Compilation Error -Incompatible Types

2015-11-26 Thread Jörg Schaible
pradeepkumar wrote: > I have tried compile form console , even i am facing the same error from > command prompt. That simply means your code is not Java compliant. It does not matter that the Eclipse compiler has no problem. Cheers, Jörg ---

Re: Compilation Error -Incompatible Types

2015-11-25 Thread Jörg Schaible
pradeepkumar wrote: > Is there any was to resolve this issue from maven side by adding any flag > to avoid cast typing issues. Just because Eclipse can compile it, does not mean that javac of Oracle JDK can also. You better try to compile from console using the real compiler to see what's wrong

Re: Offline builds nearly impossible

2015-11-16 Thread Jörg Schaible
Hi Jason, Jason van Zyl wrote: > If this does not work please let me know. This is what I’ve used in the > past and if it doesn’t work I agree it needs to be fixed. I honestly > haven’t tried making a hermetically sealed build in a few years but last > year worked on a project that did no network

RE: [EXTERNAL] RE: profile activation with multiple conditions

2015-11-16 Thread Jörg Schaible
Hi Justin, Justin Georgeson wrote: > Thanks. I was hoping that it would evaluate the file-based activation per > project. I was treating it as a separate issue than the multiple > conditions. But I think what you're saying is that the profile activation > happens once for the whole reactor, and n

Re: Offline builds nearly impossible

2015-11-14 Thread Jörg Schaible
Paul Benedict wrote: > I think most people, at least once in their life, try to use their local > repository cache as an offline remote repository. However, the two aren't > the same in concept though, IIRC, the last time I tried. You still need to > keep the two separate. > > Now it would be int

Re: Offline builds nearly impossible

2015-11-13 Thread Jörg Schaible
Hi Jason, Jason van Zyl wrote: > Use a file based remote repository instead of trying to build in offline > mode. > > You can either use a repository manager to create the remote repository or > an empty local repository with a full build. As noted though, you have to > remove all local reposito

Re: Offline builds nearly impossible

2015-11-13 Thread Jörg Schaible
Hi Stephen, Stephen Connolly wrote: > IOW > > mvn -o -llr goal > > Should do what you want where you have changed the repo url. The > _remote.repositories stores the URL of the repository not just the id. My local repo was populated using Maven 3.3.8 or 3.3.9 and those files never contained a

Offline builds nearly impossible

2015-11-13 Thread Jörg Schaible
Hi folks, we have a requirement for a source code escrow (https://en.wikipedia.org/wiki/Source_code_escrow). Therefore we intended provide our source code with a local Maven repository that can be used for offline builds. However, all attempts have been failed so far. What have we done: 1/ Che

Re: Locking down dependency versions...

2015-11-12 Thread Jörg Schaible
Kevin Burton wrote: > Just regular dependency versions. > > So if we're using 1.0.1 of library A I don't want adding adding library B > to transitively change our dependency on library A... > > This has happened to us before and caused problems. Use a shared parent where you define all dependen

RE: profile activation with multiple conditions

2015-11-10 Thread Jörg Schaible
Justin Georgeson wrote: > So here's a minimal parent pom.xml, which lists 2 child modules that I > created with 'mvn archetype:generate' choosing the > 'maven-archetype-quickstart' archetype. My goal was that if I > > mvn package > > Then the compile/test/package occurs with no attempt to sign.

Re: Reactor versus classifiers ...

2015-10-22 Thread Jörg Schaible
Hi Benson, Benson Margulies wrote: > I've hit a problem with Maven 3.2.5 and the karaf-maven-plugin. > > One module builds a Karaf feature with the karaf maven plugin; this > produces: > > > ${project.groupId} > rosapi-features > ${project.version} >

Re: Copy-dependencies goal error

2015-10-06 Thread Jörg Schaible
Karl Heinz Marbaise wrote: > Hi, > > On 10/5/15 7:51 PM, Jörg Schaible wrote: >> Hi Michael, >> >> michael.ctr.taru...@faa.gov wrote: >> >>> My apology about part of this reply. I did not understand part of your >>> suggestion. >>&g

RE: Copy-dependencies goal error

2015-10-05 Thread Jörg Schaible
michael.ctr.taru...@faa.gov wrote: > What are you talking about? > > Of course I don't pay. It's an open source product. OK, then I don't answer anymore, because it's my free time and you're wasting it. Cheers, Jörg - To un

RE: Copy-dependencies goal error

2015-10-05 Thread Jörg Schaible
michael.ctr.taru...@faa.gov wrote: > There are no transitive dependencies! That depends totally on the declaration of the POMs for your dependencies. You don't control this. > This is not even building source code!!! That's totally irrelevant. > It is simply copying ZIP/MD5/SHA1 files from a

RE: Copy-dependencies goal error

2015-10-05 Thread Jörg Schaible
Hi Michael, michael.ctr.taru...@faa.gov wrote: > What do you mean by a consistent repository and POM model? > > If you mean that the POM must be declaring files to copy that are in the > repository, that is stating the obvious. > > And in this case, the POM is doing exactly that. The files I a

RE: Copy-dependencies goal error

2015-10-05 Thread Jörg Schaible
Hi Michael, michael.ctr.taru...@faa.gov wrote: > My apology about part of this reply. I did not understand part of your > suggestion. > > I thought you were saying 3.0.5 is the latest release. > > That said, I don't see how using the latest release or an older release > makes any difference. >

Re: Copy-dependencies goal error

2015-10-05 Thread Jörg Schaible
You asked the same question before and I gave you the advice to either try latest Maven version or 3.0.5, because 3.1.1. is bogus. You never answered. michael.ctr.taru...@faa.gov wrote: > I am currently responsible for a "legacy" POM that copies ZIP files > from the Red Hat JBoss Fuse distro in

Re: Local Repository Question

2015-09-23 Thread Jörg Schaible
michael.ctr.taru...@faa.gov wrote: > Can the local repository be a Nexus repository on a server? If so How? No. Think of the local repo as cache. - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additio

RE: Trouble With A POM

2015-09-23 Thread Jörg Schaible
Hi Michael, michael.ctr.taru...@faa.gov wrote: > Yes we do that in our settings.xml file. > > Knowing that, is there anything else to add? AFAICS 3.1.1 is known to be bogus. Can you give the latest 3.3.x version a try (or 3.0.5)? IIRC you have problems with 3.1.x when using dependencies with

Re: Trouble With A POM

2015-09-21 Thread Jörg Schaible
michael.ctr.taru...@faa.gov wrote: > I inherited a POM file (copy attached) that copies selected files from our > Nexus repository to a local workstation location. > > When I run Maven (3.1.1) with said POM I get the following error: > [ERROR] Failed to execute goal on project all-products: >

Re: Can not build with Junit4.18

2015-09-02 Thread Jörg Schaible
建文 wrote: > Junit is added in dependencies,and i can run Junit test in my Eclipse, > but when run mvn clean install -DskipTests=true fail Maven is about conventions. If you don't follow its conventions, you'll run into trouble. Like this. Maven separates between the main source and the code for

Re: How can I emit the SNAPSHOT version after deploy?

2015-08-21 Thread Jörg Schaible
Hi Jeff, Jeff wrote: > I should clarify that I want to find the specific SNAPSHOT version > assigned by Nexus (or other maven repository manager applications) after > the deploy. > > So after I deploy 'myapp.jar' to Nexus with GAV: > > groupID: mycompany.com > artifactID: myapp > version: 1.0-

RE: Velocity-based report with project artifacts

2015-08-18 Thread Jörg Schaible
Hi Martin, Martin Gainty wrote: > so if you knew how to accomplish this how come you posted that you did not > know how to access project artifacts? as said, your mail triggered my memory and I just wanted to share the result, since I've seen various requests for a generated download page. > I

RE: Velocity-based report with project artifacts

2015-08-18 Thread Jörg Schaible
Hi Martin, sometime a simple Velocity template is enough. SNippet from my generic about page: %< == * Generated Artifacts #set($url=${project.properties.get('site.download')} + ${project.groupId.replaceAll('\.', '/')} + "/") #set($name=$project.artifact.file.

RE: Specified destination directory cannot be created

2015-08-17 Thread Jörg Schaible
Hi Michael, michael.ctr.taru...@faa.gov wrote: > Thanks Robert. > > Using Maven 3.1.1 (required by COTS product vendor); can you define > ancient :-)? > > I suspect it is not permission related, because the build created other > directories\sub-directories located here (which is the same reason

Re: Extra resource directory for site

2015-08-17 Thread Jörg Schaible
Dirk Olmes wrote: > Hi, > > Is it possible to specify a resources directory for the site in > addition to src/site/resources? I did not find anything in the docs of > the site plugin. It used also the (documented) directory of parameter generatedSiteDirectory, i.e. target/generated-site by defa

Velocity-based report with project artifacts

2015-08-14 Thread Jörg Schaible
Hi, for a report page I'd like to use a velocity template to list all artifacts generated by the current project e.g. - artifact-1.0.jar - artifact-1.0-config.zip Accessing artifactId and version is clear, but the extension of the main artifact is already a problem. Not to speak of all attached

Re: Use 2 pom.xml files with different names

2015-08-11 Thread Jörg Schaible
Hi Alex, Alex Ditu wrote: > Ok, look what I am trying to achieve: I have a project with 2 > profileDeployments (it produces 2 types of artifacts: a jar and a war) > but from the same sources. So, I did the following thing: I have > written 2 pom.xml files with 2 different names (for example: pom.

Re: Determine maven deploy file name

2015-07-17 Thread Jörg Schaible
name in your test. Cheers, Jörg > > Thanks > > -Dan > > On Fri, Jul 17, 2015 at 12:34 AM, Jörg Schaible < > joerg.schai...@swisspost.com> wrote: > >> Hi Dan, >> >> Dan Tran wrote: >> >> > Hi Jörg >> > >> > Base on

Re: Determine maven deploy file name

2015-07-17 Thread Jörg Schaible
scure configuration in his settings.xml). Cheers, Jörg > > Thanks > > -Dan > > On Thu, Jul 16, 2015 at 11:30 PM, Jörg Schaible < > joerg.schai...@swisspost.com> wrote: > >> Hi Dan, >> >> Dan Tran wrote: >> >> > Hi >> > >

Re: Determine maven deploy file name

2015-07-16 Thread Jörg Schaible
Hi Dan, Dan Tran wrote: > Hi > > Is there a hook into after maven deploy to retrieve the snapshot deploy > name? > > User case: > > * Maven build, smoke test, and deploy huge artifacts (OVA) > * After deploy, continue with more tests but need to know the deploy > name > > (artifacti

Re: maven compiler plugin + toolchains

2015-04-23 Thread Jörg Schaible
intel radoux wrote: > Hello, > > Yes, I could use "maven.compiler.source" properties, but i'm on a parent > pom, and if somebody add a configuration like > > > org.apache.maven.plugins > maven-compiler-plugin > 3.3 > >

Re: deployment in runtime for "provided" scope jars

2015-04-07 Thread Jörg Schaible
Hi Lin, Lin Ma wrote: > Thanks Ron, > > I see Maven has phase like install and deploy, but I never used them > before. Are the two phases suppose to do deployment work, which copy > application jar and dependency jars to destination host, and setup other > environment variable like classpath? N

Re: deployment in runtime for "provided" scope jars

2015-04-06 Thread Jörg Schaible
Lin Ma wrote: > Hi Maven expert, > > I think Maven is good for build, and not sure if cover runtime deployment > well. Wondering what is the best practices for deploy "provided" scope > jars? > > Currently, I either build a fat jar, or manual copy external dependencies > jars into class path. >

Re: Maven does not find existing artifacts in local repository because it looks in central where they are not?

2015-03-26 Thread Jörg Schaible
Hi Christian, Christian Eugster wrote: > Hi > > as I understand, there is a central repository for maven artifacts: > central (http://repo.maven.apache.org/maven2 > ) and a local one > (${user.home}/.m2/repository. What I do not understand is, why after a mvn

Re: What does my application actually require?

2015-03-10 Thread Jörg Schaible
Hi Dan, D C wrote: > I was going to tag this onto my previous post, but I figured the issue is > unique enough to be a different topic. > > > When I run dependency:tree (with an empty .m2), I get a nice tree graph > showing 49 items. I would expect then my .m2/repository to have 49 items > i

Re: compile with different source option

2015-02-16 Thread Jörg Schaible
Hi Philipp, Philipp Kraus wrote: > Hello, > > thanks a lot. I’m using Maven 3 (3.2.0) and I have added > > > > jdk-default > > true Just remove this activeByDefault, it simply does not make sense. > [1.8,) > > > >

Re: compile with different source option

2015-02-16 Thread Jörg Schaible
Hi Philipp, Philipp Kraus wrote: > Hello, > > I use in my pom.xml the items: > > > UTF-8 > UTF-8 > 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. How can I define in my pom.xml, > that the

Re: How to escape variable interpolation?

2015-01-29 Thread Jörg Schaible
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://maven.apache.org/shared/maven-

Re: [VOTE] Run-off for mascot's name

2014-12-11 Thread Jörg Schaible
A D Stephen Connolly wrote: > This is a run-off vote to select the top two options for our new mascot's > name. > > The entries with the highest number of votes will be selected for the > final round. If there is only one entry with the highest number of votes > then the entries with the second

Re: Maven 3.2.3 upgrade

2014-12-09 Thread Jörg Schaible
Hi Dave, David Hoffer wrote: > One other issue came up in this upgrade. We still have branches that have > to stay at 3.0.x. How can I make the trunk build use 3.2.3 w/o changing > everyone's M2_HOME? Is there a way to bootstrap the build so the build > picks the specified version of Maven? E

Re: Maven Plugin Refelction

2014-12-01 Thread Jörg Schaible
Thomas Scheffler wrote: > Hi there, > > I try to write a simple plugin. I want to have access to the version of > this plugin. As maven already knows it, I wondered, if I can get access > to this version string somehow without hardcoding it in properties or > java code. Read it from the manifest

Re: Change dependency version through property

2014-11-14 Thread Jörg Schaible
Hi Robert, Robert Metzger wrote: > Hi, > > I'm a developer at the Apache Flink (incubating) project. I'm trying to > pass the version of a dependency using a property from the command line to > the binary build. But it seems that the version I've set is not respected > everywhere. > > > We hav

Re: Why do running modules in parallel take longer to execute than running them in sequence?

2014-10-08 Thread Jörg Schaible
Hi, laredotornado-3 wrote: > Hi, > > I’m using Maven 3.2.3, Spring 3.2.11.RELEASE, JUnit 4.11, Java 6, and the > Surefire/Failsafe 2.17 plugins. I’m trying to figure out why when running > a couple of modules in parallel, it takes much longer than when I run them > individually. I’m trying to

Re: move data from pom to class or class to pom

2014-07-18 Thread Jörg Schaible
Hi Karl-Heinz, Karl Heinz Marbaise wrote: > Hi, > > > Move the Java code that should contain the version into an own > > directory >> tree (e.g. src/main/java-templates). Replace the version string with an >> expression (e.g. "${project.version}") and use the copy-resources goal of >> the reso

Re: move data from pom to class or class to pom

2014-07-17 Thread Jörg Schaible
Hi Alejandro, alejandro.e...@miranda.com wrote: > Hi Curtis, > > I *think* i see you point, but wouldn't that happen ONLY if the constant > is public and referenced in a separate jar?? where it would be inlined in > the referring class (right?). In my case the constant is package protected > (it

Re: AW: AW: Artifact with different sets of dependencies switched by profiles

2014-07-01 Thread Jörg Schaible
Hi Stephen, Stephen Connolly wrote: > And you are going to have the exact same set of issues as with profiles. > > Maven 3 does not re-interpolate the poms of dependencies IIRC... or at > least it is not supposed to... so you only get to control the variables > from the parent pom and any inheri

Re: AW: AW: Artifact with different sets of dependencies switched by profiles

2014-06-29 Thread Jörg Schaible
Hi Christoper, Christofer Dutz wrote: > Hi Ron, > > I think you got what I'm trying to do a little wrong. It's not two > different set of dependencies, it's two different ways of linking the same > set of libraries. If I were to translate this into java, imagine that the > default way an applica

Re: Pack with native tar, unpack with maven-dependency-plugin failure

2014-06-02 Thread Jörg Schaible
Hi Dan, Dan Tran wrote: > I found the root cause of this issue where I need to force a '-z' option > during native tar compression. Without this flag, the output is just a > normal tar file where native tar is very smart to figure this out. Where > are plexus-archiver only looks for gz signatur

Re: Maven Jar Plugin - Testjar: includes together with skipIfEmpty

2014-04-28 Thread Jörg Schaible
Hi Nick, Nick Stolwijk wrote: > Hi Folks, > > I found a little curiosity in the maven jar plugin. > > if you specify includes and the skipIfEmpty property a jar is still > created and attached while it only has a pom file in it. I would have > expected that the creation of the jar was skipped i

Re: Why Is Maven Ignoring My Local Repo?

2014-04-15 Thread Jörg Schaible
Stephen Connolly wrote: > It's not a local repository. It is a local repository cache. > > There are files there that record where the artifacts were cached *from*. > > If the artifact is there but the cache file is not or indicates a > different source from the allowed sources for your build, t

  1   2   3   4   5   6   7   8   9   10   >