Re: Combination of deployAtEnd and installAtEnd does not seem to work

2016-01-22 Thread Andreas Gudian
I think there are some rules in the maven-enforcer-plugin that might be
able to help you there (I'm on my phone now, so I can't say for sure).



Am Freitag, 22. Januar 2016 schrieb Alexander Kriegisch :

> Okay, I just found a subtle problem: One of my co-workers has added a
> slightly older version of the deploy plugin (2.8.1 instead of 2.8.2) to a
> new pluginManagement section in one of our submodules. Somehow this broke
> deployAtEnd not just for that submodule but for all modules. When I removed
> that redundant and conflicting section, deployAtEnd started to work as
> expected.
>
> Sorry for the noise, but I think this can happen to others too, so it is
> good there is some record for it on the mailing list. *Follow-up question*:
> Can I detect plugin conflicts via Maven Dependency Plugin, similar to
> dependency:analyze for normal dependencies?
> --
> Alexander Kriegisch
>
>
> Am 22.01.2016 um 14:11 schrieb Alexander Kriegisch <
> alexan...@kriegisch.name
> >:
>
> Yesterday I rolled another release and again the artifacts were not
> uploaded. I cannot share my build log because it contains internal
> information, but what I can say is that for each single module I see in the
> log:
>
> Deploying  at end
>
> Then at the end of the successful mvn release:perform build, nothing gets
> uploaded despite the advance notice.
>
> As for your question: I do not use any Tycho/OSGi and no plugins with
> their own lifecycle that I would be aware of.
>
> Do you have any idea what I could have done wrong in order to trigger such
> a (non-)deployment behaviour during release:perform?
> --
> Alexander Kriegisch
>
>
> Am 09.01.2016 um 15:06 schrieb Karl Heinz Marbaise  >:
>
>
> Hi Alexander,
>
>
> On 1/9/16 2:13 PM, Alexander Kriegisch wrote:
>
> Hi community.
>
>
> This inquiry relates to
>
>  [1] https://issues.apache.org/jira/browse/MRELEASE-664
>
>  [2] https://issues.apache.org/jira/browse/MDEPLOY-157
>
>  [3] https://issues.apache.org/jira/browse/MINSTALL-93
>
>  [4] https://issues.apache.org/jira/browse/MDEPLOY-168
>
>
> where [2] and [3] are kinda spawned from [1] and [4] has not been
> implemented yet because it seems to be non-trivial at least, maybe
> complicated or even complex.
>
>
> Anyway, a combination of [2] and [3] should, as I understand the tickets,
> permit me to upload (deploy) my build artifacts to a repository manager
> only at the end of a successful multi-module build. Thus, I added this to
> my parent POM's pluginManagement section:
>
>
>
>
>org.apache.maven.plugins
>
>maven-install-plugin
>
>2.5.2
>
>
>
>true
>
>
>
>
>
>
>
>
>org.apache.maven.plugins
>
>maven-deploy-plugin
>
>2.8.2
>
>
>
>true
>
>
>
>
>
>
> I see artifacts being uploaded to the repository manager per module
> anyway. Am I doing anything wrong?
>
>
> If you have defined in pluginManagement be carefull no one overwrites that
> in the child pom or changes the plugin configuration and regrets the
> inherited part by using inherited false ...Furthermore use the correct
> versions...
>
>
> I'm using this for more than 2 years without any problems
>
>
> BUT are you using plain Maven or some kind of OSGi parts (like tycho) or
> other plugins which define their own lifecycle ?
>
>
> Can you show an log output of the build ? Or do you have an example
> project which shows that behaviour ?
>
>
>
>
>
> P.S.: Sorry to Karl Heinz for having asked this question in ticket [2],
> but I thought I had discovered an implementation bug.
>
>
> No problem... we will see if you have found an other bug or not...
>
>
> And general rule is to create a separate JIRA ticket and don't reopen
> closed tickets...if it's needed we will link to other tickets...
>
>
>
> 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: CD versioning

2016-01-22 Thread Karl Heinz Marbaise

Hi Jason,

sounds interessting.. ;-)..

Kind regards
Karl Heinz
On 1/22/16 3:17 AM, Jason van Zyl wrote:

I have something that I wouldn’t make public but you’re free to hack it up and 
do what you like with it.


On Jan 21, 2016, at 11:47 AM, Benson Margulies  wrote:

On Thu, Jan 21, 2016 at 2:42 PM, Karl Heinz Marbaise  wrote:

Hi Benson,

you know that you can define the following properties since Maven 3.2.1[1]

${revision}, ${changelist} and ${sha1} which can be set outside from Maven
via:

mvn -Drevision=1.2.3-SNAPSHOT ...

and you can use it:


  ...
  ...
  ${revision}
..


in case of a multi module build you can also use it in the parent definition
of the children...


but there does not exist some kind of jar which generates the version...as
far as i know...


that's the disconnect; i thought that JvZ or someone described a
drop-in Jar that could cause a property to come into existence (which
could then be referenced). Of course, I can wrap a script around mvn
if there is no such beast.




Kind regards
Karl Heinz Marbaise

[1]: http://maven.apache.org/docs/3.2.1/release-notes.html

On 1/20/16 1:11 PM, Benson Margulies wrote:


Some time ago, I recall some email about dynamic versioning; the idea
being that all the  elements in all the POMs of the project
would look like ${version}, and a jar dropped into
the maven extensions directory would provide a component that would
generate the version, perhaps from a git hash or something like that.
Is there any doc around on how to set this up? Is it functional in
3.2.5?

-
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



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


Thanks,

Jason

--
Jason van Zyl
Founder, Takari and Apache Maven
http://twitter.com/jvanzyl
http://twitter.com/takari_io
-



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



Re: Combination of deployAtEnd and installAtEnd does not seem to work

2016-01-22 Thread Alexander Kriegisch
Yesterday I rolled another release and again the artifacts were not uploaded. I 
cannot share my build log because it contains internal information, but what I 
can say is that for each single module I see in the log:

Deploying  at end

Then at the end of the successful mvn release:perform build, nothing gets 
uploaded despite the advance notice.

As for your question: I do not use any Tycho/OSGi and no plugins with their own 
lifecycle that I would be aware of.

Do you have any idea what I could have done wrong in order to trigger such a 
(non-)deployment behaviour during release:perform?
-- 
Alexander Kriegisch


> Am 09.01.2016 um 15:06 schrieb Karl Heinz Marbaise :
> 
> Hi Alexander,
> 
>> On 1/9/16 2:13 PM, Alexander Kriegisch wrote:
>> Hi community.
>> 
>> This inquiry relates to
>>   [1] https://issues.apache.org/jira/browse/MRELEASE-664
>>   [2] https://issues.apache.org/jira/browse/MDEPLOY-157
>>   [3] https://issues.apache.org/jira/browse/MINSTALL-93
>>   [4] https://issues.apache.org/jira/browse/MDEPLOY-168
>> 
>> where [2] and [3] are kinda spawned from [1] and [4] has not been 
>> implemented yet because it seems to be non-trivial at least, maybe 
>> complicated or even complex.
>> 
>> Anyway, a combination of [2] and [3] should, as I understand the tickets, 
>> permit me to upload (deploy) my build artifacts to a repository manager only 
>> at the end of a successful multi-module build. Thus, I added this to my 
>> parent POM's pluginManagement section:
>> 
>> 
>> org.apache.maven.plugins
>> maven-install-plugin
>> 2.5.2
>> 
>> true
>> 
>> 
>> 
>> 
>> org.apache.maven.plugins
>> maven-deploy-plugin
>> 2.8.2
>> 
>> true
>> 
>> 
>> 
>> I see artifacts being uploaded to the repository manager per module anyway. 
>> Am I doing anything wrong?
> 
> If you have defined in pluginManagement be carefull no one overwrites that in 
> the child pom or changes the plugin configuration and regrets the inherited 
> part by using inherited false ...Furthermore use the correct versions...
> 
> I'm using this for more than 2 years without any problems
> 
> BUT are you using plain Maven or some kind of OSGi parts (like tycho) or 
> other plugins which define their own lifecycle ?
> 
> Can you show an log output of the build ? Or do you have an example project 
> which shows that behaviour ?
> 
> 
> 
>> 
>> P.S.: Sorry to Karl Heinz for having asked this question in ticket [2], but 
>> I thought I had discovered an implementation bug.
> 
> No problem... we will see if you have found an other bug or not...
> 
> And general rule is to create a separate JIRA ticket and don't reopen closed 
> tickets...if it's needed we will link to other tickets...
> 
> 
> Kind regards
> Karl Heinz Marbaise
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org


smime.p7s
Description: S/MIME cryptographic signature


Re: Combination of deployAtEnd and installAtEnd does not seem to work

2016-01-22 Thread Alexander Kriegisch
Okay, I just found a subtle problem: One of my co-workers has added a slightly 
older version of the deploy plugin (2.8.1 instead of 2.8.2) to a new 
pluginManagement section in one of our submodules. Somehow this broke 
deployAtEnd not just for that submodule but for all modules. When I removed 
that redundant and conflicting section, deployAtEnd started to work as expected.

Sorry for the noise, but I think this can happen to others too, so it is good 
there is some record for it on the mailing list. Follow-up question: Can I 
detect plugin conflicts via Maven Dependency Plugin, similar to 
dependency:analyze for normal dependencies?
-- 
Alexander Kriegisch


> Am 22.01.2016 um 14:11 schrieb Alexander Kriegisch :
> 
> Yesterday I rolled another release and again the artifacts were not uploaded. 
> I cannot share my build log because it contains internal information, but 
> what I can say is that for each single module I see in the log:
> 
> Deploying  at end
> 
> Then at the end of the successful mvn release:perform build, nothing gets 
> uploaded despite the advance notice.
> 
> As for your question: I do not use any Tycho/OSGi and no plugins with their 
> own lifecycle that I would be aware of.
> 
> Do you have any idea what I could have done wrong in order to trigger such a 
> (non-)deployment behaviour during release:perform?
> -- 
> Alexander Kriegisch
> 
> 
>> Am 09.01.2016 um 15:06 schrieb Karl Heinz Marbaise :
>> 
>> Hi Alexander,
>> 
>>> On 1/9/16 2:13 PM, Alexander Kriegisch wrote:
>>> Hi community.
>>> 
>>> This inquiry relates to
>>>  [1] https://issues.apache.org/jira/browse/MRELEASE-664
>>>  [2] https://issues.apache.org/jira/browse/MDEPLOY-157
>>>  [3] https://issues.apache.org/jira/browse/MINSTALL-93
>>>  [4] https://issues.apache.org/jira/browse/MDEPLOY-168
>>> 
>>> where [2] and [3] are kinda spawned from [1] and [4] has not been 
>>> implemented yet because it seems to be non-trivial at least, maybe 
>>> complicated or even complex.
>>> 
>>> Anyway, a combination of [2] and [3] should, as I understand the tickets, 
>>> permit me to upload (deploy) my build artifacts to a repository manager 
>>> only at the end of a successful multi-module build. Thus, I added this to 
>>> my parent POM's pluginManagement section:
>>> 
>>>
>>>org.apache.maven.plugins
>>>maven-install-plugin
>>>2.5.2
>>>
>>>true
>>>
>>>
>>> 
>>>
>>>org.apache.maven.plugins
>>>maven-deploy-plugin
>>>2.8.2
>>>
>>>true
>>>
>>>
>>> 
>>> I see artifacts being uploaded to the repository manager per module anyway. 
>>> Am I doing anything wrong?
>> 
>> If you have defined in pluginManagement be carefull no one overwrites that 
>> in the child pom or changes the plugin configuration and regrets the 
>> inherited part by using inherited false ...Furthermore use the correct 
>> versions...
>> 
>> I'm using this for more than 2 years without any problems
>> 
>> BUT are you using plain Maven or some kind of OSGi parts (like tycho) or 
>> other plugins which define their own lifecycle ?
>> 
>> Can you show an log output of the build ? Or do you have an example project 
>> which shows that behaviour ?
>> 
>> 
>> 
>>> 
>>> P.S.: Sorry to Karl Heinz for having asked this question in ticket [2], but 
>>> I thought I had discovered an implementation bug.
>> 
>> No problem... we will see if you have found an other bug or not...
>> 
>> And general rule is to create a separate JIRA ticket and don't reopen closed 
>> tickets...if it's needed we will link to other tickets...
>> 
>> 
>> Kind regards
>> Karl Heinz Marbaise
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org


smime.p7s
Description: S/MIME cryptographic signature


Re: Combination of deployAtEnd and installAtEnd does not seem to work

2016-01-22 Thread Karl Heinz Marbaise

Hi,

can you test if a simple mvn deploy will work correctly or is it only 
related during the release ? Has release plugin somehow configured 
(preparationGoals something llike this? )?


Kind regards
Karl Heinz Marbaise
On 1/22/16 2:11 PM, Alexander Kriegisch wrote:

Yesterday I rolled another release and again the artifacts were not uploaded. I 
cannot share my build log because it contains internal information, but what I 
can say is that for each single module I see in the log:

Deploying  at end

Then at the end of the successful mvn release:perform build, nothing gets 
uploaded despite the advance notice.

As for your question: I do not use any Tycho/OSGi and no plugins with their own 
lifecycle that I would be aware of.

Do you have any idea what I could have done wrong in order to trigger such a 
(non-)deployment behaviour during release:perform?





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