jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven Evangelism
  • MEV-640

Central repository containing bad pom and missing artifact

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Resolution: Won't Fix
  • Component/s: Dependencies
  • Labels:
    None
  • Group ID:
    javax.xml.soap
  • Artifact ID:
    saaj-api
  • Version:
    1.3

Description

I have a pom with the following dependency:
<dependencies>
<dependency>
<groupId>javax.xml.soap</groupId>
<artifactId>saaj-api</artifactId>
<version>1.3</version>
</dependency>
</dependencies>

This artifact is located in the maven central repository:
http://repo1.maven.org/maven2/javax/xml/soap/saaj-api/1.3

When Maven tries to download this artifact, it also tries to download the transitive dependency and fails with the following missing artifact:

Missing:
----------
1) javax.activation:activation:jar:1.0.2

Try downloading the file manually from:
http://java.sun.com/products/javabeans/glasgow/jaf.html

Then, install it using the command:
mvn install:install-file -DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) maven.test:saaj-dependency:jar:1.0
2) javax.xml.soap:saaj-api:jar:1.3
3) javax.activation:activation:jar:1.0.2

----------
1 required artifact is missing.

for artifact:
maven.test:saaj-dependency:jar:1.0

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

If you take a look at http://repo1.maven.org/maven2/activation/activation/1.0.2/, it's missing the jar.

The correct dependency in saaj-api should be:

<dependency>
<!-- 1.0.2 would do, but that's not available in the repository -->
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1</version>
</dependency>

Activity

  • All
  • Comments
  • History
  • Activity
Hide
Permalink
Juven Xu added a comment - 20/Oct/10 8:58 AM

1. we don't update POM since that might break people's builds
2. activation-1.0.2.jar is not there because of license issue

Show
Juven Xu added a comment - 20/Oct/10 8:58 AM 1. we don't update POM since that might break people's builds 2. activation-1.0.2.jar is not there because of license issue

People

  • Assignee:
    Juven Xu
    Reporter:
    Jane Young
Vote (0)
Watch (0)

Dates

  • Created:
    26/Oct/09 8:11 AM
    Updated:
    20/Oct/10 8:58 AM
    Resolved:
    20/Oct/10 8:58 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.