Re: [maven-scm-publish-plugin] Could not copy content to SCM checkout... source... and destination... are the same

2022-01-08 Thread Hervé BOUTEMY
I opened a Jira issue, because in such misconfiguration, we can have a better 
message:
https://issues.apache.org/jira/browse/MSCMPUB-48

please help me refining the improved message

Thanks

Hervé

Le samedi 8 janvier 2022, 23:48:08 CET Lewis John McGibbney a écrit :
> Thank you VERY much Hervé.
> I looked at this code when I was tired and didn't see it.
> Have a great weekend.
> lewismc
> 
> On 2022/01/08 19:10:10 Hervé BOUTEMY wrote:
> > Hi,
> > 
> > I was able to reproduce your issue.
> > 
> > If you read the log, there is no issue with svn command.
> > The issue is when doing:
> > [INFO] Updating checkout directory with actual content in /Users/lmcgibbn/
> > Downloads/any23/any23-site
> > 
> > and the error message is:
> > Could not copy content to SCM checkout: Source 'xxx' and destination 'xxx'
> > are the same -> [Help 1]
> > 
> > and it's true:
> > https://github.com/apache/any23/blob/master/pom.xml#L1244
> > 
> > content value = ${site.filePath}
> > checkoutDirectory = ${site.scmPubCheckoutDirectory} = ${site.filePath} (as
> > defined in properties)
> > 
> > that's not normal: content value should be something like target/site or
> > target/staging
> > 
> > 
> > see plugin documentation
> > https://maven.apache.org/plugins/maven-scm-publish-plugin/
> > 
> > (eventually contact me on ASF Slack...)
> > 
> > Regards,
> > 
> > Hervé
> > 
> > Le samedi 8 janvier 2022, 08:48:12 CET lewis john mcgibbney a écrit :
> > > Hi scm-users@,
> > > Plugin configuration is as follows
> > > 
> > >   
> > >   
> > > org.apache.maven.plugins
> > > maven-scm-publish-plugin
> > > 3.1.0
> > > 
> > > 
> > >   true
> > >   Apache Any23 ${project.version} site
> > > 
> > > deployment
> > > 
> > > ${site.scmPubCheckoutDirectory}
> > > 
> > >   ${site.deploymentBaseUrl}
> > >   ${site.filePath}
> > > 
> > > 
> > >   
> > >   
> > > 
> > > When I execute it as part of the Apache Any23 website release (
> > > https://github.com/apache/any23/blob/master/deploy-site.sh#L20) it fails
> > > with the following
> > > 
> > > [INFO] --- maven-scm-publish-plugin:3.1.0:publish-scm (default-cli) @
> > > apache-any23 ---
> > > [INFO] Updating the pub tree from scm:svn:
> > > https://svn.apache.org/repos/asf/any23/site into
> > > /Users/lmcgibbn/Downloads/any23/any23-site
> > > [INFO] Executing: /bin/sh -c cd
> > > /Users/lmcgibbn/Downloads/any23/any23-site
> > > && svn --username lewismc --password '*' --no-auth-cache
> > > --non-interactive update /Users/lmcgibbn/Downloads/any23/any23-site@
> > > [INFO] Updating checkout directory with actual content in
> > > /Users/lmcgibbn/Downloads/any23/any23-site
> > > [INFO]
> > > 
> > > [INFO] Reactor Summary for Apache Any23 2.7-SNAPSHOT:
> > > [INFO]
> > > [INFO] Apache Any23 ... FAILURE [
> > > 
> > >  2.957 s]
> > > 
> > > [INFO] Apache Any23 :: Base API ... SUCCESS [
> > > 23.288 s]
> > > [INFO] Apache Any23 :: Test Resources . SUCCESS [
> > > 
> > >  9.331 s]
> > > 
> > > [INFO] Apache Any23 :: CSV Utilities .. SUCCESS [
> > > 14.311 s]
> > > [INFO] Apache Any23 :: Mime Type Detection  SUCCESS [
> > > 20.215 s]
> > > [INFO] Apache Any23 :: Encoding Detection . SUCCESS [
> > > 18.632 s]
> > > [INFO] Apache Any23 :: Core ... SUCCESS [
> > > 32.095 s]
> > > [INFO] Apache Any23 :: CLI  SUCCESS [
> > > 21.820 s]
> > > [INFO]
> > > 
> > > [INFO] BUILD FAILURE
> > > [INFO]
> > > 
> > > [INFO] Total time:  02:55 min
> > > [INFO] Finished at: 2022-01-07T23:20:55-08:00
> > > [INFO]
> > > 
> > > [ERROR] Failed to execute goal
> > > org.apache.maven.plugins:maven-scm-publish-plugin:3.1.0:publish-scm
> > > (default-cli) on project apache-any23: Could not copy content to SCM
> > > checkout: Source
> > > '/Users/lmcgibbn/Downloads/any23/any23-site/.svn/pristine/61/617e7226204
> > > 2de8 cf1f11bc8e3aaa231669f181a.svn-base' and destination
> > > '/Users/lmcgibbn/Downloads/any23/any23-site/.svn/pristine/61/617e7226204
> > > 2de8 cf1f11bc8e3aaa231669f181a.svn-base' are the same -> [Help 1]
> > > 
> > > As you can see the svn update configuration seems to add an at character
> > > in
> > > the website checkout directory
> > > /Users/lmcgibbn/Downloads/any23/any23-site@
> > > 
> > > Can someone explain why this is happening and does anyone have a
> > > suggestion
> > > for how I fix it?
> > > 
> > > I also saw https://issues.apache.org/jira/browse/SCM-859 and I looked at
> > 

Re: [maven-scm-publish-plugin] Could not copy content to SCM checkout... source... and destination... are the same

2022-01-08 Thread Lewis John McGibbney
Thank you VERY much Hervé.
I looked at this code when I was tired and didn't see it.
Have a great weekend.
lewismc

On 2022/01/08 19:10:10 Hervé BOUTEMY wrote:
> Hi,
> 
> I was able to reproduce your issue.
> 
> If you read the log, there is no issue with svn command.
> The issue is when doing:
> [INFO] Updating checkout directory with actual content in /Users/lmcgibbn/
> Downloads/any23/any23-site
> 
> and the error message is:
> Could not copy content to SCM checkout: Source 'xxx' and destination 'xxx' 
> are 
> the same -> [Help 1]
> 
> and it's true:
> https://github.com/apache/any23/blob/master/pom.xml#L1244
> 
> content value = ${site.filePath}
> checkoutDirectory = ${site.scmPubCheckoutDirectory} = ${site.filePath} (as 
> defined in properties)
> 
> that's not normal: content value should be something like target/site or 
> target/staging
> 
> 
> see plugin documentation
> https://maven.apache.org/plugins/maven-scm-publish-plugin/
> 
> (eventually contact me on ASF Slack...)
> 
> Regards,
> 
> Hervé
> 
> 
> Le samedi 8 janvier 2022, 08:48:12 CET lewis john mcgibbney a écrit :
> > Hi scm-users@,
> > Plugin configuration is as follows
> > 
> >   
> > org.apache.maven.plugins
> > maven-scm-publish-plugin
> > 3.1.0
> > 
> >   true
> >   Apache Any23 ${project.version} site
> > deployment
> > 
> > ${site.scmPubCheckoutDirectory}
> >   ${site.deploymentBaseUrl}
> >   ${site.filePath}
> > 
> >   
> > 
> > When I execute it as part of the Apache Any23 website release (
> > https://github.com/apache/any23/blob/master/deploy-site.sh#L20) it fails
> > with the following
> > 
> > [INFO] --- maven-scm-publish-plugin:3.1.0:publish-scm (default-cli) @
> > apache-any23 ---
> > [INFO] Updating the pub tree from scm:svn:
> > https://svn.apache.org/repos/asf/any23/site into
> > /Users/lmcgibbn/Downloads/any23/any23-site
> > [INFO] Executing: /bin/sh -c cd /Users/lmcgibbn/Downloads/any23/any23-site
> > && svn --username lewismc --password '*' --no-auth-cache
> > --non-interactive update /Users/lmcgibbn/Downloads/any23/any23-site@
> > [INFO] Updating checkout directory with actual content in
> > /Users/lmcgibbn/Downloads/any23/any23-site
> > [INFO]
> > 
> > [INFO] Reactor Summary for Apache Any23 2.7-SNAPSHOT:
> > [INFO]
> > [INFO] Apache Any23 ... FAILURE [
> >  2.957 s]
> > [INFO] Apache Any23 :: Base API ... SUCCESS [
> > 23.288 s]
> > [INFO] Apache Any23 :: Test Resources . SUCCESS [
> >  9.331 s]
> > [INFO] Apache Any23 :: CSV Utilities .. SUCCESS [
> > 14.311 s]
> > [INFO] Apache Any23 :: Mime Type Detection  SUCCESS [
> > 20.215 s]
> > [INFO] Apache Any23 :: Encoding Detection . SUCCESS [
> > 18.632 s]
> > [INFO] Apache Any23 :: Core ... SUCCESS [
> > 32.095 s]
> > [INFO] Apache Any23 :: CLI  SUCCESS [
> > 21.820 s]
> > [INFO]
> > 
> > [INFO] BUILD FAILURE
> > [INFO]
> > 
> > [INFO] Total time:  02:55 min
> > [INFO] Finished at: 2022-01-07T23:20:55-08:00
> > [INFO]
> > 
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-scm-publish-plugin:3.1.0:publish-scm
> > (default-cli) on project apache-any23: Could not copy content to SCM
> > checkout: Source
> > '/Users/lmcgibbn/Downloads/any23/any23-site/.svn/pristine/61/617e72262042de8
> > cf1f11bc8e3aaa231669f181a.svn-base' and destination
> > '/Users/lmcgibbn/Downloads/any23/any23-site/.svn/pristine/61/617e72262042de8
> > cf1f11bc8e3aaa231669f181a.svn-base' are the same -> [Help 1]
> > 
> > As you can see the svn update configuration seems to add an at character in
> > the website checkout directory /Users/lmcgibbn/Downloads/any23/any23-site@
> > 
> > Can someone explain why this is happening and does anyone have a suggestion
> > for how I fix it?
> > 
> > I also saw https://issues.apache.org/jira/browse/SCM-859 and I looked at
> > the corresponding pull request but there is not too much context.
> > 
> > Thanks for any assistance.
> > 
> > lewismc
> 
> 
> 
> 
> 
> -
> 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



[ANN] Maven JAR Plugin 3.2.1 released

2022-01-08 Thread Michael Osipov
The Apache Maven team is pleased to announce the release of the Maven 
JAR Plugin version 3.2.1.


https://maven.apache.org/plugins/maven-jar-plugin/

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


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



Release Notes - Maven JAR Plugin - Version 3.2.1

** Bug
* [MJAR-276] - Don't log a warning when jar will be empty and 
creation is forced
* [MJAR-281] - Wrong order of META-INF/ and META-INF/MANIFEST.MF 
entries


** Improvement
* [MJAR-270] - make build Reproducible

** Dependency upgrade
* [MJAR-282] - Upgrade Maven Archiver to 3.5.2


Enjoy,

-The Apache Maven team

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



Re: [maven-scm-publish-plugin] Could not copy content to SCM checkout... source... and destination... are the same

2022-01-08 Thread Hervé BOUTEMY
Hi,

I was able to reproduce your issue.

If you read the log, there is no issue with svn command.
The issue is when doing:
[INFO] Updating checkout directory with actual content in /Users/lmcgibbn/
Downloads/any23/any23-site

and the error message is:
Could not copy content to SCM checkout: Source 'xxx' and destination 'xxx' are 
the same -> [Help 1]

and it's true:
https://github.com/apache/any23/blob/master/pom.xml#L1244

content value = ${site.filePath}
checkoutDirectory = ${site.scmPubCheckoutDirectory} = ${site.filePath} (as 
defined in properties)

that's not normal: content value should be something like target/site or 
target/staging


see plugin documentation
https://maven.apache.org/plugins/maven-scm-publish-plugin/

(eventually contact me on ASF Slack...)

Regards,

Hervé


Le samedi 8 janvier 2022, 08:48:12 CET lewis john mcgibbney a écrit :
> Hi scm-users@,
> Plugin configuration is as follows
> 
>   
> org.apache.maven.plugins
> maven-scm-publish-plugin
> 3.1.0
> 
>   true
>   Apache Any23 ${project.version} site
> deployment
> 
> ${site.scmPubCheckoutDirectory}
>   ${site.deploymentBaseUrl}
>   ${site.filePath}
> 
>   
> 
> When I execute it as part of the Apache Any23 website release (
> https://github.com/apache/any23/blob/master/deploy-site.sh#L20) it fails
> with the following
> 
> [INFO] --- maven-scm-publish-plugin:3.1.0:publish-scm (default-cli) @
> apache-any23 ---
> [INFO] Updating the pub tree from scm:svn:
> https://svn.apache.org/repos/asf/any23/site into
> /Users/lmcgibbn/Downloads/any23/any23-site
> [INFO] Executing: /bin/sh -c cd /Users/lmcgibbn/Downloads/any23/any23-site
> && svn --username lewismc --password '*' --no-auth-cache
> --non-interactive update /Users/lmcgibbn/Downloads/any23/any23-site@
> [INFO] Updating checkout directory with actual content in
> /Users/lmcgibbn/Downloads/any23/any23-site
> [INFO]
> 
> [INFO] Reactor Summary for Apache Any23 2.7-SNAPSHOT:
> [INFO]
> [INFO] Apache Any23 ... FAILURE [
>  2.957 s]
> [INFO] Apache Any23 :: Base API ... SUCCESS [
> 23.288 s]
> [INFO] Apache Any23 :: Test Resources . SUCCESS [
>  9.331 s]
> [INFO] Apache Any23 :: CSV Utilities .. SUCCESS [
> 14.311 s]
> [INFO] Apache Any23 :: Mime Type Detection  SUCCESS [
> 20.215 s]
> [INFO] Apache Any23 :: Encoding Detection . SUCCESS [
> 18.632 s]
> [INFO] Apache Any23 :: Core ... SUCCESS [
> 32.095 s]
> [INFO] Apache Any23 :: CLI  SUCCESS [
> 21.820 s]
> [INFO]
> 
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time:  02:55 min
> [INFO] Finished at: 2022-01-07T23:20:55-08:00
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-scm-publish-plugin:3.1.0:publish-scm
> (default-cli) on project apache-any23: Could not copy content to SCM
> checkout: Source
> '/Users/lmcgibbn/Downloads/any23/any23-site/.svn/pristine/61/617e72262042de8
> cf1f11bc8e3aaa231669f181a.svn-base' and destination
> '/Users/lmcgibbn/Downloads/any23/any23-site/.svn/pristine/61/617e72262042de8
> cf1f11bc8e3aaa231669f181a.svn-base' are the same -> [Help 1]
> 
> As you can see the svn update configuration seems to add an at character in
> the website checkout directory /Users/lmcgibbn/Downloads/any23/any23-site@
> 
> Can someone explain why this is happening and does anyone have a suggestion
> for how I fix it?
> 
> I also saw https://issues.apache.org/jira/browse/SCM-859 and I looked at
> the corresponding pull request but there is not too much context.
> 
> Thanks for any assistance.
> 
> lewismc





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