How to handle the multiple versioning for depending on other parallel developing product versions

2018-05-13 Thread Yasunori Oto
Dear,

We have a problem of the versioning for parallel branches when we deploy to the 
Maven repository.

Our tool depends on Apache Hive. Hive has two development branches (1.x and 2.x 
series like Python 2 and 3).
And then, we must give a reaction for each version.
But, Maven repository versioning should be increment in master branch, I think.

If someone know how to handle the branches and there versioning, please teach 
us the knowledge.



Re: From where to download Maven?

2018-05-13 Thread Karl Heinz Marbaise

Hi Martin,

just a small hint. Don't use M2_HOME anymore cause only the entry in 
PATH for the bin directory is needed...


Furthermore the settings.xml should only being used or create in users 
home directory...


Apart from that the given locations in the settings.xml  with codehaus 
in it are not valid cause codehaus is long time a go shutted down...


Kind regards
Karl Heinz Marbaise

On 13/05/18 17:23, Martin Gainty wrote:

follow anders recommendation of maven install (latest version of ) location:

https://maven.apache.org/download.cgi

Maven – Download Apache Maven
maven.apache.org
Apache Maven 3.5.3 is the latest release and recommended version for all users. 
Disk Approximately 10MB is required for the Maven installation itself. In 
addition to that, additional disk space will be used for your local Maven 
repository. The size of your local repository will vary depending on ...




tar xzvf apache-maven-3.5.3-bin.tar.gz


Alternatively use your preferred archive extraction tool.

   *   Add the bin directory of the created directory apache-maven-3.5.3 to the 
PATH environment variable
Add M2_HOME environment variable to point to base location of maven

   *   Confirm with mvn -v in a new shell. The result should look similar to

$M2_HOME/conf/settings.xml will usually have repositories listed for snapshots, 
plugins and dependencies if not you can use something like:
be aware that everyone who uses maven will have these settings

   
 
   codehausSnapshots
   Codehaus Snapshots
   
 false
 always
 warn
   
   
 true
 never
 fail
   
   http://snapshots.maven.codehaus.org/maven2
   default
 
   

if you want to specify repository locations for your OWN usage of maven try 
updating repositories @
${user.home}/.m2/settings.xml


HTH

Martin
__




From: Andrew M 
Sent: Sunday, May 13, 2018 11:04 AM
To: users@maven.apache.org
Subject: From where to download Maven?

Hi Guys,

I have started with Continuous Integration with Jenkins and there is a 
precursor to Chapter 2/Module 2.

It states about refreshing knowledge about Maven Ant and war deployments, I 
have a question in regards to Maven download and installation:

I went to the below url:
http://apache.mirror.amaze.com.au/maven/


From the above URL there is a list of so many directories, what exactly to 
download and how to install?


http://maven.apache.org/download.cgi#Installation <-- Unfortunately doesn't 
indicate installation steps.

Any guidance would be much appreciated.

Thank you



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



Re: From where to download Maven?

2018-05-13 Thread Martin Gainty
follow anders recommendation of maven install (latest version of ) location:

https://maven.apache.org/download.cgi

Maven – Download Apache Maven
maven.apache.org
Apache Maven 3.5.3 is the latest release and recommended version for all users. 
Disk Approximately 10MB is required for the Maven installation itself. In 
addition to that, additional disk space will be used for your local Maven 
repository. The size of your local repository will vary depending on ...




tar xzvf apache-maven-3.5.3-bin.tar.gz


Alternatively use your preferred archive extraction tool.

  *   Add the bin directory of the created directory apache-maven-3.5.3 to the 
PATH environment variable
Add M2_HOME environment variable to point to base location of maven

  *   Confirm with mvn -v in a new shell. The result should look similar to

$M2_HOME/conf/settings.xml will usually have repositories listed for snapshots, 
plugins and dependencies if not you can use something like:
be aware that everyone who uses maven will have these settings

  

  codehausSnapshots
  Codehaus Snapshots
  
false
always
warn
  
  
true
never
fail
  
  http://snapshots.maven.codehaus.org/maven2
  default

  

if you want to specify repository locations for your OWN usage of maven try 
updating repositories @
${user.home}/.m2/settings.xml


HTH

Martin
__




From: Andrew M 
Sent: Sunday, May 13, 2018 11:04 AM
To: users@maven.apache.org
Subject: From where to download Maven?

Hi Guys,

I have started with Continuous Integration with Jenkins and there is a 
precursor to Chapter 2/Module 2.

It states about refreshing knowledge about Maven Ant and war deployments, I 
have a question in regards to Maven download and installation:

I went to the below url:
http://apache.mirror.amaze.com.au/maven/

>From the above URL there is a list of so many directories, what exactly to 
>download and how to install?

http://maven.apache.org/download.cgi#Installation <-- Unfortunately doesn't 
indicate installation steps.

Any guidance would be much appreciated.

Thank you



Re: From where to download Maven?

2018-05-13 Thread Anders Hammar
You should use: http://maven.apache.org/download.cgi

/Anders


On Sun, May 13, 2018 at 5:04 PM Andrew M 
wrote:

> Hi Guys,
>
> I have started with Continuous Integration with Jenkins and there is a
> precursor to Chapter 2/Module 2.
>
> It states about refreshing knowledge about Maven Ant and war deployments,
> I have a question in regards to Maven download and installation:
>
> I went to the below url:
> http://apache.mirror.amaze.com.au/maven/
>
> From the above URL there is a list of so many directories, what exactly to
> download and how to install?
>
> http://maven.apache.org/download.cgi#Installation <-- Unfortunately
> doesn't indicate installation steps.
>
> Any guidance would be much appreciated.
>
> Thank you
>
>


From where to download Maven?

2018-05-13 Thread Andrew M
Hi Guys,

I have started with Continuous Integration with Jenkins and there is a 
precursor to Chapter 2/Module 2.

It states about refreshing knowledge about Maven Ant and war deployments, I 
have a question in regards to Maven download and installation:

I went to the below url:
http://apache.mirror.amaze.com.au/maven/

>From the above URL there is a list of so many directories, what exactly to 
>download and how to install?

http://maven.apache.org/download.cgi#Installation <-- Unfortunately doesn't 
indicate installation steps.

Any guidance would be much appreciated.

Thank you



RE: Deploy shaded jar with an without classifier simultaneously

2018-05-13 Thread Golan, Yaron
Not sure if my proposal will fit your needs, but I'd try to run the 
deploy:deploy-file goal right after the default deploy phase.

The default deploy will upload your default jar while the second execution will 
upload the shaded one.
Or the other way (order) around.

Bottom line is that you'll have both jars uploaded to the artifacts repository.



YG





-Original Message-
From: Dagan Sandler [mailto:dagansand...@gmail.com] 
Sent: Sunday, May 13, 2018 13:52
To: Maven Users List 
Subject: Deploy shaded jar with an without classifier simultaneously

Hi all,

I'll start by saying that I'm aware this is not an ideal configuration and I 
only need this as an intermediate solution to a larger problem I'm dealing with 
which is out of the scope of this question.

I'm wondering if there's an easy way to do this with maven-shade-plugin only.

My current situation is that I have an artifact being packaged as a shaded jar 
with all its dependencies, let's call it *my-shaded-module. *This artifact is 
currently being deployed with a single artifact (the shaded
jar) - named my-shaded-module, without any qualifier*.*

My end goal is to have this module deployed with 2 artifacts - a simple
(plain) jar with no classifier, and the shaded jar with a "shaded"
classifier. I know how to do this, but some outside concerns are limiting my 
ability to do this immediately.

What I'd like to achieve for the intermediate solution is to deploy this 
artifact in its shaded form twice for every build, meaning that running mvn 
deploy will result in 2 artifacts being deployed:
1. my-shaded-module.jar
2. my-shaded-module-shaded.jar
Both of which are supposed to be shaded at this point.

I can probably do it using some additional plugins like assembly plugin or 
something but I'm hoping maybe someone has a solution for a simple idea of how 
to do this, maybe with maven-shade-plugin alone.
Keep in mind that this is a temporary solution, hence why I'm trying to avoid 
introducing additional plugins to the build.

Hope this was clear enough

Thanks,
Dagan.

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


Deploy shaded jar with an without classifier simultaneously

2018-05-13 Thread Dagan Sandler
Hi all,

I'll start by saying that I'm aware this is not an ideal configuration and
I only need this as an intermediate solution to a larger problem I'm
dealing with which is out of the scope of this question.

I'm wondering if there's an easy way to do this with maven-shade-plugin
only.

My current situation is that I have an artifact being packaged as a shaded
jar with all its dependencies, let's call it *my-shaded-module. *This
artifact is currently being deployed with a single artifact (the shaded
jar) - named my-shaded-module, without any qualifier*.*

My end goal is to have this module deployed with 2 artifacts - a simple
(plain) jar with no classifier, and the shaded jar with a "shaded"
classifier. I know how to do this, but some outside concerns are limiting
my ability to do this immediately.

What I'd like to achieve for the intermediate solution is to deploy this
artifact in its shaded form twice for every build, meaning that running mvn
deploy will result in 2 artifacts being deployed:
1. my-shaded-module.jar
2. my-shaded-module-shaded.jar
Both of which are supposed to be shaded at this point.

I can probably do it using some additional plugins like assembly plugin or
something but I'm hoping maybe someone has a solution for a simple idea of
how to do this, maybe with maven-shade-plugin alone.
Keep in mind that this is a temporary solution, hence why I'm trying to
avoid introducing additional plugins to the build.

Hope this was clear enough

Thanks,
Dagan.


[ANN] Apache Maven EAR Version 3.0.1 Released

2018-05-13 Thread Karl Heinz Marbaise
The Apache Maven team is pleased to announce the release of the 
Apache Maven EAR Plugin Version 3.0.1

This plugin generates Java EE Enterprise Archive (EAR) file. It can also 
generate the deployment descriptor file (e.g. application.xml).
 
https://maven.apache.org/plugins/maven-ear-plugin/

Important Note since 3.0.1:

 * Maven 3.X only
 * JDK 7 minimum requirement

You should specify the version in your project's plugin configuration:
 

  org.apache.maven.plugins
  maven-ear-plugin
  3.0.1


You can download the appropriate sources etc. from the download page:
 
https://maven.apache.org/plugins/maven-ear-plugin/download.cgi
 
Release Notes Maven EAR Plugin 3.0.1

https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12317422=12342882

Improvements:

 * [MEAR-265] - Add documentation information for GitHub
 * [MEAR-266] - Upgrade mave-surefire/failsafe-plugin 2.21.0

Dependency upgrade:

 * [MEAR-268] - Upgrade plexus-archiver to 3.6.0

Enjoy,
 
-The Apache Maven team

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



[ANN] Apache Maven WAR Plugin Version 3.2.1 Released

2018-05-13 Thread Karl Heinz Marbaise
The Apache Maven team is pleased to announce the release of the 
Apache Maven WAR Plugin, version 3.2.1.

The WAR Plugin is responsible for collecting all artifact dependencies, classes
and resources of the web application and packaging them into a web application
archive.

http://maven.apache.org/plugins/maven-war-plugin/

You should specify the version in your project's plugin configuration:


  org.apache.maven.plugins
  maven-war-plugin
  3.2.1


You can download the appropriate sources etc. from the download page:

https://maven.apache.org/plugins/maven-war-plugin/download.cgi

Important Note: 

 * Maven 3.X only
 * JDK 7 minimum requirement

Release Notes - Maven WAR Plugin - Version 3.2.1

https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12318121=12341729


Improvement:

 * [MWAR-412] - Upgrade parent to 31

Task:

 * [MWAR-401] - Upgrade the WAR lifecycle to use the maven-compiler-plugin 3.7.0

Dependency upgrades:

 * [MWAR-413] - Upgrade xstream to 1.4.10
 * [MWAR-414] - Upgrade mave-surefire/failsafe-plugin 2.21.0
 * [MWAR-416] - Upgrade plexus-archiver to 3.6.0

Enjoy,

-The Apache Maven team


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