Hi Karl Heinz,
Look at the configuration for the WAR-plugin, you can have it create a
separate JAR for the classes, which you can then use as a dependency.
Roland
On 23.11.2011 13:10, Karl Heinz Marbaise wrote:
Hi to all,
i have a larger structure of modules which built a
Hi,
first thanks for the answer, but the problem is my classes are located in
the src/main/java area and not in src/main/webapp folderThe
configuration for the war-plugin (archiveClasses) will only create a jar
from classes in the src/main/webapp folder...where i don't have any classes
only
Hello Karl Heinz,
Where does it say that the sources must be in src/main/webapp? As with
all plugins, sources should be in src/main/java (like you have now).
I think you need the parameter 'attachClasses', I am not 100% sure if
'archiveClasses' is necessary as well.
I've used it before
hi,
i have added both parameters to the configuration of the maven-war-plugin
but it doesn't create a separate jar file...so no luck...
Kind regards
Karl Heinz Marbaise
-
Kind regards
Karl Heinz Marbaise
http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View
I just tried this on an old project, and with only the
'attacheClasses'-attribute, it works just fine for me...
Might be a dumb question, but: are you using the right version of the
plugin?
Roland
On 23.11.2011 13:55, Karl Heinz Marbaise wrote:
hi,
i have added both parameters to the
Hi,
Asmann, Roland wrote
I just tried this on an old project, and with only the
'attacheClasses'-attribute, it works just fine for me...
Might be a dumb question, but: are you using the right version of the
plugin?
it's not a dump question... ;-)
I'm using maven-war-plugin (2.1.1)
On 11/23/2011 01:10 PM, Karl Heinz Marbaise wrote:
Hi to all,
i have a larger structure of modules which built a multi-module-build which
contains (an excerpt of my structure) the following two modules where my
problem is focused on:
root
+-- mod-war
+-- mod-it
where the mod-war
Strange, that's the same version I am using...
Could you post a part of the POM and maybe some output you get? Maybe we
can see something in there...
On 23.11.2011 14:29, Karl Heinz Marbaise wrote:
Hi,
Asmann, Roland wrote
I just tried this on an old project, and with only the
Hi,
i've looked into the wrong location oversight ... sorry ;-( the jar
file is created in the WEB-INF/lib/ folder and not in the target folder
but now i'm trying to use it as dependency for my integration test module
and use classes from therebut this seemed to be not
If you use 'attachClasses', the JAR should NOT be created in the
lib-folder, but in the target. When using 'archiveClasses' it is created
in the lib-folder.
A dependency on that JAR should be on a JAR (not the WAR) and add
classifier 'classes'.
On 23.11.2011 14:42, Karl Heinz Marbaise wrote:
Hi,
Asmann, Roland wrote
If you use 'attachClasses', the JAR should NOT be created in the
lib-folder, but in the target. When using 'archiveClasses' it is created
in the lib-folder.
It is correct that a file artifactid-version-classes.jar is created in the
target folder (with
Here's a small example... Check if it works for you, because it
definitely does for me...
Roland
On 23.11.2011 16:52, Karl Heinz Marbaise wrote:
Hi,
Asmann, Roland wrote
If you use 'attachClasses', the JAR should NOT be created in the
lib-folder, but in the target. When using
No attachments allowed? I'll send it to you directly.
On 23.11.2011 17:08, Asmann, Roland wrote:
Here's a small example... Check if it works for you, because it
definitely does for me...
Roland
On 23.11.2011 16:52, Karl Heinz Marbaise wrote:
Hi,
Asmann, Roland wrote
If
Hi,
after a longer fight with my build...didn't saw that i had a classloader
problem (some dependencies which came via the new dependency (classes)) now
this works perfect
Many thanks for the support
Kind regards
Karl Heinz Marbaise
-
Kind regards
Karl Heinz Marbaise
14 matches
Mail list logo