You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steven Rowe (JIRA)" <ji...@apache.org> on 2012/09/04 17:58:07 UTC

[jira] [Created] (LUCENE-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

Steven Rowe created LUCENE-4358:
-----------------------------------

             Summary: Maven build should never download internal dependencies' artifacts from Apache snapshot repository
                 Key: LUCENE-4358
                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
             Project: Lucene - Core
          Issue Type: Bug
          Components: general/build
    Affects Versions: 5.0, 4.0
            Reporter: Steven Rowe
            Assignee: Steven Rowe
            Priority: Minor


The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Steven Rowe updated LUCENE-4358:
--------------------------------

    Attachment: LUCENE-4358.patch

Patch removing Apache snapshot repo from the grandparent POM
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Steven Rowe commented on LUCENE-4358:
-------------------------------------

bq. I think we should revert the grandparent-pom change. The issue is solved for the maven validation task by redefining the snapshot reposity to be local.

Uwe, I agree - I've reverted, and added the {{<snapshots><enabled>false</enabled></snapshots>}} bit from your maven-ant-tasks configuration, so that the Apache snapshot repo won't be contacted at all.
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler commented on LUCENE-4358:
---------------------------------------

Please revert this commit, as this makes (once we deploy to maven central) disabled the ability for users to use snapshots. We should better add a sysprop or similar to the local maven config in ANT/MAVEN builds to disable snapshots globally.
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Robert Muir commented on LUCENE-4358:
-------------------------------------

complains as in warns or complains as in fails? :)
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Steven Rowe resolved LUCENE-4358.
---------------------------------

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

committed:

- trunk: r1380725
- branch_4x: r1380729
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler commented on LUCENE-4358:
---------------------------------------

See: http://jira.codehaus.org/browse/MANTTASKS-20
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler commented on LUCENE-4358:
---------------------------------------

Hi Steve,

I think we should revert the grandparent-pom change. The issue is solved for the maven validation task by redefining the snapshot reposity to be local.
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler commented on LUCENE-4358:
---------------------------------------

I think the problem is now 2fold:

- With your commit you disabled snapshot artifact download for maven users outside
- Your commit did not change the POM file in repo1.maven.org, so maven still downloads the internet when resolving lucene-local artifacts.
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Steven Rowe commented on LUCENE-4358:
-------------------------------------

bq.  Your commit did not change the POM file in repo1.maven.org, so maven still downloads the internet when resolving lucene-local artifacts.

Building Lucene/Solr via Maven, when the {{<version>}} is {{something-SNAPSHOT}}, will not pull any Lucene/Solr artifacts from Maven Central, since it doesn't host snapshots.
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Steven Rowe commented on LUCENE-4358:
-------------------------------------

bq. this makes (once we deploy to maven central) disabled the ability for users to use snapshots. 

Not true: users can just declare the snapshot repo in their own POMs (IMHO more correct anyway).

However, the Apache POM, declared as parent of Lucene/Solr POM, declares the Apache snapshot repository: [http://repo1.maven.org/maven2/org/apache/apache/10/apache-10.pom]:

{code:xml}
<repositories>
  <repository>
    <id>apache.snapshots</id>
    <name>Apache Snapshot Repository</name>
    <url>http://repository.apache.org/snapshots</url>
    <releases>
      <enabled>false</enabled>
    </releases>
  </repository>
</repositories>
{code}

As a result, the change I committed has likely only had one effect: updates will now be {{daily}} (the default), rather than {{never}}, which is what I removed.

So I agree that we should either revert (to get back the {{never}} snapshot repo update setting, which is better than {{daily}}), or figure out how to disable the Apache snapshot repo while still declaring the Apache POM as parent.
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler commented on LUCENE-4358:
---------------------------------------

Ah thanks, so this fixes my issue. I was playing around with other crazy opts passed to the mvn:dependency task in ANT...
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>
> The Apache snapshot repo should be removed from the POMs

--
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] [Reopened] (LUCENE-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler reopened LUCENE-4358:
-----------------------------------


I updated SVN, cleaned all maven poms from WC, and I still see this:

{noformat}
dist-maven-common:
[artifact:dependencies] [INFO] snapshot org.apache.lucene:lucene-test-framework:5.0-SNAPSHOT: checking for updates from apache.snaps
hots
[artifact:dependencies] Downloading: org/apache/lucene/lucene-test-framework/5.0-SNAPSHOT/lucene-test-framework-5.0-20120903.170359-
49.pom from repository apache.snapshots at http://repository.apache.org/snapshots
[artifact:dependencies] [INFO] snapshot org.apache.lucene:lucene-core:5.0-SNAPSHOT: checking for updates from apache.snapshots
[artifact:dependencies] [INFO] snapshot org.apache.lucene:lucene-core:5.0-SNAPSHOT: checking for updates from sonatype.releases
[artifact:dependencies] Downloading: org/apache/lucene/lucene-core/5.0-SNAPSHOT/lucene-core-5.0-20120903.170333-49.pom from reposito
ry apache.snapshots at http://repository.apache.org/snapshots
{noformat}
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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] [Comment Edited] (LUCENE-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler edited comment on LUCENE-4358 at 9/5/12 8:12 AM:
---------------------------------------------------------------

{noformat}
validate-maven:
[artifact:dependencies] [INFO] snapshot org.apache.lucene:lucene-core:5.0-SNAPSHOT: checking for updates from sonatype.releases
[artifact:dependencies] Downloading: org/apache/lucene/lucene-core/5.0-SNAPSHOT/lucene-core-5.0-SNAPSHOT.pom from repository sonatyp
e.releases at http://oss.sonatype.org/content/repositories/releases
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.apache.lucene:lucene-core:pom:5.0-SNAPSHOT' in repository sonatype.relea
ses (http://oss.sonatype.org/content/repositories/releases)
[artifact:dependencies] Downloading: org/apache/lucene/lucene-core/5.0-SNAPSHOT/lucene-core-5.0-SNAPSHOT.jar from repository sonatyp
e.releases at http://oss.sonatype.org/content/repositories/releases
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT' in repository sonatype.relea
ses (http://oss.sonatype.org/content/repositories/releases)
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies]   Then, install it using the command:
[artifact:dependencies]       mvn install:install-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=5.0-SNAPSHOT -
Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=5.0-SNAPSHOT -Dp
ackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies]   Path to dependency:
[artifact:dependencies]         1) org.apache.lucene:lucene-test-framework:jar:5.0-SNAPSHOT
[artifact:dependencies]         2) org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies]   org.apache.lucene:lucene-test-framework:jar:5.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   apache.snapshots (http://repository.apache.org/snapshots),
[artifact:dependencies]   central (http://repo1.maven.org/maven2),
[artifact:dependencies]   sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies]
{noformat}

(this is from Robert's task, happens in "ant generate-maven-artifacts". This means, it deploys the artifact before but then fails when testing the dependcies task.

Maybe you apply Robert's patch and add my fix posted above and try. :-) You are the better maven guy...
                
      was (Author: thetaphi):
    {noformat}
validate-maven:
[artifact:dependencies] [INFO] snapshot org.apache.lucene:lucene-core:5.0-SNAPSHOT: checking for updates from sonatype.releases
[artifact:dependencies] Downloading: org/apache/lucene/lucene-core/5.0-SNAPSHOT/lucene-core-5.0-SNAPSHOT.pom from repository sonatyp
e.releases at http://oss.sonatype.org/content/repositories/releases
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.apache.lucene:lucene-core:pom:5.0-SNAPSHOT' in repository sonatype.relea
ses (http://oss.sonatype.org/content/repositories/releases)
[artifact:dependencies] Downloading: org/apache/lucene/lucene-core/5.0-SNAPSHOT/lucene-core-5.0-SNAPSHOT.jar from repository sonatyp
e.releases at http://oss.sonatype.org/content/repositories/releases
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT' in repository sonatype.relea
ses (http://oss.sonatype.org/content/repositories/releases)
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies]   Then, install it using the command:
[artifact:dependencies]       mvn install:install-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=5.0-SNAPSHOT -
Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=5.0-SNAPSHOT -Dp
ackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies]   Path to dependency:
[artifact:dependencies]         1) org.apache.lucene:lucene-test-framework:jar:5.0-SNAPSHOT
[artifact:dependencies]         2) org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies]   org.apache.lucene:lucene-test-framework:jar:5.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   apache.snapshots (http://repository.apache.org/snapshots),
[artifact:dependencies]   central (http://repo1.maven.org/maven2),
[artifact:dependencies]   sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies]
{noformat}

(this is from Robert's task)
                  
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler commented on LUCENE-4358:
---------------------------------------

What we can do is disable the reporitory in the ant task <artifact:dependencies/> at all (you can do this by adding a dummy apache.snapshots repository there and disable everything?). This should work?

The porblem: There is an Maven-Ant-Tasks issue open that says, the "never" is ignored somehow by maven-ant-tasks.
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Steven Rowe resolved LUCENE-4358.
---------------------------------

    Resolution: Fixed
    
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler commented on LUCENE-4358:
---------------------------------------

{noformat}
validate-maven:
[artifact:dependencies] [INFO] snapshot org.apache.lucene:lucene-core:5.0-SNAPSHOT: checking for updates from sonatype.releases
[artifact:dependencies] Downloading: org/apache/lucene/lucene-core/5.0-SNAPSHOT/lucene-core-5.0-SNAPSHOT.pom from repository sonatyp
e.releases at http://oss.sonatype.org/content/repositories/releases
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.apache.lucene:lucene-core:pom:5.0-SNAPSHOT' in repository sonatype.relea
ses (http://oss.sonatype.org/content/repositories/releases)
[artifact:dependencies] Downloading: org/apache/lucene/lucene-core/5.0-SNAPSHOT/lucene-core-5.0-SNAPSHOT.jar from repository sonatyp
e.releases at http://oss.sonatype.org/content/repositories/releases
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT' in repository sonatype.relea
ses (http://oss.sonatype.org/content/repositories/releases)
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies]   Then, install it using the command:
[artifact:dependencies]       mvn install:install-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=5.0-SNAPSHOT -
Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=org.apache.lucene -DartifactId=lucene-core -Dversion=5.0-SNAPSHOT -Dp
ackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies]   Path to dependency:
[artifact:dependencies]         1) org.apache.lucene:lucene-test-framework:jar:5.0-SNAPSHOT
[artifact:dependencies]         2) org.apache.lucene:lucene-core:jar:5.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies]   org.apache.lucene:lucene-test-framework:jar:5.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   apache.snapshots (http://repository.apache.org/snapshots),
[artifact:dependencies]   central (http://repo1.maven.org/maven2),
[artifact:dependencies]   sonatype.releases (http://oss.sonatype.org/content/repositories/releases)
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies]
{noformat}

(this is from Robert's task)
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

--
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-4358) Maven build should never download internal dependencies' artifacts from Apache snapshot repository

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

Uwe Schindler commented on LUCENE-4358:
---------------------------------------

I changed the following in Robert's patch of common-build.xml:

{code:xml}
      <artifact:dependencies filesetId="maven.fileset" useScope="test" type="jar">
        <artifact:pom file="@{pom.xml}"/>
        <remoteRepository id="apache.snapshots" url="http://repository.apache.org/snapshots">
          <snapshots enabled="false" updatePolicy="never"/>
          <releases enabled="false"/>
        </remoteRepository>
      </artifact:dependencies>
{code}

Now it does not download anymore, but it complains now while resolving dependecies, that the artifact with -SNAPSHOT is not found, although it should be in local reposoitory (of course I nuked ~/.m2 before testing).
                
> Maven build should never download internal dependencies' artifacts from Apache snapshot repository
> --------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4358
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4358
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: general/build
>    Affects Versions: 5.0, 4.0
>            Reporter: Steven Rowe
>            Assignee: Steven Rowe
>            Priority: Minor
>             Fix For: 5.0, 4.0
>
>         Attachments: LUCENE-4358.patch
>
>
> The Apache snapshot repo should be removed from the POMs

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