Re: Keeping java's version in sync with project's version

2023-11-10 Thread ecki
BTW you can also write the version to the manifest and then use class.getPackage().getImplementationVersion() like I did here: https://github.com/ecki/et-otp/blob/663228f2b6ad7d3f20aad04ca5f675b49662a78c/src/main/java/net/eckenfels/etotp/GUI.java#L64 This only requires

Re: Can the jar plugin respect .gitignore?

2023-11-10 Thread ecki
I think there are two issues with this, first of all git is not the only SCM, so why prefer it’s file. But secondly it is very common that binary result artifacts are git ignored and exactly the stuff you want to package. For example target/ Are you thinking about -src archives, only? Having

Re: Maven Deploy fails

2022-11-10 Thread ecki
Hello, I think the /usr/bin/mvn (i.e. "not in path") and /usr/share/maven/ points to a non-pristine distribution shipped Maven (Debian?). I would start with using an upstream Maven distribution archive to make sure its no packaging error. )And also use a supported JDK by fixin PATH and JAVA_HOME

Re: Maven Compiler Plugin 3.5.1 bug

2016-10-23 Thread ecki
Manually marking a directory as source is not what I would define as „understands Maven“. Eclipse finds thise directories automatically (if a know plugin is used) Gruss Bernd -- http://bernd.eckenfels.net >From Win 10 Mobile Von: Robert Patrick Gesendet: Sonntag, 23. Oktober 2016 18:45 An: Ma

Re: Comparing specifying repositories in pom vs. settings.xml?

2016-10-18 Thread ecki
Hello, You can have multiple groups (but I have never seen hundreds or thousands in use). In our case we have virtual repos only based on the product status and a separate virtual one for build time (plugin) dependencies. Btw one more reason for using different settings if you work on projects

AW: Comparing specifying repositories in pom vs. settings.xml?

2016-10-18 Thread ecki
Hello, For ensuring that artifacts not go away (like recently some older JBoss public repos) for enforcing licensing and security restrictions, for caching the internet, and of course for having a single aggregated repository view we run a single company server (with a filtered central and othe

AW: local Maven Repository jars are pointing as 0 and 1

2016-09-17 Thread ecki
Hello, This sounds like you have enabled seperate local repositories per executor in the Jenkins settings. This is actually a good thing for parallel builds but it does of course require more storage space. Look for Repository „Local to Executor“ setting in Jenkins configure. Here is a screens

Re: Increasing Java Heap Size

2016-08-08 Thread ecki
Hello, If you are talking about an eecutable JAR file, then there is no way to specify the heapsize in the Jar. If you are talking about some executable wrapper we would need to know what plugin you use to help you. The exec:java plugin for example reads command line arguments from the plugin

Re: Why does archetype plugin use -D before parameters?

2016-06-07 Thread ecki
Maven uses the -D syntax for user properties (too). I guess this is just because it is familiar and "user options" for direct invocations was an afterthought. Properties works for all plugins but most of them are not used interactively/direct like the archetype plugin. I dont think it is particu

Re: maven-jar-plugin-3.0.0 compatiblity/regression?

2016-05-20 Thread ecki
Hello, It might be a possible usecase to differentiate by extension, but if you want to follow the pure maven model just use an classifier which is used in the repo. Gruss Bernd -- http://bernd.eckenfels.net -Original Message- From: Dan Tran To: Maven Users List Sent: Fr., 20 Mai 20

Re: Multiple local repositories

2016-05-07 Thread ecki
Hello, you can configure local repositories with file: URLs configured in profiles. https://maven.apache.org/guides/mini/guide-multiple-repositories.html It is not possible to have the local repository cache in a profile, but you can use different settings.xml files with the -s option. https:

Re: Skip the settings.xml configuration

2016-02-15 Thread ecki
I typically use different settings files and specify them with the -s option. (However I have no explanation on your profile question) -- http://bernd.eckenfels.net -Original Message- From: Jonathan Vila Lopez To: Maven Users List Sent: Mo., 15 Feb. 2016 13:01 Subject: Skip the settin

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

2016-02-04 Thread ecki
Hello, Yes you have to provide interfaces for Java 8 compiler which you did not need before. If your dependencies do not provide these artifacts you get the compiler error. You then basically have the option to include it in the upstream dependency or in your own project as a compile time deoe

Re: Why is checkstyle failing on one project, but not others?

2016-01-14 Thread ecki
Hello, Most likely the source directory is (incorrectly) overwritten at the compile plugin (or it is compiled by the parent pom or some other strange mechanisms like an ant plugin). The -X output (together with the effective pom) should tell you that as well. Removing the , moving the files to

Re: Why is checkstyle failing on one project, but not others?

2016-01-14 Thread ecki
Hello, You can run the build with -X it will give you the actual config parameters used for the plugin (especially includes/excludes/sourceDirectory) as well as a list of the (not) scanned resources. Gruss Bernd -- http://bernd.eckenfels.net -Original Message- From: "David M. Karr"

Re: Tracking down a

2015-12-11 Thread ecki
It should work with the dependency plugin: https://maven.apache.org/plugins/maven-dependency-plugin/list-repositories-mojo.html Not exactly scientific, but the fastest method I use is to delete the file and run the mvn command again, it will log the download URL. Gruss Bernd -- http://bernd.

Re: Cannot seem to install Maven on Windows 7 64-bit

2015-10-15 Thread ecki
Hello Ron, As far as I understand it maven uses MAVEN_HOME internally. However it will deduce and then overwrite the value based on the scripts execution path. So it can be pretty confusing when the PATH finds one version and you MAVEN_HOME points to another. If both agree, then there is no pro

Re: Best way to lock in .jar versions between releases.

2015-10-13 Thread ecki
Hello, How do you construct the effective classpath? Is this a text file, the content of a directory, is it related to a feature definition or is it based on the transitive maven dependencies? Depending on your answer you eed to control the project/artifact which defines it. (I am not sure if

Re: War file name and sftp to server

2015-10-08 Thread ecki
To rename the produced artifacts and remove the version you can use another final name template like: ${artifactId} (See stackoverflow.com/questions/9593473/how-to-build-project-with-maven-without-version) However it is usually better to stick to that convention and configure the deployment m

Re: [release-plugin] prepare phase does not detect dirty Git files (on Windows)

2015-10-06 Thread ecki
Thanks vincet, I already tried the latest version (because 2.5.2 announced scm 1.9.4 update), but I might need to try it again with a minimal POM so I can check which provider is loaded. If I understand correctly you would agree it is a bug to ignore untracked files. Because I can then open a J

RE: Copy-dependencies goal error

2015-10-05 Thread ecki
First of all you dont pay, you only demand (with multiple exclamationmarks), so you are not a customer, and secondly me and Jörg did explain to you that maven always resolves all dependemcies (unless you exclude them), so there is your education. If you dont care about maven just stick in the ex