Re: Bndlib bug?

2012-09-21 Thread Stuart McCulloch
Bugs can be reported on the github site: https://github.com/bndtools/bnd or via the Apache Felix project. You should also try the latest 2.4.0-SNAPSHOT of the bundleplugin, as this uses the latest bndlib code which is expected to be released soon. -- Cheers, Stuart On 21 Sep 2012, at 01:04,

Re: Getting profile settings values in a Java class

2012-09-21 Thread Javix
Thanks a lot for your reply. I tried to use your way, but: 1. I already have a test folder under 'src' (scr/main and src/test which is a standard Maven project structure). 2. I didn't really understand (sorry for that, - I'm not a Maven Guru :( ) the syntax to use in case of test prefix. I'd like

How to make release:prepare ask for password?

2012-09-21 Thread Magne Nordtveit
How can I make the release-plugin ask for a password when it needs it, rather than having to either a) provide it as a property when building, or b) putting it in a settings.xml file or equivalent. I don't like the fact that I have to have the password stored in a batch history file somewhere,

Re: Getting profile settings values in a Java class

2012-09-21 Thread Javix
Finally, I achived (I hope so, tell me if I'm wrong by pointing at some pitfalls). Here is the updated version of the POM file: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0

Re: How to make release:prepare ask for password?

2012-09-21 Thread Aliaksei Lahachou
Hi, you can encrypt passwords in settings.xml: http://maven.apache.org/guides/mini/guide-encryption.html. Regards, htfv (Aliaksei Lahachou) On Fri, Sep 21, 2012 at 11:52 AM, Magne Nordtveit m...@offsim.no wrote: How can I make the release-plugin ask for a password when it needs it, rather

Re: Getting profile settings values in a Java class

2012-09-21 Thread Zak Mc Kracken
Hi Roy, that's a useful addition. Indeed I do something similar with with some command-line tools. I ship them as a zip which contains: a .jar a .sh/.bat invoking commands and a default .properties file. For the latter, I want different defaults depending on the environment where I deploy

Re: Getting profile settings values in a Java class

2012-09-21 Thread Zak Mc Kracken
Hi Javix, yes, this is what I mean. You may want to consider what emerged in this thread about the goodness of this practice. Cheers, M. On 21/09/2012 10:55, Javix wrote: Finally, I achived (I hope so, tell me if I'm wrong by pointing at some pitfalls). Here is the updated version of the

RE: How to make release:prepare ask for password?

2012-09-21 Thread Magne Nordtveit
That doesn't really answer my question though - that's just a replacement of a plain text password by an encrypted one. The value of that isn't really high when it requires the master password to be stored in a different file IMHO, but that's a different discussion all together. I want to be

Re: How to make release:prepare ask for password?

2012-09-21 Thread Anders Hammar
Don't think you can have it ask for the password, but you can provide it as a Java (system) property on command-line. mvn release:prepare -Dpassword=blabla /Anders On Fri, Sep 21, 2012 at 11:52 AM, Magne Nordtveit m...@offsim.no wrote: How can I make the release-plugin ask for a password when

RE: How to make release:prepare ask for password?

2012-09-21 Thread Magne Nordtveit
That puts us back to having the password stored in some bash history file, in plain text... Looks like I might have to put in for a feature request. Just have to figure out where to put it :-P Magne -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com]

Re: How to make release:prepare ask for password?

2012-09-21 Thread Anders Hammar
Feature requests are good. Patches are even better. :-) /Anders On Fri, Sep 21, 2012 at 1:29 PM, Magne Nordtveit m...@offsim.no wrote: That puts us back to having the password stored in some bash history file, in plain text... Looks like I might have to put in for a feature request. Just

How to build war with dependencies in a different location

2012-09-21 Thread Bruce Albrecht
I have an application with OSGI bundles, and the Felix loader is looking for the jars to be in WEB-INF/bundles/3 instead of the usual WEB-INF/lib. Is there a configuration for the war plugin, or a different plugin I can use to place these dependencies in a different location? Thanks.

Re: How to build war with dependencies in a different location

2012-09-21 Thread Wayne Fay
I have an application with OSGI bundles, and the Felix loader is looking for the jars to be in WEB-INF/bundles/3 instead of the usual WEB-INF/lib. Is there a configuration for the war plugin, or a different plugin I can use to place these dependencies in a different location? Assembly plugin

Invoking Maven goals outside a project directory structure

2012-09-21 Thread Curtis Rueden
Hi everyone, I was wondering whether there is a way to utilize certain useful Maven goals when outside of a particular Maven project's actual source directory structure. For example, I would like to ask Maven for the effective POM of an installed artifact. Why? Because I want to know the

Re: How to make release:prepare ask for password?

2012-09-21 Thread Lyons, Roy
If this is related to your Nexus authentication, 2.1 is an awesome release with regards to this. They introduced an API token authentication approach, so that you won't be handing over the keys to the castle if someone compromises your API token password. We are using it with encryption as well,

Re: Invoking Maven goals outside a project directory structure

2012-09-21 Thread Lyons, Roy
I have a possible interesting suggestion for you. Scm plugin bootstrapping. http://maven.apache.org/scm/maven-scm-plugin/bootstrap-mojo.html Given a pom with an scm section defined, you could bootstrap its entire repo down and the perform the tasks you are trying to accomplish.

Re: Invoking Maven goals outside a project directory structure

2012-09-21 Thread Curtis Rueden
Hi all, Thanks Roy for the suggestion of SCM bootstrapping. That is definitely a big hammer solution that would allow execution of any goal. However, I found a workaround for the specific case of help:effective-pom. If you want the effective POM for project foo:bar:1.0.0, you can run: mvn -f

RE: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-21 Thread Markus KARG
Thank you for pointing me to this excellent blog entry, but in fact I wonder why such a great tool like Maven doesn't have built-in support for endorsed dependencies? I mean, in the end a different compiler might break the solution, so it would be a good idea if a dependency could simply marked as

Transitive Dep warning on root pom change

2012-09-21 Thread Peter Kahn
Hi all, What's the maven way to allow to build individual modules and ensure that changes to parent pom are uploaded into the local repository Let's say I have three modules: one parent, two children (dbmod, appmod) parent:dependencyManagement defines jdbc-foo 1.5 dbmod: dependencies

Re: Invoking Maven goals outside a project directory structure

2012-09-21 Thread Anders Hammar
Possibly you could have a look at if your repo manager could help you with this. I know that Nexus has this feature [1]; possibly other repo managers do as well. /Anders [1] http://www.sonatype.com/books/nexus-book/reference/using-sect-browsing.html#fig-using-dependencies On Fri, Sep 21, 2012

Re: How to put a dependency in the classpath BEFORE jre.jar?

2012-09-21 Thread Stephen Connolly
1. Maven is not just about java (though very java focused I admit) endorsed does not make sense outside of java 2. Whether a dependency needs to be endorsed or not depends on the jvm version it targets... A dep can be fine until it gets added to the jvm spec. 3. It should probably more correctly