Re: Best way to blacklist repository (maven.glassfish.org in site build)

2014-12-19 Thread Bernd Eckenfels
Hello, I have turned the question into a StackOverflow Question, in case you want some karma :) http://stackoverflow.com/questions/27575822/maven-dependency-report-avoid-delay-and-error-messages-for-glassfish-reposito Gruss Bernd Am Mon, 3 Nov 2014 02:17:39 +0100 schrieb Bernd Eckenfels

Re: Duplicate plugin declaration warning

2014-12-23 Thread Bernd Eckenfels
Am Tue, 23 Dec 2014 15:10:02 -0700 schrieb David Hoffer : > On the other hand if I can only have one declaration of A then I'm > forced into gymnastics with phase binding. First I have to have > different phases for the first 5 and the later 5 goals and then to > get plugin B to run before the la

Re: Set system property by -Dxxx=xxx vs. in java source file. Why it does not work if setting in java source file ?

2014-12-29 Thread Bernd Eckenfels
Hello, it does not sound to be related to maven. This is more a surefire/junit thing. I guess you are initialising some JSSE/JCE related object before you can set the system property - and therefore it is ignored. (because some initialiser or just because another test is running before in the same

command line materialize from GAV

2014-12-31 Thread Bernd Eckenfels
Hello, is there a plugin which can be used from the command line to materialize a project similiar to the m2e plugin for eclipse? i.e. I want to use maven without a pom and without specifying the scmURL: mvn some:plugin -Dcoordinates=group:artifact:version -Ddirectory=artifact It then should

Re: Strange Issue

2014-12-31 Thread Bernd Eckenfels
Hello, you can use "mvn -version" to see which java is used. Gruss Bernd Am Wed, 31 Dec 2014 10:23:00 -0800 schrieb Mark Eggers : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ole, > > In one instance (have to check your mail again) there were no files to > compile, so nothing bad ha

Re: Strange Issue

2014-12-31 Thread Bernd Eckenfels
Hello, is there a directory /usr/lib/jvm/java-7-openjdk-amd64/include/? If not, this is not the JDK but the JRE version. http://packages.ubuntu.com/en/precise/amd64/openjdk-7-jre/filelist http://packages.ubuntu.com/en/precise/amd64/openjdk-7-jdk/filelist In that case it will help to install open

Re: Strange Issue

2014-12-31 Thread Bernd Eckenfels
Am Wed, 31 Dec 2014 14:09:39 -0600 schrieb Ole Ersoy : > Thanks!! You were right all along. I just did a fresh install on my > machine, and all my other builds were running fine, so I thought the > entire JDK had been pulled in by one of my dependencies. Once I did > a `mvn clean` on these buil

Re: Integration Tests Not Running

2015-01-01 Thread Bernd Eckenfels
Hello, BTW: you should put src/integration-test/java in or you use src/test/java, so all other things follow automatically. Gruss Bernd Am Thu, 01 Jan 2015 17:50:26 -0600 schrieb Ole Ersoy : > Hi, > > Trying to get some integration tests running. I've tried to minimize > my pom, such that e

Re: Maven does not respect exclusion

2015-01-18 Thread Bernd Eckenfels
Hello, you need to exclude them from all direct dependencies which can drag it in. For this the dependency:tree is a good tool. As you can see, it gets dragged in by org.springframework.data spring-data-redis

Re: How to exclude directory in Maven in basedir from adding sources torelease?

2015-01-29 Thread Bernd Eckenfels
In your case you need to also exclude the target/ directory. However I am not sure if that kind of resource 'abuse' should be done. -- http://bernd.eckenfels.net - Ursprüngliche Nachricht - Von: "Stefan Miklosovic" Gesendet: ‎29.‎01.‎2015 21:26 An: "Maven Users List" Betreff: How to

maven system settings (was: maven 3.0.6 release date)

2015-02-02 Thread Bernd Eckenfels
You can specify a empty settings file with -s and define MAVEN_SKIP_RC, this will avoid all system specific configs (as long as nobody modifies the maven program folder). However to my experience sooner or later you do need some specific landscape settings in the settings.xml file. So it is a good

Re: maven 3.0.6 release date

2015-02-02 Thread Bernd Eckenfels
Hello, In practise it seems to be a small issue (at least for us). Older branches are seldomly touched and nearly all work with any 3.x versions (the main reason for this is, that we prefer to use Eclipse with its internal default maven). My main pain of switching (mostly JVM) comes from working o

Re: java import package and maven dependencies

2015-03-24 Thread Bernd Eckenfels
Am Tue, 24 Mar 2015 16:23:23 -0700 schrieb Lin Ma : > How to find Maven updated Classpath and its priority over existing > Classpath in Eclipse? I use both and Eclipse is less. :) Not sure I understand the question, but in Eclipse you can see in the (Right click -> Project settings -> Java Build

Re: java import package and maven dependencies

2015-03-25 Thread Bernd Eckenfels
cies, and where is > the .classpath file you are referring to? I do not find it in > workspace of the project. I created a new maven project in Eclipse. > > [image: Inline image 2] > > regards, > Lin > > On Tue, Mar 24, 2015 at 4:38 PM, Bernd Eckenfels > wrote: &g

Re: Maven and pre-emptive authentication

2015-04-02 Thread Bernd Eckenfels
Hello, the documentation page states that since 3.0.4 it does preemtive auth only for PUT not GET. However it says "default preemeptive" .. so this sounds like it can still be set? Gruss Bernd Am Tue, 31 Mar 2015 08:57:46 +0100 schrieb James Green : > So how does one update the documentation

Re: for maven-compiler-plugin

2015-04-15 Thread Bernd Eckenfels
Hello, you can see here a documentation, it is also contained in the POM refernece and finally it is the default if you try it (which is most authoritative anyway :) https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html Gruss Bernd Am Wed, 15 Apr 2015

Re: for maven-compiler-plugin

2015-04-15 Thread Bernd Eckenfels
Am Wed, 15 Apr 2015 14:49:21 -0700 schrieb Lin Ma : > The document is very helpful. Any thoughts how to check why > src/java/com/foo/goo works is great. Is there some other files like > super POM or other files to check? Thanks. You can print out the effective pom and check if sourceDirectory is

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Hello, you can try to set "MAVEN_BATCH_ECHO=ON" and "MAVEN_SKIP_RC=On" to see the commands the batch are executing and make sure you have no old config laying around. What is your JAVA_HOME actually set to? Does it end in a \? I suspect it is related to the new .mvn\ directory handling. It shou

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
ument > > -splash: > show splash screen with specified image > See > http://www.oracle.com/technetwork/java/javase/documentation/index.html > for m ore details. > > H:\>if ERRORLEVEL 1 goto error > > H:\>set ERROR_CODE=1 > > H:\>

Re: Problem Running Maven

2015-04-17 Thread Bernd Eckenfels
Am Fri, 17 Apr 2015 20:38:03 + schrieb : > But as I stated in my initial post, it does not fail if I run it in > C:\Widows or C:\Windows\System32!!! As I said it works in all directories if they are not the root of a drive. https://issues.apache.org/jira/browse/MNG-5804 Gruss Bernd ---

Re: deployAtEnd really works?

2015-05-13 Thread Bernd Eckenfels
Am Wed, 13 May 2015 22:47:15 -0700 schrieb Dan Tran : > I am using this feature the first time and it does not seem to work > > mvn clean deploy -DdeployAtEnd=true > > Each module displays this string at deploy phase > > [INFO] *--- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ > x

Re: Maven - Using one bundle and its dependencies in another

2015-05-21 Thread Bernd Eckenfels
Hello, (please discuss on the maven user mailinglist) well, if you add your other jar as a dependency and use the maven bundle plugin to generate the imports, you will get one import per other package. This will require your other JAR to be deplyoed as a second bundle. If some automatically detec

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

2015-05-23 Thread Bernd Eckenfels
Am Fri, 22 May 2015 09:28:47 +0200 schrieb Anders Hammar : > The issue I've been strungling with is that I would like to use the > creds of the person performing a Maven release when deploying to the > Maven repo. Not possible right now out-of-the-box, as the server > creds in settings.xml You ca

Re: Update non-unique snapshots from Artifactory to local repository

2015-07-21 Thread Bernd Eckenfels
Hello, not sure if you are asking about the general handling or a specific problem with Artifactory. But with mvn you can use the -U switch to force a snapshot update. Otherwise it will use the updatePolicy from your settings.xml (I think "daily" would be the default for snapshots repo). Gruss B

Re: Update non-unique snapshots from Artifactory to local repository

2015-07-22 Thread Bernd Eckenfels
Am Tue, 21 Jul 2015 23:00:12 +0300 schrieb Alex Ditu : > I am not sure if it > is a specific artifactory issue, I found this: > https://www.jfrog.com/jira/browse/RTFACT-5404 if it helps Yes, if the repo does not provide the timestamps, then the policy wont work. You can purge your snapshots local

Re: Using dependency plugin to build minimal local repository to run unit tests

2015-09-10 Thread Bernd Eckenfels
Just run the Job you want to run with a fresh/empty local repository. > Am 11.09.2015 um 01:16 schrieb Andrew Wang : > > Hi Maven experts, > > I'm trying to get a minimal set of local repository contents to be able to > run unit tests for a project in offline mode. The dependency plugin > docum

Re: maven.config file and variable substitution

2015-09-15 Thread Bernd Eckenfels
Hello, While having the basedir variable in the .config file might be good I think thats a pretty confusing usecase. I wonder if Maven by default should merge in .mvn/settings.xml? (Observing SKIPRC) Gruß Bernd > Am 15.09.2015 um 14:26 schrieb Jason van Zyl : > > There is currently no variabl

Re: Copy-dependencies goal error

2015-10-05 Thread Bernd Eckenfels
Hello, I am saying that copy-dependencies is a often used method to download some or all dependencies of a projects. It depends on a consistent repository and POM model. So it is not "only a copy which does not look at the content" as you started, and therefore the "it is clearly a plugin or mave

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

2015-10-05 Thread Bernd Eckenfels
Unlike with a SVN workspace the release:prepare goal in a Git workspace seems to not error-out when it sees untracked (git status results in ??) files. I have seen this on windows. In some cases it was not mentioning the files at all (they are shown in -X debug output) in other cases it was printi

Re: Copy-dependencies goal error

2015-10-05 Thread Bernd Eckenfels
; Michael Tarullo > Contractor (Engility Corp) > Enterprise Architect > NSRR System Administrator > FAA WJH Technical Center > (609)485-5294 > > -Original Message- > From: Bernd Eckenfels [mailto:e...@zusammenkunft.net] > Sent: Monday, October 05, 2015 4:10 PM

Re: Copy-dependencies goal error

2015-10-05 Thread Bernd Eckenfels
Am Mon, 5 Oct 2015 21:20:20 + schrieb : > Could you explain why I would need to do add exclusions? In order to stop maven from resolving all dependencies transitive until it hits a broken one. Gruss Bernd - To unsubscribe,

Re: Copy-dependencies goal error

2015-10-05 Thread Bernd Eckenfels
Am Mon, 5 Oct 2015 21:08:02 + schrieb : > Answer a simple question for me, are you a Maven contributor? I fixed your stupid pom, so why would you care? Gruss Bernd - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org

Re: Copy-dependencies goal error

2015-10-06 Thread Bernd Eckenfels
Helle karl Heinz - thanks for Not considering the OPs Attitude and Tone towards perfectly Fine answers :-/ Bernd > Am 06.10.2015 um 15:55 schrieb Karl Heinz Marbaise : > > Hi Michael, > > > >> With all due respect I insulted no one. Am I frustrated? Yes, but I did >> not insult anyone. >>

Re: Class size

2015-11-01 Thread Bernd Eckenfels
Am Sun, 1 Nov 2015 16:34:13 -0500 schrieb aalok singhvi : > Hello, > I have a basic question... > > If i compile a simple hello world java program using javac in ant i > get a different size as compared to class compiled with maven plugin. > My java source and target it 1.6. > > What is the reas

Re: SNAPSHOT jar incorrectly downloaded

2015-11-09 Thread Bernd Eckenfels
Hello, check the /opt/jenkins/mvn-settings.xml files, if it specifies anything for the repo or distributions or proxy or similiar. Gruss Bernd Am Mon, 9 Nov 2015 12:07:35 +0100 schrieb m...@mherrn.de: > Hmm, the metadata files seems correct. It references the file with the > timestamp. Also on

Re: How Maven solves the problem of long builds on large projects?

2015-12-21 Thread Bernd Eckenfels
Am Mon, 21 Dec 2015 21:23:56 +0100 schrieb Mirko Friedenhagen : > Hello Sergey, > > you may try to use > https://github.com/timgifford/maven-buildtime-extension to identify > which plugins contribute most to your long build times. I typically enable the timestamps in maven-home/conf/logging/sim

Re: Difficulty pulling artifact out of Central Repo

2016-02-27 Thread Bernd Eckenfels
Hello, well I am not sure what the problem is you are seeing, but I can confirm that I can download the file and the checksum matches on my site. Sometimes some appliance/proxy which thinks it does need to find malware intercepts and corrupts downloads, maybe that is your problem as well? You ca

AW: Find the correct build order of a set of distinct butinterdependent projects

2016-03-15 Thread Bernd Eckenfels
Hello, It might not completely solve your problem (as it does not observe versions) but with Jenkins Maven Jobs it builds dependent jobs automatically. If you follow a release strategy it is however not something you need in practice as you have to step through the dependencies to release them

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

2016-05-17 Thread Bernd Eckenfels
Hello, no, you can configure how often the repo transport of maven should check for updated snapshots in configured repos. (Not all plugins obey that). With -U you force an immediate recheck. updatePolicyString The frequency for downloading updates - can be "always", "daily" (default), "inte

Re: mvn site [ERROR] Unable to determine if resource

2016-05-21 Thread Bernd Eckenfels
Hello, the download URLs must be different if you use a mirror. If nothing changes your settings file is most likely not honored. Try specifying it explicitely with -s option and turn on debug logging, it will print what settings are loaded and in effect. 1492 [DEBUG] Reading global settings fro

Re: Multiproject build that needs to build one project only if on a particular os?

2016-08-16 Thread Bernd Eckenfels
This describes how to control modules with profiles and how to activate profiles based on os family: http://books.sonatype.com/mvnref-book/reference/profiles-sect-activation.html Gruss Bernd Am Tue, 16 Aug 2016 19:47:38 + schrieb "KARR, DAVID" : > I have a multiproject build with three mo

Re: mvn errors

2016-11-02 Thread Bernd Eckenfels
Hello, It looks like your built machine has no access to maven central (or the internet). You need to allow this access or set up a repository server or configure a http proxy.  > Could not transfer artifact org.apache.felix:maven-bundle-plugin:pom:2.3.4 > from/to central (http://repo1.maven.org

Re: Strategies for augmenting jar manifest with source provenance info?

2016-11-11 Thread Bernd Eckenfels
We are setting the manifest entries of the archiver to the project properties and the OSGi header. https://maven.apache.org/shared/maven-archiver/examples/manifest.html Gruss Bernd -- http://bernd.eckenfels.net On Fri, Nov 11, 2016 at 10:35 PM +0100, "KARR, DAVID" wrote: > -Or

Re: Don't overwrite existing artifact - how?

2016-11-28 Thread Bernd Eckenfels
Hello, I understand that this is not what you are asking for, but normally you would not allow to overwrite artifacts in the release repository. This way it cannot happen that a forgotten version Update overwrites released artifacts. For snapshot artifacts on the other side you get a new timestam

Re: Source build of CloudStack versions 4.8.11 and 4.9.0.1 fails

2016-12-02 Thread Bernd Eckenfels
Hello, Do you mean Apache CloudStack? Why don't you ask there:  It seems to me that the POM contains artifacts not yet on central (or in another repo) or you need to install the checkstyle artifact before you can use it. Maybe it would help to skip the checkstyle run. But I would expect the cloud

Re: Is there a way to make mvn default to Java 8?

2017-01-13 Thread Bernd Eckenfels
Sorry when this answer is an over-simplification, but you can just configure it in a common parent. This is a quite typical case why you want shared company/team/product/buildenv parents. Gruss Bernd -- http://bernd.eckenfels.net On Fri, Jan 13, 2017 at 5:51 PM +0100, "Dean Schulze" wrote

Re: Is there a way to make mvn default to Java 8?

2017-01-13 Thread Bernd Eckenfels
n Fri, Jan 13, 2017 at 9:54 AM, Bernd Eckenfels wrote: > Sorry when this answer is an over-simplification, but you can just > configure it in a common parent. This is a quite typical case why you want > shared company/team/product/buildenv parents. > > Gruss > Bernd >

Re: Is there a way to make mvn default to Java 8?

2017-01-13 Thread Bernd Eckenfels
It is no problem if you have installed multiple JVMs, maven only knows about the current java version used to start it or if you explicitly specify executables or toolchains. (Some POMs like Apache Commons defines profiles using environment variables like JAVA_1_8_HOME) Anyway, on your system yo

Re: maven-dependency-plugin skips unpack goal

2017-01-20 Thread Bernd Eckenfels
Any logs (on debug level)? Am Fri, 20 Jan 2017 08:55:44 -0700 schrieb David Hoffer : > We have a large multi-module build where occasionally (often) the > maven-dependency-plugin's unpack and unpack-dependencies goal will > skip their work. E.g. The specified artifact is not unzipped. -

Re: vcmcvsssh.jar

2017-03-05 Thread Bernd Eckenfels
Hello, I guess you better ask the Eclipse Team project. I would suspect you find the libraries only in the historic Eclipse 2.0 archives. Gruss Bernd -- http://bernd.eckenfels.net On Sun, Mar 5, 2017 at 7:45 PM +0100, "Martin Gainty" wrote: anyone know where i can acquire org.ecl

Re: Maven central and indexing

2017-03-10 Thread Bernd Eckenfels
Hello, Related:  http://blog.sonatype.com/2008/12/central-repository-downloading-the-nexus-index/ And especially the news of a public available dataset (by Google):http://takari.io/2015/10/28/google-maven-central.html Gruss Bernd -- http://bernd.eckenfels.net On Fri, Mar 10, 2017 at 8:14 PM

Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?

2017-05-07 Thread Bernd Eckenfels
Hello, Only those specific properties are allowed. If I remember correctly the reason for it is a mixture between it is not possible to support full property resolving in this stage of the model builder and the intention to harmonize/restrict to familiarly named usecases. https://git-wip-us.ap

Re: [EXTERNAL] RE: Continuous Delivery with Maven now possible?

2017-05-09 Thread Bernd Eckenfels
> > > > > > On 08/05/17 14:29, Stephen Connolly wrote: > >> On Mon 8 May 2017 at 03:58, Eric Benzacar wrote: >> >> Hi, >>> >>> Interesting. Would something like this be functional then? It seems to >>> work, but I don't know

Re: Running integration tests against a signed jar

2017-05-30 Thread Bernd Eckenfels
I think the maven way is not much concerned with package structure, however why not have a IT package? Do you have much need for package access in your ITs? For Unit tests sharing the packages can be helpful, but for IT I would expect it does not only need to be collocated, but it actually is be

Re: MD5 and SHA1 incorrect for xstream-1.4.4.jar on repo1.maven.org

2017-06-22 Thread Bernd Eckenfels
If nobody else can comment/fix this I will forward it to central admins/sonatype (after validating it) Gruss Bernd -- http://bernd.eckenfels.net From: Junqiang Zhang Sent: Thursday, June 22, 2017 5:33:27 AM To: users@maven.apache.org Subject: MD5 and SHA1 incorre

Re: apache-maven-3.3.9 silently doesn't compile with jdk7 (it does with jdk8)

2017-08-09 Thread Bernd Eckenfels
Hello, >> [INFO] Changes detected - recompiling the module! >> [INFO] Compiling 37 source files to >> C:\Project\wss\maven\Sysper2\Reporting_maven\target\classes >> >> (but the target/classes/ folder is just empty) > > I t looks weird, but intuition tells me it is not maven problem but config > i

Re: What kind of dependency will package to a jar file by means of maven ?

2017-08-30 Thread Bernd Eckenfels
Correct, only protobuf which is scope compile will get packaged. Scope provided and scope test are normally excluded scopes. However, it depends on your build plugins and how they are configured. The normal maven-jar-plugin will only include resources, dependencies can be included with shade, b

Re: Special parameters - sha1

2017-11-13 Thread Bernd Eckenfels
You can use the 3 Properties in any way you want it, their name suggest a certain content, and it was deemed necessary to restrict the expansion to a fixed set. so the 3 have been picked to give some guidance on what are sane modifiers. You will most likely use revision for the Version and chan

Re: Special parameters - sha1

2017-11-13 Thread Bernd Eckenfels
tain any property values? They can only contain constants? Can they contain other command line values, or not even? Can you elaborate why it was deemed necessary to restrict the expansion to a fixed set? What was the reasoning behind that? Thanks, Eric On Mon, Nov 13, 2017 at 9:21 PM, Bernd E

Re: Special parameters - sha1

2017-11-14 Thread Bernd Eckenfels
You have to remember that POMs are also the model to describe artifacts, that why you should stay clear of profiles (especially if the influence artifact coordinates). Personally I have good experience with actually releasing things, but if you want to keep the build identifier, then I would ag

Re: Special parameters - sha1

2017-11-15 Thread Bernd Eckenfels
h stage are you referring to? Which dependencies with changed version numbers? Thanks, Eric On Wed, Nov 15, 2017 at 1:11 AM, Bernd Eckenfels wrote: > You have to remember that POMs are also the model to describe artifacts, > that why you should stay clear of profiles (especially if the

Releasing clean "company" parent Poms

2014-02-28 Thread Bernd Eckenfels
Hello, I am currently wondering what the best way would be to deploy a "company wide" parent POM (with maven release plugin) but have only the information in the parent POM which is actually about the object model of the clients (and not the definitions for deploying and testing the parent). I ha

Re: [ANN] Apache Maven Release 2.5 Released

2014-03-05 Thread Bernd Eckenfels
Am Thu, 06 Mar 2014 10:02:07 +1300 schrieb "Mark Derricutt" : > On 6 Mar 2014, at 0:44, Benson Margulies wrote: > > http://maven.apache.org/maven-release/maven-release-manager/ > > I don't think I've ever actually come across the > maven-release-manager before - is there any information about > ho

Fail assembly plugin if symbols are unknown

2014-03-07 Thread Bernd Eckenfels
Hello, we use in a lot of projects special assembly descriptors, which typically use the following pattern: distribution ${dist.x}/${dist.base.software.lib} ${project.build.directory}/x.jar We are currently cleaning up some POMs and ther

Re: Maven 3.1.1 dependency downloading issues

2014-03-11 Thread Bernd Eckenfels
Hello, Am Tue, 11 Mar 2014 09:20:57 + schrieb "Mao, James(Maode)" : > Hi, > > I found that Maven 3.1.1 will try downloading the artifacts in > parallel. > This cause the issue, actually the first try already downloaded the > pom, but Maven still trying other repository in paralle. Not sure

Re: Netbeans 7.4 maven POM for com.oracle:ojdbc6:jar:11.2.0.1 is invalid

2014-03-11 Thread Bernd Eckenfels
Hallo Dave, I am not really understand your problem as your report touch multiple points, so let me do this systematically. Appologies if I state something obvious: a) there is no ojdbc driver in the public maven repositories. The JDBC driver from oracle is propeitary. So I am not sure where you

Re: Maven 3.1.1 dependency downloading issues

2014-03-13 Thread Bernd Eckenfels
Hello, you can also use !myrepo,!plugin,* But generally it is sooner or later a good idea to have a repository manager like nexus or archiva which has a special proxy support and allows to define virtual repositories (consiting of repository groupsand proxied repositories) Greetings Bernd Am

Re: Maven Download and Regular Expression

2014-04-08 Thread Bernd Eckenfels
Hello, maybe this sample code helps you how you could use Aether to inspect repository index: http://git.eclipse.org/c/aether/aether-demo.git/tree/aether-demo-snippets/src/main/java/org/eclipse/aether/examples/FindAvailableVersions.java check out http://eclipse.org/aether for details. Gruss Ber

Re: Better way to capture output from a Maven job

2014-04-11 Thread Bernd Eckenfels
Am Fri, 11 Apr 2014 13:32:42 -0700 (PDT) schrieb stug23 : > While this works okay, I would have hoped for a better way to return > a value from Maven. Is there a return/result parameter of some sort > such that I don't have to pick the result out of the entire text > output of the Maven job execut

Re: .m2 folder creation

2014-04-21 Thread Bernd Eckenfels
Am Mon, 21 Apr 2014 18:52:44 -0700 (PDT) schrieb Mayank : > I have started using by unzipping its binary.zip and setting the > environment variables and got the mvn -version executed successfully > but after that none of the command worked, probably because of > setting.xml (not sure, please clari

How is version:display-plugin-updates determine the super-pom version (wrongly?)

2014-05-03 Thread Bernd Eckenfels
Hello, when I create a minimal POM* and expand it with maven 3.2.1 then I see an entry in the resulting effective pom: maven-surefire-plugin 2.12.4 default-test test test

Re: use separate mirrors for project dendencies and plugin dependencies ??

2014-05-06 Thread Bernd Eckenfels
Hello, It would be good if Proxy requests would actually carry the repository URLs or names the request is actually proxied for. I havent seen a proxy which allows configuration in this regard (and therefore I think the protocol does not provide this extra information) Bernd > Am 06.05.2014 u

Re: Version in Mojo

2014-05-16 Thread Bernd Eckenfels
Hello, this is not really Mojo specific. If you build a JAR with maven you can include the build number or version with filtered resources, filtering the source code, as a expanded Variable in the Manifest header or by copy of META-INF/maven/pom.properties. To any of those information you can the

Re: Sharing of values across dependant projects?

2014-05-16 Thread Bernd Eckenfels
Is A released after each built-number change or is it a snapshot? In the snapshot case you can add a snapshot dependency and then see the number in the classpath. Maven will find the latest updates. If you make a release I guess it is easier to use a built parameter passed by Jenkins to both pro

AW: Conditionally executing a script in profile

2014-07-24 Thread Bernd Eckenfels
There are two typical things done - you either use two profiles or you use a plugin which supports a skip property. other ways are hard to understand (like adding a property to the include pattern to make it not find the resource) and should be avoided. i dont know if your particular mentioned

Repository Index Query tool and cli

2014-09-17 Thread Bernd Eckenfels
Hello, is there a query tool which can be used to search some (boolean) expressions in an existing (local) repository index? M2E in Eclipse has a few search dialogs which use the index, for example the archetype selection, but I would be able to dig a bit deeper into a full index (OSGi metadata fo

Re: WAR contains SNAPSHOT JARs with timestamps

2014-10-04 Thread Bernd Eckenfels
Hello, I would argue this is a feature not a bug. (And this is also the version name which IS stored in the repo). Anyway, the WAR plugin uses the archiver shared component and that allows to specify a custom classpath pattern, which should work to remove the version component: http://maven.apa

Re: How do I test client and server since they form circular dependencies?

2014-10-08 Thread Bernd Eckenfels
Am Wed, 8 Oct 2014 19:53:20 -0700 schrieb Kevin Burton : > maybe one idea is to build a meta-module like foo-client-server-test > which as a dependency on foo-client and foo-server. then they could > each test each other? Seems a bit of a hack but it should work .. Yes, have an integration test

Re: computing rank on the top maven modules by using the pom.xml files in maven central?

2014-10-18 Thread Bernd Eckenfels
Hello, some of the Maven search engines like mvnrepository.com do that. However the metrics are a bit of a problem, as a lot of those are "forced" into the dependency tree and others might be very popular in a small field (science) but never be able to dominate the general purpose ones. http://mv

Re: generate maven dependency difference between two Jenkins builds

2014-10-19 Thread Bernd Eckenfels
Hello, I dont have a good method for that (especially not if all dependencies arent fully version-specified. You can use and add dependencies:list as a target to the maven build, then the resolved list will be printed in the build log. This list can change depending on what is available at build t

Re: generate maven dependency difference between two Jenkins builds

2014-10-19 Thread Bernd Eckenfels
, you can create and archive it, then you have at least all expressions and profiles locked down. Gruss Bernd Am Sun, 19 Oct 2014 22:17:45 +0530 schrieb Irfan Sayed : > thanks bernd. > anyone has any other suggestions please? > > regards > > > On Sun, Oct 19, 2014 at 9:4

Re: generate maven dependency difference between two Jenkins builds

2014-10-19 Thread Bernd Eckenfels
? I tried getDownloadURL(), but it is null for the Artifacts which are present in the list of org.apache.maven.plugin.dependency.utils.DependencyStatusSets.buildArtifactListOutput(Set, boolean, boolean, boolean) Gruss Bernd Am Sun, 19 Oct 2014 19:11:50 +0200 schrieb Bernd Eckenfels : >

Re: How to create ISO image that supports long file names?

2014-10-20 Thread Bernd Eckenfels
Hello David, we are using an external executable to do this. It is genisoimage from crdkit.org (debian fork of cdrtools). It can produce for example Joilet extensions (which are used for long filenames AFAIK). There are still filename limitations for ISO names (but the joilet names seen on linux/

Re: Company-wide checkstyle.xml ?

2014-10-20 Thread Bernd Eckenfels
Am Mon, 20 Oct 2014 11:47:05 -0400 schrieb Jason van Zyl : > The best mechanism I have seen to date for sharing configuration > amongst many projects is the Airbase POM in the Airlift project that > was developed by Henning (I've cc'd him). It seems that the project is well documented in the read

Re: How to create ISO image that supports long file names?

2014-10-20 Thread Bernd Eckenfels
ch. However I > suspect that's Linux only and that might be deal breaker. We have > some CI build agents that are Linux but most developers use Windows > and I suspect they will want to run this too. > > Thanks, > -Dave > > On Mon, Oct 20, 2014 at 6:03 PM, B

Re: How to create ISO image that supports long file names?

2014-10-20 Thread Bernd Eckenfels
sing but not certain of that. > > I don't know that much about iso format and all the extensions. I'd > like to know if someone thinks it's feasible to update Stephen's > plugin...as that makes the build much simpler and I don't have to > worry about platfo

maven-release got stuck when tag exists with released version in pom

2014-10-31 Thread Bernd Eckenfels
Hello, one thing which bites me quite regularly with the maven release plugin is the fact, that it will update the POMs to the release version then commit them and then tag them. If the tagging fails (especially because the tag existed already) then it will leave the head on a released version num

Best way to blacklist repository (maven.glassfish.org in site build)

2014-11-02 Thread Bernd Eckenfels
Hello, I have more and more projects (OSS and prop) where a lot of time is wasted (especially in site builds) and also the number of error messages or warnings to review increase with the vanished glassfish repository. The fact this happens is a major annoyance, but I do more wonder on how to cop

Re: Sorting javadoc output by importance of documentation and length of docs?

2014-11-16 Thread Bernd Eckenfels
Hello, just another viewpoint: put your overview documents with a large number of @links into the package description. This is the best you can do with Javadoc. It is not rerally a good replacement for colaterals like Tutorials or Walk-Throughs (and sample code). Gruss Bernd Am Sun, 16 Nov 2014

Re: What dos it mean: [WARNING ] Skipping because it does not denote a directory

2014-11-26 Thread Bernd Eckenfels
Am Wed, 26 Nov 2014 18:55:54 -0200 schrieb Deme Carv : > My application is working perfectly but I have been facing a lot of > Warning in Spring Tool Suite like: > > [WARNING ] Skipping > [C:\Users\e049447\.m2\repository\org\apache\httpcomponents\httpcore\4.1\httpcore-4.1.jar] > because it does n

Re: Maven 3.2.3 upgrade

2014-12-09 Thread Bernd Eckenfels
Am Tue, 09 Dec 2014 09:27:29 +0100 schrieb Jörg Schaible : > > 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 pic

Re: Looking for recommendations how to best use Maven in a muti-stagePipeline build to only deploy at the end

2018-02-14 Thread Bernd Eckenfels
I am not sure why Nexus does not Support staging repos, I thought this is one of its defining Features? Certainly the ASF is using Nexus this way. Anyway, another solution is to use a Feature of the CI to run a whole Pipeline on a single executor and have this executor have a local maven repo in

Re: Why I can run plugin:goal in command line even though plugin was only defined under pluginManagement?

2018-02-24 Thread Bernd Eckenfels
Hello, You can always run goals on the command line, even if they are not defined in the POM at all. If maven finds the plugin in the POM it knows what version to use and it allows to specify a Prefix instead of group:artifact[:version]:goal. Gruss Bernd Gruss Bernd -- http://bernd.eckenfels.ne

Re: Why I can run plugin:goal in command line even though plugin wasonly defined under pluginManagement?

2018-02-24 Thread Bernd Eckenfels
mmand line: No plugin found for prefix 'tomcat7' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] > > Best regards. On Sat, Feb 24, 2018 at 4:39 PM, Bernd Eckenfels wrote: > Hello, > > You can always run goals on the command line

Re: Why I can run plugin:goal in command line even though plugin wasonly defined under pluginManagement?

2018-02-26 Thread Bernd Eckenfels
.tomcat.maven is not included. Why I can using tomcat7 as prefix for tomcat7-maven-plugin after I add it in of my pom.xml... On Sun, Feb 25, 2018 at 12:36 AM, Bernd Eckenfels wrote: > It is true: for plugins where the prefix is not found by Default, you can > still start

Re: Error

2018-03-05 Thread Bernd Eckenfels
Hello, # org.codehaus.mojo:exec-maven-plugin:@maven-exec-plugin.version@ It looks like the plugin definition in the POM contains not a valid version number but a placeholder. Not sure if you are supposed to replace it manually with a version number or if the POM you are using is not to be used

[m-jlink-p] missing --launcher and other CLI options in alpha1

2018-03-08 Thread Bernd Eckenfels
Hello, I noticed the m-jlink-p (3.0.0-alpha1) misses e.g. --launcher Option (and some more). I wonder is it planned to add a option. Or did I miss a method to specify CLI Options which should be passed to jlink.exe transparently? I guess that would be good especially for those Options which ar

Re: [m-jlink-p] missing --launcher and other CLI options in alpha1

2018-03-09 Thread Bernd Eckenfels
See `jlink --list-plugins` for the additional options. Gruss Bernd -- http://bernd.eckenfels.net From: Karl Heinz Marbaise Sent: Friday, March 9, 2018 7:20:42 AM To: Maven Users List; Bernd Eckenfels Subject: Re: [m-jlink-p] missing --launcher and other CLI

AW: maven-install-plugin: Why it does not install the artifacts

2018-03-12 Thread Bernd Eckenfels
Hello, if you start with a empty POM of type JAR the Default LifeCycle bindings (which include intall plugin) apply. See here: http://maven.apache.org/ref/3.2.2/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -- http://bernd.eckenfels.net Von: Zos Rothko Gesendet: Dienstag

Re: Maven build failure - first install

2018-03-14 Thread Bernd Eckenfels
Hello, Looks like the tutorial is wrong, I only see a 1.1 version of that archetype. Since you normally cannot remove artifacts from Maven Central it looks like this never worked. You can see the content here: https://repo.maven.apache.org/maven2/org/apache/maven/archetypes/maven-archetype-quic

  1   2   >