download only sources
Hi, We need to hand over "source code" to client after development. Unfortunately client do not have access to our nexus repository. Lets say we have projects projectA1.0, projectB1.0 and I need to give "projectA1.0-sources.jar" and "projectA1.0--tests-sources.jar" to client. I am looking simple way to only download source jars to my to special repository(not the regular development local repository) for each of my required projects. Please someone advice. Thanks
Re: download only sources
Maybe you can use the m-dependency-p or m-assembly-p to copy and/or assemble these JARs. You can add a dependency to these JARs in a small POM for that. Roland On 28.11.2011 11:03, Prashant Neginahal wrote: > Hi, > > We need to hand over "source code" to client after development. > Unfortunately client do not have access to our nexus repository. > > Lets say we have projects projectA1.0, projectB1.0 and I need to give > "projectA1.0-sources.jar" and "projectA1.0--tests-sources.jar" to client. I > am looking simple way to only download source jars to my to special > repository(not the regular development local repository) for each of my > required projects. > > Please someone advice. > > Thanks > -- Roland Asmann Senior Software Engineer adesso Austria GmbH Floridotower 26. Stock T +43 1 2198790-27 Floridsdorfer Hauptstr. 1 F +43 1 2198790-927 A-1210 Wien M +43 664 88657566 E roland.asm...@adesso.at W www.adesso.at - >>> business. people. technology. <<< - - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: download only sources
Prashant Neginahal wrote: > Hi, > > We need to hand over "source code" to client after development. > Unfortunately client do not have access to our nexus repository. > > Lets say we have projects projectA1.0, projectB1.0 and I need to give > "projectA1.0-sources.jar" and "projectA1.0--tests-sources.jar" to client. > I am looking simple way to only download source jars to my to special > repository(not the regular development local repository) for each of my > required projects. > > Please someone advice. mvn dependency:sources - Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: download only sources
If you're using Nexus, it would be simple to script through some http urls. I'm guessing Artifactory has similar feature. You don't have to use Maven for everything. /Anders On Mon, Nov 28, 2011 at 11:44, Jörg Schaible wrote: > Prashant Neginahal wrote: > >> Hi, >> >> We need to hand over "source code" to client after development. >> Unfortunately client do not have access to our nexus repository. >> >> Lets say we have projects projectA1.0, projectB1.0 and I need to give >> "projectA1.0-sources.jar" and "projectA1.0--tests-sources.jar" to client. >> I am looking simple way to only download source jars to my to special >> repository(not the regular development local repository) for each of my >> required projects. >> >> Please someone advice. > > mvn dependency:sources > > - Jörg > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: download only sources
My requirements is actually zip the complete maven project not just sources. It should include maven folder structure (src/main..) and POM file in that. On Mon, Nov 28, 2011 at 5:12 PM, Anders Hammar wrote: > If you're using Nexus, it would be simple to script through some http > urls. I'm guessing Artifactory has similar feature. You don't have to > use Maven for everything. > > /Anders > > On Mon, Nov 28, 2011 at 11:44, Jörg Schaible > wrote: > > Prashant Neginahal wrote: > > > >> Hi, > >> > >> We need to hand over "source code" to client after development. > >> Unfortunately client do not have access to our nexus repository. > >> > >> Lets say we have projects projectA1.0, projectB1.0 and I need to give > >> "projectA1.0-sources.jar" and "projectA1.0--tests-sources.jar" to > client. > >> I am looking simple way to only download source jars to my to special > >> repository(not the regular development local repository) for each of my > >> required projects. > >> > >> Please someone advice. > > > > mvn dependency:sources > > > > - Jörg > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > > For additional commands, e-mail: users-h...@maven.apache.org > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: download only sources
Assembly plugin is your friend On 28 November 2011 12:16, Prashant Neginahal wrote: > My requirements is actually zip the complete maven project not just > sources. It should include maven folder structure (src/main..) and POM file > in that. > > On Mon, Nov 28, 2011 at 5:12 PM, Anders Hammar wrote: > >> If you're using Nexus, it would be simple to script through some http >> urls. I'm guessing Artifactory has similar feature. You don't have to >> use Maven for everything. >> >> /Anders >> >> On Mon, Nov 28, 2011 at 11:44, Jörg Schaible >> wrote: >> > Prashant Neginahal wrote: >> > >> >> Hi, >> >> >> >> We need to hand over "source code" to client after development. >> >> Unfortunately client do not have access to our nexus repository. >> >> >> >> Lets say we have projects projectA1.0, projectB1.0 and I need to give >> >> "projectA1.0-sources.jar" and "projectA1.0--tests-sources.jar" to >> client. >> >> I am looking simple way to only download source jars to my to special >> >> repository(not the regular development local repository) for each of my >> >> required projects. >> >> >> >> Please someone advice. >> > >> > mvn dependency:sources >> > >> > - Jörg >> > >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> > For additional commands, e-mail: users-h...@maven.apache.org >> > >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: download only sources
I've seen this done once in a Maven project where it was added to the build lifecycle, causing a simple build to take ages. For every developer build. Why not just treat this as the bastard it is, handle it outside of the Maven build. You could either use Maven as a utility tool for that or just check out the tag to deliver and use standard zip command. Or make sure it is only included it in the release build. I believe ASF releases do something like this. On Mon, Nov 28, 2011 at 13:18, Stephen Connolly wrote: > Assembly plugin is your friend > > On 28 November 2011 12:16, Prashant Neginahal wrote: >> My requirements is actually zip the complete maven project not just >> sources. It should include maven folder structure (src/main..) and POM file >> in that. >> >> On Mon, Nov 28, 2011 at 5:12 PM, Anders Hammar wrote: >> >>> If you're using Nexus, it would be simple to script through some http >>> urls. I'm guessing Artifactory has similar feature. You don't have to >>> use Maven for everything. >>> >>> /Anders >>> >>> On Mon, Nov 28, 2011 at 11:44, Jörg Schaible >>> wrote: >>> > Prashant Neginahal wrote: >>> > >>> >> Hi, >>> >> >>> >> We need to hand over "source code" to client after development. >>> >> Unfortunately client do not have access to our nexus repository. >>> >> >>> >> Lets say we have projects projectA1.0, projectB1.0 and I need to give >>> >> "projectA1.0-sources.jar" and "projectA1.0--tests-sources.jar" to >>> client. >>> >> I am looking simple way to only download source jars to my to special >>> >> repository(not the regular development local repository) for each of my >>> >> required projects. >>> >> >>> >> Please someone advice. >>> > >>> > mvn dependency:sources >>> > >>> > - Jörg >>> > >>> > >>> > - >>> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> > For additional commands, e-mail: users-h...@maven.apache.org >>> > >>> > >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >>> >>> >> > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: download only sources
assembly:single with false and bound to the release lifecycle... for an example see how all Apache projects which use Maven as a build tool do their releases (i.e. see the Apache parent pom) On 28 November 2011 12:43, Anders Hammar wrote: > I've seen this done once in a Maven project where it was added to the > build lifecycle, causing a simple build to take ages. For every > developer build. > > Why not just treat this as the bastard it is, handle it outside of the > Maven build. You could either use Maven as a utility tool for that or > just check out the tag to deliver and use standard zip command. Or > make sure it is only included it in the release build. I believe ASF > releases do something like this. > > On Mon, Nov 28, 2011 at 13:18, Stephen Connolly > wrote: >> Assembly plugin is your friend >> >> On 28 November 2011 12:16, Prashant Neginahal wrote: >>> My requirements is actually zip the complete maven project not just >>> sources. It should include maven folder structure (src/main..) and POM file >>> in that. >>> >>> On Mon, Nov 28, 2011 at 5:12 PM, Anders Hammar wrote: >>> If you're using Nexus, it would be simple to script through some http urls. I'm guessing Artifactory has similar feature. You don't have to use Maven for everything. /Anders On Mon, Nov 28, 2011 at 11:44, Jörg Schaible wrote: > Prashant Neginahal wrote: > >> Hi, >> >> We need to hand over "source code" to client after development. >> Unfortunately client do not have access to our nexus repository. >> >> Lets say we have projects projectA1.0, projectB1.0 and I need to give >> "projectA1.0-sources.jar" and "projectA1.0--tests-sources.jar" to client. >> I am looking simple way to only download source jars to my to special >> repository(not the regular development local repository) for each of my >> required projects. >> >> Please someone advice. > > mvn dependency:sources > > - Jörg > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
checkstyle-plugin 2.8 aggregated duplicates number of issues.
Hello, I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find two reports for checkstyle: http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues) and http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html (423 issues) The latter one is (almost) duplicating the number of the checkstyle issues in the report. The POM might be found at https://bitbucket.org/mfriedenhagen/hgkit/src/06f53759650a/pom.xml Any hints what is going wrong? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Calling TestNG from Surefire with option group-by-instances=true
Hi, even though this concerns TestNG I hope the post is adequate. I have a situation where I want to use Surefire to call my TestNG tests using the groups element. org.apache.maven.plugins maven-surefire-plugin 2.9 false unit_tests, integration_tests Scenario: In class A I populate a Repository and uses the elements later on in dependent tests in class A. My problem is that the tests in class A has a dependency to test in class B. The dependency is, due to @Autowired members that I can't seem to get control of. The Repository in cleared in the call (call- chain) to class B, leaving an empty repository when i get back to class A. The solution I found was to use the group-by-instances=true option, letting the test in class A run in (isolation?) leaving the @Autowired member un affected by class B. The next problem is that I can't find any way to use Maven-Surefire and feeding that option to TestNG :-(! I really don't want to manage a testng.xml file, I love using annotations for managing tests to run :-)! And I don't want to mess up my tests with dependencies between test A and test B. Is there a way? Regads /Jonas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: download only sources
On Mon, Nov 28, 2011 at 8:33 PM, Prashant Neginahal wrote: > Hi, > > We need to hand over "source code" to client after development. > Unfortunately client do not have access to our nexus repository. > > Lets say we have projects projectA1.0, projectB1.0 and I need to give > "projectA1.0-sources.jar" and "projectA1.0--tests-sources.jar" to client. I > am looking simple way to only download source jars to my to special > repository(not the regular development local repository) for each of my > required projects. Plenty of good advice in this thread. Also, what's wrong with a version control export? I have no idea what your client wants to do with the source code, but they probably will need more than just that. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org