You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vishal Kumar Gupta <gr...@gmail.com> on 2014/03/13 19:31:23 UTC
Need Help
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
Re: Need Help
Posted by Barrie Treloar <ba...@gmail.com>.
On 15 March 2014 07:40, Mirko Friedenhagen <mf...@gmail.com> wrote:
> 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.
mvn -X also gives some times but you need to do the math yourself.
Re: Need Help
Posted by Mirko Friedenhagen <mf...@gmail.com>.
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
<bi...@gmail.com> wrote:
> How long is too long? How big is the jar?
>
> On Thu, Mar 13, 2014 at 2:31 PM, Vishal Kumar Gupta <gr...@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Need Help
Posted by Benson Margulies <bi...@gmail.com>.
How long is too long? How big is the jar?
On Thu, Mar 13, 2014 at 2:31 PM, Vishal Kumar Gupta <gr...@gmail.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org