You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Bengt-Erik Fr?berg (JIRA)" <ji...@codehaus.org> on 2005/12/27 17:10:58 UTC

[jira] Created: (MPREPO-12) Repository plugin should not publish and upload unless all dependencies exist in repository

Repository plugin should not publish and upload unless all dependencies exist in repository
-------------------------------------------------------------------------------------------

         Key: MPREPO-12
         URL: http://jira.codehaus.org/browse/MPREPO-12
     Project: maven-repository-plugin
        Type: Improvement

 Environment: Windows XP, Java 1.5
    Reporter: Bengt-Erik Fröberg


Today there are a lot of errors and non-available transitive dependencies in some POMs. This result in failed builds etc from the Maven2 environment, and makes one of Mavens top features, handling of dependencies, worthless.
repository:bundle-create should check that the dependencies of the project are valid and exist in repository.
After this validation, the bundle can be created and uploaded. This would prevent a lot of annoying warnings, not-founds and broken dependencies.
Better the goal is aborted with a message to fix the dependencies of the bundle you want to publish. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MPREPO-12) Repository plugin should not publish and upload unless all dependencies exist in repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPREPO-12?page=comments#action_54322 ] 

Brett Porter commented on MPREPO-12:
------------------------------------

http://maven.apache.org/guides/mini/guide-maven-evangelism.html

> Repository plugin should not publish and upload unless all dependencies exist in repository
> -------------------------------------------------------------------------------------------
>
>          Key: MPREPO-12
>          URL: http://jira.codehaus.org/browse/MPREPO-12
>      Project: maven-repository-plugin
>         Type: Improvement

>  Environment: Windows XP, Java 1.5
>     Reporter: Bengt-Erik Fröberg
>     Assignee: Brett Porter

>
>
> Today there are a lot of errors and non-available transitive dependencies in some POMs. This result in failed builds etc from the Maven2 environment, and makes one of Mavens top features, handling of dependencies, worthless.
> repository:bundle-create should check that the dependencies of the project are valid and exist in repository.
> After this validation, the bundle can be created and uploaded. This would prevent a lot of annoying warnings, not-founds and broken dependencies.
> Better the goal is aborted with a message to fix the dependencies of the bundle you want to publish. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MPREPO-12) Repository plugin should not publish and upload unless all dependencies exist in repository

Posted by "Bengt-Erik Fr?berg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPREPO-12?page=comments#action_54318 ] 

Bengt-Erik Fröberg commented on MPREPO-12:
------------------------------------------

So the repository manager is taking care of this issue?

About the sun jars: I don't mind installing them manually, because it's the deal when it comes to sun jars and this is clearly stated in the docs.

'what bothers me is things like

required artifacts missing:
  generama:qdox:jar:20051211.114207
  xpp3:xpp3:jar:1.1.3.4-RC8_min
  groovy:groovy-all:jar:1.0-jsr-04
  xdoclet-plugins:xdoclet-plugin-qtags:jar:${pom.currentVersion}
  freemarker:freemarker:jar:2.3

A quick check tells me that 
directory generama/qdox does not exist and probably never will exist in repository
file groovy/groovy-all/1.0-jsr-04 does not exist in repository
file freemarker/freemarker/ hasn't got a 2.3 directory in repository

but still someone has been allowed to upload a version/POM/whatever that depends on them.
I might add that my POM is very(!) simple, no fancy stuff there, just the latest version of xdoclet2/xdoclet-hibernate-plugin.

So now I add an issue to JIRA and a patch correcting this?





> Repository plugin should not publish and upload unless all dependencies exist in repository
> -------------------------------------------------------------------------------------------
>
>          Key: MPREPO-12
>          URL: http://jira.codehaus.org/browse/MPREPO-12
>      Project: maven-repository-plugin
>         Type: Improvement

>  Environment: Windows XP, Java 1.5
>     Reporter: Bengt-Erik Fröberg
>     Assignee: Brett Porter

>
>
> Today there are a lot of errors and non-available transitive dependencies in some POMs. This result in failed builds etc from the Maven2 environment, and makes one of Mavens top features, handling of dependencies, worthless.
> repository:bundle-create should check that the dependencies of the project are valid and exist in repository.
> After this validation, the bundle can be created and uploaded. This would prevent a lot of annoying warnings, not-founds and broken dependencies.
> Better the goal is aborted with a message to fix the dependencies of the bundle you want to publish. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MPREPO-12) Repository plugin should not publish and upload unless all dependencies exist in repository

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPREPO-12?page=comments#action_54297 ] 

Brian Fox commented on MPREPO-12:
---------------------------------

First comment on the warnings etc, that is annoying, but there is a fix for 2.0.2 that will ignore warnings in dependencies. Since you don't have control over them, there is no point in telling you about them.

On the other issue, I can give you a real example:
I run the cewolf project on sourceforge. I took it over when the previous admin disappeared. cewolf is dependent on (among other things) jfreechart. Jfreechart is dependent on gnujaxp.  Now I can go and upload cewolf to ibiblio and I go a step further and upload jfreechart to ibiblio also. Besides gnujaxp, all the other dependencies are on ibiblio. Now if someone wants to use cewolf, they list it in their pom, it finds jfc and then eventually fails on gnujaxp. But it TELLS them what version of gnujaxp it wants. They must put this into their repo manually. (i provide scripts to do it for them as part the cewolf source but that's besides the point). What you are saying is that because this one dependency is not in ibiblio, neither cewolf, nor jfc should be allowed on ibiblio.

If that were the case, what happens if someone wants to use cewolf anyway? Now they need to find it and install it. Then they need to figure out what dependencies it has (because it's not on ibiblio, it presumably won't have a pom to tell you..just because its on ibiblio doesn't mean it's built with maven, it just means someone took the time to figure it out already and share it). When they figure out jfc, now they need to go install that too (and dependencies, etc). How is that easier than just having to find gnujaxp (especially since it tells you what it needs and what version it is)?

This whole thing avoids the fact that many things are dependent on sun jars that can't be on ibiblio. Does that mean none of them can ever be there? It just doesn't seem to help anything. In a perfect world, everyone would use maven and upload their stuff, but that's never going to happen so I would rather find something is 95% in there than 0%.

BTW, this jira is under an M1 component, it should be in the 2.x stuff.


> Repository plugin should not publish and upload unless all dependencies exist in repository
> -------------------------------------------------------------------------------------------
>
>          Key: MPREPO-12
>          URL: http://jira.codehaus.org/browse/MPREPO-12
>      Project: maven-repository-plugin
>         Type: Improvement

>  Environment: Windows XP, Java 1.5
>     Reporter: Bengt-Erik Fröberg

>
>
> Today there are a lot of errors and non-available transitive dependencies in some POMs. This result in failed builds etc from the Maven2 environment, and makes one of Mavens top features, handling of dependencies, worthless.
> repository:bundle-create should check that the dependencies of the project are valid and exist in repository.
> After this validation, the bundle can be created and uploaded. This would prevent a lot of annoying warnings, not-founds and broken dependencies.
> Better the goal is aborted with a message to fix the dependencies of the bundle you want to publish. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MPREPO-12) Repository plugin should not publish and upload unless all dependencies exist in repository

Posted by "Bengt-Erik Fr?berg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPREPO-12?page=comments#action_54294 ] 

Bengt-Erik Fröberg commented on MPREPO-12:
------------------------------------------

Hi!
Can you explain "If you have a project foo that depends on 10 things in ibiblio, but 1 that isn't , it shouldn't be able to be deployed?"
If foo depends on the 10 projects, the 10 projects must be good, and at least exist in repository. What do you mean "1 that isn't?"
The way I see it, if 3 of foo's dependencies are broken, and say 2 dependencies of the dependencies are broken, you might as well download all the libraries yourself, Maven2 does no good.
If developer Bar wants too deploy foo with the absolute latest whoppety-whippety-version of some dependency that is released in some obscure website, but not in maven repository, then I think he/she should be stopped until this dependency exist in repository. It is very much in his/her interest as well to get the code into immediate production. Why else bother to code anything?
It is far from satisfying to work with broken dependencies in POMs, 'WARNING's and 'relocated' all over the place, or even dependencies that exist in som /pub/-directory under ibiblio, but not at the POMed location. Why even bother to put them there when they have got to be manually installed?

If the developers deploying to maven repository cannot check theit own goods, well then maven must do it. To take the approach that the users report and patch to JIRA in order to correct things seems like an awkvards solution. Like selling cars and let the drivers walk with the broken clutch or steering-wheel on Route66 and leave them in the nearest car service. Why not try to deliver the car as perfect as possible?

As I see it, this is a crucial functionality for Maven2 impact on the developer community beyond the Happy Home Hacker that likes to solve obscure and inexplicable problems for hours on end. For the commercial developer, this is no option, and as I believe Maven2 should and want to be called a professional tool this must be solved.



> Repository plugin should not publish and upload unless all dependencies exist in repository
> -------------------------------------------------------------------------------------------
>
>          Key: MPREPO-12
>          URL: http://jira.codehaus.org/browse/MPREPO-12
>      Project: maven-repository-plugin
>         Type: Improvement

>  Environment: Windows XP, Java 1.5
>     Reporter: Bengt-Erik Fröberg

>
>
> Today there are a lot of errors and non-available transitive dependencies in some POMs. This result in failed builds etc from the Maven2 environment, and makes one of Mavens top features, handling of dependencies, worthless.
> repository:bundle-create should check that the dependencies of the project are valid and exist in repository.
> After this validation, the bundle can be created and uploaded. This would prevent a lot of annoying warnings, not-founds and broken dependencies.
> Better the goal is aborted with a message to fix the dependencies of the bundle you want to publish. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (MPREPO-12) Repository plugin should not publish and upload unless all dependencies exist in repository

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPREPO-12?page=all ]
     
Brett Porter closed MPREPO-12:
------------------------------

     Assign To: Brett Porter
    Resolution: Won't Fix

this is being taken care of in the repository manager.

> Repository plugin should not publish and upload unless all dependencies exist in repository
> -------------------------------------------------------------------------------------------
>
>          Key: MPREPO-12
>          URL: http://jira.codehaus.org/browse/MPREPO-12
>      Project: maven-repository-plugin
>         Type: Improvement

>  Environment: Windows XP, Java 1.5
>     Reporter: Bengt-Erik Fröberg
>     Assignee: Brett Porter

>
>
> Today there are a lot of errors and non-available transitive dependencies in some POMs. This result in failed builds etc from the Maven2 environment, and makes one of Mavens top features, handling of dependencies, worthless.
> repository:bundle-create should check that the dependencies of the project are valid and exist in repository.
> After this validation, the bundle can be created and uploaded. This would prevent a lot of annoying warnings, not-founds and broken dependencies.
> Better the goal is aborted with a message to fix the dependencies of the bundle you want to publish. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MPREPO-12) Repository plugin should not publish and upload unless all dependencies exist in repository

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPREPO-12?page=comments#action_54286 ] 

Brian Fox commented on MPREPO-12:
---------------------------------

I disagree with this. If you have a project foo that depends on 10 things in ibiblio, but 1 that isn't , it shouldn't be able to be deployed? So in that case if someone wants to use foo, they not only have to figure out the dependencies themselves, they now have to install foo AND go install the 1 missing dependency. The way it is now, they just have to install the 1 missing dependency. I don't see how this change would actually make things better, it would make it harder.

> Repository plugin should not publish and upload unless all dependencies exist in repository
> -------------------------------------------------------------------------------------------
>
>          Key: MPREPO-12
>          URL: http://jira.codehaus.org/browse/MPREPO-12
>      Project: maven-repository-plugin
>         Type: Improvement

>  Environment: Windows XP, Java 1.5
>     Reporter: Bengt-Erik Fröberg

>
>
> Today there are a lot of errors and non-available transitive dependencies in some POMs. This result in failed builds etc from the Maven2 environment, and makes one of Mavens top features, handling of dependencies, worthless.
> repository:bundle-create should check that the dependencies of the project are valid and exist in repository.
> After this validation, the bundle can be created and uploaded. This would prevent a lot of annoying warnings, not-founds and broken dependencies.
> Better the goal is aborted with a message to fix the dependencies of the bundle you want to publish. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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