Re: Avoiding code duplication

2015-10-13 Thread Adrien Rivard
Hi,

A combination of parents pom and BOM is generally enough :

Have a look at :
https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html




On Mon, Oct 12, 2015 at 10:48 PM, Jagat Singh  wrote:

> Hi,
>
> What are the options then ?
>
>
> On Tue, Oct 13, 2015 at 3:46 AM, Glenn Brown 
> wrote:
>
> > The jcabi parent appears to be a sample maven parent pom with jcabi
> > dependencies included
> >
> > On Mon, Oct 12, 2015, 12:47 AM Jagat Singh  wrote:
> >
> > > Hi,
> > >
> > > We have set of projects which have few common dependencies and
> > > configurations.
> > >
> > > How to best avoid code duplications , I have seen maven parent and
> maven
> > > jcabi parent.
> > >
> > > Are there other useful plugins to handle this.
> > >
> > > Thanks
> > >
> >
>



-- 
Adrien Rivard


Re: not reading settings.xml

2015-10-13 Thread Brice Vandeputte
Hi KRR
 maybe profile is not activated by default, did you try to activate the
profile?
 https://maven.apache.org/settings.html#Profiles
regards

2015-10-13 6:15 GMT+02:00 KRR001 :

> I trying to read port from settings.xml file and I get [echo] Port: ${
> ftp-port }   and not port number.
>
> http://maven.apache.org/SETTINGS/1.0.0; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance;  xsi:schemaLocation="
> http://maven.apache.org/SETTINGS/1.0.0
> http://maven.apache.org/xsd/settings-1.0.0.xsd;>
> 
> 
> 
> < ftp-port >${user.home}22
> 
> 
> 
> 
>
>
> 
> Port: ${ftp-port}
>
> What am I missing?
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


[ANN] Apache Maven Plugins (parent POM) version 28 Released

2015-10-13 Thread Benson Margulies
The Apache Maven team is pleased to announce the release of the Apache
Maven Plugins parent POM, version 28.

This POM is the common parent of all of the plugins maintained by the
Apache Maven PMC, and, as such, is of limited use to developers
outside of the Maven project. See the svn history of
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-plugins/pom.xml
for information on the content of this release.

The primary change here is to move to version 27 of the overall Maven
parent POM.\

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



Re: not reading settings.xml

2015-10-13 Thread K R
I am trying to do this:
Properties

Maven properties are value placeholder, like properties in Ant. Their
values are accessible anywhere within a POM by using the notation ${X},
where X is the property. They come in five different styles, all accessible
from the settings.xml file:

   1. env.X: Prefixing a variable with “env.” will return the shell’s
   environment variable. For example, ${env.PATH} contains the \$path
   environment variable (%PATH% in Windows).
   2. project.x: A dot (.) notated path in the POM will contain the
   corresponding element’s value. For example:
   1.0 is accessible via
   ${project.version}.
   3. settings.x: A dot (.) notated path in the settings.xml will contain
   the corresponding element’s value. For example:
   false is accessible via
   ${settings.offline}.
   4. Java System Properties: All properties accessible via
   java.lang.System.getProperties() are available as POM properties, such
   as ${java.home}.
   5. x: Set within a  element or an external files, the
   value may be used as ${someVar}.


   1. http://maven.apache.org/SETTINGS/1.0.0;
   2.   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
   3.   xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
   4.   http://maven.apache.org/xsd/settings-1.0.0.xsd;>
   5.   ...
   6.   
   7. 
   8.   ...
   9.   
   10. ${user.home}/our-project
   11.   
   12.   ...
   13. 
   14.   
   15.   ...
   16. 

The property ${user.install} is accessible from a POM if this profile is
active



On Tue, Oct 13, 2015 at 2:30 AM, Brice Vandeputte  wrote:

> Hi KRR
>  maybe profile is not activated by default, did you try to activate the
> profile?
>  https://maven.apache.org/settings.html#Profiles
> regards
>
> 2015-10-13 6:15 GMT+02:00 KRR001 :
>
> > I trying to read port from settings.xml file and I get [echo] Port: ${
> > ftp-port }   and not port number.
> >
> > http://maven.apache.org/SETTINGS/1.0.0; xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance;  xsi:schemaLocation="
> > http://maven.apache.org/SETTINGS/1.0.0
> > http://maven.apache.org/xsd/settings-1.0.0.xsd;>
> > 
> > 
> > 
> > < ftp-port >${user.home}22
> > 
> > 
> > 
> > 
> >
> >
> > 
> > Port: ${ftp-port}
> >
> > What am I missing?
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> >
> >
>


Maven site plugin, turn off copyright notice

2015-10-13 Thread Alex O'Ree
Is there a way to turn off the copyright notice on the bottom of
generated maven sites?

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



Re: Maven site plugin, turn off copyright notice

2015-10-13 Thread Karl Heinz Marbaise

Hi,

On 10/13/15 9:45 PM, Alex O'Ree wrote:

Is there a way to turn off the copyright notice on the bottom of
generated maven sites?


Which of them do you mean exactly ? Can you show an example and mark 
which you mean? Which skin do you use?



Kind regards
Karl Heinz Marbaise

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



Re: Maven site plugin, turn off copyright notice

2015-10-13 Thread Alex O'Ree
Maybe, it wasn't obvious to me that "Copyright  " was actually the
default "footer". Although it seem obvious now. Maybe an example of
what the default footer is? It may help lazy people like me when using
Ctrl-F "copyright" ;)

On Tue, Oct 13, 2015 at 4:06 PM, Karl Heinz Marbaise  wrote:
> Hi,
>
> On 10/13/15 9:57 PM, Alex O'Ree wrote:
>>
>> I think I figured it out. It was being injected into the footer.
>> Overriding the footer in the site descriptor appears to have
>> suppressed it. Took me a few minutes to find the solution in the
>> source, but did see it referenced anywhere on the maven site plugin's
>> website
>
> Hm...
>
> http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html#Custom_footer
>
> might need an improvement? ...
>
>
> Kind regards
> Karl Heinz Marbaise
>
>
>
>>
>> On Tue, Oct 13, 2015 at 3:55 PM, Karl Heinz Marbaise 
>> wrote:
>>>
>>> Hi,
>>>
>>> On 10/13/15 9:45 PM, Alex O'Ree wrote:


 Is there a way to turn off the copyright notice on the bottom of
 generated maven sites?
>>>
>>>
>>>
>>> Which of them do you mean exactly ? Can you show an example and mark
>>> which
>>> you mean? Which skin do you use?
>>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

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



Re: Maven site plugin, turn off copyright notice

2015-10-13 Thread Alex O'Ree
I think I figured it out. It was being injected into the footer.
Overriding the footer in the site descriptor appears to have
suppressed it. Took me a few minutes to find the solution in the
source, but did see it referenced anywhere on the maven site plugin's
website

On Tue, Oct 13, 2015 at 3:55 PM, Karl Heinz Marbaise  wrote:
> Hi,
>
> On 10/13/15 9:45 PM, Alex O'Ree wrote:
>>
>> Is there a way to turn off the copyright notice on the bottom of
>> generated maven sites?
>
>
> Which of them do you mean exactly ? Can you show an example and mark which
> you mean? Which skin do you use?
>
>
> Kind regards
> Karl Heinz Marbaise
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

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



Re: Avoiding code duplication

2015-10-13 Thread Jagat Singh
Hello,

Thanks for link

1)

My projects are not related to each other in form of parent child relation.

So can I conclude I do not need parent pom.

And I can do all via bom.

2)

Can bom approach be used for plugins also.

Means specific all plugin versions in bom pom and in the specific projects
where I am using bom import I can write exact plugin configurations.

For example declare that I am using 1.2 Maven assembly plugin. And In
project I use exact configuration of the Maven assembly for the project.

Thanks in advance
On 13 Oct 2015 7:24 pm, "Adrien Rivard"  wrote:

> Hi,
>
> A combination of parents pom and BOM is generally enough :
>
> Have a look at :
>
> https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html
>
>
>
>
> On Mon, Oct 12, 2015 at 10:48 PM, Jagat Singh 
> wrote:
>
> > Hi,
> >
> > What are the options then ?
> >
> >
> > On Tue, Oct 13, 2015 at 3:46 AM, Glenn Brown 
> > wrote:
> >
> > > The jcabi parent appears to be a sample maven parent pom with jcabi
> > > dependencies included
> > >
> > > On Mon, Oct 12, 2015, 12:47 AM Jagat Singh 
> wrote:
> > >
> > > > Hi,
> > > >
> > > > We have set of projects which have few common dependencies and
> > > > configurations.
> > > >
> > > > How to best avoid code duplications , I have seen maven parent and
> > maven
> > > > jcabi parent.
> > > >
> > > > Are there other useful plugins to handle this.
> > > >
> > > > Thanks
> > > >
> > >
> >
>
>
>
> --
> Adrien Rivard
>


Re: Maven site plugin, turn off copyright notice

2015-10-13 Thread Karl Heinz Marbaise

Hi,

On 10/13/15 9:57 PM, Alex O'Ree wrote:

I think I figured it out. It was being injected into the footer.
Overriding the footer in the site descriptor appears to have
suppressed it. Took me a few minutes to find the solution in the
source, but did see it referenced anywhere on the maven site plugin's
website

Hm...

http://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html#Custom_footer

might need an improvement? ...

Kind regards
Karl Heinz Marbaise





On Tue, Oct 13, 2015 at 3:55 PM, Karl Heinz Marbaise  wrote:

Hi,

On 10/13/15 9:45 PM, Alex O'Ree wrote:


Is there a way to turn off the copyright notice on the bottom of
generated maven sites?



Which of them do you mean exactly ? Can you show an example and mark which
you mean? Which skin do you use?



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



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

2015-10-13 Thread Ron Wheeler

On 13/10/2015 2:08 PM, Kevin Burton wrote:

I want to lock in the effective classpath for our releases.

So if extra .jars or versions of .jars are changed, I want the build to
fail until I manually approve it.

For some reason, our version of cassandra regressed and broke on release.

Still trying to track this down but in the future it would be nice to just
flat out prevent this from happening.

Thoughts?


How are you doing your builds?
Is there a difference in your snapshot policy and release policy?

How are you controlling versions - parent POM dependency management?

How many people can deploy to your release repo? Snapshot repo?
If you are the only one, then no one else can trigger a release.
What Maven repo are you using?

Sorry for the questions but the answers might prompt some of the smarter 
people to suggest good solutions.


Ron



--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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



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 there is a good dependency-lock solution, but as long as 
you control the reactor pom no change is to be expected (if you enforce release 
versions and immutable repo).

Gruss
Bernd

-- 
http://bernd.eckenfels.net

-Original Message-
From: Kevin Burton 
To: Maven Users List 
Sent: Di., 13 Okt. 2015 20:09
Subject: Best way to lock in .jar versions between releases.

I want to lock in the effective classpath for our releases.

So if extra .jars or versions of .jars are changed, I want the build to
fail until I manually approve it.

For some reason, our version of cassandra regressed and broke on release.

Still trying to track this down but in the future it would be nice to just
flat out prevent this from happening.

Thoughts?

-- 

We’re hiring if you know of any awesome Java Devops or Linux Operations
Engineers!

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile


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



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

2015-10-13 Thread Wayne Fay
Forget transitive dependencies. Pretend you're back on Ant. All
artifacts must be declared. Leave nothing to chance.

Declare all dependencies, including the ones you are currently
bringing in transitively, in your project's pom.

Set all versions with [1.2.3] to "lock" them down.

There may be another way to do this, but this is what I'd suggest to start...

Wayne

On Tue, Oct 13, 2015 at 1:08 PM, Kevin Burton  wrote:
> I want to lock in the effective classpath for our releases.
>
> So if extra .jars or versions of .jars are changed, I want the build to
> fail until I manually approve it.
>
> For some reason, our version of cassandra regressed and broke on release.
>
> Still trying to track this down but in the future it would be nice to just
> flat out prevent this from happening.
>
> Thoughts?
>
> --
>
> We’re hiring if you know of any awesome Java Devops or Linux Operations
> Engineers!
>
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> 

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



Best way to lock in .jar versions between releases.

2015-10-13 Thread Kevin Burton
I want to lock in the effective classpath for our releases.

So if extra .jars or versions of .jars are changed, I want the build to
fail until I manually approve it.

For some reason, our version of cassandra regressed and broke on release.

Still trying to track this down but in the future it would be nice to just
flat out prevent this from happening.

Thoughts?

-- 

We’re hiring if you know of any awesome Java Devops or Linux Operations
Engineers!

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile



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

2015-10-13 Thread Kevin Burton
Wow. Lots of questions!

I ended up working around this by just writing a post build script that
generates a build fingerprint of our .jars

I then commit the fingerprint.  If a build changes the fingerprint then we
can't push.

It's kind of ugly but we unfortunately have a post build script anyway

On Tue, Oct 13, 2015 at 1:15 PM, Wayne Fay  wrote:

> Forget transitive dependencies. Pretend you're back on Ant. All
> artifacts must be declared. Leave nothing to chance.
>
> Declare all dependencies, including the ones you are currently
> bringing in transitively, in your project's pom.
>
> Set all versions with [1.2.3] to "lock" them down.
>
> There may be another way to do this, but this is what I'd suggest to
> start...
>
> Wayne
>
> On Tue, Oct 13, 2015 at 1:08 PM, Kevin Burton  wrote:
> > I want to lock in the effective classpath for our releases.
> >
> > So if extra .jars or versions of .jars are changed, I want the build to
> > fail until I manually approve it.
> >
> > For some reason, our version of cassandra regressed and broke on release.
> >
> > Still trying to track this down but in the future it would be nice to
> just
> > flat out prevent this from happening.
> >
> > Thoughts?
> >
> > --
> >
> > We’re hiring if you know of any awesome Java Devops or Linux Operations
> > Engineers!
> >
> > Founder/CEO Spinn3r.com
> > Location: *San Francisco, CA*
> > blog: http://burtonator.wordpress.com
> > … or check out my Google+ profile
> > 
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 

We’re hiring if you know of any awesome Java Devops or Linux Operations
Engineers!

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile