You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2012/10/11 10:11:04 UTC

[jira] [Created] (LUCENE-4476) maven deployment scripts dont work

Robert Muir created LUCENE-4476:
-----------------------------------

             Summary: maven deployment scripts dont work
                 Key: LUCENE-4476
                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Robert Muir


Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work.

It worked fine for the 4.0-alpha and 4.0-beta releases.

If someone else wants to figure this out and deploy to maven, I'd be grateful. I have no idea where to go here.

NOTE: I plan on sending the announcement friday.
 
{noformat}
stage-maven:
[artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
[artifact:deploy] Deploying to https://repository.apache.org/service/local/staging/deploy/maven2
[artifact:deploy] Uploading: org/apache/lucene/lucene-join/4.0.0/lucene-join-4.0.0.jar to repository apache.releases.https at https://repository.apache.org/service/local/staging/deploy/maven2
[artifact:deploy] Transferring 56K from apache.releases.https
[artifact:deploy] An error has occurred while processing the Maven artifact tasks.
[artifact:deploy]  Diagnosis:
[artifact:deploy] 
[artifact:deploy] Error deploying artifact 'org.apache.lucene:lucene-join:jar': Error deploying artifact: Failed to transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/lucene/lucene-join/4.0.0/lucene-join-4.0.0.jar. Return code is: 401

BUILD FAILED
/home/rmuir/workspace/lucene_solr_4_0/lucene/common-build.xml:1364: The following error occurred while executing this line:
/home/rmuir/workspace/lucene_solr_4_0/lucene/build/stage_maven_build.xml:8: The following error occurred while executing this line:
/home/rmuir/workspace/lucene_solr_4_0/lucene/common-build.xml:443: Error deploying artifact 'org.apache.lucene:lucene-join:jar': Error deploying artifact: Failed to transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/lucene/lucene-join/4.0.0/lucene-join-4.0.0.jar. Return code is: 401
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473943#comment-13473943 ] 

Uwe Schindler commented on LUCENE-4476:
---------------------------------------

The problem is that the POMs must be installed in the local repository (~/.m2) for this to work, otherwise it cannot resolve them. If you run the script on the *same* machine where you built the artifacts, this will work. This is confusing...
                
> maven deployment scripts dont work
> ----------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Assigned] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Rowe reassigned LUCENE-4476:
-----------------------------------

    Assignee: Steven Rowe
    
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Steven Rowe
>         Attachments: LUCENE-4476.patch, LUCENE-4476.patch, LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Rowe resolved LUCENE-4476.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0
                   4.1
    Lucene Fields: New,Patch Available  (was: New)

I committed Robert's patch:

- trunk: [r1402630|http://svn.apache.org/viewvc?rev=1402630&view=rev]
- branch_4x: [r1402637|http://svn.apache.org/viewvc?rev=1402637&view=rev]
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>            Assignee: Steven Rowe
>             Fix For: 4.1, 5.0
>
>         Attachments: LUCENE-4476.patch, LUCENE-4476.patch, LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473951#comment-13473951 ] 

Uwe Schindler commented on LUCENE-4476:
---------------------------------------

top-level: "ant remove-maven-artifacts"
I think the release building scripts and also the deployment scripts should do this first.
                
> maven deployment scripts dont work
> ----------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474077#comment-13474077 ] 

Steven Rowe commented on LUCENE-4476:
-------------------------------------

Also, you can tell {{maven-ant-tasks}} to use an arbitrary {{settings.xml}} file - from [http://maven.apache.org/ant-tasks/usage.html#The_Settings_File]:

{quote}
Since 2.0.6, you can provide access to a settings file anywhere using {{settingsFile}} attribute:

{code:xml}
<artifact:dependencies settingsFile="/opt/maven/conf/settings.xml">
  ...
</artifact:dependencies>
{code}
{quote}
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475067#comment-13475067 ] 

Robert Muir commented on LUCENE-4476:
-------------------------------------

Thanks for working on this! I intended to take a stab at this and got distracted, sorry.

But this looks great, fantastic to remove the settings.xml step! 
Thats the first thing I tripped on, for some reason i didn't before with the alpha/betas...

So if you nest the artifact:pom with the exact location, the deploy target doesnt use localRepository?
Or does maybe it need both?
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474071#comment-13474071 ] 

Robert Muir commented on LUCENE-4476:
-------------------------------------

this deploy task allows you to specify a local repository. i think we should somehow 'install' the artifacts from the RC
into a fresh directory, and then deploy from that?

then there is no possibility of problems I think, unless I am missing something.
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474094#comment-13474094 ] 

Steven Rowe commented on LUCENE-4476:
-------------------------------------

bq. this deploy task allows you to specify a local repository. i think we should somehow 'install' the artifacts from the RC into a fresh directory, and then deploy from that?

The artifacts from the RC are already a local repository, so it should (theoretically :) ) be possible to just point the deploy tasks at it?
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481129#comment-13481129 ] 

Steven Rowe commented on LUCENE-4476:
-------------------------------------

bq. Does this also happen on windows if you sign artifacts with your GPG key?

Yes.

bq. We should do the same here if this is also the case on windows (IF USING WINDOWS...) and also add this warning back to our current codebase for gpg signing too!

+1

bq. updated patch with my suggested improvements.

+1

                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4476.patch, LUCENE-4476.patch, LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481109#comment-13481109 ] 

Robert Muir commented on LUCENE-4476:
-------------------------------------

Seems to work! I nuked .m2 completely before running.
It succeeded and I checked repository.apache.org. Thank you!!!!!

A few minor nits below:

Correct, there was no echoing of password on linux! Though, I'm still concerned here.
Does this also happen on windows if you sign artifacts with your GPG key?
For the 3.6 releases I added the following to sign-artifacts-macro:

{noformat}
<echo>WARNING: IF USING JAVA5 YOUR PASSPHRASE WILL BE ECHOED BACK!!!!!</echo>
<input message="Enter GPG keystore password: >" addproperty="gpg.passphrase">
{noformat}

We should do the same here if this is also the case on windows (IF USING WINDOWS...)
and also add this warning back to our current codebase for gpg signing too! This is really not
a problem except when you dont expect it and people are looking over your shoulder,
then it can be a HUGE hassle.

one minor thing i ran into was that line 1381 redirects output so if it fails you dont know why... this happens e.g. if the
directory is typoed or something.

{noformat}
-Dmaven.dist.dir=~/rc2/lucene

Buildfile: /home/rmuir/workspace/lucene-trunk/lucene/build.xml

clean:

stage-maven-artifacts:

BUILD FAILED
/home/rmuir/workspace/lucene-trunk/lucene/common-build.xml:1381: exec returned: 2

Total time: 0 seconds
{noformat}

I know its redirecting output, just didnt know if there was some simple way instead of
failOnError=true if we could instead fail on a property with the captured output?

                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4476.patch, LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474114#comment-13474114 ] 

Steven Rowe commented on LUCENE-4476:
-------------------------------------

bq. Note that this strategy would write plaintext credentials into the temporary ant file used to deploy.

Scratch that, the temporary ant file could read in the credentials.
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473945#comment-13473945 ] 

Uwe Schindler commented on LUCENE-4476:
---------------------------------------

I think the deployment script should first install the artifacts again on the current machine's ~/.m2 before starting the upload.
                
> maven deployment scripts dont work
> ----------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Rowe updated LUCENE-4476:
--------------------------------

    Attachment: LUCENE-4476.patch

Work in progress:

Credentials are prompted for by default; {{-Dm2.credentials.prompt=false}} will use {{settings.xml}} instead.  I was able to stage a fake 4.1.0-TEST distribution with no {{settings.xml}}.

The patch attempts to point {{<artifact:deploy>}} at the distribution directory via {{<localRepository>}}, but this seems to be ignored - it doesn't look there for POMs it needs.  The process stops when it can't find the {{lucene-parent}} POM.

I think the next thing to try is to explicitly point to all parent POMs via {{<artifact:pom>}}.
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481327#comment-13481327 ] 

Steven Rowe commented on LUCENE-4476:
-------------------------------------

{quote}
bq. Does this also happen on windows if you sign artifacts with your GPG key?

Definitely not! The password is hidden! This is clearly a cygwin issue (and only if you use the cygwin console window). With the official Windows 7 cmd.exe in the official Windows console window the password is not shown. I never use cygwin for builfding on windows, why do you Steven? To run ANT and build artifacts a plain cmd.exe is fine.
{quote}

I agree, Uwe - password hiding with Ant's secure input handler works on Win7 cmd window for me too.  Definitely a cygwin-specific issue.

I use bash under an Xterm, because I feel like it :) - it's the maximally Unix-ish experience on Windows.  Also, when mixing native binaries and Cygwin binaries, it's easier to use Cygwin tools to keep everybody happy from bash.exe, rather than from cmd.exe.  Also, the Xterm window is resizeable (win console has a fixed width) and is more customizable.

{quote}
Ah, also: if you run bash.exe in the official Windows console windows (not cygwin's own), it also works. It's a bug of the dumb cygwin-internal console window only (why do they have it?) - sorry, I have to rant about Cygwin; I use it, too, but only to execute find/sed/grep...
{quote}

(And perl, and python, and .....)

Interesting, I hadn't considered running bash under the windows console.  Of course C:\cygwin\bin\ would have to be on the path.

I agree the cygwin-internal console window is sucky - I never use it.

                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4476.patch, LUCENE-4476.patch, LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474100#comment-13474100 ] 

Robert Muir commented on LUCENE-4476:
-------------------------------------

That would be really nice. I couldnt tell if they were or not looking inside my .m2, but if we can just point this localRepository
at the same stuff passed in the -D then it wouldnt depend on your local machine at all...
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481226#comment-13481226 ] 

Uwe Schindler commented on LUCENE-4476:
---------------------------------------

bq. Does this also happen on windows if you sign artifacts with your GPG key?

Definitely not! The password is hidden! This is clearly a cygwin issue (and only if you use the cygwin console window). With the official Windows 7 cmd.exe in the official Windows console window the password is not shown. I never use cygwin for builfding on windows, why do you Steven? To run ANT and build artifacts a plain cmd.exe is fine.
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4476.patch, LUCENE-4476.patch, LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-4476:
--------------------------------

    Summary: maven deployment scripts dont work (except from the machine you made the RC from)  (was: maven deployment scripts dont work)
    
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474112#comment-13474112 ] 

Steven Rowe commented on LUCENE-4476:
-------------------------------------

bq. the auth stuff could be nested here too maybe as properties rather then needing a settings.xml. we could read that in like GPG

Looks like a {{remoteRepository}} declaration can have nested auth: [http://maven.apache.org/ant-tasks/reference.html#remoteRepository].

Note that this strategy would write plaintext credentials into the temporary ant file used to deploy.

                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473941#comment-13473941 ] 

Robert Muir commented on LUCENE-4476:
-------------------------------------

I edited the comment after Uwe pointed out to me this was an authorization error.

Description shows the error on my mac: this has something to do with parent POMs.

I dont know why it works on my linux box.
                
> maven deployment scripts dont work
> ----------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-4476:
--------------------------------

    Attachment: LUCENE-4476.patch

updated patch with my suggested improvements.
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4476.patch, LUCENE-4476.patch, LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474102#comment-13474102 ] 

Robert Muir commented on LUCENE-4476:
-------------------------------------

the auth stuff could be nested here too maybe as properties rather then needing a settings.xml. we could read that in like GPG
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (LUCENE-4476) maven deployment scripts dont work

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-4476:
--------------------------------

    Description: 
Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)

It worked fine for the 4.0-alpha and 4.0-beta releases.

NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
 
{noformat}
artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
[artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
[artifact:pom] Unable to locate resource in repository
[artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
[artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
[artifact:pom] Unable to locate resource in repository
[artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
[artifact:pom] An error has occurred while processing the Maven artifact tasks.
[artifact:pom]  Diagnosis:
[artifact:pom] 
[artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
[artifact:pom] Unable to download the artifact from any repository

BUILD FAILED

{noformat}

  was:
Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work.

It worked fine for the 4.0-alpha and 4.0-beta releases.

If someone else wants to figure this out and deploy to maven, I'd be grateful. I have no idea where to go here.

NOTE: I plan on sending the announcement friday.
 
{noformat}
stage-maven:
[artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
[artifact:deploy] Deploying to https://repository.apache.org/service/local/staging/deploy/maven2
[artifact:deploy] Uploading: org/apache/lucene/lucene-join/4.0.0/lucene-join-4.0.0.jar to repository apache.releases.https at https://repository.apache.org/service/local/staging/deploy/maven2
[artifact:deploy] Transferring 56K from apache.releases.https
[artifact:deploy] An error has occurred while processing the Maven artifact tasks.
[artifact:deploy]  Diagnosis:
[artifact:deploy] 
[artifact:deploy] Error deploying artifact 'org.apache.lucene:lucene-join:jar': Error deploying artifact: Failed to transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/lucene/lucene-join/4.0.0/lucene-join-4.0.0.jar. Return code is: 401

BUILD FAILED
/home/rmuir/workspace/lucene_solr_4_0/lucene/common-build.xml:1364: The following error occurred while executing this line:
/home/rmuir/workspace/lucene_solr_4_0/lucene/build/stage_maven_build.xml:8: The following error occurred while executing this line:
/home/rmuir/workspace/lucene_solr_4_0/lucene/common-build.xml:443: Error deploying artifact 'org.apache.lucene:lucene-join:jar': Error deploying artifact: Failed to transfer file: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/lucene/lucene-join/4.0.0/lucene-join-4.0.0.jar. Return code is: 401
{noformat}

    
> maven deployment scripts dont work
> ----------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Steven Rowe (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Rowe updated LUCENE-4476:
--------------------------------

    Attachment: LUCENE-4476.patch

{quote}
I think the next thing to try is to explicitly point to all parent POMs via {{<artifact:pom>}}.
{quote}

This patch takes the parent POMs {{<artifact:pom>}} approach, and works for me.

I think this is ready to go.  Robert, can you give it a try?

FYI, the secure input handler on Win7+Cygwin echos the password to the console instead of hiding it - apparently this is a known issue.  Robert, if you give it a try on a non-Windows OS, can you confirm that the password is not echoed?

{quote}
So if you nest the artifact:pom with the exact location, the deploy target doesnt use localRepository?
Or does maybe it need both?
{quote}

AFAICT, the deploy target ignores localRepository entirely - my guess is that, regardless of maven-ant-tasks documentation, only the install target actually respects a specified localRepository.
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4476.patch, LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473967#comment-13473967 ] 

Robert Muir commented on LUCENE-4476:
-------------------------------------

Same for the settings.xml with cleartext password (this caused my initial 401 problem, no way in hell im leaving such a thing around on my computer).

Maybe ant could read the password like it does for GPG and handle this for us?
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work (except from the machine you made the RC from)

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13481228#comment-13481228 ] 

Uwe Schindler commented on LUCENE-4476:
---------------------------------------

Ah, also: if you run bash.exe in the official Windows console windows (not cygwin's own), it also works. It's a bug of the dumb cygwin-internal console window only (why do they have it?) - sorry, I have to rant about Cygwin; I use it, too, but only to execute find/sed/grep...
                
> maven deployment scripts dont work (except from the machine you made the RC from)
> ---------------------------------------------------------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>         Attachments: LUCENE-4476.patch, LUCENE-4476.patch, LUCENE-4476.patch
>
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (LUCENE-4476) maven deployment scripts dont work

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473948#comment-13473948 ] 

Robert Muir commented on LUCENE-4476:
-------------------------------------

Can we not use ~.m2 but a clean fresh directory?

I think its really scary for such scripts to rely upon the local state of my machine: This is too much magic.
                
> maven deployment scripts dont work
> ----------------------------------
>
>                 Key: LUCENE-4476
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4476
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> Currently the maven process described in http://wiki.apache.org/lucene-java/PublishMavenArtifacts does not work (on mac)
> It worked fine for the 4.0-alpha and 4.0-beta releases.
> NOTE: This appears to be working on linux so I am going with that. But this seems strange it doesnt work on mac.
>  
> {noformat}
> artifact:install-provider] Installing provider: org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-7:runtime
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository sonatype.releases at http://oss.sonatype.org/content/repositories/releases
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
> [artifact:pom] Downloading: org/apache/lucene/lucene-parent/4.0.0/lucene-parent-4.0.0.pom from repository central at http://repo1.maven.org/maven2
> [artifact:pom] Unable to locate resource in repository
> [artifact:pom] [INFO] Unable to find resource 'org.apache.lucene:lucene-parent:pom:4.0.0' in repository central (http://repo1.maven.org/maven2)
> [artifact:pom] An error has occurred while processing the Maven artifact tasks.
> [artifact:pom]  Diagnosis:
> [artifact:pom] 
> [artifact:pom] Unable to initialize POM lucene-test-framework-4.0.0.pom: Cannot find parent: org.apache.lucene:lucene-parent for project: org.apache.lucene:lucene-test-framework:jar:null for project org.apache.lucene:lucene-test-framework:jar:null
> [artifact:pom] Unable to download the artifact from any repository
> BUILD FAILED
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org