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: 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



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

2016-01-09 Thread 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



Combination of deployAtEnd and installAtEnd does not seem to work

2016-01-09 Thread Alexander Kriegisch
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?

P.S.: Sorry to Karl Heinz for having asked this question in ticket [2], but I 
thought I had discovered an implementation bug.

Kind regards
-- 
Alexander Kriegisch
http://scrum-master.de

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