Deploying the application after the build

2006-07-21 Thread Prashanth Krishnamurthy
Once the build is done, I want the application (.war
file ) to be deployed on a server running on different
machine. How do I do this? Please help.

thanks
--Prashanth

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


RE: Deploying the application after the build

2006-07-21 Thread Bravo, Kris
Use plugin which corresponds to your server of choice, or check out
cargo (not sure how far along this is). Mojo has some weblogic, jboss
and tomcat plugins.

Do me a favor and feed back whether or not you successfully remote
deploy. I'm curious about the status of this type of action.

kris bravo 

-Original Message-
From: Prashanth Krishnamurthy [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 3:24 PM
To: continuum-users@maven.apache.org
Subject: Deploying the application after the build

Once the build is done, I want the application (.war file ) to be
deployed on a server running on different machine. How do I do this?
Please help.

thanks
--Prashanth

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


Re: Deploying the application after the build

2006-07-21 Thread Wayne Fay

Sounds like a job for the Cargo M2 plugin:
http://cargo.codehaus.org/

Wayne

On 7/21/06, Prashanth Krishnamurthy [EMAIL PROTECTED] wrote:

Once the build is done, I want the application (.war
file ) to be deployed on a server running on different
machine. How do I do this? Please help.

thanks
--Prashanth

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



Re: Maven 1 multiproject build

2006-07-21 Thread Arnaud HERITIER

is it with maven 1.0.X ?
In this case, did you updated your maven script as it is noted on the web
site.

cheers

arnaud

On 7/21/06, Gabriel Page [EMAIL PROTECTED] wrote:


Hi



I have a continuum build that is executing multiproject:install on a
Maven 1 project. Continuum reports the builds to be successful even when
they fail.



Is this a known issue?



Thanks



Gabriel



Communications on or through ioko's computer systems may be monitored or
recorded to secure effective system operation and for other lawful purposes.

Unless otherwise agreed expressly in writing, this communication is to be
treated as confidential and the information in it may not be used or
disclosed except for the purpose for which it has been sent. If you have
reason to believe that you are not the intended recipient of this
communication, please contact the sender immediately. No employee is
authorised to conclude any binding agreement on behalf of ioko with another
party by e-mail without prior express written confirmation.

ioko365 Ltd.  VAT reg 656 2443 31. Reg no 3048367. All rights reserved.




Re: Deploying the application after the build

2006-07-21 Thread Adam

We tried this with Cargo but, ran into some problems with the way it
was starting the Tomcat server during the build and not allowing a
Continuum build to finish because the server was running in the build.
We eventually wrote a Maven Plugin that did this for us.  I think
there is a maven:tomcat plugin (in the sandbox still?) that is worth
looking into.

On 7/21/06, Wayne Fay [EMAIL PROTECTED] wrote:

Sounds like a job for the Cargo M2 plugin:
http://cargo.codehaus.org/

Wayne

On 7/21/06, Prashanth Krishnamurthy [EMAIL PROTECTED] wrote:
 Once the build is done, I want the application (.war
 file ) to be deployed on a server running on different
 machine. How do I do this? Please help.

 thanks
 --Prashanth

 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com





--
Adam Altemus
[EMAIL PROTECTED]


Re: Utility to create upload bundles

2006-07-21 Thread Ivo Limmen

Sounds like a very usefull tool. I recently had the same problem, this would
have been a great help.

On 7/20/06, Tim Kettler [EMAIL PROTECTED] wrote:


Hi,

I recently had to add a bunch of 3d-party artifacts to our repository and
creating the
poms with all the transitive dependencies by hand was a major pain in the
a**. So I sat
down and wrote a little tool that takes a couple of jars as its input,
analyzes the
dependencies, generates the poms and writes upload bundles for each
artifact. It has a
rudimentary GUI that allows basic editing of the generated information for
the poms.

The tool is currently not very polished and has much room for improvements
but it is
useful and works for me. If there is interest in the community I will look
for a place
where I can make the tool available to the public.

-Tim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [m2] Assemby plugin Question

2006-07-21 Thread dcabasson

Sure,

But if your point is to add up to wars, you can just use the war plugin:
http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html

And no need for zips or whatever else.

Denis.


ben short-3 wrote:
 
 I mentioned zips as the assembly plugin page
 http://maven.apache.org/plugins/maven-assembly-plugin/unpack-mojo.html
 says that it can only unpack jar ans zip files.
 
 Ben
 
-- 
View this message in context: 
http://www.nabble.com/-m2--Assemby-plugin-Question-tf1966965.html#a5429055
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 1.0.2 on z/OS

2006-07-21 Thread Anuradha Weeraman

On 7/20/06, Arnaud HERITIER [EMAIL PROTECTED] wrote:

I never tried
Maven 1.1 bundles ant 1.6.5. I don't know if it can fix your problem. Did
you test ?


Based on your suggestion, I downloaded ant 1.5.3-1 (the version
bundled with maven), 1.5.4 and 1.6.2 and ran the following sample
build.xml with each:

?xml version='1.0'?
project name=HelloAnt default=testgoal basedir=.

 property environment=env/

 target name=testgoal
echoTesting!/echo
 /target

/project

What I noticed was that, it works fine when IBM_JAVA_OPTIONS is unset,
but spews ASCII text when IBM_JAVA_OPTIONS is set to:

-Dfile.encoding=ISO8859-1 -Dconsole.encoding=IBM-1047 -Xnoargsconversion

Maven, unfortunately requires IBM_JAVA_OPTIONS to be set as all the
maven.xml's and java files are in ISO8859-1.

This might be a problem better addressed on the ant mailing lists, but
if anybody knows a possible workaround for this, I'd appreciate it.

Thanks,
Anuradha

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: basedir JavaSource does not exist

2006-07-21 Thread Jeff Mutonho

On 7/20/06, Mike Perham [EMAIL PROTECTED] wrote:

Is it JavaSource or JavaSources?  You use both below.


I'm sorry , that was a typo.It's JavaSource

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: basedir JavaSource does not exist

2006-07-21 Thread Jeff Mutonho


Can we have a look at your parent pom?

Looks like maven is trying to build a war out of your parent project


Sure thing.There goes :

project
 modelVersion4.0.0/modelVersion
 groupIdza.co.mycompany.eportal/groupId
 artifactIdmycompany-eportal/artifactId
 namemycompany ePortal/name
 packagingpom/packaging
 version1.0.0/version
 descriptionmycompany J2EE application called ePortal/description
 inceptionYear2005/inceptionYear
 developers
   developer
 nameJeff  Mutonho/name
 idjmutonho/id
 email[EMAIL PROTECTED]/email
 organizationmycompany/organization
 roles
   roleBuild Engineer/role
 /roles
 timezone+2/timezone
   /developer

 /developers
dependencies
   dependency
 groupIdoracle.ldap/groupId
 artifactIdldapjclnt/artifactId
 version1.0/version
 !--scopetest/scope--
   /dependency
   dependency
 groupIdjavax.j2ee/groupId
 artifactIdj2ee/artifactId
 version1.3.0/version
 !--scopetest/scope--
   /dependency
   dependency
 groupIdnet.sf.hibernate2/groupId
 artifactIdhibernate/artifactId
 version2.0.0/version
 !--scopetest/scope--
   /dependency
 dependency
 groupIdorg.springframework/groupId
 artifactIdspring/artifactId
 version1.2.3/version
 !--scopetest/scope--
   /dependency
   dependency
 groupIdorg.apache.log4j/groupId
 artifactIdlog4j/artifactId
 version1.2.13/version
 !--scopetest/scope--
   /dependency
   dependency
 groupIdcommons-logging/groupId
 artifactIdcommons-logging/artifactId
 version1.0.4/version
 !--scopetest/scope--
   /dependency
   dependency
 groupIdza.co.mycompany/groupId
 artifactIdOBPortalSynchMDB/artifactId
 version1.0.0/version
 !--scopetest/scope--
   /dependency
  dependency
 groupIdza.co.mycompany/groupId
 artifactIdEBPortalSynchMDB/artifactId
 version1.0.0/version
 !--scopetest/scope--
   /dependency
 /dependencies
  build
   plugins
 plugin
artifactIdmaven-antrun-plugin/artifactId
 version1.0/version
/plugin
   /plugins
  /build
   reporting
   plugins
 plugin
   artifactIdmaven-surefire-report-plugin/artifactId
   configuration
 showSuccessfalse/showSuccess
   /configuration
 /plugin
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-jxr-plugin/artifactId
 /plugin
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   configuration
 links
   linkhttp://java.sun.com/j2se/1.4.2/docs/api/link
   linkhttp://plexus.codehaus.org/ref/1.0-alpha-9/apidocs/link
 /links
 aggregatetrue/aggregate
   /configuration
 /plugin
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-pmd-plugin/artifactId
   configuration
 rulesets
   ruleset/rulesets/basic.xml/ruleset
   ruleset/rulesets/imports.xml/ruleset
   ruleset/rulesets/unusedcode.xml/ruleset
   ruleset/rulesets/finalizers.xml/ruleset
 /rulesets
   /configuration
 /plugin
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-checkstyle-plugin/artifactId
   configuration
 configLocationconfig/maven_checks.xml/configLocation
   /configuration
 /plugin
 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdtaglist-maven-plugin/artifactId
   configuration
 tags
   tagTODO/tag
   tag@todo/tag
   tagFIXME/tag
   tagXXX/tag
 /tags
   /configuration
 /plugin
 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
 /plugin
   /plugins
 /reporting
 organization
   namemycompany Limited/name
   urlhttp://www.mycompany.co.za//url
 /organization
 modules
   moduleeportal-services/module
   !--moduleeportal-services-junit/module--
   moduleeportal-messaging/module
   moduleeportal-messaging-support/module
   moduleeportal-webservices/module
   moduleeportal-domain/module
   moduleeportal-exceptions/module
   moduleeportal/module
 /modules
 profiles
!--profile
 idtomcat5x/id
 activation
   activeByDefaulttrue/activeByDefault
 /activation
 modules
   moduleeportal/module
 /modules
   /profile--
   profile
 ideportal-services-junit/id
 activation
   property
 nameenableCiProfile/name
 valuetrue/value
   /property
 /activation
 modules
   moduleeportal-services-junit/module
 /modules
   /profile
 /profiles
 ciManagement
  systemcontinuum/system
  urlhttp://localhost:8080/continuum/url
  notifiers
notifier
  typemail/type
   configuration
address[EMAIL PROTECTED]/address
   /configuration
/notifier
   /notifiers
/ciManagement
scm
connection
  scm:cvs:pserver:mutonj:[EMAIL PROTECTED]:/var/lib/cvsroot:dev
/connection

[m2]: Discovering problems with the maven-site and the maven-javadoc plugins - No staging of javadocs

2006-07-21 Thread Arne Sutor
Hi all,

 

as newbie I am just playing around with maven2 in a multi-project
environment. While setting up the documentation for our project I discovered
that maven when executing the site goal generates everything fine including
the javadoc. But as soon as I use the stage goal, maven seems not to stage
the generated javadocs in the directory target/statging/[..]/apidocs. How
can I set up my pom, that the javadoc plugin during staging generates the
javadocs in the staging directory?

 

Thankful for everyone who can answer that question,

 

Arne

 



[m2] Another findbugs plugin problem - site goal resides into a nullpointer execption

2006-07-21 Thread Arne Sutor
Hi all,

 

I set up my project so far and I wanted to include the findbugs in the
reporting section. Reading the Mailing list archives I discovered several
hints. Executing the goal findbugs:findbugs does not result into any errors.
But as soon as I start the mvn site:site goal, I will get the following
stack trace.

Does anyone have a solution for this?

 

Thanks in advanced,

 

Arne

 

Here is the stack trace:

 

[INFO] Velocimacro : initialization complete.

[INFO] Velocity successfully started.

[INFO]


[ERROR] FATAL ERROR

[INFO]


[INFO] null

[INFO]


[INFO] Trace

java.lang.NullPointerException

at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.
java:292)

at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPl
uginManager.java:198)

at
org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPlugi
nManager.java:487)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(Defau
ltLifecycleExecutor.java:1292)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecy
cleExecutor.java:657)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecy
cleExecutor.java:637)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:512)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:454)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:306)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:273)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:140)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)

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:585)

at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

 

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

 



Prevent maven from adding pom file to jar

2006-07-21 Thread Maximilian . Antoni
Title: Prevent maven from adding pom file to jar






Hi all,


Is there a way of preventing maven from adding the effective pom to the generated JAR?


Thanks




Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Prevent maven from adding pom file to jar

2006-07-21 Thread Pete Marvin King


http://maven.apache.org/guides/mini/guide-archive-configuration.html 



[EMAIL PROTECTED] wrote:
 Hi all,

 Is there a way of preventing maven from adding the effective pom to the
 generated JAR?

 Thanks


   
 


 Visit our website at http://www.ubs.com

 This message contains confidential information and is intended only 
 for the individual named.  If you are not the named addressee you 
 should not disseminate, distribute or copy this e-mail.  Please 
 notify the sender immediately by e-mail if you have received this 
 e-mail by mistake and delete this e-mail from your system.

 E-mail transmission cannot be guaranteed to be secure or error-free 
 as information could be intercepted, corrupted, lost, destroyed, 
 arrive late or incomplete, or contain viruses.  The sender therefore 
 does not accept liability for any errors or omissions in the contents 
 of this message which arise as a result of e-mail transmission.  If 
 verification is required please request a hard-copy version.  This 
 message is provided for informational purposes and should not be 
 construed as a solicitation or offer to buy or sell any securities or 
 related financial instruments.

   
 

 -
 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: basedir JavaSource does not exist

2006-07-21 Thread dcabasson


Jeff Mutonho wrote:
 

 Can we have a look at your parent pom?

 Looks like maven is trying to build a war out of your parent project
 
 Sure thing.There goes :
 

Ok, that was not the interesting parent. Guess I wanted to say the eportal
pom (which is the parent of the eportal-web module, isn't it?)

Denis.
-- 
View this message in context: 
http://www.nabble.com/basedir-JavaSource-does-not-exist-tf1973672.html#a5430061
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Another findbugs plugin problem - site goal resides into a nullpointer execption

2006-07-21 Thread dcabasson

Care to show the reporting section fo your pom? 

Most of the time, these NPE comes from mispelled plugin names/groups (which
can explain that the plugin is working fine when launched from command
line). 

Denis.
-- 
View this message in context: 
http://www.nabble.com/-m2--Another-findbugs-plugin-problem---site-goal-resides-into-a-nullpointer-execption-tf1978903.html#a5430086
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: pack multiple jars into one

2006-07-21 Thread dcabasson

Have a look at the maven-assembly-plugin. It basically does what you're
looking for.

http://maven.apache.org/plugins/maven-assembly-plugin/predefined.html

The jar-with-dependencies descriptor creates a single big jar with all of
your dependencies.

If you only want your own jars bundled together, I guess you should put the
scope provided for any other jar on your depending upon.

Cheers.

Denis.


Eric Zhao wrote:
 
 my project has 3 modules, one of which depends on the other two. After i
 package it with Maven 2, i got 3 jars. This is ok but i want to pack them
 into one jar file (so that when i distribute it, my client has to deal
 with one jar file). How to do that?
 

-- 
View this message in context: 
http://www.nabble.com/pack-multiple-jars-into-one-tf1976655.html#a5430095
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: [m2] Another findbugs plugin problem - site goal resides into a nullpointer execption

2006-07-21 Thread Arne Sutor
Hi Denis,

Thanks for your answer.
Here is the out commented line of the reporting section:

reporting
plugins
!--plugin
groupIdmaven-plugins/groupId

artifactIdmaven-findbugs-plugin/artifactId
version1.0-SNAPSHOT/version
configuration

outputDirectorytarget/site/outputDirectory
thresholdLow/threshold
/configuration 
/plugin--
/plugins
/reporting

With regards,

Arne

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag
von dcabasson
Gesendet: Freitag, 21. Juli 2006 10:24
An: users@maven.apache.org
Betreff: Re: [m2] Another findbugs plugin problem - site goal resides into a
nullpointer execption


Care to show the reporting section fo your pom? 

Most of the time, these NPE comes from mispelled plugin names/groups (which
can explain that the plugin is working fine when launched from command
line). 

Denis.
-- 
View this message in context:
http://www.nabble.com/-m2--Another-findbugs-plugin-problem---site-goal-resid
es-into-a-nullpointer-execption-tf1978903.html#a5430086
Sent from the Maven - Users forum 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: Mail Notification

2006-07-21 Thread Arnaud Daroussin


Sorry, I didn't explained the context.

I use Maestro 1.0 so Continuum 1.0.3.

I try to send notification mail with the real Continuum and it's working.

I will search the difference between both.

Arnaud.

Emmanuel Venisse a écrit :


What is your continuum version?

Emmanuel

Arnaud Daroussin a écrit :



Hi,

When I want to send mail notification on build I have this error in 
logs :


   jvm 1| 2006-07-20 18:40:28,609 [Thread-2] ERROR
   VelocityComponent  - ResourceManager : unable to find
   resource
   
'/org/apache/maven/continuum/notification/mail/templates/maven2/BuildComplete.vm' 


   in any resource loader.

   jvm 1| 2006-07-20 18:40:28,609 [Thread-2] INFO
Notifier:mail  - No such template:
   
'/org/apache/maven/continuum/notification/mail/templates/maven2/BuildComplete.vm'. 



Is a lib miss somewhere ?

Thanks,
Arnaud.







This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



Re: AW: [m2] Another findbugs plugin problem - site goal resides into a nullpointer execption

2006-07-21 Thread dcabasson

That's it, you're using the Maven 1 plugin, with Maven 2.

The correct M2 plugin is:
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdfindbugs-maven-plugin/artifactId
/plugin

And that is the plugin you're lanching when using the command line with
findbugs:findbugs

Denis.


Arne Sutor wrote:
 
   reporting
   plugins
 !--  plugin
   groupIdmaven-plugins/groupId
   
 artifactIdmaven-findbugs-plugin/artifactId
   version1.0-SNAPSHOT/version
   configuration
   
 outputDirectorytarget/site/outputDirectory
   thresholdLow/threshold
   /configuration 
   /plugin--
   /plugins
   /reporting
 
 With regards,
 
 Arne
 

-- 
View this message in context: 
http://www.nabble.com/-m2--Another-findbugs-plugin-problem---site-goal-resides-into-a-nullpointer-execption-tf1978903.html#a5430351
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven 1 multiproject build

2006-07-21 Thread Gabriel Page
Hi

 

I have a continuum build that is executing multiproject:install on a
Maven 1 project. Continuum reports the builds to be successful even when
they fail.

 

Is this a known issue?

 

Thanks

 

Gabriel



Communications on or through ioko's computer systems may be monitored or 
recorded to secure effective system operation and for other lawful purposes.

Unless otherwise agreed expressly in writing, this communication is to be 
treated as confidential and the information in it may not be used or disclosed 
except for the purpose for which it has been sent. If you have reason to 
believe that you are not the intended recipient of this communication, please 
contact the sender immediately. No employee is authorised to conclude any 
binding agreement on behalf of ioko with another party by e-mail without prior 
express written confirmation.

ioko365 Ltd.  VAT reg 656 2443 31. Reg no 3048367. All rights reserved.


Re: basedir JavaSource does not exist

2006-07-21 Thread Jeff Mutonho

On 7/21/06, dcabasson [EMAIL PROTECTED] wrote:



Jeff Mutonho wrote:


 Can we have a look at your parent pom?

 Looks like maven is trying to build a war out of your parent project

 Sure thing.There goes :


Ok, that was not the interesting parent. Guess I wanted to say the eportal
pom (which is the parent of the eportal-web module, isn't it?)

Denis.
--

Thats the one i posted...the parent

--


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: iBiblio Snapshot?

2006-07-21 Thread Trygve Laugstøl

Matt Raible wrote:

Any idea how big /maven2 is?


16GB when I did the last rsync before ApacheCon.

--
Trygve

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie: need to package a jar

2006-07-21 Thread Denis McCarthy

Hi,
I'm sure this question has been asked a thousand times before but I 
can't see a clear answer on the maven site or through google 
(Unfortunately the mailing list archives aren't searchable either).
I'm converting a project to use maven as the build tool and I've set up 
most of my dependencies (the ones that have jars on ibiblio). However, 
my project depends on an oracle jar called sdoapi.jar. How do I get 
maven to put this jar in the local repository?

Thanks
Denis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie: need to package a jar

2006-07-21 Thread Yann Le Du

Hi Denis,

Is this helpful ?
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html

- Yann

2006/7/21, Denis McCarthy [EMAIL PROTECTED]:


Hi,
I'm sure this question has been asked a thousand times before but I
can't see a clear answer on the maven site or through google
(Unfortunately the mailing list archives aren't searchable either).
I'm converting a project to use maven as the build tool and I've set up
most of my dependencies (the ones that have jars on ibiblio). However,
my project depends on an oracle jar called sdoapi.jar. How do I get
maven to put this jar in the local repository?
Thanks
Denis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [m2] version resolution

2006-07-21 Thread Yann Le Du

Hi Nathan,

I don't know if this is what you are looking for, but :
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution

- Yann

2006/7/18, Beyer,Nathan [EMAIL PROTECTED]:


Is there a guide, document or piece of code that I can look at to
determine the precedence of arbitrary version numbers? For example,
given an arbitrary artifact with the following possible versions, what
would be the order of precedence?

10.0.0, 2.1.10, 1.0.0, 1.1.0, 1.0-alpha-1, 1.0-RC1,
1.1-alpha-1, 1.2.0

-Nathan


-
CONFIDENTIALITY NOTICE This message and any included attachments
are from Cerner Corporation and are intended only for the
addressee. The information contained in this message is
confidential and may constitute inside or non-public information
under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of
such information is strictly prohibited and may be unlawful. If you
are not the addressee, please promptly delete this message and
notify the sender of the delivery error by e-mail or you may call
Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024. ---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Default dir fo site src

2006-07-21 Thread Vinay Kumar
It doesn't work I also tried
siteSourceDirectory/path/to/site/dir/siteSourceDirectory
but no luck.
 
Thanks
Vinay


- Original Message 
From: Tim Kettler [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Friday, 21 July, 2006 12:45:55 AM
Subject: Re: Default dir fo site src


try siteDirectory/path/to/site/dir/siteDirectory

-Tim

Vinay Kumar schrieb:
 Hi All,
  
  Can someone please tell me how we can change default site source directory 
 where we can place our site.xml .
 I look super pom given in BBWM , there is implemention for site output 
 directory but nothing for site src directory.
  
 Thanks
 Vinay


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Newbie: need to package a jar

2006-07-21 Thread Denis McCarthy

Yann Le Du wrote:

Hi Denis,

Is this helpful ?
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
http://maven.apache.org/plugins/maven-install-plugin/install-file-mojo.html 



- Yann

2006/7/21, Denis McCarthy [EMAIL PROTECTED]:


Hi,
I'm sure this question has been asked a thousand times before but I
can't see a clear answer on the maven site or through google
(Unfortunately the mailing list archives aren't searchable either).
I'm converting a project to use maven as the build tool and I've set up
most of my dependencies (the ones that have jars on ibiblio). However,
my project depends on an oracle jar called sdoapi.jar. How do I get
maven to put this jar in the local repository?
Thanks
Denis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





That's what I was looking for. Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Newbie: need to package a jar

2006-07-21 Thread Arne Sutor
Hi Denis,

The mailing lists are searchable, see the link below:

http://www.nabble.com/Maven---Users-f178.html

The search area can be found on the top right. 
Have fun,

Arne

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag
von Denis McCarthy
Gesendet: Freitag, 21. Juli 2006 11:33
An: users@maven.apache.org
Betreff: Newbie: need to package a jar

Hi,
I'm sure this question has been asked a thousand times before but I 
can't see a clear answer on the maven site or through google 
(Unfortunately the mailing list archives aren't searchable either).
I'm converting a project to use maven as the build tool and I've set up 
most of my dependencies (the ones that have jars on ibiblio). However, 
my project depends on an oracle jar called sdoapi.jar. How do I get 
maven to put this jar in the local repository?
Thanks
Denis

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



[M2]Release plugin and host authentication

2006-07-21 Thread Sebastien Pennec

Hi,

I've been using site:deploy with success to send my generated website to a 
server.
The plugin always asks me this:

The authenticity of host 'hostname' can't be established.
RSA key fingerprint is 83:7c:87:14:56:bb:4a:46:02:e8:56:dd:c8:5c:34:22.
Are you sure you want to continue connecting? (yes/no):

I answer 'yes' and everything works fine.

Unfortunately, when I specify the goal site:deploy in the release plugin config, I 
get the following same message, but without possibility to answer. The plugin gets 
stuck and waits forever.


My pom distributionManagement is:

distributionManagement
site
idhostname/id
urlscp://hostname/var/www/.. /url
/site
/distributionManagement

I have the following config in my server.xml file:
server
  idhostname/id
  usernameseb/username
  configuration
sshExecutableplink/sshExecutable
scpExecutablepscp/scpExecutable
!--sshArgsother arguments you may need/sshArgs --
  /configuration
/server

Does anybody know how to be able to answer 'yes' to that question? Or just to get rid 
of it?


Thanks,

Sebastien
--
Sebastien Pennec
[EMAIL PROTECTED]

LOGBack: the generic, reliable, fast and flexible logging library for Java.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2]Release plugin and host authentication

2006-07-21 Thread dcabasson


Sebastien Pennec wrote:
 
 Does anybody know how to be able to answer 'yes' to that question? Or just
 to get rid 
 of it?
 

Try adding an empty file ~/.ssh/known_hosts

Latest version of maven-wagon plugin will add the fingerprints of your hosts
there.

As you're using external ssh/scp programs (why not use internal maven ones),
these file might not be used. (I guess putty is storing known_hosts
somewhere in registry).
Well, anyone, try with this file, and try with maven native ssh connection.

Hope it helps.

Denis.
-- 
View this message in context: 
http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5431309
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default dir fo site src

2006-07-21 Thread dcabasson


Vinay Kumar-5 wrote:
 
 It doesn't work I also tried
 siteSourceDirectory/path/to/site/dir/siteSourceDirectory
 but no luck.
 

Try the parameter siteDirectory of maven-site-plugin:
http://maven.apache.org/plugins/maven-site-plugin/site-mojo.html

(you can put it in your dependencies or dependencyManagement part, I guess)

Denis
-- 
View this message in context: 
http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5431340
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Want explain on Dependencies Scope

2006-07-21 Thread Roy Siu

I am newbie to Maven, and now want to write a custom plugin. But I get
confuse on maven's transitive dependency handling. My poms' dependencies
setting is something like:


Project A

  ... 

  saxpath
  saxpath
  1.0-FCS
  ${compile}


  jaxen
  jaxen
  1.0-FCS
  ${compile}

...


   (1)  (2)
[pluginProject]  ---  [CommonLib] --- [Jaxen]
 -- [saxpath]


I have read an article 
http://cvs.peopleware.be/training/maven/maven2/dependencies.html
http://cvs.peopleware.be/training/maven/maven2/dependencies.html  and test
with all the scope dependency 

I get confuse on the dependency scope.

   
-- 
View this message in context: 
http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5431731
Sent from the Maven - Users forum at Nabble.com.


[m2] Strange manifest.mf behaviour with maven-war-plugin

2006-07-21 Thread David J. M. Karlsen

Hi!

I've declared a entry like this in my POM:

plugin
artifactIdmaven-war-plugin/artifactId
version2.0/version
!--  version2.0.1-SNAPSHOT/version --
configuration
archive
manifest  
  addClasspathtrue/addClasspath
/manifest
manifestEntries
buildNumber${buildNumber}/buildNumber
/manifestEntries
/archive
/configuration
/plugin


I've also declared two dependencies with scope provided (so that they 
are loaded from my ear - and not included in the war).


I then run the clean package goals

if I go to target/${artifactId}-${version}/META-INF (the exploded 
directory)

MANIFEST.MF contains this:

Manifest-Version: 1.0
Created-By: Apache Maven
Built-By: AB62939
Build-Jdk: 1.5.0_07
Class-Path: spring-web-1.2.8.jar spring-webmvc-1.2.8.jar



But if I look into the target/artifact.war *file* it contains:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: AB62939
Build-Jdk: 1.5.0_07
Extension-Name: dnbnorapi-war
Specification-Title: Display statistics and send transactions to Felix
  via web-gui
Implementation-Title: dnbnorapi-war
Implementation-Version: 1.0-SNAPSHOT
buildNumber: 44



Notice the missing classpath entry.
Thus starting the war fails due to the missing classpath.


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Newbie: need to package a jar

2006-07-21 Thread Denis McCarthy

Arne Sutor wrote:

Hi Denis,

The mailing lists are searchable, see the link below:

http://www.nabble.com/Maven---Users-f178.html

The search area can be found on the top right. 
Have fun,


Arne

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag
von Denis McCarthy
Gesendet: Freitag, 21. Juli 2006 11:33
An: users@maven.apache.org
Betreff: Newbie: need to package a jar

Hi,
I'm sure this question has been asked a thousand times before but I 
can't see a clear answer on the maven site or through google 
(Unfortunately the mailing list archives aren't searchable either).
I'm converting a project to use maven as the build tool and I've set up 
most of my dependencies (the ones that have jars on ibiblio). However, 
my project depends on an oracle jar called sdoapi.jar. How do I get 
maven to put this jar in the local repository?

Thanks
Denis

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

  
Thanks - I was looking at the archives under 
http://mail-archives.apache.org/mod_mbox/maven-users/.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



snapshot project.version and multi module project

2006-07-21 Thread Sebastien Cesbron

I have a multi-module project with two levels of transitive
dependencies like this :

pom.xml
- module1 - project1 depends on project2
- module2 - project2 depends on project3
- module3 - project3

in my parent pom I specify in my dependency management section my
modules dependencies with ${project.version} like specified in maven
book.

My parent pom version is 1.0-SNAPSHOT.

My problem is that my project1 dependencies fail. My understanding of
the problem is that project2 replace ${project.version} not with
1.0-SNAPSHOT but with its own build version number
1.0-20060721.110913-11. As project3 was not build at the same time.
Maven can't find project3-1.0-20060721.110913-11.pom.

If I replace ${project.version} in my dependency management with
1.0-SNAPSHOT everything is ok.

The problem is that the release plugin does not replace this number
with the next SNAPSHOT version.

Is this a bug or something normal ? Is there any best practice in my case ?

Thanx

Seb

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default dir fo site src

2006-07-21 Thread Vinay Kumar
 
Hi dcabasson ,
Will it not work by placing below mention part either in build or report:
 
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-site-plugin/artifactId
configuration
   siteDirectory/path/to/site/dir/siteDirectory
  /configuration
plugin
 
I tried this but doesn't work. how we can put these in dependencies . In 
dependencies we put jars on which our project depend.

Thanks
Vinay

- Original Message 
From: dcabasson [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Friday, 21 July, 2006 3:39:46 PM
Subject: Re: Default dir fo site src


Vinay Kumar-5 wrote:
 
 It doesn't work I also tried
 siteSourceDirectory/path/to/site/dir/siteSourceDirectory
 but no luck.
 

Try the parameter siteDirectory of maven-site-plugin:
http://maven.apache.org/plugins/maven-site-plugin/site-mojo.html

(you can put it in your dependencies or dependencyManagement part, I guess)

Denis
-- 
View this message in context: 
http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5431340
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [M2]Release plugin and host authentication

2006-07-21 Thread Sebastien Pennec

Hello Denis,

It helped: the host is now accessible without having to answer to the question I 
mentionned. The known_hosts file does the trick, just like you said.


The site:deploy goal works flawlessly.

But when I run release:perform, it gets stuck at site:deploy, at the moment when the 
plugin is supposed to ask me for my password. When running directly site:deploy, I 
can enter my password (echoed in clear text, but I think the issue has already been 
added to JIRA), and then the deployment continues. Here, the command line displays 
[INFO] [site:deploy] and stops. I cannot enter anything, and the action never stops.


Having the password present or not in the settings file, where the server is declared 
doesn't change anything.


Sebastien

dcabasson a écrit :


Sebastien Pennec wrote:

Does anybody know how to be able to answer 'yes' to that question? Or just
to get rid 
of it?




Try adding an empty file ~/.ssh/known_hosts

Latest version of maven-wagon plugin will add the fingerprints of your hosts
there.

As you're using external ssh/scp programs (why not use internal maven ones),
these file might not be used. (I guess putty is storing known_hosts
somewhere in registry).
Well, anyone, try with this file, and try with maven native ssh connection.

Hope it helps.

Denis.


--
Sebastien Pennec
[EMAIL PROTECTED]

LOGBack: the generic, reliable, fast and flexible logging library for Java.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



multi-module project site: link to module sites

2006-07-21 Thread Valerio Schiavoni

hello,
i have a multi-module site. the parent project site.xml declares something
like:
project
body
  links
item name=Maven 2 href=http://maven.apache.org/maven2//
  /links
  menu name=My Project
item name=Introduction href=index.html/
item name=Download href=download.html/
  /menu
  menu ref=modules /
/body
/project

i have 2 modules, named  Foo and Bar... The generated site correctly shows
links to them, but the links are not correct. they look like:

li class=none
 a href=../../maven-site/foo/index.htmlFoo/a
/li

li class=none
 a href=../../maven-site/bar/index.htmlBar/a
/li


but they are not there. why is  maven-site used ?

if i look into parent/foo/target/site/index.html i can see the index for Foo
(same for other submodules).

thanks,
valerio

--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


Re: Mail Notification

2006-07-21 Thread Jesse McConnell

ah, that was a bug we found in maestro that is actually fixed in a
patched version of 1.0.1 maestro.

if you download maestro 1.0.1 I can get you that patched version of
the continuum app until we figure out a better way to distribute it or
release 1.0.2

jesse

On 7/21/06, Arnaud Daroussin [EMAIL PROTECTED] wrote:


Sorry, I didn't explained the context.

I use Maestro 1.0 so Continuum 1.0.3.

I try to send notification mail with the real Continuum and it's working.

I will search the difference between both.

Arnaud.

Emmanuel Venisse a écrit :

 What is your continuum version?

 Emmanuel

 Arnaud Daroussin a écrit :


 Hi,

 When I want to send mail notification on build I have this error in
 logs :

jvm 1| 2006-07-20 18:40:28,609 [Thread-2] ERROR
VelocityComponent  - ResourceManager : unable to find
resource

 
'/org/apache/maven/continuum/notification/mail/templates/maven2/BuildComplete.vm'

in any resource loader.

jvm 1| 2006-07-20 18:40:28,609 [Thread-2] INFO
 Notifier:mail  - No such template:

 
'/org/apache/maven/continuum/notification/mail/templates/maven2/BuildComplete.vm'.


 Is a lib miss somewhere ?

 Thanks,
 Arnaud.





This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.





--
jesse mcconnell
[EMAIL PROTECTED]


Re: iBiblio Snapshot?

2006-07-21 Thread Carlos Sanchez

strange, I'm getting exactly 7.0G now in the m2 repo

On 7/21/06, Trygve Laugstøl [EMAIL PROTECTED] wrote:

Matt Raible wrote:
 Any idea how big /maven2 is?

16GB when I did the last rsync before ApacheCon.

--
Trygve

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Eclipse 3.2/callisto Dynamic Content web project question

2006-07-21 Thread William Kinney
Hello, 

I apologize if this is not the correct mailing list for this question. I
tried the codehaus mailing list for the plugin, but it seems that list
is dead.

Is there any word on the integration of the plugin with callisto / 3.2's
Dynamic Content Web project? I was hoping to use maven 2 along with
it, but it seems the web path Library won't include the maven 2 Library
(and therefore include all the jars in WEB-INF/lib)
Or does someone perhaps have a workaround for this? 
I would like to use callistos autodeploy feature for local
testing/debugging, rather than doing cargo:deploy cargo:undeploy every
time

Thanks,

Will

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jar versioning problem

2006-07-21 Thread Denis McCarthy

Hi,
I'm in the process of trying to get a project going with maven. The 
project in question uses spring 2.0 and acegi security 1.0 (The latest 
major versions of both projects). I was getting  NoSuchMethodErrors when 
running my tests. I noticed that in my eclipse classpath (which I 
generated via maven) that both spring 1.2.7 and 2.0 were on the 
classpath - obviously the source of the problem.


I also noticed that acegi had a dependency on spring 1.2.7. Is there 
some way to explicitly exclude the 1.2.7 spring dependency that is being 
dragged in by acegi (spring is backwards-compatible so acegi 1.0 will 
work fine with spring 2)?

Thanks
Denis

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jar versioning problem

2006-07-21 Thread Matt Raible

Acegi 1.0 was compiled against Spring 2.0, so there are some known
issues with the release.  I'd suggest using Acegi 1.0.1 instead.

Matt

On 7/21/06, Denis McCarthy [EMAIL PROTECTED] wrote:

Hi,
I'm in the process of trying to get a project going with maven. The
project in question uses spring 2.0 and acegi security 1.0 (The latest
major versions of both projects). I was getting  NoSuchMethodErrors when
running my tests. I noticed that in my eclipse classpath (which I
generated via maven) that both spring 1.2.7 and 2.0 were on the
classpath - obviously the source of the problem.

I also noticed that acegi had a dependency on spring 1.2.7. Is there
some way to explicitly exclude the 1.2.7 spring dependency that is being
dragged in by acegi (spring is backwards-compatible so acegi 1.0 will
work fine with spring 2)?
Thanks
Denis

-
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: jar versioning problem

2006-07-21 Thread Denis McCarthy

Matt Raible wrote:

Acegi 1.0 was compiled against Spring 2.0, so there are some known
issues with the release.  I'd suggest using Acegi 1.0.1 instead.

Matt

On 7/21/06, Denis McCarthy [EMAIL PROTECTED] wrote:

Hi,
I'm in the process of trying to get a project going with maven. The
project in question uses spring 2.0 and acegi security 1.0 (The latest
major versions of both projects). I was getting  NoSuchMethodErrors when
running my tests. I noticed that in my eclipse classpath (which I
generated via maven) that both spring 1.2.7 and 2.0 were on the
classpath - obviously the source of the problem.

I also noticed that acegi had a dependency on spring 1.2.7. Is there
some way to explicitly exclude the 1.2.7 spring dependency that is being
dragged in by acegi (spring is backwards-compatible so acegi 1.0 will
work fine with spring 2)?
Thanks
Denis

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



Sorry, I should have been more explicit - I am using 1.0.1. The pom for 
1.0.1 states an explicit dependency on 1.2.7 (which of course is fair 
enough as spring 2.0 is not officially released yet). I just want to get 
maven not to put this version of spring on the classpath in favour of 
using 2.0-m4 (the latest version of spring on ibiblio with a pom)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



BBWM : Chapter 6 build failure due to PMD

2006-07-21 Thread Jeff Mutonho

I'm going through chapter 6 .Running mvn install  for the
examples(as instructed on page 158) is giving me build failure due to
PMD violations.The offending projecting is proficio-store-xstream:

[INFO] [surefire:test]
[INFO] Surefire report directory: D:\Better_Builds_With_Maven\_content-files-cod
e-Code_Ch06-1\proficio\proficio-stores\proficio-store-xstream\target\surefire-re
ports

---
T E S T S
---
Running com.mergere.mvnbook.proficio.store.xstream.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.157 sec
Running com.mergere.mvnbook.proficio.store.memory.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec

Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar: D:\Better_Builds_With_Maven\_content-files-code-Code_Ch06-1
\proficio\proficio-stores\proficio-store-xstream\target\proficio-store-xstream-1
.0-SNAPSHOT.jar
[INFO] Preparing pmd:check
[INFO] [pmd:pmd]
[INFO] [pmd:check {execution: default}]
[INFO] 
[ERROR] BUILD FAILURE
[INFO] 
[INFO] You have 2 PMD violations.
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 20 seconds
[INFO] Finished at: Fri Jul 21 16:04:37 CAT 2006
[INFO] Final Memory: 13M/24M
[INFO] 



--


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Default dir fo site src

2006-07-21 Thread dcabasson


Vinay Kumar-5 wrote:
 
  
 Hi dcabasson ,
 Will it not work by placing below mention part either in build or report:
  
 I tried this but doesn't work. how we can put these in dependencies . In
 dependencies we put jars on which our project depend.
 

Well, sure, this has nothing to do in the dependencies. In the
build/plugins/plugin, it should work just fine (you have got a in extra,
and relative paths shouldn't start with a '/', I guess).
-- 
View this message in context: 
http://www.nabble.com/Default-dir-fo-site-src-tf1976644.html#a5434465
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BBWM : Chapter 6 build failure due to PMD

2006-07-21 Thread Hendrik Busch

Hi,


I'm going through chapter 6 .Running mvn install  for the
examples(as instructed on page 158) is giving me build failure due to
PMD violations.The offending projecting is proficio-store-xstream:


What exactly is your question? You have several options: remove the PMD 
errors by correcting the code (see http://pmd.sf.net), remove the PMD 
check from the POM or contact the writers of the book and ask them to 
repair the source code.
Perhaps some new PMD rules were released since the writing of this book 
or the autors used a customized PMD configuration.



--
Mit freundlichen Grüßen / Kind regards

Hendrik Busch - Stellv. Leiter der Softwareentwicklung

LexisNexis Deutschland GmbH
http://www.lexisnexis.de
Feldstiege 100
D-48161 Münster
phone +49 (0) 2533-9300-455
fax +49 (0) 02533-9300-50
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jar versioning problem

2006-07-21 Thread Wayne Fay

You will want to use an excludes, something along the lines of:

   dependency
 groupIdacegi
 artifactIdacegi
 version1.0.1/version
 scopecompile/scope
 exclusions
   exclusion
 groupIdspring
 artifactIdspring
   /exclusion

This is obviously not a proper dependency node, but you'll figure it
out from here I think.

Wayne

On 7/21/06, Denis McCarthy [EMAIL PROTECTED] wrote:

Matt Raible wrote:
 Acegi 1.0 was compiled against Spring 2.0, so there are some known
 issues with the release.  I'd suggest using Acegi 1.0.1 instead.

 Matt

 On 7/21/06, Denis McCarthy [EMAIL PROTECTED] wrote:
 Hi,
 I'm in the process of trying to get a project going with maven. The
 project in question uses spring 2.0 and acegi security 1.0 (The latest
 major versions of both projects). I was getting  NoSuchMethodErrors when
 running my tests. I noticed that in my eclipse classpath (which I
 generated via maven) that both spring 1.2.7 and 2.0 were on the
 classpath - obviously the source of the problem.

 I also noticed that acegi had a dependency on spring 1.2.7. Is there
 some way to explicitly exclude the 1.2.7 spring dependency that is being
 dragged in by acegi (spring is backwards-compatible so acegi 1.0 will
 work fine with spring 2)?
 Thanks
 Denis

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


Sorry, I should have been more explicit - I am using 1.0.1. The pom for
1.0.1 states an explicit dependency on 1.2.7 (which of course is fair
enough as spring 2.0 is not officially released yet). I just want to get
maven not to put this version of spring on the classpath in favour of
using 2.0-m4 (the latest version of spring on ibiblio with a pom)


-
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: Want explain on Dependencies Scope

2006-07-21 Thread Frederik Bayart
Did you read this ? May be it helps.

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html

- Original Message 
From: Roy Siu [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Friday, 21 July, 2006 3:50:09 AM
Subject: Want explain on Dependencies Scope


I am newbie to Maven, and now want to write a custom plugin. But I get
confuse on maven's transitive dependency handling. My poms' dependencies
setting is something like:


Project A

  ... 

  saxpath
  saxpath
  1.0-FCS
  ${compile}


  jaxen
  jaxen
  1.0-FCS
  ${compile}

...


   (1)  (2)
[pluginProject]  ---  [CommonLib] --- [Jaxen]
 -- [saxpath]


I have read an article 
http://cvs.peopleware.be/training/maven/maven2/dependencies.html
http://cvs.peopleware.be/training/maven/maven2/dependencies.html  and test
with all the scope dependency 

I get confuse on the dependency scope.

   
-- 
View this message in context: 
http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5431731
Sent from the Maven - Users forum at Nabble.com.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: multi-module project site: link to module sites

2006-07-21 Thread dcabasson


Valerio Schiavoni-2 wrote:
 
 but they are not there. why is  maven-site used ?
 
 if i look into parent/foo/target/site/index.html i can see the index for
 Foo
 (same for other submodules).
 

Which version of the maven-site-plugin are you using? I have got the
2.0-20060528.195659-9, and everything is working just fine

Denis
-- 
View this message in context: 
http://www.nabble.com/multi-module-project-site%3A-link-to-module-sites-tf1980169.html#a5434633
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Want explain on Dependencies Scope

2006-07-21 Thread Wayne Fay

Can you be a little more explicit about what exactly is the source of
your confusion? What about Maven's transitive dependency handling is
hard to understand and causing you troubles?

Wayne

On 7/21/06, Roy Siu [EMAIL PROTECTED] wrote:


I am newbie to Maven, and now want to write a custom plugin. But I get
confuse on maven's transitive dependency handling. My poms' dependencies
setting is something like:


Project A

 ...

 saxpath
 saxpath
 1.0-FCS
 ${compile}


 jaxen
 jaxen
 1.0-FCS
 ${compile}

...


  (1)  (2)
[pluginProject]  ---  [CommonLib] --- [Jaxen]
-- [saxpath]


I have read an article
http://cvs.peopleware.be/training/maven/maven2/dependencies.html
http://cvs.peopleware.be/training/maven/maven2/dependencies.html  and test
with all the scope dependency

I get confuse on the dependency scope.


--
View this message in context: 
http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5431731
Sent from the Maven - Users forum at Nabble.com.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] version resolution

2006-07-21 Thread Wayne Fay

Not sure where exactly this is documented but I believe the order
would/should be:

1.0-alpha-1
1.0-RC1
1.0.0
1.1-alpha-1
1.1.0
1.2.0
2.1.10
10.0.0

At least, this is how I would expect it to work. I generally do not
use alpha and RC and instead use SNAPSHOT and full versions (1.1.2)
instead. This way, I always know exactly what I'm going to get. I'd
encourage you to do the same -- instead of embedding the alpha or RC
in the version number, I'd just include a note this is RC1 somewhere
relevant.

Wayne

On 7/21/06, Yann Le Du [EMAIL PROTECTED] wrote:

Hi Nathan,

I don't know if this is what you are looking for, but :
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution

- Yann

2006/7/18, Beyer,Nathan [EMAIL PROTECTED]:

 Is there a guide, document or piece of code that I can look at to
 determine the precedence of arbitrary version numbers? For example,
 given an arbitrary artifact with the following possible versions, what
 would be the order of precedence?

 10.0.0, 2.1.10, 1.0.0, 1.1.0, 1.0-alpha-1, 1.0-RC1,
 1.1-alpha-1, 1.2.0

 -Nathan


 -
 CONFIDENTIALITY NOTICE This message and any included attachments
 are from Cerner Corporation and are intended only for the
 addressee. The information contained in this message is
 confidential and may constitute inside or non-public information
 under international, federal, or state securities laws.
 Unauthorized forwarding, printing, copying, distribution, or use of
 such information is strictly prohibited and may be unlawful. If you
 are not the addressee, please promptly delete this message and
 notify the sender of the delivery error by e-mail or you may call
 Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
 (816)221-1024. ---


 -
 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: [m2] Strange manifest.mf behaviour with maven-war-plugin

2006-07-21 Thread Mike Perham
Do you have a pre-existing MANIFEST.MF in your webapp source?  The first
example doesn't look like it was generated by Maven 2; you should see a
Plexus Archiver entry.  If you remove the custom manifest entry, does
the Class-Path entry appear?

-Original Message-
From: David J. M. Karlsen [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 5:50 AM
To: Maven Users List
Subject: [m2] Strange manifest.mf behaviour with maven-war-plugin

Hi!

I've declared a entry like this in my POM:

plugin

artifactIdmaven-war-plugin/artifactId
version2.0/version
!--  version2.0.1-SNAPSHOT/version --
configuration
archive
manifest
addClasspathtrue/addClasspath
/manifest
manifestEntries
buildNumber${buildNumber}/buildNumber
/manifestEntries
/archive
/configuration
/plugin


I've also declared two dependencies with scope provided (so that they 
are loaded from my ear - and not included in the war).

I then run the clean package goals

if I go to target/${artifactId}-${version}/META-INF (the exploded 
directory)
MANIFEST.MF contains this:

Manifest-Version: 1.0
Created-By: Apache Maven
Built-By: AB62939
Build-Jdk: 1.5.0_07
Class-Path: spring-web-1.2.8.jar spring-webmvc-1.2.8.jar



But if I look into the target/artifact.war *file* it contains:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: AB62939
Build-Jdk: 1.5.0_07
Extension-Name: dnbnorapi-war
Specification-Title: Display statistics and send transactions to Felix
   via web-gui
Implementation-Title: dnbnorapi-war
Implementation-Version: 1.0-SNAPSHOT
buildNumber: 44



Notice the missing classpath entry.
Thus starting the war fails due to the missing classpath.


-- 
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.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]



AW: multi-module project site: link to module sites

2006-07-21 Thread Arne Sutor
Hi Valerio,

this is due to the fact that maven generates the pages in the directory
parent\foo\target\site
parent\bar\target\site
parent\target\site

You have to view each module separately. In order to test the full website
try:
mvn site:stage -DstagingDirectory=C:\fullsite

Maven first creates in each module a directory staging and than copies
everything in the directory c:\fullsite.

You will discover that all files are placed correctly. In order to get more
detailed information try this:

http://maven.apache.org/plugins/maven-site-plugin/howto.html

Have fun,

Arne

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag
von Valerio Schiavoni
Gesendet: Freitag, 21. Juli 2006 15:08
An: Maven Users List
Betreff: multi-module project site: link to module sites

hello,
i have a multi-module site. the parent project site.xml declares something
like:
project
body
   links
 item name=Maven 2 href=http://maven.apache.org/maven2//
   /links
   menu name=My Project
 item name=Introduction href=index.html/
 item name=Download href=download.html/
   /menu
   menu ref=modules /
 /body
/project

i have 2 modules, named  Foo and Bar... The generated site correctly shows
links to them, but the links are not correct. they look like:

li class=none
  a href=../../maven-site/foo/index.htmlFoo/a
/li

li class=none
  a href=../../maven-site/bar/index.htmlBar/a
/li


but they are not there. why is  maven-site used ?

if i look into parent/foo/target/site/index.html i can see the index for Foo
(same for other submodules).

thanks,
valerio

-- 
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BBWM : Chapter 6 build failure due to PMD

2006-07-21 Thread dcabasson


Jeff Mutonho wrote:
 
 I'm going through chapter 6 .Running mvn install  for the
 examples(as instructed on page 158) is giving me build failure due to
 PMD violations.The offending projecting is proficio-store-xstream:
 

Are you sure your archive file is unaltered? Maybe you're missing something.

I just downloaded the example from mergere, and everything is working fine:
[INFO]
-
---
[INFO] Building Maven Proficio XStream Store
[INFO]task-segment: [install]
[INFO]
-
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 1 source file to
E:\Temp\proficio\proficio-stores\proficio-store-xstre
am\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 2 source files to
E:\Temp\proficio\proficio-stores\proficio-store-xstr
eam\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory:
E:\Temp\proficio\proficio-stores\proficio-stor
e-xstream\target\surefire-reports

---
 T E S T S
---
Running com.mergere.mvnbook.proficio.store.xstream.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.541 sec
Running com.mergere.mvnbook.proficio.store.memory.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.04 sec

Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar:
E:\Temp\proficio\proficio-stores\proficio-store-xstream\tar
get\proficio-store-xstream-1.0-SNAPSHOT.jar
[INFO] Preparing pmd:check
[INFO] [pmd:pmd]
[INFO] [pmd:check {execution: default}]
[INFO] Preparing cobertura:check
..

run a mvn pmd:check with the -e options on proficio-store-xstream, maybe we
could learn more about your PMD error.

Denis
-- 
View this message in context: 
http://www.nabble.com/BBWM-%3A-Chapter-6-build-failure-due-to-PMD-tf1980425.html#a5434932
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jar versioning problem

2006-07-21 Thread Denis McCarthy

That works. Thanks.

Wayne Fay wrote:

You will want to use an excludes, something along the lines of:

   dependency
 groupIdacegi
 artifactIdacegi
 version1.0.1/version
 scopecompile/scope
 exclusions
   exclusion
 groupIdspring
 artifactIdspring
   /exclusion

This is obviously not a proper dependency node, but you'll figure it
out from here I think.

Wayne

On 7/21/06, Denis McCarthy [EMAIL PROTECTED] wrote:

Matt Raible wrote:
 Acegi 1.0 was compiled against Spring 2.0, so there are some known
 issues with the release.  I'd suggest using Acegi 1.0.1 instead.

 Matt

 On 7/21/06, Denis McCarthy [EMAIL PROTECTED] wrote:
 Hi,
 I'm in the process of trying to get a project going with maven. The
 project in question uses spring 2.0 and acegi security 1.0 (The 
latest
 major versions of both projects). I was getting  
NoSuchMethodErrors when

 running my tests. I noticed that in my eclipse classpath (which I
 generated via maven) that both spring 1.2.7 and 2.0 were on the
 classpath - obviously the source of the problem.

 I also noticed that acegi had a dependency on spring 1.2.7. Is there
 some way to explicitly exclude the 1.2.7 spring dependency that is 
being

 dragged in by acegi (spring is backwards-compatible so acegi 1.0 will
 work fine with spring 2)?
 Thanks
 Denis

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


Sorry, I should have been more explicit - I am using 1.0.1. The pom for
1.0.1 states an explicit dependency on 1.2.7 (which of course is fair
enough as spring 2.0 is not officially released yet). I just want to get
maven not to put this version of spring on the classpath in favour of
using 2.0-m4 (the latest version of spring on ibiblio with a pom)


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




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: BBWM : Chapter 6 build failure due to PMD

2006-07-21 Thread Mike Perham
The book was probably written against pmd-plugin 2.0 or earlier.  We've
upgraded the PMD version several times since then and they add new rules
to our default rulesets all the time.  In other words, you might not
have done anything wrong and still see errors due to new rules being
triggered.

Take a look at the PMD report and fix the errors or remove the pmd:check
goal in the build.

-Original Message-
From: Jeff Mutonho [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 9:08 AM
To: Maven Users List
Subject: BBWM : Chapter 6 build failure due to PMD

I'm going through chapter 6 .Running mvn install  for the
examples(as instructed on page 158) is giving me build failure due to
PMD violations.The offending projecting is proficio-store-xstream:

[INFO] [surefire:test]
[INFO] Surefire report directory:
D:\Better_Builds_With_Maven\_content-files-cod
e-Code_Ch06-1\proficio\proficio-stores\proficio-store-xstream\target\sur
efire-re
ports

---
 T E S T S
---
Running com.mergere.mvnbook.proficio.store.xstream.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.157
sec
Running com.mergere.mvnbook.proficio.store.memory.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015
sec

Results :
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar:
D:\Better_Builds_With_Maven\_content-files-code-Code_Ch06-1
\proficio\proficio-stores\proficio-store-xstream\target\proficio-store-x
stream-1
.0-SNAPSHOT.jar
[INFO] Preparing pmd:check
[INFO] [pmd:pmd]
[INFO] [pmd:check {execution: default}]
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] You have 2 PMD violations.
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 20 seconds
[INFO] Finished at: Fri Jul 21 16:04:37 CAT 2006
[INFO] Final Memory: 13M/24M
[INFO]




-- 


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

-
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: [m2] version resolution

2006-07-21 Thread Beyer,Nathan
That's exactly what I was looking for, thanks. Do you, or anyone, happen
to know what Maven component implements this resolution? I'm curious.

Thanks.
-Nathan 

-Original Message-
From: Yann Le Du [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 4:43 AM
To: Maven Users List
Subject: Re: [m2] version resolution

Hi Nathan,

I don't know if this is what you are looking for, but :
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict
+Resolution

- Yann

2006/7/18, Beyer,Nathan [EMAIL PROTECTED]:

 Is there a guide, document or piece of code that I can look at to 
 determine the precedence of arbitrary version numbers? For example, 
 given an arbitrary artifact with the following possible versions, what

 would be the order of precedence?

 10.0.0, 2.1.10, 1.0.0, 1.1.0, 1.0-alpha-1, 1.0-RC1, 
 1.1-alpha-1, 1.2.0

 -Nathan


 -
 CONFIDENTIALITY NOTICE This message and any included attachments are 
 from Cerner Corporation and are intended only for the addressee. The 
 information contained in this message is confidential and may 
 constitute inside or non-public information under international, 
 federal, or state securities laws.
 Unauthorized forwarding, printing, copying, distribution, or use of 
 such information is strictly prohibited and may be unlawful. If you 
 are not the addressee, please promptly delete this message and notify 
 the sender of the delivery error by e-mail or you may call Cerner's 
 corporate offices in Kansas City, Missouri, U.S.A at (+1) 
 (816)221-1024. ---


 -
 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: [m2] version resolution

2006-07-21 Thread Beyer,Nathan
I do try to avoid them, but I want to understand them, as they seem to
be used by the Maven plugins themselves quite often.

-Nathan 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 9:35 AM
To: Maven Users List
Subject: Re: [m2] version resolution

Not sure where exactly this is documented but I believe the order
would/should be:

1.0-alpha-1
1.0-RC1
1.0.0
1.1-alpha-1
1.1.0
1.2.0
2.1.10
10.0.0

At least, this is how I would expect it to work. I generally do not use
alpha and RC and instead use SNAPSHOT and full versions (1.1.2) instead.
This way, I always know exactly what I'm going to get. I'd encourage you
to do the same -- instead of embedding the alpha or RC in the version
number, I'd just include a note this is RC1 somewhere relevant.

Wayne

On 7/21/06, Yann Le Du [EMAIL PROTECTED] wrote:
 Hi Nathan,

 I don't know if this is what you are looking for, but :
 http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Confli
 ct+Resolution

 - Yann

 2006/7/18, Beyer,Nathan [EMAIL PROTECTED]:
 
  Is there a guide, document or piece of code that I can look at to 
  determine the precedence of arbitrary version numbers? For example, 
  given an arbitrary artifact with the following possible versions, 
  what would be the order of precedence?
 
  10.0.0, 2.1.10, 1.0.0, 1.1.0, 1.0-alpha-1, 1.0-RC1, 
  1.1-alpha-1, 1.2.0
 
  -Nathan
 
 
  -
  CONFIDENTIALITY NOTICE This message and any included attachments are

  from Cerner Corporation and are intended only for the addressee. The

  information contained in this message is confidential and may 
  constitute inside or non-public information under international, 
  federal, or state securities laws.
  Unauthorized forwarding, printing, copying, distribution, or use of 
  such information is strictly prohibited and may be unlawful. If you 
  are not the addressee, please promptly delete this message and 
  notify the sender of the delivery error by e-mail or you may call 
  Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) 
  (816)221-1024. ---
 
 
  
  - 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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Configuring build process on cvs checkin?

2006-07-21 Thread Kapil Gupta\(CT\)
Hi,

 

Can I configure Continuum to build project and send mail only if there
are any code changes (cvs commits)?

 

Right now, it sends mail either always or on state change but I would
like it to build my project and send mail only when there is change in
source code

 

Thanks,

 

Kapil

 



RE: Mail Notification

2006-07-21 Thread Artamonov, Juri
Yeah I have the same issue. Could you please tell me how I can get patched 
versions? From mergere or I can built by myself? If second could you please 
point to the sources of maestro?

Best regards,
 Juri.

-Original Message-
From: Jesse McConnell [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 4:27 PM
To: continuum-users@maven.apache.org
Subject: Re: Mail Notification


ah, that was a bug we found in maestro that is actually fixed in a patched 
version of 1.0.1 maestro.

if you download maestro 1.0.1 I can get you that patched version of the 
continuum app until we figure out a better way to distribute it or release 1.0.2

jesse

On 7/21/06, Arnaud Daroussin [EMAIL PROTECTED] wrote:

 Sorry, I didn't explained the context.

 I use Maestro 1.0 so Continuum 1.0.3.

 I try to send notification mail with the real Continuum and it's 
 working.

 I will search the difference between both.

 Arnaud.

 Emmanuel Venisse a écrit :

  What is your continuum version?
 
  Emmanuel
 
  Arnaud Daroussin a écrit :
 
 
  Hi,
 
  When I want to send mail notification on build I have this error in 
  logs :
 
 jvm 1| 2006-07-20 18:40:28,609 [Thread-2] ERROR
 VelocityComponent  - ResourceManager : unable to find
 resource
 
  '/org/apache/maven/continuum/notification/mail/templates/maven2/Bui
  ldComplete.vm'
 
 in any resource loader.
 
 jvm 1| 2006-07-20 18:40:28,609 [Thread-2] INFO
  Notifier:mail  - No such template:
 
  '/org/apache/maven/continuum/notification/mail/templates/maven2/Bui
  ldComplete.vm'.
 
 
  Is a lib miss somewhere ?
 
  Thanks,
  Arnaud.
 
 
 


 This message contains information that may be privileged or 
 confidential and is the property of the Capgemini Group. It is 
 intended only for the person to whom it is addressed. If you are not 
 the intended recipient,  you are not authorized to read, print, 
 retain, copy, disseminate,  distribute, or use this message or any 
 part thereof. If you receive this  message in error, please notify the 
 sender immediately and delete all  copies of this message.




-- 
jesse mcconnell
[EMAIL PROTECTED]


Re: [m2] version resolution

2006-07-21 Thread Wayne Fay

Not positive but this seems to be a good bet:
maven-artifact-jar \ org \ apache \ maven \ artifact \ versioning

Wayne

On 7/21/06, Beyer,Nathan [EMAIL PROTECTED] wrote:

That's exactly what I was looking for, thanks. Do you, or anyone, happen
to know what Maven component implements this resolution? I'm curious.

Thanks.
-Nathan

-Original Message-
From: Yann Le Du [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 4:43 AM
To: Maven Users List
Subject: Re: [m2] version resolution

Hi Nathan,

I don't know if this is what you are looking for, but :
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict
+Resolution

- Yann

2006/7/18, Beyer,Nathan [EMAIL PROTECTED]:

 Is there a guide, document or piece of code that I can look at to
 determine the precedence of arbitrary version numbers? For example,
 given an arbitrary artifact with the following possible versions, what

 would be the order of precedence?

 10.0.0, 2.1.10, 1.0.0, 1.1.0, 1.0-alpha-1, 1.0-RC1,
 1.1-alpha-1, 1.2.0

 -Nathan


 -
 CONFIDENTIALITY NOTICE This message and any included attachments are
 from Cerner Corporation and are intended only for the addressee. The
 information contained in this message is confidential and may
 constitute inside or non-public information under international,
 federal, or state securities laws.
 Unauthorized forwarding, printing, copying, distribution, or use of
 such information is strictly prohibited and may be unlawful. If you
 are not the addressee, please promptly delete this message and notify
 the sender of the delivery error by e-mail or you may call Cerner's
 corporate offices in Kansas City, Missouri, U.S.A at (+1)
 (816)221-1024. ---


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




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configuring build process on cvs checkin?

2006-07-21 Thread Emmanuel Venisse

The build start only if there is changes. Mail sent are independant of the 
changes.

Kapil Gupta(CT) a écrit :

Hi,

 


Can I configure Continuum to build project and send mail only if there
are any code changes (cvs commits)?

 


Right now, it sends mail either always or on state change but I would
like it to build my project and send mail only when there is change in
source code

 


Thanks,

 


Kapil

 







Re: Mail Notification

2006-07-21 Thread Arnaud Daroussin


Ok thank you all !

Emmanuel Venisse sends me the lastest version.

Arnaud.

Jesse McConnell a écrit :

ah, that was a bug we found in maestro that is actually fixed in 
apatched version of 1.0.1 maestro.
if you download maestro 1.0.1 I can get you that patched version ofthe 
continuum app until we figure out a better way to distribute it 
orrelease 1.0.2

jesse
On 7/21/06, Arnaud Daroussin [EMAIL PROTECTED] wrote: 
Sorry, I didn't explained the context. I use Maestro 1.0 so 
Continuum 1.0.3. I try to send notification mail with the real 
Continuum and it's working. I will search the difference between 
both. Arnaud. Emmanuel Venisse a écrit :  What is your 
continuum version?   Emmanuel   Arnaud Daroussin a écrit :  
  Hi,   When I want to send mail notification on build I 
have this error in  logs :  jvm 1| 2006-07-20 
18:40:28,609 [Thread-2] ERROR VelocityComponent  - 
ResourceManager : unable to find resource   
'/org/apache/maven/continuum/notification/mail/templates/maven2/BuildComplete.vm' 
 in any resource loader.  jvm 1| 2006-07-20 
18:40:28,609 [Thread-2] INFO  Notifier:mail  - No 
such template:   
'/org/apache/maven/continuum/notification/mail/templates/maven2/BuildComplete.vm'. 
   Is a lib miss somewhere ?   Thanks,  Arnaud.  
  This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-- jesse [EMAIL PROTECTED]




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



Re: BBWM : Chapter 6 build failure due to PMD

2006-07-21 Thread Jeff Mutonho

Thanks Mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Want explain on Dependencies Scope

2006-07-21 Thread Roy Siu

I just want to know how can my [plugin] project use [jaxen], [saxpath]
properly with only set dependency on [CommonLib]. 

Or more general, if there is artifact C, B, A, X-Z

  - artifact A has a function dynamic load (Class.forName) some of the class
appeared in project X-Z
  - artifact B wrap the project A function into a class 
  - artifact C want to use project B's wrapper class of project A function

Then what dependency and corresponding scope I need to set in pom.xml of
artifact C and artifact B?
-- 
View this message in context: 
http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5436092
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Want explain on Dependencies Scope

2006-07-21 Thread Roy Siu

Thanks.  I have read it yet. But the samples do not suit my case. What I want
is how to let project A use project B's wrapper function of project C, in
which the function use Class.forName or more specific that how can my
[plugin] project use [CommonLib]'s wrapper of [JDom's XPath]'s function
which use Class.forName to dynamic load classes.
-- 
View this message in context: 
http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5436211
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Release strategy with Continuum

2006-07-21 Thread Baron.Reznik
I was wondering if anyone has developed any best practices for performing a 
release with maven when using continuum? To cut things down to the basics, 
seems you pretty much have to:

1. Stop continuum
2. Perform the release (including deployment of jars to repository)
3. Restart continuum

Is this pretty much what everyone else is doing, or have other people found 
better ways of managing releases in a continuous integration environment. 

Thanks,
Baron


Separate static content in war

2006-07-21 Thread maxmil

In my development environment i use tomcat with my exploded war in
/src/main/webapp.

Within this directory apart from the contents of WEB-INF i have jsp's,
htmls, gifs, jpgs.

In production i use separate application and web servers.

When i generate my war to export to my application server in my production
environment i don't want the htmls, gifs, jpgs etc to be copied.

I have tried creating a resource in the plugin properties in my pom.xml and
excluding certain static files, but it has not  worked. The /src/main/webapp
folder is always copied entirely to my war each time that i build it.

Here is the code that i have tried

   plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-war-plugin/artifactId
  version2.0/version
  configuration
webResources
  resource
directorysrc/main/webapp/directory
excludes
exclude**/*.jsp/exclude
exclude**/*.gif/exclude 
/excludes
  /resource
/webResources
   /configuration
 /plugin

All help would be apreciated.


-- 
View this message in context: 
http://www.nabble.com/Separate-static-content-in-war-tf1981030.html#a5436334
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Release strategy with Continuum

2006-07-21 Thread dan tran

you can add a build defintion to you current project that do this.

mvn scm:bootstrap -Dgoals=-B,release:prepare,release:perform

schedule it to somewhere in far future and run it ( one click) later


never try it thou ;-)

-D


On 7/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


I was wondering if anyone has developed any best practices for performing
a release with maven when using continuum? To cut things down to the basics,
seems you pretty much have to:

1. Stop continuum
2. Perform the release (including deployment of jars to repository)
3. Restart continuum

Is this pretty much what everyone else is doing, or have other people
found better ways of managing releases in a continuous integration
environment.

Thanks,
Baron



RE: Do a release with snapshot versions of plugins

2006-07-21 Thread Matilda Robert
Hi,

I am currently working one the same thing that you are, trying to get the
release to work.  I just found this website online with some information
that may be helpful.  To summarize don't create a release in the trunk but
in a branch in svn because it will erase all the previous versions and the
comments out of the pom.xml file.  I haven't decided how to complete it yet
but I hope that this helps.

http://docs.codehaus.org/display/GEOT/How+to+cut+a+release

Also, most of the other sites I viewed stated that the release wasn't
supported yet but this one was released in June!

Matilda


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 20, 2006 10:31 AM
To: Maven Users List
Subject: Re: Do a release with snapshot versions of plugins

You'll need to pull the plugin source code, tweak the version (perhaps
a timetamp at the end of the version) in the pom, build and install
locally if you want to use snapshot builds of plugins during a
release.

Wayne

On 7/20/06, Sebastien Cesbron [EMAIL PROTECTED] wrote:
 It seems it is not possible to do a release (with the release plugin)
 with dependencies on snapshot versions of maven plugins : am I right ?
 Is there any way to force a release with plugins' snapshot versions ?

 seb

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


-
Attention:
Any views expressed in this message are those of the individual
sender, except where the message states otherwise and the sender is
authorized to state them to be the views of any such entity. The
information contained in this message and or attachments is
intended only for the person or entity to which it is addressed and
may contain confidential and/or privileged material.  If you
received this in error, please contact the sender and delete the
material from any system and destroy any copies.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Excluding jars from my ear

2006-07-21 Thread David Smiley

Hi. I have a multi-module project.  My parent pom specifies the dependencies
that are used by practically everything.  I have an ear module that's sole
purpose is to package up two war files (in other modules), but nothing else. 
It does this but includes jar's specified by my parent pom.  But I don't
want any of those at all... since they are included already in both war
files.  I want to keep the war files that  way because that makes them
independently complete.  I looked at the ear plugin page and I see a mention
of excludes but it doesn't seem to work.  I have it like so:
excludes*.jar/excludes

What should I do?
-- 
View this message in context: 
http://www.nabble.com/Excluding-jars-from-my-ear-tf1981474.html#a5437741
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Excluding jars from my ear

2006-07-21 Thread Ian Springer
Hi,

Try the following syntax:

  excludes
excludegroupId:artifactId/exclude
...
  /excludes

For example:

  excludes
excludecommons-logging:commons-logging/exclude
excludelog4j:log4j/exclude
  /excludes

Ian 

| -Original Message-
| From: David Smiley [mailto:[EMAIL PROTECTED] 
| Sent: Friday, July 21, 2006 1:47 PM
| To: users@maven.apache.org
| Subject: Excluding jars from my ear
| 
| 
| Hi. I have a multi-module project.  My parent pom specifies 
| the dependencies
| that are used by practically everything.  I have an ear 
| module that's sole
| purpose is to package up two war files (in other modules), 
| but nothing else. 
| It does this but includes jar's specified by my parent pom.  
| But I don't
| want any of those at all... since they are included already 
| in both war
| files.  I want to keep the war files that  way because that makes them
| independently complete.  I looked at the ear plugin page and 
| I see a mention
| of excludes but it doesn't seem to work.  I have it like so:
| excludes*.jar/excludes
| 
| What should I do?
| -- 
| View this message in context: 
| http://www.nabble.com/Excluding-jars-from-my-ear-tf1981474.htm
| l#a5437741
| Sent from the Maven - Users forum 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]



problem with jabber continuum, same works fine with cruise control

2006-07-21 Thread raghurajan . x . gurunathan
Hi All,

I have been having this problem for long time, i use continuum 1.0.3.1 and 
stil i couldn't make jabber notification working, so coz of this i had 
switch to cruisecontrol where jabber notification works fine same set of 
configuration, but i really like it to see work with continuum

Please help,

I added notification thru continuum web interface then restarted the 
continuum

and saw this error message in log file when it tries to send jabber 
notification, looks like it tries to create account why? coz this account 
is already existing and works fine with cruise control


985287 [Thread-1] INFO  org.codehaus.plexus.jabber.JabberClient  - User 
raghurajan.x.gurunathan doesn't exist. Trying to create it.
985487 [Thread-1] ERROR 
org.apache.maven.continuum.notification.ContinuumNotificationDispatcher  - 
Error while trying to use the jabbernotifier.
org.codehaus.plexus.notification.NotificationException: Exception while 
sending message.
at 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:236)
at 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinuumNotifier.java:135)
at 
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173)
at 
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
at 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:363)
at 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53)
at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:534)
Caused by: org.codehaus.plexus.jabber.JabberClientException: Can't create 
an account for user raghurajan.x.gurunathan on mx.jpmorgan.com
at 
org.codehaus.plexus.jabber.DefaultJabberClient.logon(DefaultJabberClient.java:115)
at 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNotifier.java:218)
... 7 more
Caused by: Server does not support account creation.: 
at 
org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:159)
at 
org.codehaus.plexus.jabber.DefaultJabberClient.logon(DefaultJabberClient.java:109)
... 8 more
1022921 [Thread-7] INFO 
org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:check-out-project 
 - Executor thread got shutdown signal.
1022921 [Thread-2] INFO 
org.codehaus.plexus.taskqueue.execution.TaskQueueExecutor:check-out-project 
 - Executor thread 'check-out-project' exited.
1022921 [Thread-7] ERROR org.codehaus.plexus.summit.pull.PullService  - 
Problem disposing global tools: 
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)
at java.util.HashMap$KeyIterator.next(HashMap.java:818)
at 
org.codehaus.plexus.summit.pull.DefaultPullService.disposeGlobalTools(DefaultPullService.java:284)
at 
org.codehaus.plexus.summit.pull.DefaultPullService.dispose(DefaultPullService.java:264)
at 
org.codehaus.plexus.personality.plexus.lifecycle.phase.DisposePhase.execute(DisposePhase.java:13)
at 
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.end(AbstractLifecycleHandler.java:149)
at 
org.codehaus.plexus.component.manager.AbstractComponentManager.endComponentLifecycle(AbstractComponentManager.java:144)
at 
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.dispose(ClassicSingletonComponentManager.java:78)
at 
org.codehaus.plexus.DefaultPlexusContainer.disposeAllComponents(DefaultPlexusContainer.java:833)
at 
org.codehaus.plexus.DefaultPlexusContainer.dispose(DefaultPlexusContainer.java:803)
at 
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.undeploy(DefaultApplicationDeployer.java:427)
at 
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.dispose(DefaultApplicationDeployer.java:514)
at 
org.codehaus.plexus.personality.plexus.lifecycle.phase.DisposePhase.execute(DisposePhase.java:13)
at 
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.end(AbstractLifecycleHandler.java:149)
at 
org.codehaus.plexus.component.manager.AbstractComponentManager.endComponentLifecycle(AbstractComponentManager.java:144)
at 
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.dispose(ClassicSingletonComponentManager.java:78)
at 
org.codehaus.plexus.DefaultPlexusContainer.disposeAllComponents(DefaultPlexusContainer.java:833)
at 

Re: Want explain on Dependencies Scope

2006-07-21 Thread Wayne Fay

C pom
depjdom

B pom
depC

A pom
depB

Isn't this what you want?

Wayne

On 7/21/06, Roy Siu [EMAIL PROTECTED] wrote:


Thanks.  I have read it yet. But the samples do not suit my case. What I want
is how to let project A use project B's wrapper function of project C, in
which the function use Class.forName or more specific that how can my
[plugin] project use [CommonLib]'s wrapper of [JDom's XPath]'s function
which use Class.forName to dynamic load classes.
--
View this message in context: 
http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5436211
Sent from the Maven - Users forum 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: Release strategy with Continuum

2006-07-21 Thread Wayne Fay

We build official releases manually. But Dan's suggestion seems reasonable.

Wayne

On 7/21/06, dan tran [EMAIL PROTECTED] wrote:

you can add a build defintion to you current project that do this.

mvn scm:bootstrap -Dgoals=-B,release:prepare,release:perform

schedule it to somewhere in far future and run it ( one click) later


never try it thou ;-)

-D


On 7/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I was wondering if anyone has developed any best practices for performing
 a release with maven when using continuum? To cut things down to the basics,
 seems you pretty much have to:

 1. Stop continuum
 2. Perform the release (including deployment of jars to repository)
 3. Restart continuum

 Is this pretty much what everyone else is doing, or have other people
 found better ways of managing releases in a continuous integration
 environment.

 Thanks,
 Baron





RE: Excluding jars from my ear

2006-07-21 Thread David Smiley

That didn't work Ian.  And even if it did... this solution would mean I need
to keep this list in sync with my parent pom's dependencies.

~ David
-- 
View this message in context: 
http://www.nabble.com/Excluding-jars-from-my-ear-tf1981474.html#a5439615
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Eclipse 3.2/callisto Dynamic Content web project question

2006-07-21 Thread Daniel Serodio
William Kinney wrote:
 Hello, 

 I apologize if this is not the correct mailing list for this question. I
 tried the codehaus mailing list for the plugin, but it seems that list
 is dead.
   
I did reply to you on the codehaus list, didn't you get my reply there?
 Is there any word on the integration of the plugin with callisto / 3.2's
 Dynamic Content Web project? I was hoping to use maven 2 along with
 it, but it seems the web path Library won't include the maven 2 Library
 (and therefore include all the jars in WEB-INF/lib)
 Or does someone perhaps have a workaround for this? 
 I would like to use callistos autodeploy feature for local
 testing/debugging, rather than doing cargo:deploy cargo:undeploy every
 time...
   
See http://jira.codehaus.org/browse/MNGECLIPSE-105

HTH,
Daniel Serodio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Excluding jars from my ear

2006-07-21 Thread Wayne Fay

I would simply specify all the deps in EAR pom with
scopeprovided/scope. This should prevent them from being copied
into the EAR lib.

And yes, you will need to sync the list etc. Its really not that painful imo.

Personally, I go the other route -- specify all deps in my WARs as
provided and specify them again in my EAR so they get pulled in.

Wayne

On 7/21/06, David Smiley [EMAIL PROTECTED] wrote:


That didn't work Ian.  And even if it did... this solution would mean I need
to keep this list in sync with my parent pom's dependencies.

~ David
--
View this message in context: 
http://www.nabble.com/Excluding-jars-from-my-ear-tf1981474.html#a5439615
Sent from the Maven - Users forum 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: Excluding jars from my ear

2006-07-21 Thread David Smiley

Wouldn't doing so prevent me from using the Jetty plugin to test the webapp? 
Jetty wouldn't know to load the dependencies since it sees provided.

Even if that wasn't an issue... I wonder about the total XML / config that
needs to be typed and synchronized between those files.  No thanks.

I just wish I could do some sort of excludes *.jar for the ear file... or if
the ear plugin had an option to not pull anything not explicitly mentioned
in a module in its config.  -- that seems best.

~ David
-- 
View this message in context: 
http://www.nabble.com/Excluding-jars-from-my-ear-tf1981474.html#a5440078
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [mojo-user] Unable to use the weblogic-8.1 plugin to deploy a simple ejb jar

2006-07-21 Thread Pauquette, Bryan
The only place I specify ejb is in the packagingejb/packaging
element of the projects pom.  

I can not change this and get maven 2.0.4 to generate the ejb-client
jars.

Why would the weblogic deployer assume a .ejb extension unless maven was
somehow passing this to the deployer?


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 21, 2006 4:32 PM
To: user@mojo.codehaus.org
Subject: Re: [mojo-user] Unable to use the weblogic-8.1 plugin to deploy
a simple ejb jar

If you grok the entire log, you'll find:

[INFO] Building ejb dsc-ejb-1.0
[INFO] Building jar:
/opt/app/devbox/username/builds/myapp_ssk_dsc_1.0.1/vobs/pos_dev/dsc-pro
file-services/target/dsc-ejb-1.0.jar
...
[INFO] Building ejb client dsc-ejb-1.0-client
[INFO] Building jar:
/opt/app/devbox/username/builds/myapp_ssk_dsc_1.0.1/vobs/pos_dev/dsc-pro
file-services/target/dsc-ejb-1.0-client.jar
...
[INFO] Weblogic Deployment parameters [-deploy, -adminurl,
http://devbox.wdc.myco.net:32030, -username, guido, -password,
something, -name, dsc-ejb, -targets, myapp-frontend-server, -remote,
-nostage, -sourcerootforupload,
/opt/app/devbox/username/builds/myapp_ssk_dsc_1.0.1/vobs/pos_dev/dsc-pro
file-services/target/dsc-ejb.ejb]
weblogic.Deployer$DeployerException: The source file
/opt/app/devbox/username/builds/myapp_ssk_dsc_1.0.1/vobs/pos_dev/dsc-pro
file-services/target/dsc-ejb.ejb does not exist and cannot be deployed.

So basically you are building a .jar file and then the Weblogic
deployer is looking for a .ejb file. Change one or the other and its
bound to work, I'd expect.

Wayne

On 7/21/06, Pauquette, Bryan [EMAIL PROTECTED] wrote:


 To: 'user@mojo.codehaus.org'
 Trying to deploy a simple ejb-jar using the weblogic 8.1 plugin.  I
 think I followed all of the instructions correctly but alas I am
getting
 the following.  (Sensitive information has been changed in the post).


 It seems the name of the artifact is not correctly updated to .jar a
 .ejb extension is being used.


 I already posted on the maven users list regarding a similar issue a
few
 days ago.  Is this a bug?

 Thanks


 mvn -e -X weblogic:deploy
 + Error stacktraces are turned on.
 Maven version: 2.0.4
 [DEBUG] Building Maven user-level plugin registry from:
 '/opt/app/devbox/username/.m2/plugin-registry.xml'
 [DEBUG] Building Maven global-level plugin registry from:
 '/opt/app/devbox/myappbuild/.gnu/maven-2.0.4/conf/plugin-registry.xml'
 [INFO] Scanning for projects...
 [DEBUG] Searching for parent-POM: net.myco.dsc:dsc::1.0 of project:
 null:dsc-ejb:ejb:null in relative path: ../pom.xml
 [DEBUG] Parent-POM: net.myco.dsc:dsc::1.0 not found in relative path:
 ../pom.xml
 [DEBUG] Retrieving parent-POM: net.myco.dsc:dsc::1.0 for project:
 null:dsc-ejb:ejb:null from the repository.
 [INFO] Searching repository for plugin with prefix: 'weblogic'.
 [DEBUG] Skipping disabled repository Maven Snapshots
 [DEBUG] Skipping disabled repository Maven Snapshots
 [DEBUG] Skipping disabled repository Maven Snapshots
 [DEBUG] maven-ejb-plugin: resolved to version 2.0 from repository
 central
 [DEBUG] Retrieving parent-POM:
 org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
 null:maven-ejb-plugin:maven-plugin:2.0 from the repository.
 [DEBUG] Skipping disabled repository central
 [DEBUG] Skipping disabled repository central
 [DEBUG] weblogic-maven-plugin: resolved to version
 2.8.0-20060304.202223-1 from repository Maven Snapshots
 [DEBUG] Retrieving parent-POM:
 org.codehaus.mojo:mojo-sandbox::2-SNAPSHOT for project:
 null:weblogic-maven-plugin:maven-plugin:2.8.0-20060304.202223-1 from
the
 repository.
 [DEBUG] Skipping disabled repository central
 [DEBUG] Skipping disabled repository central
 [DEBUG] mojo-sandbox: resolved to version 2-20060213.034901-2 from
 repository Maven Snapshots
 [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::7 for project:
 null:mojo-sandbox:pom:2-SNAPSHOT from the repository.
 [DEBUG] weblogic-maven-plugin: resolved to version
 2.8.0-20060304.202223-1 from repository Maven Snapshots
 [DEBUG] Retrieving parent-POM:
org.codehaus.cargo:cargo-extensions::0.8
 for project: null:cargo-maven2-plugin:maven-plugin:0.2 from the
 repository.
 [DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.8 for
 project: null:cargo-extensions:pom:null from the repository.
 [DEBUG] weblogic-maven-plugin: resolved to version
 2.8.0-20060304.202223-1 from repository Maven Snapshots
 [DEBUG] Retrieving parent-POM:
 org.codehaus.mojo:mojo-sandbox::2-SNAPSHOT for project:
 null:weblogic-maven-plugin:maven-plugin:2.8.0-20060304.202223-1 from
the
 repository.
 [DEBUG] mojo-sandbox: resolved to version 2-20060213.034901-2 from
 repository Maven Snapshots
 [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::7 for project:
 null:mojo-sandbox:pom:2-SNAPSHOT from the repository.
 [DEBUG] weblogic-maven-plugin: resolved to version
 2.8.0-20060304.202223-1 from repository Maven Snapshots
 [INFO]


Re: commons-logging-api vs commons-logging

2006-07-21 Thread Dennis Lundberg

Geoffrey De Smet wrote:

In the central repo there are 2 jars for commons-logging.

On which one should I depend or should I depend on both?


dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging-api/artifactId
version1.0.4/version
/dependency
dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging/artifactId
version1.0.4/version
/dependency


If you are a normal user of commons-logging you should depend on 
commons-logging-api. If you extend commons-logging in any way you are 
better off depending on commons-logging.


--
Dennis Lundberg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: commons-logging-api vs commons-logging

2006-07-21 Thread Beyer,Nathan
That's a question for the Jakarta commons-logging mailing lists. 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey De Smet
Sent: Friday, July 21, 2006 10:32 AM
To: users@maven.apache.org
Subject: commons-logging-api vs commons-logging

In the central repo there are 2 jars for commons-logging.

On which one should I depend or should I depend on both?


 dependency
 groupIdcommons-logging/groupId
 artifactIdcommons-logging-api/artifactId
 version1.0.4/version
 /dependency
 dependency
 groupIdcommons-logging/groupId
 artifactIdcommons-logging/artifactId
 version1.0.4/version
 /dependency


--
With kind regards,
Geoffrey De Smet


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
CONFIDENTIALITY NOTICE This message and any included attachments
are from Cerner Corporation and are intended only for the
addressee. The information contained in this message is
confidential and may constitute inside or non-public information
under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of
such information is strictly prohibited and may be unlawful. If you
are not the addressee, please promptly delete this message and
notify the sender of the delivery error by e-mail or you may call
Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024. ---


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[M2] Ant Mojo

2006-07-21 Thread Hilco Wijbenga

Hi all,

I followed the Developing Ant Plugins for Maven2.x guide and ended
up with a nicely working hello-plugin. I would like to try more daring
things now. :-)

Instead of echoHello world/echo I'd like to execute
echoproperties/. This is part of the optional Ant tasks, however.
How do I include those?

The real object is to run XJC's Ant task. I know there are JAXB Maven2
plugins available but I'd like to know how to build a plugin myself.

It's working in Ant. Now I need to get it to run in Maven2. The
problem is creating the classpath for the XJC task. In my Ant
build.xml I have

taskdef name=xjc classname=com.sun.tools.xjc.XJCTask
 classpath
   fileset dir=lib includes=*.jar/
 /classpath
/taskdef

but that doesn't work in Maven2, of course.

I can include the various jars as dependencies (in the pom.xml for the
plugin, I assume) but how do I access them in xjc.build.xml? I guess I
could use something like ${user.home}/.m2/repository/... but that
doesn't strike me as the right way to go about things.

Please enlighten me.

Cheers,
Hilco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Excluding jars from my ear

2006-07-21 Thread Max Cooper

David,

Your ear module should not inherit dependencies that it doesn't need.

One solution is to have your ear module NOT inherit from the parent pom.

Another solution is to use the dependencyManagement section in the 
parent pom, and then specify which dependencies each module *really* 
uses in their own poms. dependencyManagement allows you to control 
dependency versions (and scope, etc.) across your whole project, without 
forcing modules to inherit dependencies they don't need. It is sloppy to 
have modules inheriting dependencies that they don't need, and this 
strategy eliminates the slop.


A third solution is to have two levels of parent poms. One stripped-down 
super-parent, with no dependencies specified. The ear module will 
inherit directly from this super-parent. Then make your existing parent, 
the one with all the dependencies, also inherit from the super-parent. 
The other modules that really need the dependencies will inherit from 
the parent, rather than the super-parent.


-Max

David Smiley wrote:

Hi. I have a multi-module project.  My parent pom specifies the dependencies
that are used by practically everything.  I have an ear module that's sole
purpose is to package up two war files (in other modules), but nothing else. 
It does this but includes jar's specified by my parent pom.  But I don't

want any of those at all... since they are included already in both war
files.  I want to keep the war files that  way because that makes them
independently complete.  I looked at the ear plugin page and I see a mention
of excludes but it doesn't seem to work.  I have it like so:
excludes*.jar/excludes

What should I do?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] Ant Mojo

2006-07-21 Thread Toli Kuznets

Hilco,

I think we did something similar to what you are trying to do: i had
an an ant target that run a junit task, which is an optional task as
well.

I got that to work by adding a dependency on ant-junit in my POM file,
and calling out to the junit task within the same POM:

 dependency
   groupIdant/groupId
   artifactIdant-junit/artifactId
   version1.6.5/version
   scopetest/scope
   /dependency
   /dependencies

   build
   plugins
   plugin
   artifactIdmaven-antrun-plugin/artifactId
   executions
   execution
   idrun-integration-tests/id
   phaseintegration-test/phase
   configuration
   tasks
   property
name=integrationTestReportDir
value=${project.build.directory}/integration-test-reports/
   taskdef name=junit

classname=org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
   classpath
   path refid=maven.test.classpath/
   /classpath
   /taskdef

   mkdir dir=${integrationTestReportDir}/

   junit printSummary=yes
haltonerror=true haltonfailure=true fork=true dir=.
   sysproperty key=basedir value=./
   formatter type=plain usefile=true/
   classpath
   path refid=maven.test.classpath/
   /classpath
   batchtest
todir=${integrationTestReportDir}
   fileset dir=src/test/java
   include name=**/*IT.java/
   /fileset
   /batchtest
   /junit

   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   /plugin
...

hope this helps. you can find the entire source of the POM at
http://svn.marketcetera.org/platform/trunk/oms/pom.xml



On 7/21/06, Hilco Wijbenga [EMAIL PROTECTED] wrote:

Hi all,

I followed the Developing Ant Plugins for Maven2.x guide and ended
up with a nicely working hello-plugin. I would like to try more daring
things now. :-)

Instead of echoHello world/echo I'd like to execute
echoproperties/. This is part of the optional Ant tasks, however.
How do I include those?

The real object is to run XJC's Ant task. I know there are JAXB Maven2
plugins available but I'd like to know how to build a plugin myself.

It's working in Ant. Now I need to get it to run in Maven2. The
problem is creating the classpath for the XJC task. In my Ant
build.xml I have

taskdef name=xjc classname=com.sun.tools.xjc.XJCTask
  classpath
fileset dir=lib includes=*.jar/
  /classpath
/taskdef

but that doesn't work in Maven2, of course.

I can include the various jars as dependencies (in the pom.xml for the
plugin, I assume) but how do I access them in xjc.build.xml? I guess I
could use something like ${user.home}/.m2/repository/... but that
doesn't strike me as the right way to go about things.

Please enlighten me.

Cheers,
Hilco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Toli Kuznets
http://www.marketcetera.org: Open-Source Trading Platform
download.run.trade.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: pack multiple jars into one

2006-07-21 Thread Valerio Schiavoni

short answer:
mvn -DdescriptorId=jar-with-dependency assembly:assembly

On 7/20/06, Eric Zhao [EMAIL PROTECTED] wrote:



my project has 3 modules, one of which depends on the other two. After i
package it with Maven 2, i got 3 jars. This is ok but i want to pack them
into one jar file (so that when i distribute it, my client has to deal
with
one jar file). How to do that?

thanks in advance.
--
View this message in context:
http://www.nabble.com/pack-multiple-jars-into-one-tf1976655.html#a5422397
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


stuck with maven-site-plugin

2006-07-21 Thread Joerg Hohwiller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi there,

As denoted in MSITE-132 my site does NOT work because the site plugin uses the
project names instead of artifact IDs for directory names of the modules
(sub-projects). Since I have Names like MMM::Util, the browser gets them as
relative links and tells
Firefox doesen't know how to open this address, because the protocol (mmm)
isn't associated with any program.

I checked out the latest snapshot (2.0-SNAPSHOT) including doxia of today and
build the plugin. The behaviour did not change...

At
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20deploy%20my%20site?
You can read
citeNote: the trailing slash in the URL above indicates that any subprojects
that inherit this value should append their artifact ID to the path instead of
using it as is./cite

Please note the artifact ID above.
So I added a distributionManagement tag to my pom with proper values but this
did not change anything.

Is there anything that can help me exakt for temporary renaming all my modules
(there are many of them!)? Please let me know - I still have the maven1 site of
my project up on the web which is more than one year old. I want to deploy
the new site...

Regards
  Jörg

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEwXYCmPuec2Dcv/8RAggsAJ0Qq9dfh9Q9y+JSR/XahOmnmj9UEACfWYBV
JTkCqlg3iOypMErNyg1wNmY=
=y/Ps
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Want explain on Dependencies Scope

2006-07-21 Thread Roy Siu

Yes, it's what i want
-- 
View this message in context: 
http://www.nabble.com/Want-explain-on-Dependencies-Scope-tf1979614.html#a5442789
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [mojo-user] Unable to use the weblogic-8.1 plugin to deploy a simple ejb jar

2006-07-21 Thread Scott Ryan
THe packaging attribute is used to determine what type of object you are
trying to deploy.  In weblogic the only types of objects that can actually
be deployed are ears and wars so I am not sure why you are running deploy in
an ejb project since it will not deploy without being contained inside an
EAR.

Scott Ryan
Chief Technology Officer
Soaring Eagle L.L.C.
[EMAIL PROTECTED]
www.soaringeagleco.com
(303) 263-3044

-Original Message-
From: Pauquette, Bryan [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 3:11 PM
To: user@mojo.codehaus.org; Maven Users List
Subject: RE: [mojo-user] Unable to use the weblogic-8.1 plugin to deploy
a simple ejb jar


The only place I specify ejb is in the packagingejb/packaging
element of the projects pom.

I can not change this and get maven 2.0.4 to generate the ejb-client
jars.

Why would the weblogic deployer assume a .ejb extension unless maven was
somehow passing this to the deployer?


-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Friday, July 21, 2006 4:32 PM
To: user@mojo.codehaus.org
Subject: Re: [mojo-user] Unable to use the weblogic-8.1 plugin to deploy
a simple ejb jar

If you grok the entire log, you'll find:

[INFO] Building ejb dsc-ejb-1.0
[INFO] Building jar:
/opt/app/devbox/username/builds/myapp_ssk_dsc_1.0.1/vobs/pos_dev/dsc-pro
file-services/target/dsc-ejb-1.0.jar
...
[INFO] Building ejb client dsc-ejb-1.0-client
[INFO] Building jar:
/opt/app/devbox/username/builds/myapp_ssk_dsc_1.0.1/vobs/pos_dev/dsc-pro
file-services/target/dsc-ejb-1.0-client.jar
...
[INFO] Weblogic Deployment parameters [-deploy, -adminurl,
http://devbox.wdc.myco.net:32030, -username, guido, -password,
something, -name, dsc-ejb, -targets, myapp-frontend-server, -remote,
-nostage, -sourcerootforupload,
/opt/app/devbox/username/builds/myapp_ssk_dsc_1.0.1/vobs/pos_dev/dsc-pro
file-services/target/dsc-ejb.ejb]
weblogic.Deployer$DeployerException: The source file
/opt/app/devbox/username/builds/myapp_ssk_dsc_1.0.1/vobs/pos_dev/dsc-pro
file-services/target/dsc-ejb.ejb does not exist and cannot be deployed.

So basically you are building a .jar file and then the Weblogic
deployer is looking for a .ejb file. Change one or the other and its
bound to work, I'd expect.

Wayne

On 7/21/06, Pauquette, Bryan [EMAIL PROTECTED] wrote:


 To: 'user@mojo.codehaus.org'
 Trying to deploy a simple ejb-jar using the weblogic 8.1 plugin.  I
 think I followed all of the instructions correctly but alas I am
getting
 the following.  (Sensitive information has been changed in the post).


 It seems the name of the artifact is not correctly updated to .jar a
 .ejb extension is being used.


 I already posted on the maven users list regarding a similar issue a
few
 days ago.  Is this a bug?

 Thanks


 mvn -e -X weblogic:deploy
 + Error stacktraces are turned on.
 Maven version: 2.0.4
 [DEBUG] Building Maven user-level plugin registry from:
 '/opt/app/devbox/username/.m2/plugin-registry.xml'
 [DEBUG] Building Maven global-level plugin registry from:
 '/opt/app/devbox/myappbuild/.gnu/maven-2.0.4/conf/plugin-registry.xml'
 [INFO] Scanning for projects...
 [DEBUG] Searching for parent-POM: net.myco.dsc:dsc::1.0 of project:
 null:dsc-ejb:ejb:null in relative path: ../pom.xml
 [DEBUG] Parent-POM: net.myco.dsc:dsc::1.0 not found in relative path:
 ../pom.xml
 [DEBUG] Retrieving parent-POM: net.myco.dsc:dsc::1.0 for project:
 null:dsc-ejb:ejb:null from the repository.
 [INFO] Searching repository for plugin with prefix: 'weblogic'.
 [DEBUG] Skipping disabled repository Maven Snapshots
 [DEBUG] Skipping disabled repository Maven Snapshots
 [DEBUG] Skipping disabled repository Maven Snapshots
 [DEBUG] maven-ejb-plugin: resolved to version 2.0 from repository
 central
 [DEBUG] Retrieving parent-POM:
 org.apache.maven.plugins:maven-plugin-parent::2.0 for project:
 null:maven-ejb-plugin:maven-plugin:2.0 from the repository.
 [DEBUG] Skipping disabled repository central
 [DEBUG] Skipping disabled repository central
 [DEBUG] weblogic-maven-plugin: resolved to version
 2.8.0-20060304.202223-1 from repository Maven Snapshots
 [DEBUG] Retrieving parent-POM:
 org.codehaus.mojo:mojo-sandbox::2-SNAPSHOT for project:
 null:weblogic-maven-plugin:maven-plugin:2.8.0-20060304.202223-1 from
the
 repository.
 [DEBUG] Skipping disabled repository central
 [DEBUG] Skipping disabled repository central
 [DEBUG] mojo-sandbox: resolved to version 2-20060213.034901-2 from
 repository Maven Snapshots
 [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::7 for project:
 null:mojo-sandbox:pom:2-SNAPSHOT from the repository.
 [DEBUG] weblogic-maven-plugin: resolved to version
 2.8.0-20060304.202223-1 from repository Maven Snapshots
 [DEBUG] Retrieving parent-POM:
org.codehaus.cargo:cargo-extensions::0.8
 for project: null:cargo-maven2-plugin:maven-plugin:0.2 from the
 repository.
 [DEBUG] Retrieving parent-POM: org.codehaus.cargo:cargo::0.8 for
 project: null:cargo-extensions:pom:null from the repository.
 

Re: Utility to create upload bundles

2006-07-21 Thread Tim Kettler

Will see that I find a home for it. But this will probably take abaout a week 
or two.

Ivo Limmen schrieb:
Sounds like a very usefull tool. I recently had the same problem, this 
would

have been a great help.

On 7/20/06, Tim Kettler [EMAIL PROTECTED] wrote:


Hi,

I recently had to add a bunch of 3d-party artifacts to our repository and
creating the
poms with all the transitive dependencies by hand was a major pain in the
a**. So I sat
down and wrote a little tool that takes a couple of jars as its input,
analyzes the
dependencies, generates the poms and writes upload bundles for each
artifact. It has a
rudimentary GUI that allows basic editing of the generated information 
for

the poms.

The tool is currently not very polished and has much room for 
improvements

but it is
useful and works for me. If there is interest in the community I will 
look

for a place
where I can make the tool available to the public.

-Tim

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