> is it possible to create a jar of selected packages together with
> dependencies in a project. ?
in addition to the other plugins already mentioned... the shade plugin
may be something you should look at/consider as well
Wayne
---
At 1:52 PM -0700 5/17/11, mavenuser wrote:
>is it possible to create a jar of selected packages together with
>dependencies in a project. ?
>
yes. use the maven-dependency plugin, and just unpack or copy the dependencies
to your target/classes dir.
--
> is it possible to create a jar of selected packages together with
> dependencies in a project. ?
yes. look at the assembly and appassembler maven plugins
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For addition
is it possible to create a jar of selected packages together with
dependencies in a project. ?
--
View this message in context:
http://maven.40175.n5.nabble.com/Maven-to-package-tp4404721p4404721.html
Sent from the Maven - Users mailing list archive at Nabble.com
> Or is there a configuration setting for the war plugin that will tell it to
> package dependencies in the ear?
Check the Maven Users Wiki for "Skinny War" or just Google for "Maven
skinny war". This topic is also discussed on this list now and then so
search the archives at Nabble.com.
Wayne
-
Hi David,
David Sharp wrote at Freitag, 28. August 2009 15:40:
>>I am not sure, I get your problem. By default your EJB will not contain
>>any jars and if you declare your EJB as dependency for your EAR the latter
>>will contain the EJB as well as all transitive dependencies of this EJB.
>
> You
>I am not sure, I get your problem. By default your EJB will not contain any
>jars and if you declare your EJB as dependency for your EAR the latter will
>contain the EJB as well as all transitive dependencies of this EJB.
You are right. I made an erroneous assumption that EJBs would be similar t
Hi David,
David Sharp wrote:
> I'm new to Maven, and I am struggling to figure out how to get it to do
> packaging in accordance with the standards at my work place. Suppose I
> have an ejb called project-ejb, that depends on a library called
> caf-3.1.0.jar. How do I setup my project to package
Unfortunately you have encountered Maven's achilles heel (It's
fantastic at nearly everything else). Managing ejb/ear dependencies is
still basically a manual process.
In general, what I do is:
introduce a "pom" project that lists all the dependencies that you
expect to be placed i
> Should I specify it as a dependency of the ear with a scope of compile, and
> then also specify it as a dependency of the ejb with a scope of provided?
This is what I have done in past EJB-packaged-inside-WAR projects with
Maven. It is possible there is a newer/better best practice today, as
I h
I'm new to Maven, and I am struggling to figure out how to get it to do
packaging in accordance with the standards at my work place. Suppose I have
an ejb called project-ejb, that depends on a library called caf-3.1.0.jar.
How do I setup my project to package this dependency at the ear level rathe
11 matches
Mail list logo