On Mar 10, 2010, at 8:47 AM, Ron Wheeler wrote: > Jason van Zyl wrote: >> On Mar 10, 2010, at 8:32 AM, Ron Wheeler wrote: >> >> >>> Anders Hammar wrote: >>> >>>> Eh, not sure what you mean. Are you asking where in the Maven docs it is >>>> stated that the pom should be correct? I think that would go without >>>> saying, >>>> don't you? A default pom is most likely never correct, as think Jason said >>>> earlier in this thread. >>>> >>>> >>> Cute but not likely the issue. I think we can take correct POMs as a given >>> >>> >> >> If it is in Maven Central it will be correct from now on. But there are many >> POMs that are not correct and what Anders is referring to are the generated >> POMs when you install 3rd party dependencies into your own local >> repositories. Those are almost certainly incorrect. Unless the artifacts you >> are installing have no dependencies then they are wrong. It's a stop gap and >> we probably shouldn't even allow it anymore. >> >> >>> Where does the documentation describe how to make a POM for a 3rd party >>> module and why that is worth doing. >>> >> >> For anything going into Central the document is here: >> >> http://maven.apache.org/guides/mini/guide-central-repository-upload.html >> >> You should really follow the same procedure we follow there. >> > It does not really address the problem since I am not trying to put something > into Maven Central and I do not own the domain of the groupId or really care > about any of the other stuff. >
Feel free to ignore our advice. If you're never going to share the artifacts or work with anything else then it doesn't matter. If you plan to actually share the build with anyone else it will likely matter. > It probably would be a good idea to have a page that just discussed the issue > of how to create a POM for your own use that describes some third party > package. There is no automatic way, you need to know the dependencies and list them in your POM. We'll take patches. Documentation from new users is often the most helpful to other users. > It is probably a trivial page but try to find the page mentioned above by > Googling for "Maven 3rd party POM" or some other likely search string. > We could just point back to the document I pointed you at. Those are really the minimum requirements for artifacts that instead to go beyond a personal/local scope. > Ron > >>> What is the minimum info required? What are the optional things that you >>> should try to add for a module that is open source and for one that is not? >>> >>> Ron >>> >>>> /Anders >>>> >>>> On Wed, Mar 10, 2010 at 13:46, Ron Wheeler >>>> <[email protected]>wrote: >>>> >>>> >>>>> Anders Hammar wrote: >>>>> >>>>> >>>>>> Nexus is good, but it can't do magic. It will not solve the fact that >>>>>> there >>>>>> are no poms/metadata and therefore no dependencies info. You still need >>>>>> to >>>>>> fix that yourself. >>>>>> I'm not a fan of just uploading the jars and using the default pom (no >>>>>> dependency info) as it will break Maven's dependency management. >>>>>> Artifacts >>>>>> like this will make Maven "look bad" and take away some of the pleasure >>>>>> working with Maven. >>>>>> >>>>>> Please invest in creating correct poms. If the source/project is open >>>>>> source >>>>>> it shouldn't be too hard. >>>>>> >>>>>> >>>>>> >>>>> Where is that documented/mentioned in the Maven docs? >>>>> >>>>> Ron >>>>> >>>>> >>>>>> /Anders >>>>>> >>>>>> On Wed, Mar 10, 2010 at 01:08, Ron Wheeler >>>>>> <[email protected]>wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> I can recommend that you install the Nexus repository. >>>>>>> You can easily upload libraries like Language Tool and it will find it >>>>>>> right away. >>>>>>> >>>>>>> It has a lot of other benefits as well and makes using Maven much more >>>>>>> pleasant. >>>>>>> >>>>>>> It can proxy all the other repos that you use and that makes you >>>>>>> workstation setup very easy - just configure your Nexus as a mirror of >>>>>>> all >>>>>>> other repositories. Maven will only ask one place. You can add a new >>>>>>> foreign >>>>>>> repository to your Nexus configuration and immediately it available to >>>>>>> all >>>>>>> your developers. >>>>>>> >>>>>>> The Community version is free and is very easy to install. >>>>>>> >>>>>>> I have only had mine running for the past few months and wish I had done >>>>>>> it >>>>>>> 2 years ago. >>>>>>> >>>>>>> Ron >>>>>>> >>>>>>> >>>>>>> Ken Egervari wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hi, I am using a library called Language tool. Since it does not have a >>>>>>>> maven repository anywhere, I had to make a local one for it. >>>>>>>> >>>>>>>> Unfortunately, every time I execute any maven task, Maven will check >>>>>>>> all >>>>>>>> the >>>>>>>> repositories for updated copies. This process can be rather slow and >>>>>>>> I'd >>>>>>>> rather maven just skipped it for these locally added libraries. This is >>>>>>>> what >>>>>>>> it spits out. How do I stop it? >>>>>>>> >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.springsource.com/maven/bundles/release/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:languagetool: >>>>>>>> pom:1.0.0' in repository com.springsource.repository.bundles.release ( >>>>>>>> http://repository.springsource.com/maven/bundles/release) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://maven.springframework.org/milestone/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:languagetool:pom:1.0.0' in >>>>>>>> repository Springframework milestone ( >>>>>>>> http://maven.springframework.org/milestone) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.jboss.com/maven2/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:languagetool:pom:1.0.0' in >>>>>>>> repository jboss (http://repository.jboss.com/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://snapshots.jboss.org/maven2/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:languagetool:pom:1.0.0' in >>>>>>>> repository snapshots.jboss.org (http://snapshots.jboss.org/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repo1.maven.org/maven2/languagetool/languagetool/1.0.0/languagetool-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:languagetool:pom:1.0.0' in >>>>>>>> repository central (http://repo1.maven.org/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.springsource.com/maven/bundles/release/languagetool/resource/1.0.0/resource-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in >>>>>>>> repository com.springsource.repository.bundles.release ( >>>>>>>> http://repository.springsource.com/maven/bundles/release) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://maven.springframework.org/milestone/languagetool/resource/1.0.0/resource-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in >>>>>>>> repository Springframework milestone ( >>>>>>>> http://maven.springframework.org/milestone) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.jboss.com/maven2/languagetool/resource/1.0.0/resource-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in >>>>>>>> repository jboss (http://repository.jboss.com/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://snapshots.jboss.org/maven2/languagetool/resource/1.0.0/resource-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in >>>>>>>> repository snapshots.jboss.org (http://snapshots.jboss.org/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repo1.maven.org/maven2/languagetool/resource/1.0.0/resource-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:resource:pom:1.0.0' in >>>>>>>> repository central (http://repo1.maven.org/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.springsource.com/maven/bundles/release/languagetool/rules/1.0.0/rules-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:rules:pom:1.0.0' in >>>>>>>> repository >>>>>>>> com.springsource.repository.bundles.release ( >>>>>>>> http://repository.springsource.com/maven/bundles/release) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://maven.springframework.org/milestone/languagetool/rules/1.0.0/rules-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:rules:pom:1.0.0' in >>>>>>>> repository >>>>>>>> Springframework milestone (http://maven.springframework.org/milestone) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.jboss.com/maven2/languagetool/rules/1.0.0/rules-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:rules:pom:1.0.0' in >>>>>>>> repository >>>>>>>> jboss (http://repository.jboss.com/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> http://snapshots.jboss.org/maven2/languagetool/rules/1.0.0/rules-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:rules:pom:1.0.0' in >>>>>>>> repository >>>>>>>> snapshots.jboss.org (http://snapshots.jboss.org/maven2) >>>>>>>> Downloading: >>>>>>>> http://repo1.maven.org/maven2/languagetool/rules/1.0.0/rules-1.0.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:rules:pom:1.0.0' in >>>>>>>> repository >>>>>>>> central (http://repo1.maven.org/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.springsource.com/maven/bundles/release/languagetool/segment/1.3.0/segment-1.3.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:segment:pom:1.3.0' in >>>>>>>> repository com.springsource.repository.bundles.release ( >>>>>>>> http://repository.springsource.com/maven/bundles/release) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://maven.springframework.org/milestone/languagetool/segment/1.3.0/segment-1.3.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:segment:pom:1.3.0' in >>>>>>>> repository Springframework milestone ( >>>>>>>> http://maven.springframework.org/milestone) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.jboss.com/maven2/languagetool/segment/1.3.0/segment-1.3.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:segment:pom:1.3.0' in >>>>>>>> repository jboss (http://repository.jboss.com/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://snapshots.jboss.org/maven2/languagetool/segment/1.3.0/segment-1.3.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:segment:pom:1.3.0' in >>>>>>>> repository snapshots.jboss.org (http://snapshots.jboss.org/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> http://repo1.maven.org/maven2/languagetool/segment/1.3.0/segment-1.3.0.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:segment:pom:1.3.0' in >>>>>>>> repository central (http://repo1.maven.org/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.springsource.com/maven/bundles/release/languagetool/morfologik/1.2.1/morfologik-1.2.1.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:morfologik:pom:1.2.1' in >>>>>>>> repository com.springsource.repository.bundles.release ( >>>>>>>> http://repository.springsource.com/maven/bundles/release) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://maven.springframework.org/milestone/languagetool/morfologik/1.2.1/morfologik-1.2.1.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:morfologik:pom:1.2.1' in >>>>>>>> repository Springframework milestone ( >>>>>>>> http://maven.springframework.org/milestone) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repository.jboss.com/maven2/languagetool/morfologik/1.2.1/morfologik-1.2.1.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:morfologik:pom:1.2.1' in >>>>>>>> repository jboss (http://repository.jboss.com/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://snapshots.jboss.org/maven2/languagetool/morfologik/1.2.1/morfologik-1.2.1.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:morfologik:pom:1.2.1' in >>>>>>>> repository snapshots.jboss.org (http://snapshots.jboss.org/maven2) >>>>>>>> Downloading: >>>>>>>> >>>>>>>> >>>>>>>> http://repo1.maven.org/maven2/languagetool/morfologik/1.2.1/morfologik-1.2.1.pom >>>>>>>> [INFO] Unable to find resource 'languagetool:morfologik:pom:1.2.1' in >>>>>>>> repository central (http://repo1.maven.org/maven2) >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> --------------------------------------------------------------------- >>>>>>> To unsubscribe, e-mail: [email protected] >>>>>>> For additional commands, e-mail: [email protected] >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: [email protected] >>>>> For additional commands, e-mail: [email protected] >>>>> >>>>> >>>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >> >> Thanks, >> >> Jason >> >> ---------------------------------------------------------- >> Jason van Zyl >> Founder, Apache Maven >> http://twitter.com/jvanzyl >> ---------------------------------------------------------- >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > Thanks, Jason ---------------------------------------------------------- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl ----------------------------------------------------------
