Tracking a logging/dependency problem

2010-03-29 Thread Jim Collings
Here is what I am seeing when I try to run mvn test:

I've been poking around looking for someone else who might have been
having similar problems but so far all I've been able to discover is
that it is likely to be a transitive dependency problem with the
logger.  Could use some clues as to how I should go about tracking
this down.  Have been using mvn dependency:tree but this doesn't
tell me which jar has the offending class. If I knew that I could try
an exclude.

INFO [main] (?:?) - Refreshing
org.apache.cxf.bus.spring.busapplicationcont...@b6e39f: display name
[org.apache.cxf.bus.spring.busapplicationcont...@b6e39f]; startup date
[Mon Mar 29 13:41:23 EDT 2010]; root of context hierarchy
DEBUG [main] (?:?) - Class
[org.apache.commons.collections.map.LinkedMap] or one of its
dependencies is not present: java.lang.ClassNotFoundException:
org.apache.commons.collections.map.LinkedMap
DEBUG [main] (?:?) - Class
[edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap] or
one of its dependencies is not present:
java.lang.ClassNotFoundException:
edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.29
sec  FAILURE!
org.apache.maven.surefire.booter.SurefireExecutionException: null;
nested exception is java.lang.NullPointerException: null
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:140)
at java.io.PrintWriter.newLine(PrintWriter.java:436)
at java.io.PrintWriter.println(PrintWriter.java:585)
at java.io.PrintWriter.println(PrintWriter.java:696)
at 
org.apache.maven.surefire.report.AbstractFileReporter.testSetStarting(AbstractFileReporter.java:59)
at 
org.apache.maven.surefire.report.ReporterManager.testSetStarting(ReporterManager.java:219)
at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

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



Re: Tracking a logging/dependency problem

2010-03-29 Thread Jim Collings
Well, what I'm really looking for is an approach to figuring out the
problem or if I can't get that, at least a better understanding of it.

 I'm not sure I understand your question, but in general, if you need to find
 a JAR containing an arbitrary class, you can use the Nexus search engine,
 e.g. on http://repository.sonatype.org/

 Justin

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



Cargo Still Active Project?

2010-02-22 Thread Jim Collings
I can't seem to subscribe to any of their lists. Is there a magic trick to this?

Jim C.

Hi. This is the qmail-send program at mail.codehaus.org.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

d...@cargo.codehaus.org:
ezmlm-reject: fatal: Sorry, I don't accept commands in the subject
line. Please send a message to the -help address shown in the the
``Mailing-List:'' header for command info (#5.7.0)

--- Below this line is a copy of the message.

Return-Path: jlistn...@gmail.com
Received: (qmail 5248 invoked by uid 89); 22 Feb 2010 14:04:22 -
Received: from unknown (HELO ey-out-1920.google.com) (74.125.78.144)
 by mail.codehaus.org with SMTP; 22 Feb 2010 14:04:22 -
Received: by ey-out-1920.google.com with SMTP id 4so626262eyg.4
   for d...@cargo.codehaus.org; Mon, 22 Feb 2010 06:04:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
   d=gmail.com; s=gamma;
   h=domainkey-signature:mime-version:received:date:message-id:subject
:from:to:content-type;
   bh=GKZqx2pMqCASTyRaiEY9UxG7pbJmdZaRwMm3Xe/b3rU=;
   b=gMNdu0ho0zT4ppus7vs4IM/G/FeW0i1hoZTkGg/4Edh2vumf4FNFjI49QZ1G70sors
fEFUJeZoQexRdjWNnMQm6H4RiOnoVm1jJ+5Whpfput2IDchWqp+ScSKd3D6HFwJZ37aZ
hFAnN9HAjTy72ePNUyTCTcZ2k3PcAHaY38NKU=
DomainKey-Signature: a=rsa-sha1; c=nofws;
   d=gmail.com; s=gamma;
   h=mime-version:date:message-id:subject:from:to:content-type;
   b=UkPheoVtlWBjQtM7elgjXX2XYSbWuJUjnK67aR2f3sRUqXYuLQy2UDbjW71oquBubh
bq65Pz7YkzYDh+ODkuFht/P4n3x6nYPbg66dZaUvn16EnP4NKsfWlhQJSE6cnRuhrVU6
2g2Ln1G9Fl/1mdXwhWXQzSh5klBN5vsxgZOQg=
MIME-Version: 1.0
Received: by 10.216.86.82 with SMTP id v60mr512904wee.180.1266847465362; Mon,
   22 Feb 2010 06:04:25 -0800 (PST)
Date: Mon, 22 Feb 2010 09:04:25 -0500
Message-ID: 8e3bcb0c1002220604i6a488740n48879cc0a2d6d...@mail.gmail.com
Subject: subscribe
From: Jim Collings jlistn...@gmail.com
To: d...@cargo.codehaus.org
Content-Type: text/plain; charset=ISO-8859-1

- Show quoted text -

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



Re: Cargo Still Active Project?

2010-02-22 Thread Jim Collings
Oh, wait.  I think I found it.
If you want to subscribe to one of the Cargo mailing lists, you have to go here:

http://xircles.codehaus.org/projects/cargo/lists

On Mon, Feb 22, 2010 at 9:16 AM, Jim Collings jlistn...@gmail.com wrote:
 I can't seem to subscribe to any of their lists. Is there a magic trick to 
 this?

 Jim C.

 Hi. This is the qmail-send program at mail.codehaus.org.
 I'm afraid I wasn't able to deliver your message to the following addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.

 d...@cargo.codehaus.org:
 ezmlm-reject: fatal: Sorry, I don't accept commands in the subject
 line. Please send a message to the -help address shown in the the
 ``Mailing-List:'' header for command info (#5.7.0)

 --- Below this line is a copy of the message.

 Return-Path: jlistn...@gmail.com
 Received: (qmail 5248 invoked by uid 89); 22 Feb 2010 14:04:22 -
 Received: from unknown (HELO ey-out-1920.google.com) (74.125.78.144)
  by mail.codehaus.org with SMTP; 22 Feb 2010 14:04:22 -
 Received: by ey-out-1920.google.com with SMTP id 4so626262eyg.4
       for d...@cargo.codehaus.org; Mon, 22 Feb 2010 06:04:25 -0800 (PST)
 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
       d=gmail.com; s=gamma;
       h=domainkey-signature:mime-version:received:date:message-id:subject
        :from:to:content-type;
       bh=GKZqx2pMqCASTyRaiEY9UxG7pbJmdZaRwMm3Xe/b3rU=;
       b=gMNdu0ho0zT4ppus7vs4IM/G/FeW0i1hoZTkGg/4Edh2vumf4FNFjI49QZ1G70sors
        fEFUJeZoQexRdjWNnMQm6H4RiOnoVm1jJ+5Whpfput2IDchWqp+ScSKd3D6HFwJZ37aZ
        hFAnN9HAjTy72ePNUyTCTcZ2k3PcAHaY38NKU=
 DomainKey-Signature: a=rsa-sha1; c=nofws;
       d=gmail.com; s=gamma;
       h=mime-version:date:message-id:subject:from:to:content-type;
       b=UkPheoVtlWBjQtM7elgjXX2XYSbWuJUjnK67aR2f3sRUqXYuLQy2UDbjW71oquBubh
        bq65Pz7YkzYDh+ODkuFht/P4n3x6nYPbg66dZaUvn16EnP4NKsfWlhQJSE6cnRuhrVU6
        2g2Ln1G9Fl/1mdXwhWXQzSh5klBN5vsxgZOQg=
 MIME-Version: 1.0
 Received: by 10.216.86.82 with SMTP id v60mr512904wee.180.1266847465362; Mon,
       22 Feb 2010 06:04:25 -0800 (PST)
 Date: Mon, 22 Feb 2010 09:04:25 -0500
 Message-ID: 8e3bcb0c1002220604i6a488740n48879cc0a2d6d...@mail.gmail.com
 Subject: subscribe
 From: Jim Collings jlistn...@gmail.com
 To: d...@cargo.codehaus.org
 Content-Type: text/plain; charset=ISO-8859-1

 - Show quoted text -


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



Re: Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-19 Thread Jim Collings
 Cargo supports Jetty and Tomcat, so it's not only for full Java EE
 containers no.

 /Anders


OK, then I'll have a closer look.

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



Re: Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-19 Thread Jim Collings
This looks pretty complex... then again maybe I had better look again
after I've had more sleep. ;-)

On Fri, Feb 19, 2010 at 6:51 AM, Jim Collings jlistn...@gmail.com wrote:
 Cargo supports Jetty and Tomcat, so it's not only for full Java EE
 containers no.

 /Anders


 OK, then I'll have a closer look.


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



Deployment Properties file

2010-02-18 Thread Jim Collings
OK, so I've a project that uses two different containers. Sun
Webserver 7 and Weblogic. I'm trying to set up an automated deployment
that is easily configurable for the individual developers, cause they
all have their stuff in different places.  What I want is a properties
file that the dev can stash in his home directory which will be read
by Maven to establish installation parameters and JVM options for each
container. Later on, I'll put an example file in subversion.  So
one thing at a time.  First off, I need to know how I can snatch the
properties out of a properties file.

What are some good ways to do this? Since the artefacts that are
deployed are in sub-modules, this seems like a good place to grab
those properties.


Jim C.

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



Re: Deployment Properties file

2010-02-18 Thread Jim Collings
 all have their stuff in different places.  What I want is a properties
 file that the dev can stash in his home directory which will be read
 by Maven to establish installation parameters and JVM options for each

 Maybe use settings.xml in user home dir? Otherwise this calls for a profile.
 Wayne

Profiles? Aren't those used for different platforms?  I think you
mistake my meaning. We have a project that has two subcomponents, one
of which runs on a full J2EE container, Weblogic and the other which
runs on Sun Webserver 7.

BTW, this seems to work OK:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdproperties-maven-plugin/artifactId
version1.0-alpha-2/version
executions
execution
phaseinitialize/phase
goals
goalread-project-properties/goal
/goals
configuration
files
file${env.HOME}/.somefile.properties/file
/files
/configuration
/execution
/executions
/plugin

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



Re: Deployment Properties file

2010-02-18 Thread Jim Collings
 Profiles are used to just swap between configurations, run plugins that 
 normally don't run, etc.

 Stuff you'd like to be able to switch on and off.

 If your goal is to just load properties, that seems like a good approach.

 Now if you had a properties file for each server type, then you'd put each 
 property file loading configuration in a profile devoted to that app server 
 (but from what I can tell, you get that already).

Well, the objective is to eventually have all our projects
configurable like this. We have a dang large number of projects so
keeping each one down to one file would probably be wise. Besides I
don't want the devs having to look in more than one place for config
of one project. Ideally this would be two projects, but that is not my
call. I just have to roll with it. ;-)

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



Deployment to Sun Weserver7 - Was: Deployment Properties file

2010-02-18 Thread Jim Collings
For those just starting this, I'm automating a deployment of a
two-part project that has one part on Sun Webserver 7 and another on
Weblogic. Each dev should be able to have his or her own special
configuration so in the previous thread I figured out how to load
stuff from a centralized properties file located in their home
directory. This will allow our devs to specify config without any
chance of it getting into subversion accidentally. A well commented
example config file will be provided in the subversion repo.

OK, so I've yanked all the requisite properties out of the properties
file. That means I know everything I need to know about the server I'm
deploying to.  So how do I deploy it?
Is there a plugin out there that I've not yet found which will deploy
to Webserver 7 in a more friendly/agnostic fashion or will I have to
use a bunch of exec commands to utilize the command line interface for
Webserver 7?



Jim C.

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



Re: Deployment Properties file

2010-02-18 Thread Jim Collings
On Thu, Feb 18, 2010 at 2:56 PM, Wayne Fay wayne...@gmail.com wrote:
 Profiles? Aren't those used for different platforms?  I think you
 mistake my meaning. We have a project that has two subcomponents, one
 of which runs on a full J2EE container, Weblogic and the other which
 runs on Sun Webserver 7.

 Any time you are thinking I need to do X for some builds of this
 project and Y for others your first thought should be profiles.

 Wayne

Right and it's current incarnation is all one build. I didn't make it,
I'm just coping with it. ;-)

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



How to prevent deployment on release

2009-12-10 Thread Jim Collings
The objective is to prevent maven's attempt at site deployment.
Everything else, though, I want. Problem is that when I use the xml
below, it ONLY installs.

So I added goals with install:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-release-plugin/artifactId
version...someversion.../version
configuration
connectionUrl...appropriate connection
stuff.../connectionUrl
tagBase...appropriate connection stuff.../tagBase
goals
install
/goals
/configuration
 /plugin


Clue?

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



Re: How to prevent deployment on release

2009-12-10 Thread Jim Collings
I believe the only difference here is that this is a property and I am
using xml but I imagine it is the same thing.

On Thu, Dec 10, 2009 at 9:50 AM, Olivier Lamy ol...@apache.org wrote:
 You can configure used goals with this :
 http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#goals

 2009/12/10 Jim Collings jlistn...@gmail.com:
 The objective is to prevent maven's attempt at site deployment.
 Everything else, though, I want. Problem is that when I use the xml
 below, it ONLY installs.

 So I added goals with install:

 plugin
                groupIdorg.apache.maven.plugins/groupId
                artifactIdmaven-release-plugin/artifactId
                version...someversion.../version
                configuration
                    connectionUrl...appropriate connection
 stuff.../connectionUrl
                    tagBase...appropriate connection stuff.../tagBase
                    goals
                    install
                    /goals
                /configuration
  /plugin


 Clue?

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





 --
 Olivier

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



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



Re: How to prevent deployment on release

2009-12-10 Thread Jim Collings
How complicated is that to do?  We don't generally use profiles around
here so I've little experience with them.

On Thu, Dec 10, 2009 at 9:48 AM, Adam Leggett (UPCO)
adam.legg...@upco.co.uk wrote:
 I believe its the default release profile that triggers the site
 deployment stuff. There is an option for setting custom ones on the
 perform mojo:

 http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#releaseProfiles


 On Thu, 2009-12-10 at 09:25 -0500, Jim Collings wrote:
 The objective is to prevent maven's attempt at site deployment.
 Everything else, though, I want. Problem is that when I use the xml
 below, it ONLY installs.

 So I added goals with install:

 plugin
                 groupIdorg.apache.maven.plugins/groupId
                 artifactIdmaven-release-plugin/artifactId
                 version...someversion.../version
                 configuration
                     connectionUrl...appropriate connection
 stuff.../connectionUrl
                     tagBase...appropriate connection stuff.../tagBase
                     goals
                     install
                     /goals
                 /configuration
  /plugin


 Clue?

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



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



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



Re: How to prevent deployment on release

2009-12-10 Thread Jim Collings
Aw crud.
Thanks for your help guys but this turned out to be a case of
developer headspace and timing. ;-)

I forgot that I had to call maven:prepare first. My assumption at the
time was that it would be called by maven:perform if it was required.
Not the case though.

Works great now.

Jim C.

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



Clue for setting assembly file name

2009-11-04 Thread Jim Collings
I want to append the subversion revision to the file name of the
assembly but not the war file. I believe I already have access to the
${buildNumber} as it shows up in my manifest appropriately.

Clue?


Jim C.

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



Execute a command cross-platform?

2009-11-04 Thread Jim Collings
Assume that a command exists on all OS's and is in the command
execution path.  'svnversion', for example.  Is there a plugin that
will allow one to execute it?


Jim C.

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



maven-build-number buggy

2009-11-04 Thread Jim Collings
It seems to me that the API only supports execution of the 'svn'
command and it's various parameters and switches. The problem is that
in subversion, a different executable command is used to retrieve a
proper detailed version number of the local copy, that being
'svnversion'. Using this command, I can tell if I have a mixed
version, a modified version, etc. For example:

[...@localhost sb_rc1 993]$ svn info | grep Revision
Revision: 51159
[...@localhost sb_rc1 994]$ svnversion
51159M
[...@localhost sb_rc1 994]$

Guess what? 'svn info' is lying to me here. My local copy is modified
from the original 51159 which is why 'svnversion' reports the version
number with an M attached to it. What if I'm experimenting with a
branch that contains a mixed version? 'svnversion' can handle this.
'svn info' cannot. Worse, as shown above, it will provide misleading
and potentially disastrous information if, for example, I'm basing a
release or some other important suppositions off of the bad info.


Jim C.

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



Porting maven generated war files and ear files to weblogic 10.3

2009-10-08 Thread Jim Collings
If we can figure this issue out, I'll see if I can't publish/post a
maven-based solution in the Maven and Oracle forums so that others
will not have to go through our pain.

We are having all the usual problems regarding where Weblogic expects
to find things and what exclusions need to be made in weblogic.xml for
war files and weblogic-application.xml for ear files. Any insights
would be deeply appreciated.

Here is what our exploded war structure currently looks like.

.
|index.jsp
|WEB-INF
| |lib
| | |...a long list of jar files
| |tags
| | |...a short list of tag files
| |applicationContext.xml
| |web.xml
| |content
| | |...a bunch of jsps
| |tlds
| | |...some tlds
| |classes
| | |mailProperties.properties
| | |struts.xml
| | |logback.xml
| | |com ... the root of our class heiarchy
|images
| |...a list of images
|META-INF
| |maven
| | |com
| | | |project-name
| | | | |pom.xml
| | | | |pom.properties
| |MANIFEST.MF
|script
| |...some java script files
|style
| |...some css files

Exceptions when trying to deploy are as follows:

INFO: ... initialized Struts-Spring integration successfully
java.lang.Exception: Could not load
servers/AdminServer/tmp//appmergegen_1254502686535_OurApp/war/WEB-INF/classes/com...
at 
com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:745)
at 
com.opensymphony.xwork2.util.finder.ClassFinder.init(ClassFinder.java:148)

The exception above repeats for every .class file found below
WEB-INF/classes/com, i.e. the the ones in this module rather than the
ones in included modules.
Checking the file system shows that there is no such directory as
appmergegen_1254502686535_conap. I'm uncertain if there is actually
supposed to be anything there, but it would seem like it.

I've a theory that if we can solve the above issue, we can solve the
rest ourselves.

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



Re: Differences between app servers

2009-10-08 Thread Jim Collings
 But it still is incredibly annoying that I have to send the war file with
 all libraries to make it to work.

Clarification?  Are you installing the jar libraries as Oracle shared
libraries or something?  I'm totally gonna blow a gasket if I have to
do that.

I've created a new thread with more details of the problem in
question. It's entitled Porting maven generated war files and ear
files to weblogic 10.3.


Jim C.

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



Re: Porting maven generated war files and ear files to weblogic 10.3

2009-10-08 Thread Jim Collings
 Exceptions when trying to deploy are as follows:

 INFO: ... initialized Struts-Spring integration successfully
 java.lang.Exception: Could not load
 servers/AdminServer/tmp//appmergegen_1254502686535_OurApp/war/WEB-INF/classes/com...

I wonder if this might be related to staging but I've fiddled with the
staging settings already. No dice.

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



Re: Differences between app servers

2009-10-07 Thread Jim Collings
Not so much.  Take Weblogic for example. You really can't deploy a
Struts2 based WAR file to it because of library conflicts. It would be
cool if I could specify somehow, somewhere that this is a Weblogic
project.  Then it would always build as an ear and would include a
weblogic-application.xml with the excludes/prefers set so that the
conflicts don't happen. Also Weblogic insists on APP-INF rather than
WEB-INF. Perhaps that is related to the fact that it is now an *.ear
file though, I don't know.

On Wed, Oct 7, 2009 at 3:59 AM, Brett Randall javabr...@gmail.com wrote:
 On Wed, Oct 7, 2009 at 11:21 AM, Jim C. jclli...@gmail.com wrote:

 Are there archetypes or something else out there that will differentiate
 between application servers?  We try to write cross platform Java and it
 seems like our app server vendors are fighting us tooth and nail. I
 suppose that is the reason for GlassFish but our shop isn't allowed to
 use it.


 Jim C.


 What types of issue/differences are you facing? Are they compile/deploy or
 runtime issues?

 Brett


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



Re: Need a separate jar from war in assembly

2009-09-04 Thread Jim Collings
This is still a problem. Still not working. Clues anyone?

On Mon, Aug 31, 2009 at 10:50 AM, Jim Collingsjlistn...@gmail.com wrote:
 BTW, I've tried this by using a dependancySet in the descriptor. This
 didn't work out.


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



Re: Need a separate jar from war in assembly

2009-09-04 Thread Jim Collings
   So, the recommended way is to have something like this, correct?

   xx-weblogic (all code for web-application)
   xx-webapp (the actual war, containing src/main/webapp, src/main/resources,
 but no src/main. Code is really included though .jar files in lib).

I've created a xx-weblogic module. That part was easy. Problem is that
there is no lib dir. Maven doesn't copy libs to the source tree in
accordance with the idea that they should not be in the version
control system. So the question remains... how do I get the jar from
the repository and into the assembly?

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



Getting a jar from a repo directly to an assembly?

2009-09-04 Thread Jim Collings
Is there any way to do this? The jar in question is not part of my
build but is part of my assembly as it needs to be installed into the
web container by the installation script.
I've had one suggestion so far that I should create a separate module
for getting the jar but I'll need more details. The jar is never
downloaded and after all why would it be?  There isn't any code in the
module in question. It just makes an empty jar file. It has a pom and
a manifest and that's it.

Clues?
Pontifications?
Explanations?
Remonstrations?
or dare I posit...
Combinations? ;-)

Jim C.

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



Re: Need a separate jar from war in assembly

2009-08-31 Thread Jim Collings
The question in question was mine rather than Mr. Russo's. ;-)

So I've created a SunWebserver module and added the jar as a
dependency.  What maven is producing now is nothing when I use the
compile goal and a jar with manifest.mf, pom.xml, pom.properties etc.
Still no jar though. Not even as a subcomponent of the produced jar
file.


Jim C.


On Fri, Aug 28, 2009 at 10:43 PM, Wendy Smoakwsm...@gmail.com wrote:
 Yes, it's common to have the code in a separate module from the
 webapp.  It makes it easier to do unit testing of the code separately
 from integration testing the webapp.

 I'm not sure how that relates to your original question though.  I see
 the jar module and the war module... where is the assembly plugin
 configured?  (Or, were you using 'assembly' in a generic sense?)

 If you're just trying to convince Maven not to put your JDBC driver in
 the war, try using 'provided' scope for that dependency.

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



Re: Need a separate jar from war in assembly

2009-08-31 Thread Jim Collings
BTW, I've tried this by using a dependancySet in the descriptor. This
didn't work out.

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



Assemblies - add driver jar to assembly archive

2009-08-30 Thread Jim Collings
So my container requires a jdbc driver for a resource and we are doing a
scripted install of our war file.  I need the jar but I need it outside
the war file and inside the assembly zip file so that my installation
script can put it in the container's classpath.  Any suggestions as to
how I might accomplish this?


Jim C.



signature.asc
Description: OpenPGP digital signature


Need a separate jar from war in assembly

2009-08-28 Thread Jim Collings
So I have a jar that needs to be in an assembly but not in the war
file. It's a jdbc driver for the appserver.
How can I get it into the compressed archive but outside of the *.war file?

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



Re: Prevent Install of Assembly SOLVED

2009-07-28 Thread Jim Collings
Jim Collings wrote:
 OK, looks like the assembly building twice is an actual maven bug.
 
 On Fri, Jul 24, 2009 at 11:31 AM, Jim Collingsjlistn...@gmail.com wrote:
 OK, thanks!  That keeps if from installing.  Now if I can just keep it
 from building the assembly twice. I'll have it made. ;-/

 Jim C.

 On Fri, Jul 24, 2009 at 11:14 AM, Mohan KRkmoh@gmail.com wrote:
 set the attachfalse/attach in the plugin config.

OK, so basically, I had an execution for install and another for
package. I only needed package because install calls package. This is
why the assemblies were running twice.


Jim C.



signature.asc
Description: OpenPGP digital signature


SkipAssembly usage

2009-07-27 Thread Jim Collings
Found here:
http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html#skipAssembly

I've been trying to use it to keep the assembly from building twice.
Phase is set to package and goal is single.
Typically the build is constructed by calling mvn clean install.

Any Ideas?


Jim C.

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



Re: Prevent Install of Assembly

2009-07-24 Thread Jim Collings
Yes. I've been reading this page. Can you be more specific?

On Thu, Jul 23, 2009 at 11:50 AM, Nord, Jamesjn...@nds.com wrote:
 http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html#attach

 -Original Message-
 From: Jim Collings [mailto:jlistn...@gmail.com]
 Sent: 23 July 2009 16:43
 To: Maven Users List
 Subject: Re: Prevent Install of Assembly

 Didn't work. Neither did changing appendAssemblyId to false.
 Anybody have additional ideas?

 On Thu, Jul 23, 2009 at 11:25 AM, Jim
 Collingsjlistn...@gmail.com wrote:
  http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
 
  So the docs I found at the link above had this to say:
 
  When the assembly is created it will use the assemblyId as the
  artifact's classifier and will attach the created assembly to the
  project and will be uploaded into the repository on an install and
  deploy goal.'
 
  So in theory all I have to do is change the assemblyId?
 
  I'll see if I can figure out how to do this and try a test.
 
  On Thu, Jul 23, 2009 at 11:18 AM, Jim
 Collingsjlistn...@gmail.com wrote:
  So I have a sub module that has an assembly.  It is
 associated with
  the package goal. Each time I run install though, the zip file
  created is placed in the repository. There is no need for
 this.  How
  can I prevent it?
 
 
  Jim C.
 
 

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



 **
 This message is confidential and intended only for the addressee. If you have 
 received this message in error, please immediately notify the 
 postmas...@nds.com and delete it from your system as well as any copies. The 
 content of e-mails as well as traffic data may be monitored by NDS for 
 employment and security purposes. To protect the environment please do not 
 print this e-mail unless necessary.

 NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 
 4EX, United Kingdom. A company registered in England and Wales. Registered 
 no. 3080780. VAT no. GB 603 8808 40-00
 **

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



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



Re: Prevent Install of Assembly

2009-07-24 Thread Jim Collings
OK, thanks!  That keeps if from installing.  Now if I can just keep it
from building the assembly twice. I'll have it made. ;-/

Jim C.

On Fri, Jul 24, 2009 at 11:14 AM, Mohan KRkmoh@gmail.com wrote:
 set the attachfalse/attach in the plugin config.

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



Re: Prevent Install of Assembly

2009-07-24 Thread Jim Collings
OK, looks like the assembly building twice is an actual maven bug.

On Fri, Jul 24, 2009 at 11:31 AM, Jim Collingsjlistn...@gmail.com wrote:
 OK, thanks!  That keeps if from installing.  Now if I can just keep it
 from building the assembly twice. I'll have it made. ;-/

 Jim C.

 On Fri, Jul 24, 2009 at 11:14 AM, Mohan KRkmoh@gmail.com wrote:
 set the attachfalse/attach in the plugin config.


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



Re: Prevent Install of Assembly

2009-07-24 Thread Jim Collings
Well, I tried this in the configuration section of the assembly but
it didn't seem to change anything.

skipAssemblyinstall/skipAssembly

In the documentation it metions an expression: ${skipAssembly}
What does this represent?


Jim C.

On Fri, Jul 24, 2009 at 12:16 PM, Dan Trandant...@gmail.com wrote:
 http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html#skipAssembly

 On Fri, Jul 24, 2009 at 8:31 AM, Jim Collingsjlistn...@gmail.com wrote:
 OK, thanks!  That keeps if from installing.  Now if I can just keep it
 from building the assembly twice. I'll have it made. ;-/

 Jim C.

 On Fri, Jul 24, 2009 at 11:14 AM, Mohan KRkmoh@gmail.com wrote:
 set the attachfalse/attach in the plugin config.

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



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



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



Prevent Install of Assembly

2009-07-23 Thread Jim Collings
So I have a sub module that has an assembly.  It is associated with
the package goal. Each time I run install though, the zip file
created is placed in the repository. There is no need for this.  How
can I prevent it?


Jim C.

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



Re: Prevent Install of Assembly

2009-07-23 Thread Jim Collings
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html

So the docs I found at the link above had this to say:

When the assembly is created it will use the assemblyId as the
artifact's classifier and will attach the created assembly to the
project and will be uploaded into the repository on an install and
deploy goal.'

So in theory all I have to do is change the assemblyId?

I'll see if I can figure out how to do this and try a test.

On Thu, Jul 23, 2009 at 11:18 AM, Jim Collingsjlistn...@gmail.com wrote:
 So I have a sub module that has an assembly.  It is associated with
 the package goal. Each time I run install though, the zip file
 created is placed in the repository. There is no need for this.  How
 can I prevent it?


 Jim C.


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



Re: Prevent Install of Assembly

2009-07-23 Thread Jim Collings
Didn't work. Neither did changing appendAssemblyId to false.
Anybody have additional ideas?

On Thu, Jul 23, 2009 at 11:25 AM, Jim Collingsjlistn...@gmail.com wrote:
 http://maven.apache.org/plugins/maven-assembly-plugin/usage.html

 So the docs I found at the link above had this to say:

 When the assembly is created it will use the assemblyId as the
 artifact's classifier and will attach the created assembly to the
 project and will be uploaded into the repository on an install and
 deploy goal.'

 So in theory all I have to do is change the assemblyId?

 I'll see if I can figure out how to do this and try a test.

 On Thu, Jul 23, 2009 at 11:18 AM, Jim Collingsjlistn...@gmail.com wrote:
 So I have a sub module that has an assembly.  It is associated with
 the package goal. Each time I run install though, the zip file
 created is placed in the repository. There is no need for this.  How
 can I prevent it?


 Jim C.



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



Re: Assembly plugin Question

2009-07-19 Thread Jim Collings
Brian E. Fox wrote:
 Make a new module that builds your assembly and place a dependency on
 the war so that it will run last.

Hey, that's a great idea! That will also allow me to separate the
assembly from the rest, making is easier for other Dev's to understand.
Thanks! :-)


Jim C.



signature.asc
Description: OpenPGP digital signature


Assembly plugin Question

2009-07-17 Thread Jim Collings
So I have a project which builds several submodules but culminates in
the construction of a war file out of those submodules.  In the end,
all I need is the war file. How can I run an assembly AFTER and ONLY
AFTER everything else is done and exclusive of the submodules?


Jim C.

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



Re: Assembly plugin Question

2009-07-17 Thread Jim Collings
So in other terms, I want to run an assembly in a specified phase for
a specified module.

On Fri, Jul 17, 2009 at 9:10 AM, Jim Collingsjlistn...@gmail.com wrote:
 So I have a project which builds several submodules but culminates in
 the construction of a war file out of those submodules.  In the end,
 all I need is the war file. How can I run an assembly AFTER and ONLY
 AFTER everything else is done and exclusive of the submodules?


 Jim C.


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



Re: Assembly plugin Question

2009-07-17 Thread Jim Collings
I figured a way to make this work.  The way the project is arranged,
there is the parent module... but there is also a submodule which
generates the war and has all the others as dependencies. Put the
assembly code in this module and it only runs when that module runs.
:-)

On Fri, Jul 17, 2009 at 9:36 AM, Jim Collingsjlistn...@gmail.com wrote:
 So in other terms, I want to run an assembly in a specified phase for
 a specified module.

 On Fri, Jul 17, 2009 at 9:10 AM, Jim Collingsjlistn...@gmail.com wrote:
 So I have a project which builds several submodules but culminates in
 the construction of a war file out of those submodules.  In the end,
 all I need is the war file. How can I run an assembly AFTER and ONLY
 AFTER everything else is done and exclusive of the submodules?


 Jim C.



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



Assemblies?

2009-07-09 Thread Jim Collings
I have a *.war file that is already constructed. All I want to do is
Zip it together with some OpenSSO jars and an installation script.
Problem is that I don't have a sufficient understanding of how the
assembly file tools work. They don't seem to behave in a standard
manner.  Anyone know where I can get clues in this regards?  I've been
all over the docs and have tried many different combinations but
either I get everything from the root of the project or I get only
specific files and no directories.


Jim C.

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



Add a directory to an assembly?

2009-07-09 Thread Jim Collings
So what I want to produce is a zip file that contains:

An installation script
A directory with OpenSSO files for the app server.
Possibly a directory with the app server itself.

Problem: I can't, for the life of me, figure out how to copy and zip a
directory into an assembly. I've been trying to use fileSets but they
don't seem to pertain to directories at all.

Clues?

Jim C.

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