On Wednesday, April 8, 2015 at 11:33:32 AM UTC-7, Murthy Gandikota wrote: > > > > On Tuesday, April 7, 2015 at 3:40:52 PM UTC-7, Murthy Gandikota wrote: >> >> Using Jenkins 1.596. >> >> While creating a war, all the necessary jars are flagged with the scope >> "compile", like this: >> >> [pool-1-thread-1 for channel] INFO >> org.apache.maven.plugin.dependency.TreeMojo - +- >> org.javassist:javassist:jar:3.18.1-GA:compile >> [pool-1-thread-1 for channel] INFO >> org.apache.maven.plugin.dependency.TreeMojo - +- >> org.antlr:antlr:jar:3.5:compile >> [pool-1-thread-1 for channel] INFO >> org.apache.maven.plugin.dependency.TreeMojo - | +- >> org.antlr:antlr-runtime:jar:3.5:compile >> [pool-1-thread-1 for channel] INFO >> org.apache.maven.plugin.dependency.TreeMojo - | | \- >> org.antlr:stringtemplate:jar:3.2.1:compile >> [pool-1-thread-1 for channel] INFO >> org.apache.maven.plugin.dependency.TreeMojo - | | \- >> antlr:antlr:jar:2.7.7:compile >> >> >> The pom.xml dependency tags don't mention the scope anywhere. >> >> As a result, I think, the jars are not included in the packaged war. This >> is seen only with incremental build. >> >> If scope needs to be specified in each dependency, what value should it >> be set? >> >> I'd appreciate your help >> > > It seems compile scope is the default. > > > http://stackoverflow.com/questions/1396901/maven-dependency-within-dependency-with-different-scope > > Can someone kindly tell me why the jars are not included in the packaged > war? My apologies if this is a maven question. >
When maven is run from the command line, all of the jars are included in the war. When Jenkins does incremental build, the jars are missing. This tells me, the issue is with Jenkins, not maven. Here are the goals to maven: clean dependency:tree install -P component clover2:setup test clover2:aggregate clover2:clover -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/164dd9eb-d7b9-4e44-983b-e13154c113ec%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
