Hello, I had the same questions :-).
Vishai, you could invoke "mvn compile", switch to the target/classes directory and execute "time jar cvf ../foo.jar ." to see how long the original jar command takes and compare this to the time needed by the maven-jar-plugin. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Fri, Mar 14, 2014 at 12:23 AM, Benson Margulies <[email protected]> wrote: > How long is too long? How big is the jar? > > On Thu, Mar 13, 2014 at 2:31 PM, Vishal Kumar Gupta <[email protected]> > wrote: >> Hi Team, >> >> OS- Ubuntu 12.04 TLS >> Maven version - 3.2.1 >> >> maven-jar-plugin:2.4:jar is taking too long to generate jar. >> >> pom.xml for plugin >> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-jar-plugin</artifactId> >> <version>2.4</version> >> <configuration> >> <forceCreation>true</forceCreation> >> <archive> >> <manifest> >> <addClasspath>true</addClasspath> >> </manifest> >> </archive> >> </configuration> >> </plugin> >> >> >> DEBUG log:- >> >> [DEBUG] Configuring mojo org.apache.maven.plugins:maven-jar-plugin:2.4:jar >> from plugin realm >> ClassRealm[plugin>org.apache.maven.plugins:maven-jar-plugin:2.4, parent: >> sun.misc.Launcher$AppClassLoader@262505b7] >> [DEBUG] Configuring mojo >> 'org.apache.maven.plugins:maven-jar-plugin:2.4:jar' with basic configurator >> --> >> [DEBUG] (s) addClasspath = true >> [DEBUG] (s) manifest = >> org.apache.maven.archiver.ManifestConfiguration@7be2e01 >> [DEBUG] (f) archive = >> org.apache.maven.archiver.MavenArchiveConfiguration@56be479f >> [DEBUG] (f) classesDirectory = /Test/target/classes >> [DEBUG] (f) defaultManifestFile = >> /Test/target/classes/META-INF/MANIFEST.MF >> [DEBUG] (f) finalName = Test-0.0.1-SNAPSHOT >> [DEBUG] (f) forceCreation = true >> [DEBUG] (f) outputDirectory = /Test/target >> [DEBUG] (f) project = MavenProject: >> com.ericsson.esip:cw-ws-server:0.0.1-SNAPSHOT @ /Test/pom.xml >> [DEBUG] (f) session = org.apache.maven.execution.MavenSession@ed1bb57 >> [DEBUG] (f) skipIfEmpty = false >> [DEBUG] (f) useDefaultManifestFile = false >> [DEBUG] -- end configuration -- >> >> >> >> Need help >> Thanks in advance. >> >> Regards, >> vishal > > --------------------------------------------------------------------- > 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]
