AW: War Overlays and Conflicting Jars

2009-05-14 Thread Annies, Sebastian
Hi Brad, 

we had this issue too and used the following workaround (Works only if the 
overlay is never used as war itself):

In the war plugin we exclude packaging of the jars. So we got a skinny jar. 

In the module building the actual war thatg is deployed to a container we 
depend the overlay with typewar/type and with typepom/type. By doing so 
maven uses the whole dependency management stuff to resolve conflicts.

Best Regards,
Sebastian

-Ursprüngliche Nachricht-
Von: Harper, Brad [mailto:brad.har...@fiserv.com] 
Gesendet: Montag, 11. Mai 2009 21:55
An: Maven Users List
Betreff: War Overlays and Conflicting Jars

Is there a way to detect when the dependencies of two war artifacts are
inconsistent with respect to packaged jar versions?

 

E.g. a war depends on artifact abc-1.0.0.jar. An overlay is performed
where an inconsistent dependency on abc-1.0.1.jar is also defined.

 

The resulting war will contain both jar files and, so far as I can tell,
the subsequent behavior is indeterminate.

 

Brad


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



AW: Maven 2 : Jar with included Jar dependencies

2007-09-12 Thread Annies, Sebastian
We do this by hand since the assembly plugin is too hard to use. You may give 
it a try:

  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
  !-- Copy this project's dependencies to the release/lib directory --
  execution
idcopy-dependencies/id
phasepackage/phase
goals
  goalcopy-dependencies/goal
/goals
configuration
  
outputDirectory${project.build.directory}/release-${project.version}/lib/outputDirectory
  includeScoperuntime/includeScope
  overWriteIfNewertrue/overWriteIfNewer
/configuration
  /execution
/executions
  /plugin

  !-- Zip the release --
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
  execution
idpackageApp/id
phasepackage/phase
configuration
  tasks
copy 
file=${project.build.directory}/${project.artifactId}-${project.version}.jar 
todir=target/release-${project.version}/ /
zip 
destfile=${project.build.directory}/isoviewer-${project.version}.zip
  zipfileset dir=target/release-${project.version}/ 
prefix=isoviewer includes=**/* /
/zip
  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
  /plugin

  !-- Deploy and Install the created ZIP file --
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
executions
  execution
idattach-artifacts/id
phasepackage/phase
goals
  goalattach-artifact/goal
/goals
configuration
  artifacts
artifact
  
file${project.build.directory}/isoviewer-${project.version}.zip/file
  typezip/type
  classifierbin/classifier
/artifact
  /artifacts
/configuration
  /execution
/executions
  /plugin


  !-- Create executable jar --
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
  archive
manifest
  mainClassiso.gui.Main/mainClass
  addClasspathtrue/addClasspath
  classpathPrefixlib/classpathPrefix
/manifest
  /archive
/configuration
  /plugin


/plugins
  /build

-Ursprüngliche Nachricht-
Von: zm [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 11. September 2007 22:24
An: users@maven.apache.org
Betreff: Maven 2 : Jar with included Jar dependencies


Hi,

I'm trying to create a jar using Maven 2, but I'm not getting what I whant
to ...

I have a jar project (main.jar) that depends on another jar (common.jar). My
poms are working correctly, but I need to create a self dependant main.jar.
That is, I need main.jar to include the common.jar, and access it without
any other external classpath info. I just want to execute java -jar
main.jar and voila ... executes nicelly.

Googling around I found no solution for the base jar feature, but I heard
about plugins for Maven ... UberJar and JavaApp. Both should work fine with
Maven 1.x.

I'm using Maven 2.0.7, and I've read somewhere around my googling that this
jar included dependencies are already available in the base Maven 2
framework.

Now I just need some help to put it to works, as googling around is bringing
me many results that does not interest me, and maybe you know how to do it,
or point me to some link that helps ...

I'm new to Maven, and I really want to learn how to use it properly ... the
fact is that I also find it very difficult sometimes to find info about
pluggins, how to use them, their settings/usage ...

Anyway, any help regarding jars inside jars :) would be greatly appreciated.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Maven-2-%3A-Jar-with-included-Jar-dependencies-tf4425083s177.html#a12622970
Sent from the Maven - Users mailing list archive at Nabble.com.


-
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]



RE: QAR question - generate JAR from classes and include intoWEB-INF/lib

2007-07-31 Thread Annies, Sebastian
I used two projects: 

1. a base project with packaging=jar
2. a web project with packaging=war depending on 1. 

If anybody finds a better solution please tell me. 

Regards,
Sebastian 

 -Original Message-
 From: Eugeny N Dzhurinsky [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 31, 2007 11:22 AM
 To: users@maven.apache.org
 Subject: QAR question - generate JAR from classes and include intoWEB-
 INF/lib
 
 Hello!
 
 Could somebody please explain how is it possible to create WAR file
 from WEB application, but instead of having Java sources compiled and
 placed into WEB-INF/classes - package those classes as a JAR file and
 place it into WEB-INF/lib/?
 
 Also I need to include some external resources (properties, XML
 configuration files etc) into WEB-INF/classes, how would I do that?
 
 Thank you in advance!
 --
 Eugene N Dzhurinsky


smime.p7s
Description: S/MIME cryptographic signature


RE: Hibernate and 2.0.7

2007-07-31 Thread Annies, Sebastian
Some more information about what happens would be helpful.

 -Original Message-
 From: jallen [mailto:[EMAIL PROTECTED]
 Sent: Sunday, July 29, 2007 10:00 PM
 To: users@maven.apache.org
 Subject: Hibernate and 2.0.7
 
 
 Has anyone else experienced issues with 2.0.7 and hibernate 3.2.4.ga?
 It's
 not my project code but I've upgraded the common build system and some
 unit
 tests for a hibernate project now fail? Searched the web and not come
 up
 with a lot.
 --
 View this message in context: http://www.nabble.com/Hibernate-and-
 2.0.7-tf4166646s177.html#a11854518
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



smime.p7s
Description: S/MIME cryptographic signature


RE: Continuum

2007-07-19 Thread Annies, Sebastian
Once the JVM has grabbed ist memory it won't release it. That's the way it
is.

 -Original Message-
 From: John Coleman [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 19, 2007 1:25 PM
 To: Maven Users List
 Subject: OT: Continuum
 
 Hi, is there any Continuum list? I don't see anything on the site. I
 just wanted to know why Continuum swallows up 2GB of Ram when idle.
 
 
 
 Regards,
 
 John
 
 
 Eurobase International Limited and its subsidiaries (Eurobase) are
 unable to exercise control over the content of information in E-Mails.
 Any views and opinions expressed may be personal to the sender and are
 not necessarily those of Eurobase. Eurobase will not enter into any
 contractual obligations in respect of any part of its business in any
 E-mail.
 
 Privileged / confidential information may be contained in this message
 and /or any attachments. This E-mail is intended for the use of the
 addressee(s) only and may contain confidential information. If you are
 not the / an intended recipient, you are hereby notified that any use
 or dissemination of this communication is strictly prohibited.  If you
 receive this transmission in error, please notify us immediately, and
 then delete this E-mail.
 
 Neither the sender nor Eurobase accepts any liability whatsoever for
 any defects of any kind either in or arising from this E-mail
 transmission. E-Mail transmission cannot be guaranteed to be secure or
 error-free, as messages can be intercepted, lost, corrupted, destroyed,
 contain viruses, or arrive late or incomplete. Eurobase does not accept
 any responsibility for viruses and it is your responsibility to scan
 any attachments.
 
 Eurobase Systems Limited is the main trading company in the Eurobase
 International Group; registered in England and Wales as company number
 02251162; registered address: Essex House, 2 County Place, Chelmsford,
 Essex CM2 0RE, UK.



smime.p7s
Description: S/MIME cryptographic signature


RE: Maven 2: antrun-plugin with ant-contrib tasks

2007-02-12 Thread Annies, Sebastian
Does this problem encounter in a single module project? 
In my case ant-run plugins in a (child-)pom.xml overwrote the classpath
configuration of other (child-)pom.xml.
To solve it I specified the same aggregated classpath for every module's
ant-run plugin. 

Hope that helps,
Sebastian


smime.p7s
Description: S/MIME cryptographic signature


maven-assembly-plugin:2.2-SNAPSHOT cannot be downloaded

2007-01-15 Thread Annies, Sebastian
Hello,

For some reason I cannot get any maven assembly plugin in version
2.2-SNAPSHOT to download. I added:
repositories
repository
  idApache SNAPSHOTS/id
  nameApache SNAPSHOTS/name
  urlhttp://people.apache.org/repo/m2-snapshot-repository/url
  releases
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicywarn/checksumPolicy
  /releases
  snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
  /snapshots
/repository

 !--   repository
  idCodeHaus SNAPSHOTS/id
  nameCodeHaus SNAPSHOTS/name

to the parent pom and get an error as shown in the error.txt attachment.
The actual pom is attached as pom.xml

Any suggestions??

Regards,
Sebastian
[INFO] 

[INFO] Building IOP Test Server Integration Test
[INFO]task-segment: [install]
[INFO] 

[DEBUG] maven-site-plugin: resolved to version 2.0-beta-5 from repository 
central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for 
project: null:maven-site-plugin:maven-plugin:2.0-beta-5 from th
e repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: 
org.apache.maven.plugins:maven-plugins:pom:1 from the repositor
y.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] maven-install-plugin: resolved to version 2.1 from repository central
[DEBUG] Retrieving parent-POM: 
org.apache.maven.plugins:maven-plugin-parent::2.0 for project: 
null:maven-install-plugin:maven-plugin:2.1 fro
m the repository.
[DEBUG] maven-surefire-plugin: resolved to version 2.2 from repository central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for 
project: null:maven-surefire-plugin:maven-plugin:2.2 from the r
epository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: 
org.apache.maven.plugins:maven-plugins:pom:1 from the repositor
y.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] maven-compiler-plugin: resolved to version 2.0.1 from repository central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for 
project: null:maven-compiler-plugin:maven-plugin:2.0.1 from the
 repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: 
org.apache.maven.plugins:maven-plugins:pom:1 from the repositor
y.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] cobertura-maven-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::7 for project: 
null:cobertura-maven-plugin:maven-plugin:2.0 from the repository.
[DEBUG] maven-idea-plugin: resolved to version 2.0 from repository central
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for 
project: null:maven-idea-plugin:maven-plugin:2.0 from the repos
itory.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: 
org.apache.maven.plugins:maven-plugins:pom:1 from the repositor
y.
[DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: 
org.apache.maven:maven-parent:pom:1 from the repository.
[DEBUG] Retrieving parent-POM: 
org.apache.maven.plugins:maven-plugins::8-SNAPSHOT for project: 
null:maven-assembly-plugin:maven-plugin:2.2-2
0070112.063452-32 from the repository.
[DEBUG] Skipping disabled repository central
[INFO] snapshot org.apache.maven.plugins:maven-plugins:8-SNAPSHOT: checking for 
updates from Apache SNAPSHOTS
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugins: resolved to version 8-20070112.003613-1 from repository 
Apache SNAPSHOTS
[DEBUG] Retrieving parent-POM: 
org.apache.maven:maven-plugin-surrogate-parent::6-SNAPSHOT for project: 
org.apache.maven.plugins:maven-plugin
s:pom:8-SNAPSHOT from the repository.
[DEBUG] Skipping disabled repository central
[INFO] snapshot org.apache.maven:maven-plugin-surrogate-parent:6-SNAPSHOT: 
checking for updates from Apache SNAPSHOTS
[DEBUG] Skipping disabled repository central
[DEBUG] maven-plugin-surrogate-parent: resolved to version 6-20070112.003524-1 
from repository Apache SNAPSHOTS
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: 
org.apache.maven:maven-plugin-surrogate-parent:pom:6-SNAPSHOT from the repo
sitory.
[DEBUG] Skipping disabled repository central
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] A required plugin was not found: Plugin could not be found - check that 
the goal name is correct: Unable to download the