This page (revision-15) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:05 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
15 23-Apr-2022 17:06 8 KB Harry Metske to previous
14 23-Apr-2022 17:05 8 KB Harry Metske to previous | to last
13 23-Apr-2022 17:05 8 KB Harry Metske to previous | to last
12 23-Apr-2022 17:05 8 KB Harry Metske to previous | to last
11 23-Apr-2022 17:05 7 KB Harry Metske to previous | to last
10 23-Apr-2022 17:05 7 KB Harry Metske to previous | to last
9 23-Apr-2022 17:05 7 KB Harry Metske to previous | to last
8 23-Apr-2022 17:05 7 KB Harry Metske to previous | to last
7 23-Apr-2022 17:05 7 KB Harry Metske to previous | to last
6 23-Apr-2022 17:05 7 KB Harry Metske to previous | to last
5 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
4 23-Apr-2022 17:05 6 KB Harry Metske to previous | to last
3 23-Apr-2022 17:05 3 KB Harry Metske to previous | to last
2 23-Apr-2022 17:05 3 KB Harry Metske to previous | to last
1 23-Apr-2022 17:05 2 KB Harry Metske to last

Page References

Incoming links Outgoing links
Maven...nobody

Version management

Difference between version and

At line 10 changed one line
* [Dependency mechanism|http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Importing_Dependencies]
* [Dependency mechanism|http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html]
At line 14 added 3 lines
* [How_to_find_dependencies|http://maven.apache.org/general.html#How_to_find_dependencies]
* [Maven Eclipse integration|http://www.devx.com/Java/Article/36785/1954]
* [Sonatype online Maven books|http://www.sonatype.com/books/maven-book/]
At line 18 added one line
!! Eclipse integration
At line 20 added one line
%%strike I installed the Eclipse QE plugin by adding [http://q4e.googlecode.com/svn/trunk/updatesite-iam/] to the list of software sites and check the Core features plus the Eclipse IAM editor/%
At line 17 changed one line
!! Eclipse integration
Better: the m2 maven eclipse integration plugin from [http://m2eclipse.sonatype.org/sites/m2e] .
And also the m2e wtp integration from [http://m2eclipse.sonatype.org/sites/m2e-extras/]
At line 19 changed one line
I installed the Eclipse QE plugin by adding [http://q4e.googlecode.com/svn/trunk/updatesite-iam/] to the list of software sites and check the Core features plus the Eclipse IAM editor
Some problems with Eclipse Helios to integrate Eclipse with maven (I want the maven dependencies to be on the webapps classpath when running them in tomcat from within eclipse).
At line 27 added 5 lines
Steps :
* Create new Dynamic Web Project
* Right-click project => Maven => Enable Dependencies
* Right-click project => Properties => Deployment Assembly => Add Java Build libraries => Maven classpath container
At line 67 changed one line
metskem@gneisenau:~$ mvn install:install-file -Dfile=/home/metskem/java_libs/com.ibm.ws.admin.client_7.0.0.jar -DgroupId=com.ibm.websphere -DartifactId=admin.client -Dversion=7.0.0 -Dpackaging=jar -DgeneratePom=true
metskem@gneisenau:~$ mvn install:install-file -Dfile=/home/metskem/java_libs/com.ibm.ws.admin.client_7.0.0.jar -DgroupId=com.ibm.websphere \
-DartifactId=admin.client -Dversion=7.0.0 -Dpackaging=jar -DgeneratePom=true
At line 98 added 4 lines
The same was done for __stripesstuff__ :
%%small
{{mvn install:install-file -Dfile=/home/metskem/java_libs/stripesstuff-0.2.jar -DgroupId=net.sourceforge.stripes -DartifactId=stripesstuff -Dversion=0.2 -Dpackaging=jar -DgeneratePom=true}}
%%
At line 177 added 49 lines
!! JAR Bloat ?!
It appears that maven dependency includes more jars than when you build your war the traditional way (manually importing jars into WEB-INF/lib, only those you need).\\
See the following differences :
__traditional way__
{{{
tomcat@kruimelhost:/usr/local/tomcat/webapps$ jar -tf krm2.war |grep lib|sort
WEB-INF/jsp/taglibs.jsp
WEB-INF/lib/
WEB-INF/lib/commons-beanutils-1.8.2.jar
WEB-INF/lib/commons-collections-3.2.1.jar
WEB-INF/lib/commons-lang-2.3.jar
WEB-INF/lib/commons-logging-1.1.1.jar
WEB-INF/lib/displaytag-1.2.jar
WEB-INF/lib/itext-1.3.jar
WEB-INF/lib/log4j-1.2.16.jar
WEB-INF/lib/mail.jar
WEB-INF/lib/stripes.jar
WEB-INF/lib/stripesstuff-0.2.jar
}}}
__maven way__
{{{
metskem@gneisenau:~/workspace/krm2$ jar -tf target/krm2.war |grep lib|sort
WEB-INF/lib/
WEB-INF/lib/activation-1.1.jar
WEB-INF/lib/commons-beanutils-1.7.0.jar
WEB-INF/lib/commons-collections-3.1.jar
WEB-INF/lib/commons-lang-2.4.jar
WEB-INF/lib/commons-logging-1.0.jar
WEB-INF/lib/displaytag-1.2.jar
WEB-INF/lib/itext-1.3.jar
WEB-INF/lib/jcl104-over-slf4j-1.4.2.jar
WEB-INF/lib/log4j-1.2.12.jar
WEB-INF/lib/mail-1.4.jar
WEB-INF/lib/slf4j-api-1.4.2.jar
WEB-INF/lib/slf4j-log4j12-1.4.2.jar
WEB-INF/lib/stripes-1.5.2.jar
WEB-INF/lib/stripesstuff-0.2.jar
}}}
It does appear that switching to lower versions of dependencies, you get less jars that are required.
At least you can now see the dependency tree :
[krm2-maven-dependency.png]