Re: Reasonable use of profiles?

2010-12-10 Thread Peter Schuller
> I very much second Kalle here.
> Stay away from profiles as much as possible - most often they are used in
> the wrong way. Also, if you're migrating a large system I would very much
> recommend that you get someone with good Maven knowledge to help you get
> things right. I very often come to projects where some senior developer has
> created a Maven build setup which is just completely wrong. Having to
> refactor that costs possibly two-three times more than doing it right from
> the beginning. It often also upsets the developers as they often have to
> change the way they work.

So on that topic, is there good material that covers doing it right?
I've read the sonatype maven book and while it's good as far as it
goes, it doesn't really cover the intended workflows in various
situations and the intent of various abstractions. Googling is kind of
problematic because there is a lot of cargo cult information floating
around.

Is there a book of other material that truly goes through the intended
way to deploy Maven in an organization,  including not just stuff like
"here's how you install nexus", but things like release management,
the relationship between maven release management and VCS tagging,
what to do about multiple branches of development, etc, etc.

Suppose you want to build an eco-system of tens or hundreds of
projects in an organization and deploy/build them scalably (in terms
of administration/build costs) using maven in a clean and maintainable
fashion without hacks or non-idiomatic mistakes. What material does
one preferably read?

-- 
/ Peter Schuller

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven configuration and Intellij.

2010-07-02 Thread Peter Schuller
> hi everyone. i'm begginer for maven. i don't now how to configure maven for
> intellij. what jar files download. generally how to begin maven. sorry my
> english skill. i hope reply

As far as I know, simply opening a project by selecting the pom.xml
file should work, assuming a recent IntelliJ. No plugin should be
required; it's built-in (in 9.x, I'm not sure about earlier - probably
since a long time).

-- 
/ Peter Schuller

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven-nar-plugin library loading - how to make use of native libraries opaque

2010-06-30 Thread Peter Schuller
Hello,

I'm not sure I understand the intended usage of maven-nar-plugin, and
after diving around in the source I'm not very much wiser. Given:

* project C (junixsocket in this case) using maven-nar-plugin to build
and deploy jar and nar artifacts
* project B, depending on C
* project A, depending on B

I now want to simply declare that project A depends on B, and not have
to worry about anything else. For example, I still want to be able to
"java -jar XXX.jar" on an uber-jar produced by the maven-shade-plugin
(or assembly, onejar, etc).

I am aware that there are difficulties resulting from the fact that
loadLibrary() cannot load an arbitrary library from a .jar file, and
I'm aware that e.g. jna-posix solves this by unpacking to a temporary
directory and loading the library by absolute path.

With nar-plugin, once problem was that I never was able to make
project A actually depend on the artifact (with the appropriate
platform classifier) other than specifically configuring such a
runtime dependency myself in the pom file. The second problem is that
just making it depend on it won't solve the problem since somewhere,
some code has to exist which jumps through hoops to enable the loading
of the native library during runtime since putting the .nar file on
the CLASSPATH won't make loadLibrary() be able to load the library. I
was unable to find any code that seemed to do this in the nar-plugin,
but perhaps I am missing it.

Based on browsing the source, my current belief is that
maven-nar-plugin is not really intended to address this use-case. Is
that understanding correct, or am I just using it incorrectly?

If nar-plugin is not suitable, does anyone have a suggestion as to a
pre-existing plugin or other solution that is idiomatic/recommended
within the Maven community?

Additionally, if my understanding is correct, I do wonder what people
normally do - i.e., what is the expected usage of nar-plugin in terms
of running a built application (as opposed to developing a project
with maven)?

Thanks!

-- 
/ Peter Schuller

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org