|
From: Nicolas De L. <nic...@ca...> - 2006-10-06 08:59:25
|
You're right, but only for the spring full jar. Spring jars as modules have no source and javadocs. Maven2 eclipse=20 plugin can download them automatically and attach them to the IDE Java=20 Editor. Kristoffer Moum a =E9crit : > Take a look at=20 > http://www.ibiblio.org/maven2/org/springframework/spring/2.0/. As far=20 > as I can see the repo contains both sources and javadocs. > /K > > On 10/6/06, *Nicolas De Loof* <nic...@ca...=20 > <mailto:nic...@ca...>> wrote: > > > Until a build fully maven2 compliant is in place, could you please > manually add the sources jars for modules in the spring repo so tha= t > they become available using ibiblio sync ? > They're very usefull for Eclipse (or other IDE) developers to get > debugging, javadocs and parameters name. > You can also get them from my personnal repo : > http://ndeloof.free.fr/maven2 > > I've sent my ant script on this list to build them, but I consider > this > as a workaround. Do you allready have ideas about a module/maven2 > compliant build ? I myself had similar issue with a "all in one > jar" lib > to be splitted into modules. > > The "cleaner" way is to split sources into separate sub-projects > and use > the maven2 assembly plugin to create the "full" jar from modules. B= ut > this requires to move source files, and you will then loose CVS > history... (what about using subversion ?) > > Another way is to create multiple POM files that point to the same > srs > folder but use <includes> to only compile and package module classe= s. > > There is also the "Java1.3 + Java5 in same jar" issue. I don't lik= e > splitting every module into spring-xx and spring-xx-tiger as Carlos > Sanchez suggested. It can be solved by using > maven-jboss-compiler-plugin > : this is a modified maven compiler plugin that allows to change > the src > dir. Using it, you can run compiler twice. A first (default) run > using > bootclasspath set to Java1.3 runtime, a second one using > jboss-compiler > to point to "tiger" code. > > @see > http://mail-archives.apache.org/mod_mbox/maven-users/200608.mbox/%3= C44...@ca...%3E > @see http://repository.jboss.com/maven2 > > Another solution is to use the maven build helper plugin to add tig= er > sources to compiler path and define <excludes> to only compile Java= 1.3 > classes as default execution. A second execution is then configured= to > compile all classes using Java5 (java13 compiled classes are not > recompiled) > > If you're interseted any of those solutions, I'd be pleased to > give you > feedback from my personnal experiments on this. > > Nicolas De Loof > > Ben Hale a =E9crit : > > Right now the builds (the ant builds) do not create individual ja= rs > > for for sources and javadocs. It does create sources and > javadocs for > > the main jar. Contributions from the community of these > artifacts are > > nice, but it's not really a scalable way to populate the maven > repo. > > We're looking into strategies for create those elements as part > of the > > build in the future, but at this point we don't have them. > > > > Ben Hale > > Spring Training, Consulting and Support - "From the Source" > > http://www.interface21.com > > cell: 321.591.2340 > > > > > > > > On Oct 5, 2006, at 4:35 PM, Ben Alex wrote: > > > >> Carlos Sanchez wrote: > >>> Maven repo is synced from Spring repo > >>> https://svn.sourceforge.net/svnroot/springframework/repos/repo/ > >>> > >>> You can provide them the sources and javadocs to be put there. > >> > >> Any reason the sources are missing from the Spring snapshot > repo (with > >> the notable exception of the "spring" artifact)? > >> > >> Cheers > >> Ben > >> > >> > -------------------------------------------------------------------= ------ > >> > >> Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the chance t= o > >> share your > >> opinions on IT & business topics through brief surveys -- and > earn cash > >> > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&= CID=3DDEVDEV > <http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge= &CID=3DDEVDEV> > >> > >> _______________________________________________ > >> Springframework-developer mailing list > >> Spr...@li... > <mailto:Spr...@li...> > >> > https://lists.sourceforge.net/lists/listinfo/springframework-develo= per > <https://lists.sourceforge.net/lists/listinfo/springframework-devel= oper> > > > > > -------------------------------------------------------------------= ----- > > > > > -------------------------------------------------------------------= ------ > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance > to share your > > opinions on IT & business topics through brief surveys -- and > earn cash > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&= CID=3DDEVDEV > <http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge= &CID=3DDEVDEV> > > > -------------------------------------------------------------------= ----- > > > > _______________________________________________ > > Springframework-developer mailing list > > Spr...@li... > <mailto:Spr...@li...> > > > https://lists.sourceforge.net/lists/listinfo/springframework-develo= per > > > > This message contains information that may be privileged or > confidential and is the property of the Capgemini Group. It is > intended only for the person to whom it is addressed. If you are > not the intended recipient, you are not authorized to read, > print, retain, copy, disseminate, distribute, or use this message > or any part thereof. If you receive this message in error, please > notify the sender immediately and delete all copies of this messag= e. > > > -------------------------------------------------------------------= ------ > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&= CID=3DDEVDEV > <http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge= &CID=3DDEVDEV> > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > <mailto:Spr...@li...> > https://lists.sourceforge.net/lists/listinfo/springframework-develo= per > > > -----------------------------------------------------------------------= - > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > -----------------------------------------------------------------------= - > > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > =20 This message contains information that may be privileged or confidential = and is the property of the Capgemini Group. It is intended only for the p= erson to whom it is addressed. If you are not the intended recipient, yo= u are not authorized to read, print, retain, copy, disseminate, distribu= te, or use this message or any part thereof. If you receive this message= in error, please notify the sender immediately and delete all copies of= this message. |