Re: GoogleTalk notification

2006-07-05 Thread Emmanuel Venisse
A message is sent only if the build state is changed between two builds like it was in failure and 
now it is in success.


So in your case, the message isn't sent because the build is always in success.

Emmanuel

Jeff Mutonho a écrit :

On 7/5/06, Jeff Mutonho [EMAIL PROTECTED] wrote:

On 7/4/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 no, you don't need to restart it for all changes done throught the 
web interface, only for

 modification in application.xml.

 For google talk, you need to define the jabber domain like described 
in faqs :
 
http://maven.apache.org/continuum/faqs.html#how-to-configure-jabber-notifier-for-google-talk 



 Emmanuel


I did configure the domain.Just forgot to paste it in my message.
I get the following message , though :

jvm 1| 2006-07-04 18:10:11,175 [Thread-2] DEBUG Notifier:jabber
  - Current build state: 2, previous build state: 2
jvm 1| 2006-07-04 18:10:11,175 [Thread-2] INFO  Notifier:jabber
  - Same state, not sending message.




Does that mean jabber is failing to send the nofications?What does
Same state, not sending message.  mean?


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042







Re: Email Limiting?

2006-07-05 Thread Emmanuel Venisse
In 1.1, we'll have the group of projects features. I don't know for now if we'll have group 
notifiers. If we decide to have it, CONTINUUM-634 will be in 1.1


Emmanuel

Vincent Massol a écrit :

Hi Mark,

I'd love this too. See http://jira.codehaus.org/browse/CONTINUUM-634. You
can even vote for it ;-)

Unfortunately there's no fix for right now for this issue meaning there's
no plan to include it as yet.

Thanks
-Vincent


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark Reynolds
Sent: mardi 4 juillet 2006 23:14
To: continuum-users@maven.apache.org
Subject: Email Limiting?

We have Continuum checking SVN once per minute so our build will begin
very quickly after someone does a commit.

Occasionally there is some problem, for instance, where something
happens with Continuum's SVN working copy requiring cleanup to be run.
In this case, Continuum will send out approximately 10 error emails per
minute to all of our users. If this happens shortly after everyone has
left for the day, there can be quite a large number of emails in
everyone's inbox!!

Is there some way to limit the emails that Continuum will send out? If
not, this would be a worthy enhancement. Thanks.

-- Mark R







___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.

http://fr.mail.yahoo.com







Re: GoogleTalk notification

2006-07-05 Thread Jeff Mutonho

On 7/5/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:

A message is sent only if the build state is changed between two builds like it 
was in failure and
now it is in success.

So in your case, the message isn't sent because the build is always in success.

Emmanuel


Thanks.Now I induced a build failure  and jabber tried to send a
notification , but failed with the exception :

jvm 1| 2006-07-05 12:01:02,674 [Thread-2] ERROR ContinuumNotificationDispatc
her - Error while trying to use the jabbernotifier.
jvm 1| org.codehaus.plexus.notification.NotificationException: Exception whi
le sending message.
jvm 1|  at org.apache.maven.continuum.notification.jabber.JabberContinuu
mNotifier.sendMessage(JabberContinuumNotifier.java:241)
jvm 1|  at org.apache.maven.continuum.notification.jabber.JabberContinuu
mNotifier.sendNotification(JabberContinuumNotifier.java:139)
jvm 1|  at org.apache.maven.continuum.notification.DefaultContinuumNotif
icationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:1
73)
jvm 1|  at org.apache.maven.continuum.notification.DefaultContinuumNotif
icationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
jvm 1|  at org.apache.maven.continuum.buildcontroller.DefaultBuildContro
ller.build(DefaultBuildController.java:378)
jvm 1|  at org.apache.maven.continuum.buildcontroller.BuildProjectTaskEx
ecutor.executeTask(BuildProjectTaskExecutor.java:47)
jvm 1|  at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExec
utor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
jvm 1|  at java.lang.Thread.run(Thread.java:595)
jvm 1| Caused by: org.codehaus.plexus.jabber.JabberClientException: Can't co
nnect to talk.google.com:5222
jvm 1|  at org.codehaus.plexus.jabber.DefaultJabberClient.connect(Defaul
tJabberClient.java:51)
jvm 1|  at org.apache.maven.continuum.notification.jabber.JabberContinuu
mNotifier.sendMessage(JabberContinuumNotifier.java:221)
jvm 1|  ... 7 more
jvm 1| Caused by: XMPPError connecting to talk.google.com:5222.: (502)
jvm 1|   -- caused by: java.net.ConnectException: Connection timed out: conn
ect
jvm 1|  at org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.j
ava:174)
jvm 1|  at org.codehaus.plexus.jabber.DefaultJabberClient.connect(Defaul
tJabberClient.java:42)
jvm 1|  ... 8 more



Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: GoogleTalk notification

2006-07-05 Thread Emmanuel Venisse

jvm 1| Caused by: XMPPError connecting to talk.google.com:5222.: (502)
jvm 1|   -- caused by: java.net.ConnectException: Connection timed out: 
connect

Are you behind a proxy?

Emmanuel


Jeff Mutonho a écrit :

On 7/5/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
A message is sent only if the build state is changed between two 
builds like it was in failure and

now it is in success.

So in your case, the message isn't sent because the build is always in 
success.


Emmanuel


Thanks.Now I induced a build failure  and jabber tried to send a
notification , but failed with the exception :

jvm 1| 2006-07-05 12:01:02,674 [Thread-2] ERROR 
ContinuumNotificationDispatc

her - Error while trying to use the jabbernotifier.
jvm 1| org.codehaus.plexus.notification.NotificationException: 
Exception whi

le sending message.
jvm 1|  at 
org.apache.maven.continuum.notification.jabber.JabberContinuu

mNotifier.sendMessage(JabberContinuumNotifier.java:241)
jvm 1|  at 
org.apache.maven.continuum.notification.jabber.JabberContinuu

mNotifier.sendNotification(JabberContinuumNotifier.java:139)
jvm 1|  at 
org.apache.maven.continuum.notification.DefaultContinuumNotif
icationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:1 


73)
jvm 1|  at 
org.apache.maven.continuum.notification.DefaultContinuumNotif
icationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96) 

jvm 1|  at 
org.apache.maven.continuum.buildcontroller.DefaultBuildContro

ller.build(DefaultBuildController.java:378)
jvm 1|  at 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskEx

ecutor.executeTask(BuildProjectTaskExecutor.java:47)
jvm 1|  at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExec

utor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
jvm 1|  at java.lang.Thread.run(Thread.java:595)
jvm 1| Caused by: org.codehaus.plexus.jabber.JabberClientException: 
Can't co

nnect to talk.google.com:5222
jvm 1|  at 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(Defaul

tJabberClient.java:51)
jvm 1|  at 
org.apache.maven.continuum.notification.jabber.JabberContinuu

mNotifier.sendMessage(JabberContinuumNotifier.java:221)
jvm 1|  ... 7 more
jvm 1| Caused by: XMPPError connecting to talk.google.com:5222.: (502)
jvm 1|   -- caused by: java.net.ConnectException: Connection timed 
out: conn

ect
jvm 1|  at 
org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.j

ava:174)
jvm 1|  at 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(Defaul

tJabberClient.java:42)
jvm 1|  ... 8 more



Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042







Re: GoogleTalk notification

2006-07-05 Thread Emmanuel Venisse
It seems that something was changed in Google talk connection : 
http://www.jivesoftware.org/community/thread.jspa?messageID=122893


We use the jivesoftware smack library for jabber/google connection.

Emmanuel

Emmanuel Venisse a écrit :

jvm 1| Caused by: XMPPError connecting to talk.google.com:5222.: (502)
jvm 1|   -- caused by: java.net.ConnectException: Connection timed 
out: connect


Are you behind a proxy?

Emmanuel


Jeff Mutonho a écrit :

On 7/5/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
A message is sent only if the build state is changed between two 
builds like it was in failure and

now it is in success.

So in your case, the message isn't sent because the build is always 
in success.


Emmanuel


Thanks.Now I induced a build failure  and jabber tried to send a
notification , but failed with the exception :

jvm 1| 2006-07-05 12:01:02,674 [Thread-2] ERROR 
ContinuumNotificationDispatc

her - Error while trying to use the jabbernotifier.
jvm 1| org.codehaus.plexus.notification.NotificationException: 
Exception whi

le sending message.
jvm 1|  at 
org.apache.maven.continuum.notification.jabber.JabberContinuu

mNotifier.sendMessage(JabberContinuumNotifier.java:241)
jvm 1|  at 
org.apache.maven.continuum.notification.jabber.JabberContinuu

mNotifier.sendNotification(JabberContinuumNotifier.java:139)
jvm 1|  at 
org.apache.maven.continuum.notification.DefaultContinuumNotif
icationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:1 


73)
jvm 1|  at 
org.apache.maven.continuum.notification.DefaultContinuumNotif
icationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96) 

jvm 1|  at 
org.apache.maven.continuum.buildcontroller.DefaultBuildContro

ller.build(DefaultBuildController.java:378)
jvm 1|  at 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskEx

ecutor.executeTask(BuildProjectTaskExecutor.java:47)
jvm 1|  at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExec

utor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
jvm 1|  at java.lang.Thread.run(Thread.java:595)
jvm 1| Caused by: 
org.codehaus.plexus.jabber.JabberClientException: Can't co

nnect to talk.google.com:5222
jvm 1|  at 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(Defaul

tJabberClient.java:51)
jvm 1|  at 
org.apache.maven.continuum.notification.jabber.JabberContinuu

mNotifier.sendMessage(JabberContinuumNotifier.java:221)
jvm 1|  ... 7 more
jvm 1| Caused by: XMPPError connecting to talk.google.com:5222.: 
(502)
jvm 1|   -- caused by: java.net.ConnectException: Connection timed 
out: conn

ect
jvm 1|  at 
org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.j

ava:174)
jvm 1|  at 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(Defaul

tJabberClient.java:42)
jvm 1|  ... 8 more



Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042












Re: Email Limiting?

2006-07-05 Thread Mark Reynolds

I have voted for your issue.

I am not sure if they are exactly the same. I am thinking that when 
Continuum cannot even begin to execute the build because of some problem 
such as an SCM error when trying to update the working copy, it should 
only send one error notification the first time it happens.


-- Mark R

Vincent Massol wrote:

Hi Mark,

I'd love this too. See http://jira.codehaus.org/browse/CONTINUUM-634. You
can even vote for it ;-)

Unfortunately there's no fix for right now for this issue meaning there's
no plan to include it as yet.

Thanks
-Vincent


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark Reynolds
Sent: mardi 4 juillet 2006 23:14
To: continuum-users@maven.apache.org
Subject: Email Limiting?

We have Continuum checking SVN once per minute so our build will begin
very quickly after someone does a commit.

Occasionally there is some problem, for instance, where something
happens with Continuum's SVN working copy requiring cleanup to be run.
In this case, Continuum will send out approximately 10 error emails per
minute to all of our users. If this happens shortly after everyone has
left for the day, there can be quite a large number of emails in
everyone's inbox!!

Is there some way to limit the emails that Continuum will send out? If
not, this would be a worthy enhancement. Thanks.

-- Mark R







___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.

http://fr.mail.yahoo.com





Re: Creating an EJB, then an EAR

2006-07-05 Thread Tim Kettler

Hi,

you should read the free maven book [1]. It is a very good introduction to m2 and has a 
chapter that shows an example of a J2EE application developed with maven.


-Tim

[1] http://library.mergere.com/

Graham Leggett schrieb:

Hi all,

I have an existing ant based project that I am trying to build with maven 2.

The existing ant build creates an EJB jar file, and then wraps it and it's
dependancies into an ear file.

I am trying to replicate this behaviour with maven 2.

Is there a way to run the ejb plugin, followed by the ear plugin to create
the final ear file?

Regards,
Graham
--



-
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] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Tim Kettler

Hi,

you misunderstood the usage of of the pluginManagement/ tag. The tag (like the 
dependencyManagement/ tag for dependencies) is used to give default values to the plugin 
configurations (for example in a super pom). When you then declare the usage of a plugin 
in the buildplugins section of a pom (just with group/artifact id) the inherited 
configuration is used. So to actually execute the antrun plugin you need to move the 
configuration from pluginManagement/ to buildplugins.


-Tim

Paul Kuykendall schrieb:

Hi,

I am at my wits end in getting maven to play nicely with Hibernate.  I've
been at it for over a week now and feel no closer than when I started.
Here's what I'm trying to do.  I've been working on a project using Maven
2.0.4 as the build system.  Everything has been going fine until I try and
get Maven to generate the Hibernate DDL and java from my hbm files.  I've
tried using the codehaus hibernate3-maven-plugin with no success.  I later
discovered that when they had their crash, it took out lots of the plugin
files.  I've tried to just integrate the hibernate portions into the POM as
a simple Ant task.  I can't even get Maven to recognize the Ant tasks.  
I've

RTFM (as much as there is one).  I've tried all the available code snippets
I can find.  So far, nothing has worked.  here is my POM file, slightly
edited to protect the guilty.

With the config files below, I don't even get the echos.

If anyone has a sample section from the POM file for doing Hibernate 3
stuff, I would greatly appreciate a code-snippet.

Thanks.

/Paul

?xml version=1.0 encoding=UTF-8?project
 modelVersion4.0.0/modelVersion

 !-- POM Relationships --
 groupIdcom.mycompany.simulators/groupId
 artifactIdcaisim/artifactId
 version1.0-SNAPSHOT/version
!--
 parent
   groupIdcom.mycompany.simulators/groupId
   artifactIdsimulators/artifactId
   version1.0.0/version
 /parent
--
 dependencyManagement
 /dependencyManagement

 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
   /dependency
   dependency
 groupIdcommons-logging/groupId
 artifactIdcommons-logging/artifactId
 version1.0.4/version
   /dependency
   dependency
 groupIdcommons-configuration/groupId
 artifactIdcommons-configuration/artifactId
 version1.2/version
   /dependency
   dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate/artifactId
 version3.2.0.cr2/version
   /dependency
   dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-annotations/artifactId
 version3.2.0.cr1/version
   /dependency
   dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-tools/artifactId
 version3.1.0.beta4/version
   /dependency
 /dependencies

 modules
 /modules

 !-- Project Information --
 nameMy Simulator/name
 descriptionMy interface simulator./description
 urlhttp://www.mycompany.com/url
 inceptionYear2006/inceptionYear
 licenses/licenses
 developers
   developer
 idmyname/id
 nameMy Name/name
 email[EMAIL PROTECTED]/email
 organization/organization
 roles
   roleDeveloper/role
 /roles
 timezone-6/timezone
   /developer
 /developers
 contributors
 /contributors
 organization
   namemycompany, Inc./name
   urlhttp://www.mycompany.com/url
 /organization

 !-- Build Settings --
 packagingjar/packaging
 properties/properties
 build
   finalNamecsf/finalName
 pluginManagement
   plugins
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
 source1.5/source
 target1.5/target
   /configuration
 /plugin

 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   executions
 execution
   phasegenerate-sources/phase
   configuration
 tasks
   echoRunning Hibernate stuff here./echo
   ant antfile=${basedir}/build-hibernate.xml
inheritRefs=true
 target name=hibernate/
   /ant
 /tasks
   /configuration
   goals
 goalrun/goal
   /goals
 /execution
   /executions
   dependencies
   /dependencies
 /plugin
   /plugins
 /pluginManagement

   extensions
   /extensions

   /build

 reporting
   plugins

 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   reportSets
!--
 reportSet
   iduml/id
   configuration
 docletgr.spinellis.umlgraph.doclet.UmlGraph/doclet
 docletArtifact
   groupIdumlgraph/groupId
   artifactIdUmlGraph/artifactId
   version4.3/version
 /docletArtifact
 

[m2] How do I run reports in a sub-project

2006-07-05 Thread Eric Brown

I have a project structure like this:

head/
- docs
- libs/
-- libA
-- libB

If I cd to head/libs and run mvn -Daggregate=true jxr:jxr, libs/ 
target/site/xref has exactly what I expect. However, I really want to  
be able to do this from head/docs and have the xrefs for libA  libB.  
I'm not sure what configuration opts I need though.


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



Re: [m2] Plugin Version in POM

2006-07-05 Thread leahpar

Hello,

I wonder how many peolple are trying to do the same thing ^^
I have exactly the same concern : reproductible build, user pom as simple as
possible.
I have already try from best to least (personal point on view, it changes
everyweek ...)
*one super pom with predefine corporate config, flavor choose by profile w/o
pluginmanagement
nothing to do in sub pom but some case lead to issue (some plugin fail when
packaging is pom)

*one super pom with predefine corporate config, flavor choose by profile
with pluginmanagement
bad because sub pom need to call plugin

*define corporate wrapper plugin to match need 
best suit but painfull

*several super pom choose flavor by inheritance
bad: too many pom with few discrepancy

not really test the property way yet but plan to
(my todolist is bigger each time i read documentation)

I have also put bidirectionnal link parent-module or aggregate link or mix
of both 
can make a decision on what is the better way for me...

still working. petit a petit on devient moins petit

Cordialement

-- 
View this message in context: 
http://www.nabble.com/-m2--Plugin-Version-in-POM-tf1886670.html#a5177432
Sent from the Maven - Users forum at Nabble.com.


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



RE: Email Limiting?

2006-07-05 Thread Vincent Massol
Hi Mark,

I'd love this too. See http://jira.codehaus.org/browse/CONTINUUM-634. You
can even vote for it ;-)

Unfortunately there's no fix for right now for this issue meaning there's
no plan to include it as yet.

Thanks
-Vincent

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark Reynolds
 Sent: mardi 4 juillet 2006 23:14
 To: continuum-users@maven.apache.org
 Subject: Email Limiting?
 
 We have Continuum checking SVN once per minute so our build will begin
 very quickly after someone does a commit.
 
 Occasionally there is some problem, for instance, where something
 happens with Continuum's SVN working copy requiring cleanup to be run.
 In this case, Continuum will send out approximately 10 error emails per
 minute to all of our users. If this happens shortly after everyone has
 left for the day, there can be quite a large number of emails in
 everyone's inbox!!
 
 Is there some way to limit the emails that Continuum will send out? If
 not, this would be a worthy enhancement. Thanks.
 
 -- Mark R






___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com


Re: How could i add external jar to maven.compile.classpath without use dependency setting in pom.xml

2006-07-05 Thread Roland Asmann
Provided still needs to have the artifact in the repository! What you might 
want to try is the system-scope,
there you define the location of your artifact in the POM and there's no need 
to install the thing in you repo!

Roland



On Tuesday 04 July 2006 23:09, Andrew Williams wrote:
 have you tried the dependency scope provided this will mean the dep is
 not shipped

 On Wed, 2006-07-05 at 02:11 +0800, Reggie Kuo wrote:
  Hi All,
 
  How could i add external jar in maven.compile.classpath without use
  dependency setting.
  Because i don't want to install artifact jar to my repository.
 
  Thanks.
 
 
  Reggie Kuo

 -
 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: GoogleTalk notification

2006-07-05 Thread Jeff Mutonho

On 7/5/06, Jeff Mutonho [EMAIL PROTECTED] wrote:

On 7/4/06, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 no, you don't need to restart it for all changes done throught the web 
interface, only for
 modification in application.xml.

 For google talk, you need to define the jabber domain like described in faqs :
 
http://maven.apache.org/continuum/faqs.html#how-to-configure-jabber-notifier-for-google-talk

 Emmanuel


I did configure the domain.Just forgot to paste it in my message.
I get the following message , though :

jvm 1| 2006-07-04 18:10:11,175 [Thread-2] DEBUG Notifier:jabber
  - Current build state: 2, previous build state: 2
jvm 1| 2006-07-04 18:10:11,175 [Thread-2] INFO  Notifier:jabber
  - Same state, not sending message.




Does that mean jabber is failing to send the nofications?What does
Same state, not sending message.  mean?


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


mvn install with sources?

2006-07-05 Thread Aleksei Valikov

Hi.

I'd like to get sources for my jar artifacts installed into the local repo. I 
usually do mvn (clean) install, but this only builds and copies the binary jar 
into the repo. What should I do to get sources along?


Bye.
/lexi

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



Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Jose Gonzalez Gomez

Paul,

I'm trying to do the same, and I'm facing some troubles, maybe you can help
me... First of all, I haven't been able to find one of the dependencies of
the Hibernate Annotations packages:
javax.persistence:ejb:jar:3.0-public-draft-20060502. This seems to be an
implementation of a public draft that has been removed from ibiblio. Anyway,
I'm using the javax.persistence:persistence-api:1.0 from the
java.netrepository. I guess this is the final implementation of the
missing
dependency, but I don't know how to override it or where to find it. How
have you solved this?

Best regards
Jose

2006/7/5, Paul Kuykendall [EMAIL PROTECTED]:


Hi,

I am at my wits end in getting maven to play nicely with Hibernate.  I've
been at it for over a week now and feel no closer than when I started.
Here's what I'm trying to do.  I've been working on a project using Maven
2.0.4 as the build system.  Everything has been going fine until I try and
get Maven to generate the Hibernate DDL and java from my hbm files.  I've
tried using the codehaus hibernate3-maven-plugin with no success.  I later
discovered that when they had their crash, it took out lots of the plugin
files.  I've tried to just integrate the hibernate portions into the POM
as
a simple Ant task.  I can't even get Maven to recognize the Ant
tasks.  I've
RTFM (as much as there is one).  I've tried all the available code
snippets
I can find.  So far, nothing has worked.  here is my POM file, slightly
edited to protect the guilty.

With the config files below, I don't even get the echos.

If anyone has a sample section from the POM file for doing Hibernate 3
stuff, I would greatly appreciate a code-snippet.

Thanks.

/Paul

?xml version=1.0 encoding=UTF-8?project
  modelVersion4.0.0/modelVersion

  !-- POM Relationships --
  groupIdcom.mycompany.simulators/groupId
  artifactIdcaisim/artifactId
  version1.0-SNAPSHOT/version
!--
  parent
groupIdcom.mycompany.simulators/groupId
artifactIdsimulators/artifactId
version1.0.0/version
  /parent
--
  dependencyManagement
  /dependencyManagement

  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
/dependency
dependency
  groupIdcommons-logging/groupId
  artifactIdcommons-logging/artifactId
  version1.0.4/version
/dependency
dependency
  groupIdcommons-configuration/groupId
  artifactIdcommons-configuration/artifactId
  version1.2/version
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate/artifactId
  version3.2.0.cr2/version
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-annotations/artifactId
  version3.2.0.cr1/version
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-tools/artifactId
  version3.1.0.beta4/version
/dependency
  /dependencies

  modules
  /modules

  !-- Project Information --
  nameMy Simulator/name
  descriptionMy interface simulator./description
  urlhttp://www.mycompany.com/url
  inceptionYear2006/inceptionYear
  licenses/licenses
  developers
developer
  idmyname/id
  nameMy Name/name
  email[EMAIL PROTECTED]/email
  organization/organization
  roles
roleDeveloper/role
  /roles
  timezone-6/timezone
/developer
  /developers
  contributors
  /contributors
  organization
namemycompany, Inc./name
urlhttp://www.mycompany.com/url
  /organization

  !-- Build Settings --
  packagingjar/packaging
  properties/properties
  build
finalNamecsf/finalName
  pluginManagement
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
  source1.5/source
  target1.5/target
/configuration
  /plugin

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
executions
  execution
phasegenerate-sources/phase
configuration
  tasks
echoRunning Hibernate stuff here./echo
ant antfile=${basedir}/build-hibernate.xml
inheritRefs=true
  target name=hibernate/
/ant
  /tasks
/configuration
goals
  goalrun/goal
/goals
  /execution
/executions
dependencies
/dependencies
  /plugin
/plugins
  /pluginManagement

extensions
/extensions

/build

  reporting
plugins

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
reportSets
!--
  reportSet
iduml/id
configuration
  

Re: idea plugin and general plugin q

2006-07-05 Thread AK
Hi, thanks for answer! I'm using 2.0 idea plugin, and the problem  
appearred after I updated from 2.0-beta1 of idea plugin. Does anyone has  
this problem?




Hi, what version of the idea plugin are you using?  Mine is working just
fine.

For plugin information, you can look here:
http://maven.apache.org/plugins/index.html

More IDEA plugin specific would be:
http://maven.apache.org/plugins/maven-idea-plugin/plugin-info.html


Anton Katernoga wrote:


Hi, I have some problems with idea plugin, when i do idea:idea, the
project, generated out of
..
build
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
resource
directorysrc/main/config/directory
filteringtrue/filtering
/resource
...
doesn't have resources and config folders marked as Sources! (their
contents is not copied to jar)
While running task mvn says:

[INFO] Not adding resource directory as it has an incompatible target
path or filtering: e:\work\search\search
-kernel\src\main\resources
[INFO] Not adding resource directory as it has an incompatible target
path or filtering: e:\work\search\search
-kernel\src\main\config
Is it a bug in plugin (v2.0)?

Another question is how to see a list of plugin goals and their
meaning, like what other idea:XXX exist? And where's the plugin config
info available (for example what params idea plugin accept, how to set
jdk, etc)?

Thanks!


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

Статья:
*  
http://mail-archives.apache.org/mod_mbox/maven-users/200607.mbox/[EMAIL PROTECTED]




--
.:Regards, AK:.

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



Re: Assembly and multi-levels multi-modules

2006-07-05 Thread Gilles Scokart


baerrach wrote:
 
 
 My file layout looks like:
 ROOT
 - pom.xml
 - module1
 - modulen
 - build
   - pom.xml
 
 Where the build/pom.xml will contain the assembly of everything that
 is needed from the other modules.
 
 I don't think putting the assembly plugin and descriptor in the
 ROOT/pom.xml is correct as then it will be inherited by all the
 modules.  So the correct place to put together an aggregation is
 build/target.
 
 Any one else doing this and have some hints?
 
 

If the inheritance is a problem, you can use the inherited tag when
configuring your plugin.

Gilles Scokart
-- 
View this message in context: 
http://www.nabble.com/Assembly-and-multi-levels-multi-modules-tf1747056.html#a5178340
Sent from the Maven - Users forum at Nabble.com.


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



Re: M2: spring-orm

2006-07-05 Thread christophe blin
thanks, I missed that thing.

Nicolas De Loof a écrit :

 Spring-orm does not exist in post M3 version. It has been splited into
 spring-jdo, spring-ojb, spring-ibatis...

 christophe blin a écrit :
 Hi,

 I'd like to know why the spring-orm version 2.0-m4 is not ibiblio while
 spring-mock, spring-dao, ... are present in this vesrion.

 Is this something I must do ?

 regards,
 chris

   

 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.


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





-- 

_
Tennaxia, www.tennaxia.com,
Pilotez vos obligations environnementales
_
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex -
Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
19, rue réaumur - 75003 Paris -
Tél : 01 42 77 04 19 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -
Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85
The information in this message sent by TENNAXIA is confidential 
and may be legally privileged. It is intended solely for the 
addressee(s). Access to this message by anyone else is unauthorized.
If you are not the intended recipient, please delete it and notify 
the sender : any disclosure, copying, distribution or any action 
taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.



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



Re: mvn install with sources?

2006-07-05 Thread Martijn Dashorst

Attach the sources plugin to the install phase of the build.

plugin
inheritedtrue/inherited
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-source-plugin/artifactId
executions
execution
idattach-sources/id
goals
goaljar/goal
/goals
/execution
/executions
/plugin


On 7/5/06, Aleksei Valikov [EMAIL PROTECTED] wrote:

Hi.

I'd like to get sources for my jar artifacts installed into the local repo. I
usually do mvn (clean) install, but this only builds and copies the binary jar
into the repo. What should I do to get sources along?

Bye.
/lexi

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





--
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org

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



activating profiles in a module

2006-07-05 Thread Jeff Mutonho

I've got two profiles for deploying a war  to either jboss or tomcat
.The jboss deploy is called jboss4x-deploy' and the tomcat one
tomcat5-deploy.The profiles are defined in my web-module
(eportal-web) pom.xml.My super POM  does not define any
profiles.Doing a mvn install  from my top level project directly
only does the building and creation of my war file.If I wish to deploy
the war to jboss or tomcat I'm doing it manually by executing 


mvn install cargo:start


from the eportal-web module directory.How do i configure my top level
pom.xml to do all , i.e compile , build , generate war and then deploy
it to jboss?

--


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



How to reduce build deploy time???

2006-07-05 Thread narayan dhumale
  
Hi,
I am using Maven 2.0.3 for building my project.In this project there are 
multiple projects which builds after based on which my project builds(using 
jar's of them).Now .war file which i build is packed in the .ear file made 
finally.
Every time i have to build the whole project in order to see the changes,
Can some tell me how to reduce this by some way or other??

Please guide...

Re: Cobertura plugin using version 1.7

2006-07-05 Thread tulasi

HI,

when i am mvn test for mvn site, getting Error. Here I have enclosed my
configuration and error.

  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
  configuration
   
instrumentedDirectorytarget/cobertura/instrumented-classes/instrumentedDirectory
  outputDirectorytarget/cobertura/report/outputDirectory
  /configuration
executions
execution
  idinstrument/id
phasetest-compile/phase
goals
  goalinstrument/goal
/goals
  /execution
execution
goals
  goalclean/goal
/goals
/execution
  /executions
  /plugin


reporting
-
plugins
plugin
groupIdorg.codehaus.mojo/groupId
   
artifactIdsurefire-report-maven-plugin/artifactId
/plugin
 /plugins
 /reporting

Error


Compiling 24 source files to E:\latest-i401k\cs-cache\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [cobertura:instrument {execution: instrument}]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Unable to prepare instrumentation directory.

Embedded error: Failed to copy full contents from
E:\latest-i401k\cs-cache\classes\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\citistreet\id\util\cache\CreateCacheObjectEvent$CreateType.class
to
E:\latest-i401k\cs-cache\classes\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\citistreet\id\util\cache\CreateCacheObjectEvent$CreateType.class
[INFO]

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

[INFO] Total time: 7 seconds
[INFO] Finished at: Tue Jul 04 19:28:19 GMT+05:30 2006
[INFO] Final Memory: 5M/12M
[INFO]


I dont why its creates multiple folders in classes directory.

Please help me on this issue. 
-- 
View this message in context: 
http://www.nabble.com/Cobertura-plugin-using-version-1.7-tf1889535.html#a5178718
Sent from the Maven - Users forum at Nabble.com.


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



[M2] Overriding dependencies

2006-07-05 Thread Jose Gonzalez Gomez

Hi there,

Is there any way to override a dependency in a project you depend on? I know
you can control which version of a dependency you use using the dependency
management section, I mean the folowing:

Project A
 +- Depends on project B
  +- Depends on project C

Is there any way to point the dependency on project C to another project?
I'm asking this because I'm using the hibernate annotations project, and
that seems to point to javax.persistence:ejb:jar:3.0-public-draft-20060502,
that doesn't seem to exist anymore. I guess annotations would work properly
changing that dependency to javax.persistence:persistence-api:1.0.

Best regards
Jose


Re: mvn install with sources?

2006-07-05 Thread Stephen Duncan

Run mvn -DperformRelease=true clean install

- Stephen

On 7/5/06, Aleksei Valikov [EMAIL PROTECTED] wrote:

Hi.

I'd like to get sources for my jar artifacts installed into the local repo. I
usually do mvn (clean) install, but this only builds and copies the binary jar
into the repo. What should I do to get sources along?

Bye.
/lexi

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





--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: [M2] Overriding dependencies

2006-07-05 Thread Stephen Duncan

From Project A?


In project A's pom:

dependency
 artifactIdproject-b/artifactId
 exclusions
   exclusion
 artifactIdproject-c/artifactId
 /exclusions
/dependency

dependency
 artifactIdproject-d/artifactId
/dependency

- Stephen

On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:

Hi there,

Is there any way to override a dependency in a project you depend on? I know
you can control which version of a dependency you use using the dependency
management section, I mean the folowing:

Project A
  +- Depends on project B
   +- Depends on project C

Is there any way to point the dependency on project C to another project?
I'm asking this because I'm using the hibernate annotations project, and
that seems to point to javax.persistence:ejb:jar:3.0-public-draft-20060502,
that doesn't seem to exist anymore. I guess annotations would work properly
changing that dependency to javax.persistence:persistence-api:1.0.

Best regards
Jose





--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: [M2] Overriding dependencies

2006-07-05 Thread Jose Gonzalez Gomez

Thanks a lot, that has worked perfectly.

2006/7/5, Stephen Duncan [EMAIL PROTECTED]:


From Project A?

In project A's pom:

dependency
  artifactIdproject-b/artifactId
  exclusions
exclusion
  artifactIdproject-c/artifactId
  /exclusions
/dependency

dependency
  artifactIdproject-d/artifactId
/dependency

- Stephen

On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:
 Hi there,

 Is there any way to override a dependency in a project you depend on? I
know
 you can control which version of a dependency you use using the
dependency
 management section, I mean the folowing:

 Project A
   +- Depends on project B
+- Depends on project C

 Is there any way to point the dependency on project C to another
project?
 I'm asking this because I'm using the hibernate annotations project, and
 that seems to point to
javax.persistence:ejb:jar:3.0-public-draft-20060502,
 that doesn't seem to exist anymore. I guess annotations would work
properly
 changing that dependency to javax.persistence:persistence-api:1.0.

 Best regards
 Jose




--
Stephen Duncan Jr
www.stephenduncanjr.com

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




Re: extending Modello

2006-07-05 Thread Trygve Laugstøl

Tony Hillerson wrote:

For a flash or flex project using java it's a common need to generate DTOs
in both java and actionscript. I want to write the modello plugin to do
that, but I'm not sure where to start. Can anyone point me in the right
direction? Source for the modello plugin and the different parsers would be
nice.


Modello is a separate project on Codehaus [1]. It has its own set of 
mailing lists that you might want to subscribe to.



A more general question is: Are the sources for the common plugins
available? I'm having trouble tracking them down. I'd just like to have a
look at a few Mojos to recognize how things are usually done.


The Maven project itself has a few plugins available from [2] and there 
is a few hosted at the Mojo project[3]. Some projects also host their 
own plugins, the group id should be a hint as to where they come from.


[1]: http://modello.codehaus.org
[2]: https://svn.apache.org/repos/asf/maven/plugins
[3]: http://mojo.codehaus.org

--
Trygve

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



M1 Snapshots

2006-07-05 Thread Shute, James
Hi,

I've got 2 projects (both Maven 1.x) where project A depends on project
B.  Now at the moment I've got them both building in Continuum
independently which is ok, but what I'd really like is that when
building A it uses the latest build of B done by Continuum.  Ideally a
change to B would also trigger a build of A.

Now I'm sure the solution to this involves SNAPSHOTs and probably
Continuum's internal repository which I've seen mentioned in a few
posts.  But I've been unable from searching the mailing list archive to
work out exactly what I should be doing - esp as I'm using M1 for the
builds.

Any suggestions very gratefully received

thanks

James

--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.



Re: How could i add external jar to maven.compile.classpath without use dependency setting in pom.xml

2006-07-05 Thread Andrew Williams
apologies, I missed the last line for some reason.
Indeed, system is what you want :)

A

On Wed, Jul 05, 2006 at 10:02:31AM +0200, Roland Asmann wrote:
 Provided still needs to have the artifact in the repository! What you might 
 want to try is the system-scope,
 there you define the location of your artifact in the POM and there's no need 
 to install the thing in you repo!
 
 Roland
 
 
 
 On Tuesday 04 July 2006 23:09, Andrew Williams wrote:
  have you tried the dependency scope provided this will mean the dep is
  not shipped
 
  On Wed, 2006-07-05 at 02:11 +0800, Reggie Kuo wrote:
   Hi All,
  
   How could i add external jar in maven.compile.classpath without use
   dependency setting.
   Because i don't want to install artifact jar to my repository.
  
   Thanks.
  
  
   Reggie Kuo
 
  -
  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:Build process

2006-07-05 Thread Vinay Kumar
Hi,
I am still not able to checkout .when I am trying to checkout using command 
mvn scm:checkout  then it throws error: 'svn' is not recognized as an internal 
or external command.
I am using TortoiseSVN and putting bin directory of this doesn't resolves 
problem.
my pom contains:
...
.
scm
 connection
 scm:svn:svn://[EMAIL PROTECTED]/sungard
  /connection
  developerConnection
 scm:svn:svn://[EMAIL PROTECTED]/sungard
  /developerConnection
  /scm
...
...
Thanks
Vinay

Re: assembly plugin problem

2006-07-05 Thread Arnaud Bailly
nazim chakik [EMAIL PROTECTED] writes:

May be the following assembly descriptor can help you:

assembly
 idbin/id
 formats
  formattar.gz/format
  formatzip/format
 /formats
 !-- create everything in a base directory --
 includeBaseDirectoryfalse/includeBaseDirectory
 !-- add parent pom and documentation  --
 fileSets
  fileSet
   directory/directory
   includes
includepom.xml/include
includesrc//include
   /includes
  /fileSet
 /fileSets
 !-- add all modules in their own directories --
 moduleSets
  moduleSet
   binaries
includeDependenciestrue/includeDependencies
  /binaries
/moduleSet
  /moduleSets
/assembly

regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: cobertura - Getting Error

2006-07-05 Thread Arnaud Bailly
tulasi [EMAIL PROTECTED] writes:

 HI, 

 when i am mvn test for mvn site, getting Error. Here I have enclosed my
 configuration and error.

   plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdcobertura-maven-plugin/artifactId
   configuration
 
 instrumentedDirectorytarget/cobertura/instrumented-classes/instrumentedDirectory
   
 outputDirectorytarget/cobertura/report/outputDirectory
   /configuration 
   executions
   execution
   idinstrument/id
   phasetest-compile/phase
   goals
   goalinstrument/goal
   /goals
   /execution
   execution
   goals
 goalclean/goal
   /goals
   /execution
 /executions
   /plugin



Hello, did you try without configuring the plugin ? By default,
everythin run fine for me in without complexe configuration.

regards
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: M1 Snapshots

2006-07-05 Thread Emmanuel Venisse



Shute, James a écrit :

Hi,

I've got 2 projects (both Maven 1.x) where project A depends on project
B.  Now at the moment I've got them both building in Continuum
independently which is ok, but what I'd really like is that when
building A it uses the latest build of B done by Continuum.  Ideally a
change to B would also trigger a build of A.


if you use the install goal, your artifact B we'll be installed in your local repository, so maven 
will use it when it will build B.


Continuum will trigger a build of A when a change to B will occur in 1.1.



Now I'm sure the solution to this involves SNAPSHOTs and probably
Continuum's internal repository which I've seen mentioned in a few
posts.  But I've been unable from searching the mailing list archive to
work out exactly what I should be doing - esp as I'm using M1 for the
builds.


The internal repo is only for m2 artifacts and it can't help in your case because it's considerated 
as a remote repository.


SNAPSHOT + install goal will do the work.

Emmanuel



Any suggestions very gratefully received

thanks

James

--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named above.  If you are not the intended recipient of 
this message you are hereby notified that any review, dissemination, 
distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an 
offer to sell or as a solicitation of an offer to buy any financial product, an 
official confirmation of any transaction, or as an official statement of Lehman 
Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such.  All information is subject to change 
without notice.








Re: cobertura - Getting Error

2006-07-05 Thread tulasi

Hi,

According your sugguestion, i made config like this. why i dont know under
classes folder repeatedly genereted-classes folder is creating. is thr
configuration problem?. if you want to check i ll give you my complete
pom.xml

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
executions
execution
goals
 goalclean/goal 
/goals
/execution
/executions
/plugin

but still i am geting same error.  I have enclosed error here.

[INFO] Scanning for projects...
[INFO]

[INFO] Building CS-Util
[INFO]task-segment: [site]
[INFO]

[INFO] Setting property: classpath.resource.loader.class =
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] Preparing surefire-report:report
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 16 source files to E:\latest-i401k\cs-util\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] Preparing cobertura:cobertura
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [cobertura:instrument]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Unable to prepare instrumentation directory.

Embedded error: Failed to copy full contents from
E:\latest-i401k\cs-util\classes\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\citistreet\id\util\collections\ConcurrentWeakHashMap$WeakRef.class
to
E:\latest-i401k\cs-util\classes\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\generated-classes\cobertura\citistreet\id\util\collections\ConcurrentWeakHashMap$WeakRef.class
[INFO]

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

[INFO] Total time: 14 seconds
[INFO] Finished at: Wed Jul 05 16:54:20 GMT+05:30 2006
-- 
View this message in context: 
http://www.nabble.com/cobertura---Getting-Error-tf1890046.html#a5179842
Sent from the Maven - Users forum at Nabble.com.


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



[M2] webapp

2006-07-05 Thread christophe blin
Hi,

My first question is where do I put java source files in a webapp (i.e
archetype = war) ?
Should I create a directory src/main/java ?
Or maybe I should create another module to hold the java sources ?

Then, a small question but maybe difficult to answer : how can I
integrate maven into eclipse for a webapp ?
I find this good article [1] but it seems to be maven1 only as I do not
manage to have correct dependencies when deploying into tomcat.
Also, maybe someone has osme experience with the tomcat plugin (I'd
prefer to avoid it since the j2ee plugin supports more platforms)?

Thanks for any help,
chris

[1]
http://www.eclipse.org/webtools/jst/components/j2ee/scenarios/MavenEclipseIntegration.html

-- 

_
Tennaxia, www.tennaxia.com,
Pilotez vos obligations environnementales
_
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex -
Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
19, rue réaumur - 75003 Paris -
Tél : 01 42 77 04 19 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -
Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85
The information in this message sent by TENNAXIA is confidential 
and may be legally privileged. It is intended solely for the 
addressee(s). Access to this message by anyone else is unauthorized.
If you are not the intended recipient, please delete it and notify 
the sender : any disclosure, copying, distribution or any action 
taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.



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



Maven Day in Paris

2006-07-05 Thread Damien Viel

Hi all,

For people who are in Paris (France) during this summer, a Maven Day is 
orgenized next Tuesday.

Check this for more informations :
http://www.application-servers.com/comments.do?reqCode=readCommentssid=2006-06-16-12:04:52

Damien

--
--
Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED]
--
| http://www.improve-foundations.com
__/ \__ | http://www.improve.fr
improve | http://www.application-servers.com
/_\-| http://www.improve-technologies.com
--

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



Re: activating profiles in a module

2006-07-05 Thread Jeff Mutonho

On 7/5/06, Jeff Mutonho [EMAIL PROTECTED] wrote:

I've got two profiles for deploying a war  to either jboss or tomcat
.The jboss deploy is called jboss4x-deploy' and the tomcat one
tomcat5-deploy.The profiles are defined in my web-module
(eportal-web) pom.xml.My super POM  does not define any
profiles.Doing a mvn install  from my top level project directly
only does the building and creation of my war file.If I wish to deploy
the war to jboss or tomcat I'm doing it manually by executing 

mvn install cargo:start

from the eportal-web module directory.How do i configure my top level
pom.xml to do all , i.e compile , build , generate war and then deploy
it to jboss?

--




Anyone out there :) ?
--


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: Maven Day in Paris

2006-07-05 Thread Sharma, Jaikumar
Would have been informative, if page under this url would have been in
english ;-)

-Original Message-
From: Damien Viel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 05, 2006 5:18 PM
To: Maven Users List
Subject: Maven Day in Paris


Hi all,

For people who are in Paris (France) during this summer, a Maven Day is 
orgenized next Tuesday.
Check this for more informations :
http://www.application-servers.com/comments.do?reqCode=readCommentssid=
2006-06-16-12:04:52

Damien

-- 
--
Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED]
--
 | http://www.improve-foundations.com
__/ \__ | http://www.improve.fr
improve | http://www.application-servers.com
/_\-| http://www.improve-technologies.com
--

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

- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


Re: activating profiles in a module

2006-07-05 Thread Jo Vandermeeren


On 7/5/06, Jeff Mutonho [EMAIL PROTECTED] wrote:
 I've got two profiles for deploying a war  to either jboss or tomcat
 .The jboss deploy is called jboss4x-deploy' and the tomcat one
 tomcat5-deploy.The profiles are defined in my web-module
 (eportal-web) pom.xml.



How do i configure my top level
 pom.xml to do all , i.e compile , build , generate war and then deploy
 it to jboss?



If you want to activate one or more profiles, you can always use the command
line parameter -P and give it a comma-separated list of profile names.

Anyone out there :) ?


This ain't no hotline, you know..

Cheers,
Jo


Re: Maven Day in Paris

2006-07-05 Thread Arnaud HERITIER

Always in French you have this page with the list of speakers :
http://www.application-servers.com/conf/2006/mavenday/index.html
Except for the presentation done by Jason in English, the rest will be in
French.

Arnaud

On 7/5/06, Sharma, Jaikumar [EMAIL PROTECTED] wrote:


Would have been informative, if page under this url would have been in
english ;-)

-Original Message-
From: Damien Viel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 5:18 PM
To: Maven Users List
Subject: Maven Day in Paris


Hi all,

For people who are in Paris (France) during this summer, a Maven Day is
orgenized next Tuesday.
Check this for more informations :
http://www.application-servers.com/comments.do?reqCode=readCommentssid=
2006-06-16-12:04:52

Damien

--
--
Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED]
--
 | http://www.improve-foundations.com
__/ \__ | http://www.improve.fr
improve | http://www.application-servers.com
/_\-| http://www.improve-technologies.com
--

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

- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized
to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for
any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.




Re: activating profiles in a module

2006-07-05 Thread Jeff Mutonho


This ain't no hotline, you know..


Yeah , its a forum to grow M2 and to share knowledge



Jeff
GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Pregoals in maven 2

2006-07-05 Thread Graham Leggett
Hi all,

Does anyone know how the effects of a pregoal can be achieved with maven 2?

I would like to attain ejb:ejb before any attempt to attain ear:ear.

Regards,
Graham
--



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



Re: activating profiles in a module

2006-07-05 Thread Jeff Mutonho

On 7/5/06, Jo Vandermeeren [EMAIL PROTECTED] wrote:


 On 7/5/06, Jeff Mutonho [EMAIL PROTECTED] wrote:
  I've got two profiles for deploying a war  to either jboss or tomcat
  .The jboss deploy is called jboss4x-deploy' and the tomcat one
  tomcat5-deploy.The profiles are defined in my web-module
  (eportal-web) pom.xml.

 How do i configure my top level
  pom.xml to do all , i.e compile , build , generate war and then deploy
  it to jboss?


If you want to activate one or more profiles, you can always use the command
line parameter -P and give it a comma-separated list of profile names.


I did  try mvn install -Pjboss4x from the top level directory , but
only a build was done.The deployment to JBoss that is in the
jboss4x profile was not invoked.The war file was built but not
deployed, as i want to be




Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



assembly - renaming files

2006-07-05 Thread Wojciech Biela

Hello,

I refined my problem and now it comes down to this:

I have my submodules installed in the repository as my custom type
mod, I did this through attach-artifacts and added
artifact
 file${project.build.directory}/${project.build.finalName}.jar/file
 typemod/type
/artifact

now in the main project I set the dependencies to those modules with
the type mod. There are two issues however:

1. (major) I would like to assign an arbitrary prefix to every mod
type dependency. I figured already that I can't change the name of the
file in the repository to anything else than artifactId-version, so I
wonder what else can I do to achieve it. I would like not to duplicate
any information anywhere, so I thought I would put a parameter in
every module's pom file and I would access it through ${} during
assembly and then use the outputFileNameMapping to change the name of
every mod file. But the problem as I see it is that I can't access the
dependencies pom file at the moment of assembly.

Do you have any insight into how to do it in a clean way? if not clean
then maybe the least messy way?

2. (minor) I would like to assemble all jar type dependencies into
one folder, and mod type dependencies to another. currently
dependencySets
 dependencySet
   outputDirectorylib/outputDirectory
 /dependencySet
 dependencySet
   outputDirectorymodules/outputDirectory
 /dependencySet
/dependencySets
puts all dependencies into both dirs

any insight is welcome

Best regards,
--
Wojtek Biela

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



Re: activating profiles in a module

2006-07-05 Thread Jo Vandermeeren

On 7/5/06, Jeff Mutonho [EMAIL PROTECTED] wrote:



 This ain't no hotline, you know..

Yeah , its a forum to grow M2 and to share knowledge



Sure thing, but it is no replacement for google, nor for the available
documentation.
I'm sure you're familiar with the concept RTFM..

Perhaps this might get you on track:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

Take care buddy,
Jo


Re: [M2] webapp

2006-07-05 Thread Geoffrey De Smet

Download and read the free m2 book from mergere.com :)
It has all stuff nicely documented

christophe blin wrote:

Hi,

My first question is where do I put java source files in a webapp (i.e
archetype = war) ?
Should I create a directory src/main/java ?
Or maybe I should create another module to hold the java sources ?

Then, a small question but maybe difficult to answer : how can I
integrate maven into eclipse for a webapp ?
I find this good article [1] but it seems to be maven1 only as I do not
manage to have correct dependencies when deploying into tomcat.
Also, maybe someone has osme experience with the tomcat plugin (I'd
prefer to avoid it since the j2ee plugin supports more platforms)?

Thanks for any help,
chris

[1]
http://www.eclipse.org/webtools/jst/components/j2ee/scenarios/MavenEclipseIntegration.html



--
With kind regards,
Geoffrey De Smet


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



Re: activating profiles in a module

2006-07-05 Thread Jeff Mutonho

Sure thing, but it is no replacement for google, nor for the available
documentation.
I'm sure you're familiar with the concept RTFM..


With all due respect, Jo , I'm not sure what you're on about and what
your realproblem is.I didnt hold a gun to your head forcing you to
respond.You could've easily ignored my post if you felt I was
demanding answers.



Perhaps this might get you on track:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html


Thanx for the suggestion.I have read that already, but it doesn't
address the problem.Probably my question isn't clear


Jeff
GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Paul Kuykendall

Jose,

I found this in a blog somewhere (I didn't bookmark it, just copied it into
a tips and tricks email I sent myself at work).  I still ran into problems
with the hibernate3-maven-plugin complaining it couldn't resolve a
dependency somewhere down the line to maven-hibernate3-plugin.  It could
have been something I've been doing wrong, but your problem was fairly easy
to track down (after more than a few hours of google searching).  I did use
a different way of doing the jta installation.  I created a jar file and
installed that rather than the zip file.

/Paul

The below is quite shamefully included without attribution.  I take no claim
for its origination.

Special dependencies

Most of the dependencies you need will be automatically downloaded by Maven
from a remote repository, but two by Sun can't be held there. Go to this
page http://java.sun.com/products/jta/ to get the JTA interfaces from the
Download link next to Class Files 1.0.1B, then paste the following into a
shell in your download directory:

mvn install:install-file -DgroupId=javax.transaction \
 -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar \
 -Dfile=jta-1_0_1B-classes.zip

(Or use jta.jar from the Hibernate 3.1.1 distribution, if you have that
already — just change the -Dfile= parameter above.)

For the EJB 3.0 *public final draft* dependency, you'll need to
download Hibernate
Annotationshttp://prdownloads.sourceforge.net/hibernate/hibernate-annotations-3.2.0.CR1.tar.gz?download,
expand the archive, change to its lib directory, then:

mvn install:install-file -DgroupId=javax.persistence \
 -DartifactId=ejb -Dversion=3.0-public-draft-20060502
\
 -Dpackaging=jar -Dfile=ejb3-persistence.jar



On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:


Paul,

I'm trying to do the same, and I'm facing some troubles, maybe you can
help
me... First of all, I haven't been able to find one of the dependencies of
the Hibernate Annotations packages:
javax.persistence:ejb:jar:3.0-public-draft-20060502. This seems to be an
implementation of a public draft that has been removed from ibiblio.
Anyway,
I'm using the javax.persistence:persistence-api:1.0 from the
java.netrepository. I guess this is the final implementation of the
missing
dependency, but I don't know how to override it or where to find it. How
have you solved this?

Best regards
Jose

[snip]


Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Jose Gonzalez Gomez

Paul,

It seems I've been able to run the hibernate plugin from the mojo
successfully (at least it has created a table with a pair of attributes from
an annotated class). I'm going out in a few minutes, so if you're interested
in how I did it drop me a line (or drop it to the list) and I'll post
excerpts from pom, settings, ... tomorrow.

Best regards
Jose

2006/7/5, Jose Gonzalez Gomez [EMAIL PROTECTED]:


Paul,

I'm trying to do the same, and I'm facing some troubles, maybe you can
help me... First of all, I haven't been able to find one of the dependencies
of the Hibernate Annotations packages:
javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be an
implementation of a public draft that has been removed from ibiblio. Anyway,
I'm using the javax.persistence:persistence-api:1.0 from the 
java.netrepository. I guess this is the final implementation of the missing
dependency, but I don't know how to override it or where to find it. How
have you solved this?

Best regards
Jose

2006/7/5, Paul Kuykendall [EMAIL PROTECTED]:

 Hi,

 I am at my wits end in getting maven to play nicely with
 Hibernate.  I've
 been at it for over a week now and feel no closer than when I started.
 Here's what I'm trying to do.  I've been working on a project using
 Maven
 2.0.4 as the build system.  Everything has been going fine until I try
 and
 get Maven to generate the Hibernate DDL and java from my hbm
 files.  I've
 tried using the codehaus hibernate3-maven-plugin with no success.  I
 later
 discovered that when they had their crash, it took out lots of the
 plugin
 files.  I've tried to just integrate the hibernate portions into the POM
 as
 a simple Ant task.  I can't even get Maven to recognize the Ant
 tasks.  I've
 RTFM (as much as there is one).  I've tried all the available code
 snippets
 I can find.  So far, nothing has worked.  here is my POM file, slightly
 edited to protect the guilty.

 With the config files below, I don't even get the echos.

 If anyone has a sample section from the POM file for doing Hibernate 3
 stuff, I would greatly appreciate a code-snippet.

 Thanks.

 /Paul

 ?xml version=1.0 encoding=UTF-8?project
   modelVersion4.0.0/modelVersion

   !-- POM Relationships --
   groupIdcom.mycompany.simulators/groupId
   artifactIdcaisim/artifactId
   version 1.0-SNAPSHOT/version
 !--
   parent
 groupIdcom.mycompany.simulators/groupId
 artifactIdsimulators/artifactId
 version1.0.0/version
   /parent
 --
   dependencyManagement
   /dependencyManagement

   dependencies
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
 /dependency
 dependency
   groupIdcommons-logging/groupId
   artifactIdcommons-logging/artifactId
   version1.0.4/version
 /dependency
 dependency
   groupIdcommons-configuration/groupId
   artifactIdcommons-configuration/artifactId
   version1.2/version
 /dependency
 dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate/artifactId
   version 3.2.0.cr2/version
 /dependency
 dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate-annotations/artifactId
   version 3.2.0.cr1/version
 /dependency
 dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate-tools/artifactId
   version3.1.0.beta4 /version
 /dependency
   /dependencies

   modules
   /modules

   !-- Project Information --
   nameMy Simulator/name
   descriptionMy interface simulator./description
   urlhttp://www.mycompany.com/url
   inceptionYear2006/inceptionYear
   licenses/licenses
   developers
 developer
   idmyname/id
   nameMy Name/name
   email[EMAIL PROTECTED]/email
   organization/organization
   roles
 roleDeveloper/role
   /roles
   timezone-6/timezone
 /developer
   /developers
   contributors
   /contributors
   organization
 namemycompany, Inc./name
 urlhttp://www.mycompany.com/url
   /organization

   !-- Build Settings --
   packagingjar/packaging
   properties/properties
   build
 finalNamecsf/finalName
   pluginManagement
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
   source1.5/source
   target1.5/target
 /configuration
   /plugin

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 executions
   execution
 phasegenerate-sources/phase
 configuration
   tasks
 echoRunning Hibernate stuff here./echo
 ant antfile=${basedir}/build-hibernate.xml
 inheritRefs=true
   target name=hibernate/
 /ant
   /tasks
 /configuration

REPOST: Multiple passes of filtering

2006-07-05 Thread Carlos.Fernandez
I am doing something very similar to rudy.  My application accesses its
properties via JNDI - so each environment would have its own custom
tailored set of properties.  I would like the build process to batch
filter the properties files for each environment and include then in the
artifact.

I have property files that I want filtered 4 times to 4 different
target directories from 4 different filter sets.

Can maven2 handle this directly, or should I just write an ant build
file to do this and wire that into maven using the maven-antrun-plugin?

Carlos

-Original Message-
From: Roland Asmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 06, 2006 6:33 AM
To: Maven Users List
Subject: Re: Multiple passes of filtering

I haven't seen an answer to this yet, so I guess it's still open...
Try using the maven-ant-plugin for this, 'cause afaik, maven can't do
this.

Roland



On Friday 02 June 2006 23:22, [EMAIL PROTECTED] wrote:
 Is there a way to do multiple passes of filtering?



 I have one property file that I want filtered 4 times to 4 different
 target directories from 4 different filter files since I have to deal
 with creating property files for 4 different Server environments.



 It would be nice to do this in one swoop so I'm not having to
recompile
 the base code each time.



 --Rudy


-
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] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Paul Kuykendall

I would be more appreciative than you can ever imagine if you could send
that information.

Thanks!

/Paul

On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:


Paul,

It seems I've been able to run the hibernate plugin from the mojo
successfully (at least it has created a table with a pair of attributes
from
an annotated class). I'm going out in a few minutes, so if you're
interested
in how I did it drop me a line (or drop it to the list) and I'll post
excerpts from pom, settings, ... tomorrow.

Best regards
Jose

2006/7/5, Jose Gonzalez Gomez [EMAIL PROTECTED]:

 Paul,

 I'm trying to do the same, and I'm facing some troubles, maybe you can
 help me... First of all, I haven't been able to find one of the
dependencies
 of the Hibernate Annotations packages:
 javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
an
 implementation of a public draft that has been removed from ibiblio.
Anyway,
 I'm using the javax.persistence:persistence-api:1.0 from the
java.netrepository. I guess this is the final implementation of the
missing
 dependency, but I don't know how to override it or where to find it. How
 have you solved this?

 Best regards
 Jose

 2006/7/5, Paul Kuykendall [EMAIL PROTECTED]:

  Hi,
 
  I am at my wits end in getting maven to play nicely with
  Hibernate.  I've
  been at it for over a week now and feel no closer than when I started.
  Here's what I'm trying to do.  I've been working on a project using
  Maven
  2.0.4 as the build system.  Everything has been going fine until I try
  and
  get Maven to generate the Hibernate DDL and java from my hbm
  files.  I've
  tried using the codehaus hibernate3-maven-plugin with no success.  I
  later
  discovered that when they had their crash, it took out lots of the
  plugin
  files.  I've tried to just integrate the hibernate portions into the
POM
  as
  a simple Ant task.  I can't even get Maven to recognize the Ant
  tasks.  I've
  RTFM (as much as there is one).  I've tried all the available code
  snippets
  I can find.  So far, nothing has worked.  here is my POM file,
slightly
  edited to protect the guilty.
 
  With the config files below, I don't even get the echos.
 
  If anyone has a sample section from the POM file for doing Hibernate 3
  stuff, I would greatly appreciate a code-snippet.
 
  Thanks.
 
  /Paul
 
  ?xml version=1.0 encoding=UTF-8?project
modelVersion4.0.0/modelVersion
 
!-- POM Relationships --
groupIdcom.mycompany.simulators/groupId
artifactIdcaisim/artifactId
version 1.0-SNAPSHOT/version
  !--
parent
  groupIdcom.mycompany.simulators/groupId
  artifactIdsimulators/artifactId
  version1.0.0/version
/parent
  --
dependencyManagement
/dependencyManagement
 
dependencies
  dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
  /dependency
  dependency
groupIdcommons-logging/groupId
artifactIdcommons-logging/artifactId
version1.0.4/version
  /dependency
  dependency
groupIdcommons-configuration/groupId
artifactIdcommons-configuration/artifactId
version1.2/version
  /dependency
  dependency
groupIdorg.hibernate/groupId
artifactIdhibernate/artifactId
version 3.2.0.cr2/version
  /dependency
  dependency
groupIdorg.hibernate/groupId
artifactIdhibernate-annotations/artifactId
version 3.2.0.cr1/version
  /dependency
  dependency
groupIdorg.hibernate/groupId
artifactIdhibernate-tools/artifactId
version3.1.0.beta4 /version
  /dependency
/dependencies
 
modules
/modules
 
!-- Project Information --
nameMy Simulator/name
descriptionMy interface simulator./description
urlhttp://www.mycompany.com/url
inceptionYear2006/inceptionYear
licenses/licenses
developers
  developer
idmyname/id
nameMy Name/name
email[EMAIL PROTECTED]/email
organization/organization
roles
  roleDeveloper/role
/roles
timezone-6/timezone
  /developer
/developers
contributors
/contributors
organization
  namemycompany, Inc./name
  urlhttp://www.mycompany.com/url
/organization
 
!-- Build Settings --
packagingjar/packaging
properties/properties
build
  finalNamecsf/finalName
pluginManagement
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-compiler-plugin/artifactId
  configuration
source1.5/source
target1.5/target
  /configuration
/plugin
 
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antrun-plugin/artifactId
  executions
execution
  phasegenerate-sources/phase
  

Re: [M2] webapp

2006-07-05 Thread christophe blin
Hi, the nicely documented stuff (that I already read BTW) talks about
jetty and does not mention debugging...

My concern is to run the war under tomcat and/or jboss with the
associated plugins in Eclipse in order to benefit from the debug
perspective.

Maybe there is a solution to do this with jetty ?
If so, could you please provide any hints in order to switch my dev to
jetty.

Regards,
chris

Geoffrey De Smet a écrit :
 Download and read the free m2 book from mergere.com :)
 It has all stuff nicely documented

 christophe blin wrote:
 Hi,

 My first question is where do I put java source files in a webapp (i.e
 archetype = war) ?
 Should I create a directory src/main/java ?
 Or maybe I should create another module to hold the java sources ?

 Then, a small question but maybe difficult to answer : how can I
 integrate maven into eclipse for a webapp ?
 I find this good article [1] but it seems to be maven1 only as I do not
 manage to have correct dependencies when deploying into tomcat.
 Also, maybe someone has osme experience with the tomcat plugin (I'd
 prefer to avoid it since the j2ee plugin supports more platforms)?

 Thanks for any help,
 chris

 [1]
 http://www.eclipse.org/webtools/jst/components/j2ee/scenarios/MavenEclipseIntegration.html




-- 

_
Tennaxia, www.tennaxia.com,
Pilotez vos obligations environnementales
_
Siège social :
6, rue Léonard de Vinci - 53001 Laval Cedex -
Tél : 02 43 49 75 50 - Fax : 02 43 49 75 77
Agence Paris :
19, rue réaumur - 75003 Paris -
Tél : 01 42 77 04 19 - Fax : 08 25 19 19 61
Agence Lyon :
Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -
Tél : 04 72 39 98 14 - Fax : 04 72 39 93 85
The information in this message sent by TENNAXIA is confidential 
and may be legally privileged. It is intended solely for the 
addressee(s). Access to this message by anyone else is unauthorized.
If you are not the intended recipient, please delete it and notify 
the sender : any disclosure, copying, distribution or any action 
taken or omitted to be taken in reliance on it, is prohibited and 
may be unlawful.



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



RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Johann Reyes
Hello Paul

Right now there is no snapshot version of the plugin since I have problems
to deploy it to the snapshot server. So you have to download the source code
of the plugin to your machine and do an mvn install that would install the
plugin into your local repository.

Then you just need to configure the plugin as described here:
http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/howto.html

Please let me know if you got any more problems.

Regards

Johann Reyes



-Original Message-
From: Paul Kuykendall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 05, 2006 9:15 AM
To: Maven Users List; Jose Gonzalez Gomez
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

I would be more appreciative than you can ever imagine if you could send
that information.

Thanks!

/Paul

On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:

 Paul,

 It seems I've been able to run the hibernate plugin from the mojo
 successfully (at least it has created a table with a pair of attributes
 from
 an annotated class). I'm going out in a few minutes, so if you're
 interested
 in how I did it drop me a line (or drop it to the list) and I'll post
 excerpts from pom, settings, ... tomorrow.

 Best regards
 Jose

 2006/7/5, Jose Gonzalez Gomez [EMAIL PROTECTED]:
 
  Paul,
 
  I'm trying to do the same, and I'm facing some troubles, maybe you can
  help me... First of all, I haven't been able to find one of the
 dependencies
  of the Hibernate Annotations packages:
  javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
 an
  implementation of a public draft that has been removed from ibiblio.
 Anyway,
  I'm using the javax.persistence:persistence-api:1.0 from the
 java.netrepository. I guess this is the final implementation of the
 missing
  dependency, but I don't know how to override it or where to find it. How
  have you solved this?
 
  Best regards
  Jose
 
  2006/7/5, Paul Kuykendall [EMAIL PROTECTED]:
 
   Hi,
  
   I am at my wits end in getting maven to play nicely with
   Hibernate.  I've
   been at it for over a week now and feel no closer than when I started.
   Here's what I'm trying to do.  I've been working on a project using
   Maven
   2.0.4 as the build system.  Everything has been going fine until I try
   and
   get Maven to generate the Hibernate DDL and java from my hbm
   files.  I've
   tried using the codehaus hibernate3-maven-plugin with no success.  I
   later
   discovered that when they had their crash, it took out lots of the
   plugin
   files.  I've tried to just integrate the hibernate portions into the
 POM
   as
   a simple Ant task.  I can't even get Maven to recognize the Ant
   tasks.  I've
   RTFM (as much as there is one).  I've tried all the available code
   snippets
   I can find.  So far, nothing has worked.  here is my POM file,
 slightly
   edited to protect the guilty.
  
   With the config files below, I don't even get the echos.
  
   If anyone has a sample section from the POM file for doing Hibernate 3
   stuff, I would greatly appreciate a code-snippet.
  
   Thanks.
  
   /Paul
  
   ?xml version=1.0 encoding=UTF-8?project
 modelVersion4.0.0/modelVersion
  
 !-- POM Relationships --
 groupIdcom.mycompany.simulators/groupId
 artifactIdcaisim/artifactId
 version 1.0-SNAPSHOT/version
   !--
 parent
   groupIdcom.mycompany.simulators/groupId
   artifactIdsimulators/artifactId
   version1.0.0/version
 /parent
   --
 dependencyManagement
 /dependencyManagement
  
 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
   /dependency
   dependency
 groupIdcommons-logging/groupId
 artifactIdcommons-logging/artifactId
 version1.0.4/version
   /dependency
   dependency
 groupIdcommons-configuration/groupId
 artifactIdcommons-configuration/artifactId
 version1.2/version
   /dependency
   dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate/artifactId
 version 3.2.0.cr2/version
   /dependency
   dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-annotations/artifactId
 version 3.2.0.cr1/version
   /dependency
   dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-tools/artifactId
 version3.1.0.beta4 /version
   /dependency
 /dependencies
  
 modules
 /modules
  
 !-- Project Information --
 nameMy Simulator/name
 descriptionMy interface simulator./description
 urlhttp://www.mycompany.com/url
 inceptionYear2006/inceptionYear
 licenses/licenses
 developers
   developer
 idmyname/id
 nameMy Name/name
 email[EMAIL PROTECTED]/email
 organization/organization
 roles
   roleDeveloper/role
 /roles
 

Re: activating profiles in a module

2006-07-05 Thread Jeff Mutonho

Adding
idstart-container/id
phasepre-integration-test/phase
goals
 goalstart/goal
 goaldeploy/goal

to the cargo plugin got it to work.

--


Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Problem with maven-changes-plugin

2006-07-05 Thread Grégory PAUL

Hi,

I try to use the maven-changes-plugin with a changes.xml file (like 
http://www.javaworld.com/javaworld/jw-02-2006/jw-0227-maven-p2.html on 
part Change and configuration management) but I've got a 
NullPointerException.


---
*Here is my error message on launching mvn site : *
---
Downloading: 
http://www.ibiblio.net/pub/packages/maven2/maven/maven-changes-plugin/1.5.1/maven-changes-plugin-1.5.1.pom 


2K downloaded
Downloading: 
http://dist.codehaus.org/maven/maven-changes-plugin/1.5.1/maven-changes-plugin-1.5.1.jar
[WARNING] Unable to get resource from repository codehaus-plugins 
(http://dist.codehaus.org)
Downloading: 
http://www.ibiblio.net/pub/packages/maven2/maven/maven-changes-plugin/1.5.1/maven-changes-plugin-1.5.1.jar

15K downloaded
[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(DefaultPluginManager.java:198)
   at 
org.apache.maven.plugin.DefaultPluginManager.verifyReportPlugin(DefaultPluginManager.java:487)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyReportPlugin(DefaultLifecycleExecutor.java:1292)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:657)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getReports(DefaultLifecycleExecutor.java:645)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:512)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.j
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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)
[INFO] 


[INFO] Total time: 9 seconds
[INFO] Finished at: Wed Jul 05 15:43:56 CEST 2006
[INFO] Final Memory: 12M/22M
[INFO] 



---
*Here is the report part of my pom.xml :
*---
reporting
   plugins
   ...
 plugin
 groupIdmaven/groupId
 artifactIdmaven-changes-plugin/artifactId
   reportSets
 reportSet
   reports
 reportchanges-report/report
   /reports
 /reportSet
  /reportSets
 /plugin
   ...
   /plugins
 /reporting
---

---
Am I alone to have that bug ?
---

Regards,
Grégory


Re: Pregoals in maven 2

2006-07-05 Thread Roland Asmann
Bind your plugins to a phase right BEFORE the phase you wanted a pre-goal of.

e.g. pre-goal for 'install', bind to 'verify'.

If you need multiple plug-ins to be pre-goals to each other, add them to the 
SAME
phase in the order in which you want them run.

Roland



On Wednesday 05 July 2006 14:26, Graham Leggett wrote:
 Hi all,

 Does anyone know how the effects of a pregoal can be achieved with maven 2?

 I would like to attain ejb:ejb before any attempt to attain ear:ear.

 Regards,
 Graham
 --



 -
 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: Problem with maven-changes-plugin

2006-07-05 Thread Jochen Wiedmann

The current version is 2.0.2-SNAPSHOT, which works for me with Maven 2.0.4.

Unfortunately, and AFAIK, there is no snapshot available somewhere. In
other words, you need to fetch the sources from

   http://svn.apache.org/repos/maven/sandbox/plugins/maven-changes-plugin

(URL written from memory) and compile and install it for yourself.


Jochen


--
Whenever you find yourself on the side of the
majority, it is time to pause and reflect.
(Mark Twain)

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



Re: Problem with maven-changes-plugin

2006-07-05 Thread Grégory PAUL

Ok, thanks a lot.
I'll try that !

Grégory


Jochen Wiedmann a écrit :
The current version is 2.0.2-SNAPSHOT, which works for me with Maven 
2.0.4.


Unfortunately, and AFAIK, there is no snapshot available somewhere. In
other words, you need to fetch the sources from

   http://svn.apache.org/repos/maven/sandbox/plugins/maven-changes-plugin

(URL written from memory) and compile and install it for yourself.


Jochen




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



Re: Cobertura plugin using version 1.7

2006-07-05 Thread leahpar

hello,
I don't get the instrument goal but please find below a simple example
working here ... it's all help i can give.
cordialement


build
plugins
plugin

groupIdorg.codehaus.mojo/groupId

artifactIdcobertura-maven-plugin/artifactId
executions
execution
goals

goalclean/goal
/goals
/execution
/executions
/plugin
/plugins
/build
reporting
plugins
plugin

groupIdorg.codehaus.mojo/groupId

artifactIdcobertura-maven-plugin/artifactId
/plugin
-- 
View this message in context: 
http://www.nabble.com/Cobertura-plugin-using-version-1.7-tf1889535.html#a5182548
Sent from the Maven - Users forum at Nabble.com.


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



RE: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread Johann Reyes
Hello Paul

Actually an update. I was able to go around the bug that was stopping me
from deploying and was able to successfully deploy a snapshot. So now a
hibernate3-maven-plugin is available to use.

Regards

Johann Reyes

-Original Message-
From: Paul Kuykendall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 05, 2006 9:15 AM
To: Maven Users List; Jose Gonzalez Gomez
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

I would be more appreciative than you can ever imagine if you could send
that information.

Thanks!

/Paul

On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:

 Paul,

 It seems I've been able to run the hibernate plugin from the mojo
 successfully (at least it has created a table with a pair of attributes
 from
 an annotated class). I'm going out in a few minutes, so if you're
 interested
 in how I did it drop me a line (or drop it to the list) and I'll post
 excerpts from pom, settings, ... tomorrow.

 Best regards
 Jose

 2006/7/5, Jose Gonzalez Gomez [EMAIL PROTECTED]:
 
  Paul,
 
  I'm trying to do the same, and I'm facing some troubles, maybe you can
  help me... First of all, I haven't been able to find one of the
 dependencies
  of the Hibernate Annotations packages:
  javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
 an
  implementation of a public draft that has been removed from ibiblio.
 Anyway,
  I'm using the javax.persistence:persistence-api:1.0 from the
 java.netrepository. I guess this is the final implementation of the
 missing
  dependency, but I don't know how to override it or where to find it. How
  have you solved this?
 
  Best regards
  Jose
 
  2006/7/5, Paul Kuykendall [EMAIL PROTECTED]:
 
   Hi,
  
   I am at my wits end in getting maven to play nicely with
   Hibernate.  I've
   been at it for over a week now and feel no closer than when I started.
   Here's what I'm trying to do.  I've been working on a project using
   Maven
   2.0.4 as the build system.  Everything has been going fine until I try
   and
   get Maven to generate the Hibernate DDL and java from my hbm
   files.  I've
   tried using the codehaus hibernate3-maven-plugin with no success.  I
   later
   discovered that when they had their crash, it took out lots of the
   plugin
   files.  I've tried to just integrate the hibernate portions into the
 POM
   as
   a simple Ant task.  I can't even get Maven to recognize the Ant
   tasks.  I've
   RTFM (as much as there is one).  I've tried all the available code
   snippets
   I can find.  So far, nothing has worked.  here is my POM file,
 slightly
   edited to protect the guilty.
  
   With the config files below, I don't even get the echos.
  
   If anyone has a sample section from the POM file for doing Hibernate 3
   stuff, I would greatly appreciate a code-snippet.
  
   Thanks.
  
   /Paul
  
   ?xml version=1.0 encoding=UTF-8?project
 modelVersion4.0.0/modelVersion
  
 !-- POM Relationships --
 groupIdcom.mycompany.simulators/groupId
 artifactIdcaisim/artifactId
 version 1.0-SNAPSHOT/version
   !--
 parent
   groupIdcom.mycompany.simulators/groupId
   artifactIdsimulators/artifactId
   version1.0.0/version
 /parent
   --
 dependencyManagement
 /dependencyManagement
  
 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
   /dependency
   dependency
 groupIdcommons-logging/groupId
 artifactIdcommons-logging/artifactId
 version1.0.4/version
   /dependency
   dependency
 groupIdcommons-configuration/groupId
 artifactIdcommons-configuration/artifactId
 version1.2/version
   /dependency
   dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate/artifactId
 version 3.2.0.cr2/version
   /dependency
   dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-annotations/artifactId
 version 3.2.0.cr1/version
   /dependency
   dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate-tools/artifactId
 version3.1.0.beta4 /version
   /dependency
 /dependencies
  
 modules
 /modules
  
 !-- Project Information --
 nameMy Simulator/name
 descriptionMy interface simulator./description
 urlhttp://www.mycompany.com/url
 inceptionYear2006/inceptionYear
 licenses/licenses
 developers
   developer
 idmyname/id
 nameMy Name/name
 email[EMAIL PROTECTED]/email
 organization/organization
 roles
   roleDeveloper/role
 /roles
 timezone-6/timezone
   /developer
 /developers
 contributors
 /contributors
 organization
   namemycompany, Inc./name
   urlhttp://www.mycompany.com/url
 /organization
  
 !-- Build Settings --
 packagingjar/packaging
 

Maven2 and WSAD

2006-07-05 Thread Ken . Ballard
Are a lot of people out there using Maven with WSAD? I've been using Maven
with MyEclipse as my IDE, but I might be moving into an environment that
uses WSAD. WSAD is there to stay, so I don't want to suggest Maven if they
don't play nicely together. Obviously, at the same time, I don't want to
lose all the things Maven gets me (project web sites, the repository, etc.,
etc.). 

I like the Maven directory structure. Can you use it with WSAD with out
hobbling any of WSAD's features?

Are there a lot of WSAD and Maven environments out there? Anybody care to
share their experiences?

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



Re: assembly - renaming files

2006-07-05 Thread dan tran

You need the help form maven-dependency-plugin to prep the work
before assembly started.

-D


On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:


Hello,

I refined my problem and now it comes down to this:

I have my submodules installed in the repository as my custom type
mod, I did this through attach-artifacts and added
artifact
file${project.build.directory}/${project.build.finalName}.jar/file
typemod/type
/artifact

now in the main project I set the dependencies to those modules with
the type mod. There are two issues however:

1. (major) I would like to assign an arbitrary prefix to every mod
type dependency. I figured already that I can't change the name of the
file in the repository to anything else than artifactId-version, so I
wonder what else can I do to achieve it. I would like not to duplicate
any information anywhere, so I thought I would put a parameter in
every module's pom file and I would access it through ${} during
assembly and then use the outputFileNameMapping to change the name of
every mod file. But the problem as I see it is that I can't access the
dependencies pom file at the moment of assembly.

Do you have any insight into how to do it in a clean way? if not clean
then maybe the least messy way?

2. (minor) I would like to assemble all jar type dependencies into
one folder, and mod type dependencies to another. currently
dependencySets
dependencySet
   outputDirectorylib/outputDirectory
/dependencySet
dependencySet
   outputDirectorymodules/outputDirectory
/dependencySet
/dependencySets
puts all dependencies into both dirs

any insight is welcome

Best regards,
--
Wojtek Biela

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




Re: assembly - renaming files

2006-07-05 Thread Wojciech Biela

Regarding my first and major problem, at first I thought that changing
the finalName to finalName123-${artifactId}-${version}/finalName
would add the prefix, but I see that this only controlls the name of
the *local* artifact, not the artifact that is installed in the
repository, and then at a later step downloaded as a dependency by the
master module. Anyway I struggle to add this prefix before installing
to the repo, or just after the dependencies download, but I can't seem
to find a way to do it.

Wojtek

2006/7/5, Wojciech Biela [EMAIL PROTECTED]:

Hello,

I refined my problem and now it comes down to this:

I have my submodules installed in the repository as my custom type
mod, I did this through attach-artifacts and added
artifact
  file${project.build.directory}/${project.build.finalName}.jar/file
  typemod/type
/artifact

now in the main project I set the dependencies to those modules with
the type mod. There are two issues however:

1. (major) I would like to assign an arbitrary prefix to every mod
type dependency. I figured already that I can't change the name of the
file in the repository to anything else than artifactId-version, so I
wonder what else can I do to achieve it. I would like not to duplicate
any information anywhere, so I thought I would put a parameter in
every module's pom file and I would access it through ${} during
assembly and then use the outputFileNameMapping to change the name of
every mod file. But the problem as I see it is that I can't access the
dependencies pom file at the moment of assembly.

Do you have any insight into how to do it in a clean way? if not clean
then maybe the least messy way?

2. (minor) I would like to assemble all jar type dependencies into
one folder, and mod type dependencies to another. currently
dependencySets
  dependencySet
outputDirectorylib/outputDirectory
  /dependencySet
  dependencySet
outputDirectorymodules/outputDirectory
  /dependencySet
/dependencySets
puts all dependencies into both dirs

any insight is welcome

Best regards,
--
Wojtek Biela




--
Wojtek Biela

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



Is it possible to configure a plugin from within another plugin that runs earlier in the lifecycle?

2006-07-05 Thread Russell, Mark
Is it possible to configure a plugin via code inside another plugin
where the plugin being configured executes later in the lifecycle?

 

Specifically I have a plugin that generates a bunch of source code, and
based on its output it needs to configure the manifest of the jar that
will be created. Thus my custom plugin basically needs to configure the
maven-jar-plugin at runtime, but before the jar plugin executes.

 

 

Anyone know how I might do something like that? Is it even possible?

 

 

Mark Russell

 

 

 

 



Assembly and parent pom

2006-07-05 Thread Martijn Dashorst

All,

If you have a project setup where all your projects have a common
parent project, and some are dependend on the others, how can you
accomodate the downloaders of your assemblies such that they still can
build your project using maven if/when they are offline?

Example setup:
project
groupIdfoo/groupId
artifactIdfoo-parent/artifactId
version1.0-SNAPSHOT/version
packagingpom/packaging
/project

project
parent
   groupIdfoo/groupId
   artifactIdfoo-parent/artifactId
   version1.0-SNAPSHOT/version
/parent
artifactIdbar/artifactId
packagingjar/packaging
/project

The first problem is the parent pom. Is the snapshot version of the
parent pom updated when I build the bar project?

How should I construct my (source) assembly for bar, such that it can
be compiled using maven, even when the foo-parent pom is not available
on the central repo (usually the case for snapshot versions)? Add
(somehow) the foo-parent.pom to the assembly and provide README
instructions to perform an install first on the parent pom?

Martijn

--
Download Wicket 1.2 now! Write Ajax applications without touching JavaScript!
-- http://wicketframework.org

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



Re: [M2] webapp

2006-07-05 Thread Pete Marvin King

   try turning on the remote debugging capability of your sevlet
container's jvm by adding the
   following argument on the java command line :

-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8030

   the jvm would block when passing these arguments, waiting for a
remote debugger to connect.
   in your eclipse, choose Run-Debug then select Remote Java
Application. click on the new button below
   while the Remote Java Application is selected. change the port to
8030 and on the common tab select the
   radio button under the display in favorite menu - debug. the
projects debugging icon will now be displayed
   under the debug icon. make sure the project that you want to debug is
selected while you are doing this.

   if the deployed webapp is in sync with your webapp source then
stepping function would sync with the
   execution.

   the maven user list is not the best place to ask this. =) but here it
is anyway..hope this helps.


pete marvin


christophe blin wrote:
 Hi, the nicely documented stuff (that I already read BTW) talks about
 jetty and does not mention debugging...

 My concern is to run the war under tomcat and/or jboss with the
 associated plugins in Eclipse in order to benefit from the debug
 perspective.

 Maybe there is a solution to do this with jetty ?
 If so, could you please provide any hints in order to switch my dev to
 jetty.

 Regards,
 chris

 Geoffrey De Smet a écrit :
   
 Download and read the free m2 book from mergere.com :)
 It has all stuff nicely documented

 christophe blin wrote:
 
 Hi,

 My first question is where do I put java source files in a webapp (i.e
 archetype = war) ?
 Should I create a directory src/main/java ?
 Or maybe I should create another module to hold the java sources ?

 Then, a small question but maybe difficult to answer : how can I
 integrate maven into eclipse for a webapp ?
 I find this good article [1] but it seems to be maven1 only as I do not
 manage to have correct dependencies when deploying into tomcat.
 Also, maybe someone has osme experience with the tomcat plugin (I'd
 prefer to avoid it since the j2ee plugin supports more platforms)?

 Thanks for any help,
 chris

 [1]
 http://www.eclipse.org/webtools/jst/components/j2ee/scenarios/MavenEclipseIntegration.html


   

   


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



Re: How to install artifact created with assembly artifact into Continuum's local repository

2006-07-05 Thread Mark Reynolds

Barrie Treloar wrote:

On 7/5/06, Mark Reynolds [EMAIL PROTECTED] wrote:

I have changed my multi-project build so it only builds the parent pom
without --non-recursive.


There are some double negatives here.

Do you mean you have deleted your other projects from the continuum
build and that there is now only one project which is the parent
project and for the parent project you have deleted the
--non-recursive argument in the continuum build definitions arguments?



Yes.


My parent pom is packagingpom/packaging and
the only thing that gets copied to the internal Deployment
Repository is the parent pom. Is this the expected behavior? I would
like to have all my module artifacts as well as artifacts created by the
assembly plugin put into this repository. Is this possible?


Continuum just runs the commands the same as you would on the command line.



Correct.


Go into the working directory that continuum is using and invoke by
hand the same command.

If it doesn't work by hand, fix it.
Once it works as you expect it, continuum will behave the same way.



My build is working just fine. My only question regards the copying of 
artifacts into the repository configured in Administration = 
Configuration = Deployment Repository Directory.


-- Mark R



Re: [m2] maven-jar-plugin-2.1 status?

2006-07-05 Thread Sebastien Cesbron

I am looking at the best solution for packaging my webstart
application with maven and the webstart plugin seems promissing. I do
not have easy access to the svn so I would like to know if there is
any plan for releasing this first beta ?

Thanx

Seb

On 7/4/06, jerome lacoste [EMAIL PROTECTED] wrote:

On 7/4/06, jerome lacoste [EMAIL PROTECTED] wrote:
 On 6/23/06, Mike Perham [EMAIL PROTECTED] wrote:
  Mark, I can't confirm an exact date but I just went through JIRA last
  night and closed/resolved 10-15 of the existing issues.  The one thing
  that has not been done yet is an overhaul of the documentation to
  conform with the new doc standards.  Once this has been done, the
  release should be reasonably near.

 I also need a release of this plugin because it currently blocks the
 release of the beta-1 webstart mojo plugin.

 I've called for a release many weeks ago and helped fix some of the
 jar plugin issues. What is really missing from the docs? Willing to
 help...

I looked at the latest official maven plugin released (the clover one)
and I don't see many differences between the clover plugin deployed
site and the jar plugin one found in svn:

http://maven.apache.org/plugins/maven-clover-plugin/

Cheers,

Jerome

-
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: assembly - renaming files

2006-07-05 Thread Wojciech Biela

Dan, Could you please point me to a location of any documentation on
this matter or tell me how to use it to prep the work? Because a quick
google for maven-dependency-plugin didn't reveal *any* insight in
this matter ...

TIA!
Wojtek

2006/7/5, dan tran [EMAIL PROTECTED]:

You need the help form maven-dependency-plugin to prep the work
before assembly started.

-D


On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:

 Hello,

 I refined my problem and now it comes down to this:

 I have my submodules installed in the repository as my custom type
 mod, I did this through attach-artifacts and added
 artifact
 file${project.build.directory}/${project.build.finalName}.jar/file
 typemod/type
 /artifact

 now in the main project I set the dependencies to those modules with
 the type mod. There are two issues however:

 1. (major) I would like to assign an arbitrary prefix to every mod
 type dependency. I figured already that I can't change the name of the
 file in the repository to anything else than artifactId-version, so I
 wonder what else can I do to achieve it. I would like not to duplicate
 any information anywhere, so I thought I would put a parameter in
 every module's pom file and I would access it through ${} during
 assembly and then use the outputFileNameMapping to change the name of
 every mod file. But the problem as I see it is that I can't access the
 dependencies pom file at the moment of assembly.

 Do you have any insight into how to do it in a clean way? if not clean
 then maybe the least messy way?

 2. (minor) I would like to assemble all jar type dependencies into
 one folder, and mod type dependencies to another. currently
 dependencySets
 dependencySet
outputDirectorylib/outputDirectory
 /dependencySet
 dependencySet
outputDirectorymodules/outputDirectory
 /dependencySet
 /dependencySets
 puts all dependencies into both dirs

 any insight is welcome

 Best regards,
 --
 Wojtek Biela

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







--
Wojtek Biela

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



Re: [m2] maven-jar-plugin-2.1 status?

2006-07-05 Thread jerome lacoste

On 7/5/06, Sebastien Cesbron [EMAIL PROTECTED] wrote:

I am looking at the best solution for packaging my webstart
application with maven and the webstart plugin seems promissing. I do
not have easy access to the svn so I would like to know if there is
any plan for releasing this first beta ?


reread:


On 7/4/06, jerome lacoste [EMAIL PROTECTED] wrote:
 On 7/4/06, jerome lacoste [EMAIL PROTECTED] wrote:
  On 6/23/06, Mike Perham [EMAIL PROTECTED] wrote:
   Mark, I can't confirm an exact date but I just went through JIRA last
   night and closed/resolved 10-15 of the existing issues.  The one thing
   that has not been done yet is an overhaul of the documentation to
   conform with the new doc standards.  Once this has been done, the
   release should be reasonably near.
 
  I also need a release of this plugin because it currently blocks the
  release of the beta-1 webstart mojo plugin.


And you do not need svn, just get it from the snapshots codehaus repos.

J

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



RE: assembly - renaming files

2006-07-05 Thread Ian Springer
Here's a link -
http://mojo.codehaus.org/dependency-maven-plugin/introduction.html

Unfortunately, I haven't used it yet myself, so I can't offer any tips. 

Ian

| -Original Message-
| From: Wojciech Biela [mailto:[EMAIL PROTECTED] 
| Sent: Wednesday, July 05, 2006 11:08 AM
| To: Maven Users List
| Subject: Re: assembly - renaming files
| 
| Dan, Could you please point me to a location of any documentation on
| this matter or tell me how to use it to prep the work? Because a quick
| google for maven-dependency-plugin didn't reveal *any* insight in
| this matter ...
| 
| TIA!
| Wojtek
| 
| 2006/7/5, dan tran [EMAIL PROTECTED]:
|  You need the help form maven-dependency-plugin to prep the work
|  before assembly started.
| 
|  -D
| 
| 
|  On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:
|  
|   Hello,
|  
|   I refined my problem and now it comes down to this:
|  
|   I have my submodules installed in the repository as my custom type
|   mod, I did this through attach-artifacts and added
|   artifact
|   
| file${project.build.directory}/${project.build.finalName}.jar/file
|   typemod/type
|   /artifact
|  
|   now in the main project I set the dependencies to those 
| modules with
|   the type mod. There are two issues however:
|  
|   1. (major) I would like to assign an arbitrary prefix to 
| every mod
|   type dependency. I figured already that I can't change 
| the name of the
|   file in the repository to anything else than 
| artifactId-version, so I
|   wonder what else can I do to achieve it. I would like not 
| to duplicate
|   any information anywhere, so I thought I would put a parameter in
|   every module's pom file and I would access it through ${} during
|   assembly and then use the outputFileNameMapping to change 
| the name of
|   every mod file. But the problem as I see it is that I 
| can't access the
|   dependencies pom file at the moment of assembly.
|  
|   Do you have any insight into how to do it in a clean way? 
| if not clean
|   then maybe the least messy way?
|  
|   2. (minor) I would like to assemble all jar type 
| dependencies into
|   one folder, and mod type dependencies to another. currently
|   dependencySets
|   dependencySet
|  outputDirectorylib/outputDirectory
|   /dependencySet
|   dependencySet
|  outputDirectorymodules/outputDirectory
|   /dependencySet
|   /dependencySets
|   puts all dependencies into both dirs
|  
|   any insight is welcome
|  
|   Best regards,
|   --
|   Wojtek Biela
|  
|   
| -
|   To unsubscribe, e-mail: [EMAIL PROTECTED]
|   For additional commands, e-mail: [EMAIL PROTECTED]
|  
|  
| 
| 
| 
| 
| -- 
| Wojtek Biela
| 
| -
| 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: How to install artifact created with assembly artifact into Continuum's local repository

2006-07-05 Thread Mark Reynolds

Emmanuel,

I don't think this is working as expected.

Emmanuel Venisse wrote:
The internal continuum repo (that can be configured in the configuration 
screen) is independant of local/remote maven repository. Continuum copy 
artifacts in it (even without deploy goal) when the build is in success 
and maven copy artifacts in local repo with install goal and in the 
remote repo with deploy goal.


You can use this internal repo if you want to use snapshots built by 
continuum.


I would like to use it as you describe, however, the only artifact that 
goes into it is the parent pom.


Here is my setup:

parent pom (packaging: pom)
  |
  -- child pom 1 (packaging: jar;
  |   execution for jar:test-jar;
  |   execution for assembly:attached creating a jar)
  -- child pom 2 (packaging: war;
  execution for assembly:attached creating a jar)

Continuum is building 1 project: the parent pom without --non-recursive. 
All of the artifacts (4 jars and 1 war) are copied into the 
~/.m2/repository. However, only the parent pom.xml is copied into the 
Deployment Repository.


Am I doing something wrong, or is this the intended behavior, or is it a 
bug and I should I create a report in JIRA?


Thanks for your help!

-- Mark R



Emmanuel

Christian Gruber a écrit :

While this is true, there is a deployment artifact repository which is
separate from the local repo (~/.m2/repository) of the user running
continuum.  This can be configured within Continuum.  It is a proper 
repo,

not a local repo, and continuum deploys artifacts into this repo, even if
you don't have a deploy goal.  Maybe Emanuel can shed some light on 
this

process.

Regards,
Christian.

christian gruber + agile coach and architect
Israfil Consulting Services Corporation
email [EMAIL PROTECTED] + bus +1 (905) 640-1119
cell: +1 (416) 998-6023 + cell: +1 (410) 900-0796
-Original Message-
From: Barrie Treloar [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 
04, 2006 9:15 PM

To: continuum-users@maven.apache.org
Subject: Re: How to install artifact created with assembly artifact into
Continuum's local repository

On 6/15/06, Mark Reynolds [EMAIL PROTECTED] wrote:

I should have mentioned that I am not talking about the local repository
used by maven (in .m2). Artifacts created with the assembly plugin get
installed in there just fine.

Rather, I can't see how to get them to install into the local repository
configured in Continuum 1.0.3. Should I be able to do this?


This makes no sense to me.

The local repository used by maven and continuum are one and the same.

Can you explain this further.












Re: assembly - renaming files

2006-07-05 Thread Wojciech Biela

Ha! I know why google didn't find anything googling for
dependency-maven-plugin truly finds this link you mention, thank you
very much Ian, I'll look into it

any tips are still more than welcome

Wojtek

2006/7/5, Ian Springer [EMAIL PROTECTED]:

Here's a link -
http://mojo.codehaus.org/dependency-maven-plugin/introduction.html

Unfortunately, I haven't used it yet myself, so I can't offer any tips.

Ian

| -Original Message-
| From: Wojciech Biela [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, July 05, 2006 11:08 AM
| To: Maven Users List
| Subject: Re: assembly - renaming files
|
| Dan, Could you please point me to a location of any documentation on
| this matter or tell me how to use it to prep the work? Because a quick
| google for maven-dependency-plugin didn't reveal *any* insight in
| this matter ...
|
| TIA!
| Wojtek
|
| 2006/7/5, dan tran [EMAIL PROTECTED]:
|  You need the help form maven-dependency-plugin to prep the work
|  before assembly started.
| 
|  -D
| 
| 
|  On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:
|  
|   Hello,
|  
|   I refined my problem and now it comes down to this:
|  
|   I have my submodules installed in the repository as my custom type
|   mod, I did this through attach-artifacts and added
|   artifact
|  
| file${project.build.directory}/${project.build.finalName}.jar/file
|   typemod/type
|   /artifact
|  
|   now in the main project I set the dependencies to those
| modules with
|   the type mod. There are two issues however:
|  
|   1. (major) I would like to assign an arbitrary prefix to
| every mod
|   type dependency. I figured already that I can't change
| the name of the
|   file in the repository to anything else than
| artifactId-version, so I
|   wonder what else can I do to achieve it. I would like not
| to duplicate
|   any information anywhere, so I thought I would put a parameter in
|   every module's pom file and I would access it through ${} during
|   assembly and then use the outputFileNameMapping to change
| the name of
|   every mod file. But the problem as I see it is that I
| can't access the
|   dependencies pom file at the moment of assembly.
|  
|   Do you have any insight into how to do it in a clean way?
| if not clean
|   then maybe the least messy way?
|  
|   2. (minor) I would like to assemble all jar type
| dependencies into
|   one folder, and mod type dependencies to another. currently
|   dependencySets
|   dependencySet
|  outputDirectorylib/outputDirectory
|   /dependencySet
|   dependencySet
|  outputDirectorymodules/outputDirectory
|   /dependencySet
|   /dependencySets
|   puts all dependencies into both dirs
|  
|   any insight is welcome
|  
|   Best regards,
|   --
|   Wojtek Biela
|  
|  
| -
|   To unsubscribe, e-mail: [EMAIL PROTECTED]
|   For additional commands, e-mail: [EMAIL PROTECTED]
|  
|  
| 
| 
|
|
| --
| Wojtek Biela
|
| -
| 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]





--
Wojtek Biela

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



Please need help to run the sample.plugin guide

2006-07-05 Thread Elid OR
Hi all,

I'm new with maven 2, but I use to develop a maven 1 plugin.

So my config is :

OS : Linux ubuntu 2.6.15-25-686
Java : version 1.5.0_06
Maven : version 2.0.4

So I'm trying to run the plugin development guide : 
http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

Everything is ok, I successfully execute the goals compile, package and 
install. I do not execute the deploy goal because I don't have a remote 
repository.

But when I execute the in command line :
mvn sample.plugin:maven-hello-plugin:1.0-SNAPSHOT:sayhi

I get the following error :

[INFO] Scanning for projects...
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] null
[INFO] 
[INFO] Trace
java.lang.NullPointerException
at 
org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor.java:259)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1524)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:381)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:135)
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:324)
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)
[INFO] 
[INFO] Total time:  1 second
[INFO] Finished at: Wed Jul 05 16:56:47 CEST 2006
[INFO] Final Memory: 1M/2M
[INFO] 

Any Idea would be very appreciate !

Thanks

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



Re: assembly - renaming files

2006-07-05 Thread Wojciech Biela

OK, I looked into the docs for the dependency-maven-plugin and
unfortunately didn't find anything of use in my situation.

Dan if you would be so kind and elaborate a little on how I could do
it with this plugin I would be truly grateful.

I don't see how the dependency:copy-dependencies or dependency:copy
goal may help me change the names of those artifacts, the only thing
that they allow me to do is strip the version number. I need to change
the destination file name, and assign a prefix different, arbitrary
and characteristic for each submodule.

Maybe I need to write my own Mojo for that task, but I'm still not
sure whether I'll be able to reach the dependencies' pom definition
from the point just before assembly of the master project. In the pom
I wanted to place the arbitrary prefix characteristic for each of the
submodules.

Maybe the only way I can do this is by repeating the dependencies in
some other file and assigning there the prefixes and then reach that
file from my Mojo, or Ant task or something of that sort .. ?

please help, I'm lost
Wojtek

2006/7/5, dan tran [EMAIL PROTECTED]:

You need the help form maven-dependency-plugin to prep the work
before assembly started.

-D


On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:

 Hello,

 I refined my problem and now it comes down to this:

 I have my submodules installed in the repository as my custom type
 mod, I did this through attach-artifacts and added
 artifact
 file${project.build.directory}/${project.build.finalName}.jar/file
 typemod/type
 /artifact

 now in the main project I set the dependencies to those modules with
 the type mod. There are two issues however:

 1. (major) I would like to assign an arbitrary prefix to every mod
 type dependency. I figured already that I can't change the name of the
 file in the repository to anything else than artifactId-version, so I
 wonder what else can I do to achieve it. I would like not to duplicate
 any information anywhere, so I thought I would put a parameter in
 every module's pom file and I would access it through ${} during
 assembly and then use the outputFileNameMapping to change the name of
 every mod file. But the problem as I see it is that I can't access the
 dependencies pom file at the moment of assembly.

 Do you have any insight into how to do it in a clean way? if not clean
 then maybe the least messy way?

 2. (minor) I would like to assemble all jar type dependencies into
 one folder, and mod type dependencies to another. currently
 dependencySets
 dependencySet
outputDirectorylib/outputDirectory
 /dependencySet
 dependencySet
outputDirectorymodules/outputDirectory
 /dependencySet
 /dependencySets
 puts all dependencies into both dirs

 any insight is welcome

 Best regards,
 --
 Wojtek Biela

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







--
Wojtek Biela

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



Re: assembly - renaming files

2006-07-05 Thread dan tran

dependency:copy allows you to rename the artifact, check out ArtifactItem
javadoc

-D


On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:


OK, I looked into the docs for the dependency-maven-plugin and
unfortunately didn't find anything of use in my situation.

Dan if you would be so kind and elaborate a little on how I could do
it with this plugin I would be truly grateful.

I don't see how the dependency:copy-dependencies or dependency:copy
goal may help me change the names of those artifacts, the only thing
that they allow me to do is strip the version number. I need to change
the destination file name, and assign a prefix different, arbitrary
and characteristic for each submodule.

Maybe I need to write my own Mojo for that task, but I'm still not
sure whether I'll be able to reach the dependencies' pom definition
from the point just before assembly of the master project. In the pom
I wanted to place the arbitrary prefix characteristic for each of the
submodules.

Maybe the only way I can do this is by repeating the dependencies in
some other file and assigning there the prefixes and then reach that
file from my Mojo, or Ant task or something of that sort .. ?

please help, I'm lost
Wojtek

2006/7/5, dan tran [EMAIL PROTECTED]:
 You need the help form maven-dependency-plugin to prep the work
 before assembly started.

 -D


 On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I refined my problem and now it comes down to this:
 
  I have my submodules installed in the repository as my custom type
  mod, I did this through attach-artifacts and added
  artifact
  file${project.build.directory}/${project.build.finalName}.jar/file
  typemod/type
  /artifact
 
  now in the main project I set the dependencies to those modules with
  the type mod. There are two issues however:
 
  1. (major) I would like to assign an arbitrary prefix to every mod
  type dependency. I figured already that I can't change the name of the
  file in the repository to anything else than artifactId-version, so I
  wonder what else can I do to achieve it. I would like not to duplicate
  any information anywhere, so I thought I would put a parameter in
  every module's pom file and I would access it through ${} during
  assembly and then use the outputFileNameMapping to change the name of
  every mod file. But the problem as I see it is that I can't access the
  dependencies pom file at the moment of assembly.
 
  Do you have any insight into how to do it in a clean way? if not clean
  then maybe the least messy way?
 
  2. (minor) I would like to assemble all jar type dependencies into
  one folder, and mod type dependencies to another. currently
  dependencySets
  dependencySet
 outputDirectorylib/outputDirectory
  /dependencySet
  dependencySet
 outputDirectorymodules/outputDirectory
  /dependencySet
  /dependencySets
  puts all dependencies into both dirs
 
  any insight is welcome
 
  Best regards,
  --
  Wojtek Biela
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




--
Wojtek Biela

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




Re: [m2] maven-jar-plugin-2.1 status?

2006-07-05 Thread Sebastien Cesbron

Ok, On this page http://docs.codehaus.org/display/MOJO/Webstart+Plugin
I saw that the plugin was not in the snapshot repo so I did not
checked it.
Now I have a dependency error because webstart plugin need version
0.3+ of keytool but there is only snapshots version of keytool : do I
have somethin special to do ?

Seb

On 7/5/06, jerome lacoste [EMAIL PROTECTED] wrote:

On 7/5/06, Sebastien Cesbron [EMAIL PROTECTED] wrote:
 I am looking at the best solution for packaging my webstart
 application with maven and the webstart plugin seems promissing. I do
 not have easy access to the svn so I would like to know if there is
 any plan for releasing this first beta ?

reread:

 On 7/4/06, jerome lacoste [EMAIL PROTECTED] wrote:
  On 7/4/06, jerome lacoste [EMAIL PROTECTED] wrote:
   On 6/23/06, Mike Perham [EMAIL PROTECTED] wrote:
Mark, I can't confirm an exact date but I just went through JIRA last
night and closed/resolved 10-15 of the existing issues.  The one thing
that has not been done yet is an overhaul of the documentation to
conform with the new doc standards.  Once this has been done, the
release should be reasonably near.
  
   I also need a release of this plugin because it currently blocks the
   release of the beta-1 webstart mojo plugin.

And you do not need svn, just get it from the snapshots codehaus repos.

J

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



FW: maven-pmd-plugin can't find my source files

2006-07-05 Thread Andrew-A . Davies
 
Hi Doug

I have installed PMD locally and executede against code; successfully
generating report.
I have extracted a couple of the rulesets from the pmd-3.3.jar and have
the the plugin configured as follows ...

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-pmd-plugin/artifactId
configuration
rulesets

ruleset${basedir}/basic.xml/ruleset

ruleset${basedir}/controversial.xml/ruleset

ruleset${basedir}/favorites.xml/ruleset

ruleset${basedir}/strings.xml/ruleset

ruleset${basedir}/design.xml/ruleset
/rulesets
formatxml/format

outputDirectory${basedir}/target/outputDirectory
failOnViolationfalse/failOnViolation
debugtrue/debug
linkXReftrue/linkXRef
/configuration
/plugin

This does now seem to be executing PMD - I can tell because it fails
with
java.lang.RuntimeException: Couldn't find that class
net.sourceforge.pmd.rules.AvoidDuplicateLiteralsRule

Do I have to have pmd jar files on a classpath (or in repository and
have some dependencies set up) ?

Cheers
Andy
-Original Message-
From: Davies, Andrew-A 
Sent: 04 July 2006 12:44
To: 'Maven Users List'
Subject: RE: maven-pmd-plugin can't find my source files

Sorry  about delayed response - been away 4 a couple of days.
No using JDK 1.4.2. Will try PMD alone to confirm, then try specific
version.

Will vote if I see

Rgds
Andy
 

-Original Message-
From: Doug Douglass [mailto:[EMAIL PROTECTED]
Sent: 29 June 2006 18:33
To: Maven Users List
Subject: Re: maven-pmd-plugin can't find my source files

Sorry, I mis-spoke on the version, we were originally using
2.0-beta-2-SNAPSHOT hosted at either:

  * http://snapshots.maven.codehaus.org/maven2
  * http://cvs.apache.org/maven-snapshot-repository

You're classes don't happen to be using Java 5 and Generics do they?

You'll need to configure the plugin if you're using java 5 (see
targetJdk parameter).

If you want to try 2.0-beta-2-SNAPSHOT, add the appropriate location
above to your pom as a pluginRepository and then add a version tag where
ever you reference the pmd plugin groupId/artifactId.

Lastly, a good test of whether the problem is related to the plugin or
to pmd, is to install pmd and run it directly -- my bet is you'll see a
bunch of NPEs reported.


FYI, the 2.1-SNAPSHOT we use is deployed to our corp. plugin repo
pending acceptance of http://jira.codehaus.org/browse/MPMD-33 which is
unrelated to your problems. If you do see the NPEs noted above, vote for
this issue ;)

HTH,
Doug

On 6/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I haven't specified a version. My POM looks like

 reporting
 plugins
 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-pmd-plugin/artifactId
 configuration
 linkXReftrue/linkXRef
 /configuration
 /plugin
 plugin

 groupIdorg.apache.maven.plugins/groupId

 artifactIdmaven-jxr-plugin/artifactId
 /plugin
 /plugins
 /reporting



 -Original Message-
 From: Doug Douglass [mailto:[EMAIL PROTECTED]
 Sent: 29 June 2006 13:39
 To: Maven Users List
 Subject: Re: maven-pmd-plugin can't find my source files

 What version of the plugin? We've been using 2.1-SNAPSHOT for many 
 months and haven't seen the problems you describe.

 On 6/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Heiko,
 
  I have the same issue. Except that only a blank page is created.
 
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-pmd-plugin/artifactId
  /plugin
 
  I also use JXR for cross referencing java
 
  plugin
 
  groupIdorg.apache.maven.plugins/groupId
 
  artifactIdmaven-jxr-plugin/artifactId
  /plugin
 
  Either I am missing something fundamental, or the documentation on 
  http://maven.apache.org/plugins/maven-pmd-plugin/howto.html
  is wrong. Or there are bugs with the plugin.
 
  Rgds
  Andy
 
  -Original Message-
  From: Heiko Wolf [mailto:[EMAIL PROTECTED] ]
  Sent: 29 June 2006 07:58
  To: users@maven.apache.org
  Subject: maven-pmd-plugin can't find my source files
 
  Hello,
 
  I have a very little maven project (only one source file), sources 
  as usual in src/main/java, everything works fine, mvn compile, mvn 
  site and so on. But not mvn pmd:pmd.  It generates some files 
  (target/basic.xml, target/unusedcode.xml ...), pmd.xml is also 
  generated, but its nearly empty. It contains only an pmd-tag, 
  nothing 

Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread ben short

Johann ,

Im trying to use the hibernate3 plugin but get the following error.

The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
exist or no valid version could be found

Below is my pom file

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
 modelVersion4.0.0/modelVersion
 groupIdcom.mycompany.app/groupId
 artifactIdmy-app/artifactId
 packagingjar/packaging
 version1.0-SNAPSHOT/version
 nameMaven Quick Start Archetype/name
 urlhttp://maven.apache.org/url
- dependencies
- dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
 scopetest/scope
 /dependency
- dependency
 groupIdorg.codehaus.mojo/groupId
 artifactIdhibernate3-maven-plugin/artifactId
 version1.0-SNAPSHOT/version
 scopecompile/scope
 /dependency
 /dependencies
- repositories
- repository
 idMaven Snapshots/id
 urlhttp://snapshots.maven.codehaus.org/maven2//url
- snapshots
 enabledtrue/enabled
 /snapshots
- releases
 enabledfalse/enabled
 /releases
 /repository
 /repositories
- pluginRepositories
- pluginRepository
 idMaven Snapshots/id
 urlhttp://snapshots.maven.codehaus.org/maven2//url
- snapshots
 enabledtrue/enabled
 /snapshots
- releases
 enabledfalse/enabled
 /releases
 /pluginRepository
 /pluginRepositories
- build
- plugins
- plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdhibernate3-maven-plugin/artifactId
- configuration
- hibernate
 configurationFile/src/main/resources/hibernate.cfg.xml/configurationFile
 /hibernate
- outputDirectory
 hbm2cfgxmlsrc/main/resources/hbm2cfgxml
 /outputDirectory
 /configuration
 /plugin
 /plugins
 /build
 /project

Any ideas what I am doing wronge?

Ben


On 7/5/06, Johann Reyes [EMAIL PROTECTED] wrote:

Hello Paul

Actually an update. I was able to go around the bug that was stopping me
from deploying and was able to successfully deploy a snapshot. So now a
hibernate3-maven-plugin is available to use.

Regards

Johann Reyes

-Original Message-
From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 9:15 AM
To: Maven Users List; Jose Gonzalez Gomez
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

I would be more appreciative than you can ever imagine if you could send
that information.

Thanks!

/Paul

On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:

 Paul,

 It seems I've been able to run the hibernate plugin from the mojo
 successfully (at least it has created a table with a pair of attributes
 from
 an annotated class). I'm going out in a few minutes, so if you're
 interested
 in how I did it drop me a line (or drop it to the list) and I'll post
 excerpts from pom, settings, ... tomorrow.

 Best regards
 Jose

 2006/7/5, Jose Gonzalez Gomez [EMAIL PROTECTED]:
 
  Paul,
 
  I'm trying to do the same, and I'm facing some troubles, maybe you can
  help me... First of all, I haven't been able to find one of the
 dependencies
  of the Hibernate Annotations packages:
  javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
 an
  implementation of a public draft that has been removed from ibiblio.
 Anyway,
  I'm using the javax.persistence:persistence-api:1.0 from the
 java.netrepository. I guess this is the final implementation of the
 missing
  dependency, but I don't know how to override it or where to find it. How
  have you solved this?
 
  Best regards
  Jose
 
  2006/7/5, Paul Kuykendall [EMAIL PROTECTED]:
 
   Hi,
  
   I am at my wits end in getting maven to play nicely with
   Hibernate.  I've
   been at it for over a week now and feel no closer than when I started.
   Here's what I'm trying to do.  I've been working on a project using
   Maven
   2.0.4 as the build system.  Everything has been going fine until I try
   and
   get Maven to generate the Hibernate DDL and java from my hbm
   files.  I've
   tried using the codehaus hibernate3-maven-plugin with no success.  I
   later
   discovered that when they had their crash, it took out lots of the
   plugin
   files.  I've tried to just integrate the hibernate portions into the
 POM
   as
   a simple Ant task.  I can't even get Maven to recognize the Ant
   tasks.  I've
   RTFM (as much as there is one).  I've tried all the available code
   snippets
   I can find.  So far, nothing has worked.  here is my POM file,
 slightly
   edited to protect the guilty.
  
   With the config files below, I don't even get the echos.
  
   If anyone has a sample section from the POM file for doing Hibernate 3
   stuff, I would greatly appreciate a code-snippet.
  
   Thanks.
  
   /Paul
  
   ?xml version=1.0 encoding=UTF-8?project
 modelVersion4.0.0/modelVersion
  
 !-- POM Relationships --
 groupIdcom.mycompany.simulators/groupId
 artifactIdcaisim/artifactId
 version 1.0-SNAPSHOT/version
   !--
 parent
   groupIdcom.mycompany.simulators/groupId
   

Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread ben short

Sorry the error is actually...

The plugin 'org.codehaus.mojo:hibernate3-maven-plugin' does not exist
or no valid version could be found


On 7/5/06, ben short [EMAIL PROTECTED] wrote:

Johann ,

Im trying to use the hibernate3 plugin but get the following error.

The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
exist or no valid version could be found

Below is my pom file

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdcom.mycompany.app/groupId
  artifactIdmy-app/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  nameMaven Quick Start Archetype/name
  urlhttp://maven.apache.org/url
- dependencies
- dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/scope
  /dependency
- dependency
  groupIdorg.codehaus.mojo/groupId
  artifactIdhibernate3-maven-plugin/artifactId
  version1.0-SNAPSHOT/version
  scopecompile/scope
  /dependency
  /dependencies
- repositories
- repository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
- snapshots
  enabledtrue/enabled
  /snapshots
- releases
  enabledfalse/enabled
  /releases
  /repository
  /repositories
- pluginRepositories
- pluginRepository
  idMaven Snapshots/id
  urlhttp://snapshots.maven.codehaus.org/maven2//url
- snapshots
  enabledtrue/enabled
  /snapshots
- releases
  enabledfalse/enabled
  /releases
  /pluginRepository
  /pluginRepositories
- build
- plugins
- plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdhibernate3-maven-plugin/artifactId
- configuration
- hibernate
  configurationFile/src/main/resources/hibernate.cfg.xml/configurationFile
  /hibernate
- outputDirectory
  hbm2cfgxmlsrc/main/resources/hbm2cfgxml
  /outputDirectory
  /configuration
  /plugin
  /plugins
  /build
  /project

Any ideas what I am doing wronge?

Ben


On 7/5/06, Johann Reyes [EMAIL PROTECTED] wrote:
 Hello Paul

 Actually an update. I was able to go around the bug that was stopping me
 from deploying and was able to successfully deploy a snapshot. So now a
 hibernate3-maven-plugin is available to use.

 Regards

 Johann Reyes

 -Original Message-
 From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 05, 2006 9:15 AM
 To: Maven Users List; Jose Gonzalez Gomez
 Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

 I would be more appreciative than you can ever imagine if you could send
 that information.

 Thanks!

 /Paul

 On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:
 
  Paul,
 
  It seems I've been able to run the hibernate plugin from the mojo
  successfully (at least it has created a table with a pair of attributes
  from
  an annotated class). I'm going out in a few minutes, so if you're
  interested
  in how I did it drop me a line (or drop it to the list) and I'll post
  excerpts from pom, settings, ... tomorrow.
 
  Best regards
  Jose
 
  2006/7/5, Jose Gonzalez Gomez [EMAIL PROTECTED]:
  
   Paul,
  
   I'm trying to do the same, and I'm facing some troubles, maybe you can
   help me... First of all, I haven't been able to find one of the
  dependencies
   of the Hibernate Annotations packages:
   javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to be
  an
   implementation of a public draft that has been removed from ibiblio.
  Anyway,
   I'm using the javax.persistence:persistence-api:1.0 from the
  java.netrepository. I guess this is the final implementation of the
  missing
   dependency, but I don't know how to override it or where to find it. How
   have you solved this?
  
   Best regards
   Jose
  
   2006/7/5, Paul Kuykendall [EMAIL PROTECTED]:
  
Hi,
   
I am at my wits end in getting maven to play nicely with
Hibernate.  I've
been at it for over a week now and feel no closer than when I started.
Here's what I'm trying to do.  I've been working on a project using
Maven
2.0.4 as the build system.  Everything has been going fine until I try
and
get Maven to generate the Hibernate DDL and java from my hbm
files.  I've
tried using the codehaus hibernate3-maven-plugin with no success.  I
later
discovered that when they had their crash, it took out lots of the
plugin
files.  I've tried to just integrate the hibernate portions into the
  POM
as
a simple Ant task.  I can't even get Maven to recognize the Ant
tasks.  I've
RTFM (as much as there is one).  I've tried all the available code
snippets
I can find.  So far, nothing has worked.  here is my POM file,
  slightly
edited to protect the guilty.
   
With the config files below, I don't even get the echos.
   
If anyone has a sample section from the POM file for doing Hibernate 3
stuff, I would greatly appreciate a code-snippet.
   

RE: maven-pmd-plugin can't find my source files

2006-07-05 Thread Mike Perham
It sounds like you are trying to use a ruleset from an older version and
the PMD code is no longer there to support the old rule(s).  Try
removing the rulesets and I bet it will work fine. 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 05, 2006 11:10 AM
 To: users@maven.apache.org
 Cc: [EMAIL PROTECTED]
 Subject: FW: maven-pmd-plugin can't find my source files
 
  
 Hi Doug
 
 I have installed PMD locally and executede against code; successfully
 generating report.
 I have extracted a couple of the rulesets from the 
 pmd-3.3.jar and have
 the the plugin configured as follows ...
 
   plugin
   
 groupIdorg.apache.maven.plugins/groupId
   
 artifactIdmaven-pmd-plugin/artifactId
   configuration
   rulesets
   
 ruleset${basedir}/basic.xml/ruleset
   
 ruleset${basedir}/controversial.xml/ruleset
   
 ruleset${basedir}/favorites.xml/ruleset
   
 ruleset${basedir}/strings.xml/ruleset
   
 ruleset${basedir}/design.xml/ruleset
   /rulesets
   formatxml/format
   
 outputDirectory${basedir}/target/outputDirectory
   failOnViolationfalse/failOnViolation
   debugtrue/debug
   linkXReftrue/linkXRef
   /configuration
   /plugin
 
 This does now seem to be executing PMD - I can tell because it fails
 with
 java.lang.RuntimeException: Couldn't find that class
 net.sourceforge.pmd.rules.AvoidDuplicateLiteralsRule
 
 Do I have to have pmd jar files on a classpath (or in repository and
 have some dependencies set up) ?
 
 Cheers
 Andy
 -Original Message-
 From: Davies, Andrew-A 
 Sent: 04 July 2006 12:44
 To: 'Maven Users List'
 Subject: RE: maven-pmd-plugin can't find my source files
 
 Sorry  about delayed response - been away 4 a couple of days.
 No using JDK 1.4.2. Will try PMD alone to confirm, then try specific
 version.
 
 Will vote if I see
 
 Rgds
 Andy
  
 
 -Original Message-
 From: Doug Douglass [mailto:[EMAIL PROTECTED]
 Sent: 29 June 2006 18:33
 To: Maven Users List
 Subject: Re: maven-pmd-plugin can't find my source files
 
 Sorry, I mis-spoke on the version, we were originally using
 2.0-beta-2-SNAPSHOT hosted at either:
 
   * http://snapshots.maven.codehaus.org/maven2
   * http://cvs.apache.org/maven-snapshot-repository
 
 You're classes don't happen to be using Java 5 and Generics do they?
 
 You'll need to configure the plugin if you're using java 5 (see
 targetJdk parameter).
 
 If you want to try 2.0-beta-2-SNAPSHOT, add the appropriate location
 above to your pom as a pluginRepository and then add a 
 version tag where
 ever you reference the pmd plugin groupId/artifactId.
 
 Lastly, a good test of whether the problem is related to the plugin or
 to pmd, is to install pmd and run it directly -- my bet is 
 you'll see a
 bunch of NPEs reported.
 
 
 FYI, the 2.1-SNAPSHOT we use is deployed to our corp. plugin repo
 pending acceptance of http://jira.codehaus.org/browse/MPMD-33 which is
 unrelated to your problems. If you do see the NPEs noted 
 above, vote for
 this issue ;)
 
 HTH,
 Doug
 
 On 6/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  I haven't specified a version. My POM looks like
 
  reporting
  plugins
  plugin
 
  groupIdorg.apache.maven.plugins/groupId
 
  artifactIdmaven-pmd-plugin/artifactId
  configuration
  linkXReftrue/linkXRef
  /configuration
  /plugin
  plugin
 
  groupIdorg.apache.maven.plugins/groupId
 
  artifactIdmaven-jxr-plugin/artifactId
  /plugin
  /plugins
  /reporting
 
 
 
  -Original Message-
  From: Doug Douglass [mailto:[EMAIL PROTECTED]
  Sent: 29 June 2006 13:39
  To: Maven Users List
  Subject: Re: maven-pmd-plugin can't find my source files
 
  What version of the plugin? We've been using 2.1-SNAPSHOT for many 
  months and haven't seen the problems you describe.
 
  On 6/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  
   Heiko,
  
   I have the same issue. Except that only a blank page is created.
  
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-pmd-plugin/artifactId
   /plugin
  
   I also use JXR for cross referencing java
  
   plugin
  
   groupIdorg.apache.maven.plugins/groupId
  
   artifactIdmaven-jxr-plugin/artifactId
   /plugin
  
   Either I am missing something fundamental, or the 
 documentation on 
   http://maven.apache.org/plugins/maven-pmd-plugin/howto.html
   is wrong. Or there are bugs with the plugin.
  
   Rgds
   

Webstart plugin

2006-07-05 Thread Sebastien Cesbron

A question about this plugin :

- Is there somewhere a template.vm example file I can take as a
basis for mine ?

Thanx

Seb

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



Re: assembly - renaming files

2006-07-05 Thread Wojciech Biela

hmmm, true, true, thank you Dan!, I missed that, I feel I must go home
and take a rest ;) ... , anyway still that leaves me with the question
of how to reach that arbitrary prefix assigned in the pom file of that
dependency?

I feel there is no such way and I just have to use the dependency:copy
and repeat the artifactItem element for every submodule and assign
those prefixes in the master module pom (instead from the submodule's
poms)

sorry if all this is basic stuff, but I'm very new to maven

best regards
Wojtek

2006/7/5, dan tran [EMAIL PROTECTED]:

dependency:copy allows you to rename the artifact, check out ArtifactItem
javadoc

-D


On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:

 OK, I looked into the docs for the dependency-maven-plugin and
 unfortunately didn't find anything of use in my situation.

 Dan if you would be so kind and elaborate a little on how I could do
 it with this plugin I would be truly grateful.

 I don't see how the dependency:copy-dependencies or dependency:copy
 goal may help me change the names of those artifacts, the only thing
 that they allow me to do is strip the version number. I need to change
 the destination file name, and assign a prefix different, arbitrary
 and characteristic for each submodule.

 Maybe I need to write my own Mojo for that task, but I'm still not
 sure whether I'll be able to reach the dependencies' pom definition
 from the point just before assembly of the master project. In the pom
 I wanted to place the arbitrary prefix characteristic for each of the
 submodules.

 Maybe the only way I can do this is by repeating the dependencies in
 some other file and assigning there the prefixes and then reach that
 file from my Mojo, or Ant task or something of that sort .. ?

 please help, I'm lost
 Wojtek

 2006/7/5, dan tran [EMAIL PROTECTED]:
  You need the help form maven-dependency-plugin to prep the work
  before assembly started.
 
  -D
 
 
  On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:
  
   Hello,
  
   I refined my problem and now it comes down to this:
  
   I have my submodules installed in the repository as my custom type
   mod, I did this through attach-artifacts and added
   artifact
   file${project.build.directory}/${project.build.finalName}.jar/file
   typemod/type
   /artifact
  
   now in the main project I set the dependencies to those modules with
   the type mod. There are two issues however:
  
   1. (major) I would like to assign an arbitrary prefix to every mod
   type dependency. I figured already that I can't change the name of the
   file in the repository to anything else than artifactId-version, so I
   wonder what else can I do to achieve it. I would like not to duplicate
   any information anywhere, so I thought I would put a parameter in
   every module's pom file and I would access it through ${} during
   assembly and then use the outputFileNameMapping to change the name of
   every mod file. But the problem as I see it is that I can't access the
   dependencies pom file at the moment of assembly.
  
   Do you have any insight into how to do it in a clean way? if not clean
   then maybe the least messy way?
  
   2. (minor) I would like to assemble all jar type dependencies into
   one folder, and mod type dependencies to another. currently
   dependencySets
   dependencySet
  outputDirectorylib/outputDirectory
   /dependencySet
   dependencySet
  outputDirectorymodules/outputDirectory
   /dependencySet
   /dependencySets
   puts all dependencies into both dirs
  
   any insight is welcome
  
   Best regards,
   --
   Wojtek Biela
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 


 --
 Wojtek Biela

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







--
Wojtek Biela

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



Java Mojo parameter question

2006-07-05 Thread Mykel Alvis

If I have the following parameters in my mojo (among others)
-
   /**
* Base directory of work for the wscompile process.
* @parameter
default-value=${project.build.directory}/generated-sources/jaxrpc-wscompile

* @required
*/
   private String base;
   /**
* Both?
* @parameter default-value=false
*/
   private boolean both;


shouldn't it generate something more  interesting than this in the base
configuration, or does that happen as part of the FM of maven mojos?

--
   parameter
 namesourceRoots/name
 typejava.util.List/type
 requiredtrue/required
 editablefalse/editable
 descriptionList of source roots containing non-test
code./description
   /parameter
 /parameters
 configuration
   base implementation=java.io.File default-value=/
   dependencies implementation=java.util.Set default-value=/
   outputDirectory implementation=java.io.File${
project.build.directory}/outputDirectory
   sourceRoots implementation=java.util.List default-value=/
   resources implementation=java.util.List default-value=/
   both implementation=boolean default-value=false/
   project implementation=org.apache.maven.project.MavenProject
default-value=/
 /configuration

--

Mykel

--

Never wear anything that panics the cat. -- P. J. O'Rourke


Re: Java Mojo parameter question

2006-07-05 Thread Mykel Alvis

Oops.  I changed the type from File to String between the time I generated
the plugin.xml.  Sorry.  The type of base should be File.

On 7/5/06, Mykel Alvis [EMAIL PROTECTED] wrote:



If I have the following parameters in my mojo (among others)
-
/**
 * Base directory of work for the wscompile process.
 * @parameter 
default-value=${project.build.directory}/generated-sources/jaxrpc-wscompile

 * @required
 */
private String base;
/**
 * Both?
 * @parameter default-value=false
 */
private boolean both;


shouldn't it generate something more  interesting than this in the base
configuration, or does that happen as part of the FM of maven mojos?

--
parameter
  namesourceRoots/name
  typejava.util.List/type
  requiredtrue/required
  editablefalse/editable
  descriptionList of source roots containing non-test
code./description
/parameter
  /parameters
  configuration
base implementation=java.io.File default-value=/
dependencies implementation= java.util.Set default-value=/
outputDirectory implementation=java.io.File${
project.build.directory}/outputDirectory
sourceRoots implementation= java.util.List default-value=/
resources implementation=java.util.List default-value=/
both implementation=boolean default-value=false/
project implementation=org.apache.maven.project.MavenProject
default-value=/
  /configuration

--

Mykel

--

Never wear anything that panics the cat. -- P. J. O'Rourke





--

Never wear anything that panics the cat. -- P. J. O'Rourke


Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread ben short

Dont i need the Repository and pluginRepository elements to tell maven
to get the plugin from the codehaus snapshot repo?

Ben

On 7/5/06, Johann Reyes [EMAIL PROTECTED] wrote:

Hello Ben

I would remove the following lines from the pom.xml

 - dependency
   groupIdorg.codehaus.mojo/groupId
   artifactIdhibernate3-maven-plugin/artifactId
   version1.0-SNAPSHOT/version
   scopecompile/scope
   /dependency
   /dependencies
 - repositories
 - repository
   idMaven Snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2//url
 - snapshots
   enabledtrue/enabled
   /snapshots
 - releases
   enabledfalse/enabled
   /releases
   /repository
   /repositories
 - pluginRepositories
 - pluginRepository
   idMaven Snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2//url
 - snapshots
   enabledtrue/enabled
   /snapshots
 - releases
   enabledfalse/enabled
   /releases
   /pluginRepository
   /pluginRepositories

And then run maven with the -U parameter, something like mvn -U
hibernate3:schema-export

Regards

Johann Reyes

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben
short
Sent: Wednesday, July 05, 2006 12:15 PM
To: Maven Users List
Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

Sorry the error is actually...

The plugin 'org.codehaus.mojo:hibernate3-maven-plugin' does not exist
or no valid version could be found


On 7/5/06, ben short [EMAIL PROTECTED] wrote:
 Johann ,

 Im trying to use the hibernate3 plugin but get the following error.

 The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
 exist or no valid version could be found

 Below is my pom file

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdcom.mycompany.app/groupId
   artifactIdmy-app/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   nameMaven Quick Start Archetype/name
   urlhttp://maven.apache.org/url
 - dependencies
 - dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scopetest/scope
   /dependency
 - dependency
   groupIdorg.codehaus.mojo/groupId
   artifactIdhibernate3-maven-plugin/artifactId
   version1.0-SNAPSHOT/version
   scopecompile/scope
   /dependency
   /dependencies
 - repositories
 - repository
   idMaven Snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2//url
 - snapshots
   enabledtrue/enabled
   /snapshots
 - releases
   enabledfalse/enabled
   /releases
   /repository
   /repositories
 - pluginRepositories
 - pluginRepository
   idMaven Snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2//url
 - snapshots
   enabledtrue/enabled
   /snapshots
 - releases
   enabledfalse/enabled
   /releases
   /pluginRepository
   /pluginRepositories
 - build
 - plugins
 - plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdhibernate3-maven-plugin/artifactId
 - configuration
 - hibernate

configurationFile/src/main/resources/hibernate.cfg.xml/configurationFile
   /hibernate
 - outputDirectory
   hbm2cfgxmlsrc/main/resources/hbm2cfgxml
   /outputDirectory
   /configuration
   /plugin
   /plugins
   /build
   /project

 Any ideas what I am doing wronge?

 Ben


 On 7/5/06, Johann Reyes [EMAIL PROTECTED] wrote:
  Hello Paul
 
  Actually an update. I was able to go around the bug that was stopping me
  from deploying and was able to successfully deploy a snapshot. So now a
  hibernate3-maven-plugin is available to use.
 
  Regards
 
  Johann Reyes
 
  -Original Message-
  From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 05, 2006 9:15 AM
  To: Maven Users List; Jose Gonzalez Gomez
  Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working
together
 
  I would be more appreciative than you can ever imagine if you could send
  that information.
 
  Thanks!
 
  /Paul
 
  On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:
  
   Paul,
  
   It seems I've been able to run the hibernate plugin from the mojo
   successfully (at least it has created a table with a pair of
attributes
   from
   an annotated class). I'm going out in a few minutes, so if you're
   interested
   in how I did it drop me a line (or drop it to the list) and I'll post
   excerpts from pom, settings, ... tomorrow.
  
   Best regards
   Jose
  
   2006/7/5, Jose Gonzalez Gomez [EMAIL PROTECTED]:
   
Paul,
   
I'm trying to do the same, and I'm facing some troubles, maybe you
can
help me... First of all, I haven't been able to find one of the
   dependencies
of the Hibernate Annotations packages:
javax.persistence:ejb:jar:3.0-public-draft-20060502 . This seems to
be
   an
implementation of a public draft that has been removed from ibiblio.
   Anyway,
I'm using the javax.persistence:persistence-api:1.0 from the
   

Re: Maven Day in Paris

2006-07-05 Thread Peter Pilgrim

Arnaud HERITIER wrote:

Always in French you have this page with the list of speakers :
http://www.application-servers.com/conf/2006/mavenday/index.html
Except for the presentation done by Jason in English, the rest will be in
French.


Hi

I have met Jason van Zyl in London this lunchtime, as he was presenting
to JSIG. He gave a great overview of the Maven philosophy and
raison d'etre.

So good luck to you all in Paris


Peter Pilgrim
JUG Leader,
Java Web Users Group (www.javawug.com)

====

--
Peter Pilgrim  ( Windows XP / Thunderbird 1.5 )

_ ___  + Expert Java
__  /_ ___   ___ ____  /__  /  + Enterprise
___ _  /_  __ `/_ | / /  __ `/__  __/  __  __/ + Design
/ /_/ / / /_/ /__ |/ // /_/ / _  /___  _  /___ + Architecture
\/  \__,_/ _/ \__,_/  /_/  /_/ + Web New Age

On Line Resume
   ||
   \\===  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''

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



[OT][ANN] JAVAWUG BOF XX / Oracle City of London / 13th July 2006 @ 7pm

2006-07-05 Thread Peter Pilgrim

Hi All

I would like announce the twentieth birds-of-a-feather (BOF 20) of
the Java Web Users Group. The event will take place at


 Oracle City Of London
 One South Place
 London,
 England
 EC2M 2RB.



The feature speakers:

Emmanuel Okyere
RIFE: The Petstore Edition


(Speaker 2 TBC)



Afterwards members can retire to the nearby the ``All Bar One''
pub/restaurant for more in depth discussion dinner, food and drink ...


If you would like to attend, please REGISTER so that you can be added to the 
SECURITY DETAIL


Join the http://groups.google.com/group/javawug JAVAWUG at Google Groups
and ``Send an Email to the list you are attending''

Alternatively send mail to myself at peter dot pilgrim at gmail dot com
and/or duncan dot mills at oracle.com

Here is some relevant travel information:

By Underground: -

 Moorgate: Take the Moorgate East exit, turn right, one block to South
 Place.
 Bank: Take the Northern line to Moorgate.
 Liverpool Street: Take the Broadgate exit, turn right onto South Place


Map: http://www.oracle.com/global/uk/corporate/locations/citymap.html

The venue has graciously been organised by Duncan Mills of Oracle Corp. We all 
appreciate this generous gift.


http://www.javawug.com/

http://jroller.com/page/peter_pilgrim

PS: The presentations will be recorded and I hope to upload them all Google 
Video Site. search against JAVAWUG for the last video uploads.


--
Peter Pilgrim  ( Windows XP / Thunderbird 1.5 )

_ ___  + Expert Java
__  /_ ___   ___ ____  /__  /  + Enterprise
___ _  /_  __ `/_ | / /  __ `/__  __/  __  __/ + Design
/ /_/ / / /_/ /__ |/ // /_/ / _  /___  _  /___ + Architecture
\/  \__,_/ _/ \__,_/  /_/  /_/ + Web New Age

On Line Resume
   ||
   \\===  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''

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



Re: Java Mojo parameter question

2006-07-05 Thread Mykel Alvis

Sorry in advance for the long post.

I'm attaching the entirety of the pom and the mojo I'm currently working on.
It's copied, more or less verbatim, from the Better Builds java example with
added stuff since I'm generating code.   Doing a mvn install generates the
plugin.xml specified below.  Note the configuration section of the
plugin.xml, specifically that for everything not a String or boolean except
outputDirectory, it generates a value of  (double quote).  Is this what's
supposed to happen?

Any insight into this would be appreciated.
Mykel


Mojo pom:
-
?xml version=1.0 encoding=UTF-8?
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://maven.apache.org/POM/4.0.0../../../../maven-site/target/site/maven-v4_0_0.xsd

 modelVersion4.0.0/modelVersion
 groupIdjavax.xml.plugins/groupId
 artifactIdmaven-jaxrpc-plugin/artifactId
 name Plugin for jaxrpc calls/name
 !-- Versions tied to jaxrpc version --
 version1.1.3/version
 packagingmaven-plugin/packaging
 descriptionMaven plugin to wrap jaxrpc calls for wscompile and
wsdeploy./description
 dependencies
   dependency
 groupIdjavax.xml/groupId
 artifactIdjaxrpc-impl/artifactId
 version1.1.3_01_EA/version
   /dependency
   dependency
 groupIdorg.apache.maven/groupId
 artifactIdmaven-plugin-api/artifactId
 version2.0/version
   /dependency
   dependency
 groupIdorg.apache.maven/groupId
 artifactIdmaven-project/artifactId
 version2.0.2/version
   /dependency
   dependency
 groupIdorg.apache.maven/groupId
 artifactIdmaven-script-ant/artifactId
 version2.0.2/version
   /dependency
   dependency
 groupIdant/groupId
 artifactIdant/artifactId
 version1.6.5/version
   /dependency
 /dependencies
 distributionManagement
repository
   idlocal/id
   namelocal/name
   urlfile:opt/maven-repo-local/url
/repository
 /distributionManagement
/project

Mojo java code WSCompileMojo.java
-

package javax.xml.plugins;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.logging.Log;
import org.apache.maven.project.MavenProject;
import org.apache.maven.project.MavenProjectHelper;
import org.apache.tools.ant.Location;

import com.sun.xml.rpc.tools.ant.Wscompile;
import com.sun.xml.rpc.tools.wscompile.CompileTool;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;

/**
* Goal which runs the wscompile task
*
* @goal wscompile
* @phase generate-sources
* @requiresDependencyResolution compile
*/
public class WSCompileMojo
   extends AbstractMojo
{
   /**
* Location of the file.
* @parameter expression=${project.build.directory}
* @required
*/
   private File outputDirectory;

   /**
* The set of dependencies required by the project
* @parameter default-value=${project.dependencies}
* @required
* @readonly
*/
   private java.util.Set dependencies;
   /**
* Project instance, used to add new source directory to the build.
* @parameter default-value=${project}
* @required
* @readonly
*/
   private MavenProject project;
   /**
* project-helper instance, used to make addition of resources
* simpler.
* @component
*/
   private MavenProjectHelper helper;
   /**
* List of source roots containing non-test code.
* @parameter default-value=${project.compileSourceRoots}
* @required
* @readonly
*/
   private List sourceRoots;
   /**
* List of Resource objects for the current build, containing
* directory, includes, and excludes.
* @parameter default-value=${project.resources}
* @required
* @readonly
*/
   private List resources;

   /**
* Base directory of work for the wscompile process.
* @parameter
default-value=${project.build.directory}/generated-sources/jaxrpc-wscompile

* @required
*/
   private File base;
   /**
* Both?
* @parameter default-value=false
*/
   private boolean both;
   /**
* Case sensitive
* @parameter default-value=false
*/
   private boolean caseSensitive;
   /**
* Generate Client
* @parameter default-value=false
*/
   private boolean client;
   /**
* Config file location
* @parameter
* @required
*/
   private File configFile;
   /**
* WSCompile debug
* @parameter default-value=false
*/
   private boolean debug;
   /**
* Define
* @parameter default-value=false
*/
   private boolean define;
   /**
* Description default-value=
* @parameter
*/
   private String description;
   /**
* Excludes
* @parameter
*/
   private String excludes;
   /**
* ExcludesFile
* @parameter
*/
   private File excludesFile;
   /**
* Features
* @parameter
*/
   private String features;
   /**
* Follow Symbolic Links
* @parameter 

Re: assembly - renaming files

2006-07-05 Thread dan tran

I you need to repeating bunch of dependecy:copy execution in a submodules,
I's suggest that
delegate  a maven to prepare that stagement area and aother other projects
can directly reference
it via relative path, or via local repository ( get that maven project to
assemable a zip file that
other modules  can unpack )

-Dan


On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:


hmmm, true, true, thank you Dan!, I missed that, I feel I must go home
and take a rest ;) ... , anyway still that leaves me with the question
of how to reach that arbitrary prefix assigned in the pom file of that
dependency?

I feel there is no such way and I just have to use the dependency:copy
and repeat the artifactItem element for every submodule and assign
those prefixes in the master module pom (instead from the submodule's
poms)

sorry if all this is basic stuff, but I'm very new to maven

best regards
Wojtek

2006/7/5, dan tran [EMAIL PROTECTED]:
 dependency:copy allows you to rename the artifact, check out
ArtifactItem
 javadoc

 -D


 On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:
 
  OK, I looked into the docs for the dependency-maven-plugin and
  unfortunately didn't find anything of use in my situation.
 
  Dan if you would be so kind and elaborate a little on how I could do
  it with this plugin I would be truly grateful.
 
  I don't see how the dependency:copy-dependencies or dependency:copy
  goal may help me change the names of those artifacts, the only thing
  that they allow me to do is strip the version number. I need to change
  the destination file name, and assign a prefix different, arbitrary
  and characteristic for each submodule.
 
  Maybe I need to write my own Mojo for that task, but I'm still not
  sure whether I'll be able to reach the dependencies' pom definition
  from the point just before assembly of the master project. In the pom
  I wanted to place the arbitrary prefix characteristic for each of the
  submodules.
 
  Maybe the only way I can do this is by repeating the dependencies in
  some other file and assigning there the prefixes and then reach that
  file from my Mojo, or Ant task or something of that sort .. ?
 
  please help, I'm lost
  Wojtek
 
  2006/7/5, dan tran [EMAIL PROTECTED]:
   You need the help form maven-dependency-plugin to prep the work
   before assembly started.
  
   -D
  
  
   On 7/5/06, Wojciech Biela [EMAIL PROTECTED] wrote:
   
Hello,
   
I refined my problem and now it comes down to this:
   
I have my submodules installed in the repository as my custom type
mod, I did this through attach-artifacts and added
artifact
file${project.build.directory}/${project.build.finalName
}.jar/file
typemod/type
/artifact
   
now in the main project I set the dependencies to those modules
with
the type mod. There are two issues however:
   
1. (major) I would like to assign an arbitrary prefix to every
mod
type dependency. I figured already that I can't change the name of
the
file in the repository to anything else than artifactId-version,
so I
wonder what else can I do to achieve it. I would like not to
duplicate
any information anywhere, so I thought I would put a parameter in
every module's pom file and I would access it through ${} during
assembly and then use the outputFileNameMapping to change the name
of
every mod file. But the problem as I see it is that I can't access
the
dependencies pom file at the moment of assembly.
   
Do you have any insight into how to do it in a clean way? if not
clean
then maybe the least messy way?
   
2. (minor) I would like to assemble all jar type dependencies
into
one folder, and mod type dependencies to another. currently
dependencySets
dependencySet
   outputDirectorylib/outputDirectory
/dependencySet
dependencySet
   outputDirectorymodules/outputDirectory
/dependencySet
/dependencySets
puts all dependencies into both dirs
   
any insight is welcome
   
Best regards,
--
Wojtek Biela
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
 
 
  --
  Wojtek Biela
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




--
Wojtek Biela

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




Muliple sub-projects - want to produce a single jar

2006-07-05 Thread Ed Ross

This really shouldn't be this hard.


I have several (5) sub-projects which is following the maven best
practices (I think).

I just want to product a SINGLE jar, not 5 little jars.

I've been trying to understand the assembly stuff, but can not seem to get
all of the projects included in the results.

this is a simple little project that took several hours to code, but is
taking many hours to try an build/deploy.

yes - I'm new at mave,but this seems like it should be a common task.

thanks for any help



--
Ed Ross
[EMAIL PROTECTED]


[m2] [javadoc] javadoc for tests classes

2006-07-05 Thread Raphaël Piéroni

Hello,

Is there a way to generate the javadoc for the sources and for the test
sources in a site ?
And is it therefore possible to have the test javadoc report to have its own
link in the site menu ?

Thanks in advance for any help.

Regards.

Raphaël


Desable compile phase during mvn eclipse:eclipse

2006-07-05 Thread Patrick GIRY

Some one can he indicate to me how to stop the compile process during mvn
eclipse:eclipse execution.
I have try this bu it's not work
mvn -DdownloadSources=true -Dwtpversion=1.0 -Dnocompile=true eclipse:eclipse


Re: [m2] Frustration getting Maven 2 and Hibernate working together

2006-07-05 Thread ben short

Fixed it. I needed to add the version as follows.
build
plugins
plugin
   groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version1.0-SNAPSHOT/version !--- added --
   configuration
   hibernate

configurationFile/src/main/resources/hibernate.cfg.xml/configurationFile
   /hibernate
   outputDirectory
   hbm2cfgxmlsrc/main/resources/hbm2cfgxml
   /outputDirectory
   /configuration
/plugin
/plugins
/build


On 7/5/06, ben short [EMAIL PROTECTED] wrote:

Dont i need the Repository and pluginRepository elements to tell maven
to get the plugin from the codehaus snapshot repo?

Ben

On 7/5/06, Johann Reyes [EMAIL PROTECTED] wrote:
 Hello Ben

 I would remove the following lines from the pom.xml

  - dependency
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version1.0-SNAPSHOT/version
scopecompile/scope
/dependency
/dependencies
  - repositories
  - repository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
  - snapshots
enabledtrue/enabled
/snapshots
  - releases
enabledfalse/enabled
/releases
/repository
/repositories
  - pluginRepositories
  - pluginRepository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
  - snapshots
enabledtrue/enabled
/snapshots
  - releases
enabledfalse/enabled
/releases
/pluginRepository
/pluginRepositories

 And then run maven with the -U parameter, something like mvn -U
 hibernate3:schema-export

 Regards

 Johann Reyes

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ben
 short
 Sent: Wednesday, July 05, 2006 12:15 PM
 To: Maven Users List
 Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working together

 Sorry the error is actually...

 The plugin 'org.codehaus.mojo:hibernate3-maven-plugin' does not exist
 or no valid version could be found


 On 7/5/06, ben short [EMAIL PROTECTED] wrote:
  Johann ,
 
  Im trying to use the hibernate3 plugin but get the following error.
 
  The plugin 'org.codehaus.mojo.hibernate3:hibernate3-maven' does not
  exist or no valid version could be found
 
  Below is my pom file
 
  project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
modelVersion4.0.0/modelVersion
groupIdcom.mycompany.app/groupId
artifactIdmy-app/artifactId
packagingjar/packaging
version1.0-SNAPSHOT/version
nameMaven Quick Start Archetype/name
urlhttp://maven.apache.org/url
  - dependencies
  - dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1/version
scopetest/scope
/dependency
  - dependency
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version1.0-SNAPSHOT/version
scopecompile/scope
/dependency
/dependencies
  - repositories
  - repository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
  - snapshots
enabledtrue/enabled
/snapshots
  - releases
enabledfalse/enabled
/releases
/repository
/repositories
  - pluginRepositories
  - pluginRepository
idMaven Snapshots/id
urlhttp://snapshots.maven.codehaus.org/maven2//url
  - snapshots
enabledtrue/enabled
/snapshots
  - releases
enabledfalse/enabled
/releases
/pluginRepository
/pluginRepositories
  - build
  - plugins
  - plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
  - configuration
  - hibernate
 
 configurationFile/src/main/resources/hibernate.cfg.xml/configurationFile
/hibernate
  - outputDirectory
hbm2cfgxmlsrc/main/resources/hbm2cfgxml
/outputDirectory
/configuration
/plugin
/plugins
/build
/project
 
  Any ideas what I am doing wronge?
 
  Ben
 
 
  On 7/5/06, Johann Reyes [EMAIL PROTECTED] wrote:
   Hello Paul
  
   Actually an update. I was able to go around the bug that was stopping me
   from deploying and was able to successfully deploy a snapshot. So now a
   hibernate3-maven-plugin is available to use.
  
   Regards
  
   Johann Reyes
  
   -Original Message-
   From: Paul Kuykendall [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, July 05, 2006 9:15 AM
   To: Maven Users List; Jose Gonzalez Gomez
   Subject: Re: [m2] Frustration getting Maven 2 and Hibernate working
 together
  
   I would be more appreciative than you can ever imagine if you could send
   that information.
  
   Thanks!
  
   /Paul
  
   On 7/5/06, Jose Gonzalez Gomez [EMAIL PROTECTED] wrote:
   
Paul,
   
It seems I've been able to run the hibernate plugin 

[M2] Changelog using src folder instead of project root?

2006-07-05 Thread Manfred Moser

Hi!

I am having a problem with changelog report plugin from Maven 2 running 
under continuum.


For some reason the scm working directory is set to the main source 
folder only rather than getting a change log for the whole project tree.


The relevant output from mvn -X -e site is

INFO] Generate changelog report.
[INFO] Generating changed sets xml to: C:\tmp\bluebox\target\changelog.xml
[INFO] SCM Working Directory: C:\tmp\bluebox\src\main\java
[INFO] SCM Command Line[0]: svn
[INFO] SCM Command Line[1]: log
[INFO] SCM Command Line[2]: -v
[INFO] SCM Command Line[3]: -r{2006-07-06}:{2006-06-05}
[INFO] ChangeSet between 2006-06-05 and 2006-07-06: 5 entries
[DEBUG] Generating C:\tmp\bluebox\target\site\dev-activity.html
[INFO] Generate dev-activity report.
[DEBUG] Generating C:\tmp\bluebox\target\site\file-activity.html
[INFO] Generate file-activity report.

I would like it to be
[INFO] SCM Working Directory: C:\tmp\bluebox

I can not find any mention of a problem like that in the archives anywhere.

Manfred


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



Re: cobertura - Getting Error

2006-07-05 Thread Arnaud Bailly
tulasi [EMAIL PROTECTED] writes:

 Hi,




 According your sugguestion, i made config like this. why i dont know under
 classes folder repeatedly genereted-classes folder is creating. is thr
 configuration problem?. if you want to check i ll give you my complete
 pom.xml


My basic configuration for cobertura reporting is:


reporting
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdcobertura-maven-plugin/artifactId
/plugin
/plugins
/reporting


AFAICT, you are binding the plugin with (to?) goal clean only which
may means that it keepse trying cleaning things thatdoes not exist.

regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: assembly plugin problem

2006-07-05 Thread Barrie Treloar

On 7/5/06, Arnaud Bailly [EMAIL PROTECTED] wrote:

nazim chakik [EMAIL PROTECTED] writes:

May be the following assembly descriptor can help you:

assembly
 idbin/id
 formats
  formattar.gz/format
  formatzip/format
 /formats
 !-- create everything in a base directory --
 includeBaseDirectoryfalse/includeBaseDirectory
 !-- add parent pom and documentation  --
 fileSets
  fileSet
   directory/directory
   includes
includepom.xml/include
includesrc//include
   /includes
  /fileSet
 /fileSets
 !-- add all modules in their own directories --
 moduleSets
  moduleSet
   binaries
includeDependenciestrue/includeDependencies
  /binaries
/moduleSet
  /moduleSets
/assembly


I've never used module sets.
I've only used dependency sets.

Your mileage may vary.

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



Re: Assembly and parent pom

2006-07-05 Thread Barrie Treloar

On 7/6/06, Martijn Dashorst [EMAIL PROTECTED] wrote:

All,

If you have a project setup where all your projects have a common
parent project, and some are dependend on the others, how can you
accomodate the downloaders of your assemblies such that they still can
build your project using maven if/when they are offline?


I've never used offline mode, but if everything is in your local
repository it should be available for a build in offline mode.



Example setup:
project
groupIdfoo/groupId
artifactIdfoo-parent/artifactId
version1.0-SNAPSHOT/version
packagingpom/packaging
/project

project
parent
groupIdfoo/groupId
artifactIdfoo-parent/artifactId
version1.0-SNAPSHOT/version
/parent
artifactIdbar/artifactId
packagingjar/packaging
/project

The first problem is the parent pom. Is the snapshot version of the
parent pom updated when I build the bar project?


Maven does not build parent poms or dependencies on a project.
You must either have access to a repository that the artifact can be
downloaded from or manually run the mvn install command on each
dependency so it is installed into your local repository.

If your parent pom has modules defined then you can run mvn install
at the parent level and the modules will automatically get built as
well.


How should I construct my (source) assembly for bar, such that it can
be compiled using maven, even when the foo-parent pom is not available
on the central repo (usually the case for snapshot versions)? Add
(somehow) the foo-parent.pom to the assembly and provide README
instructions to perform an install first on the parent pom?


Your source should be compilable because your parent pom and other
dependencies are already in your local repository.

If they are not in the local repository then, as above, you either
need to make them available from a remote repository or you need to
have manually installed them into your local repository.

HTH

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



HTTP compression/gzip for wagon providers(?)

2006-07-05 Thread Beyer,Nathan
Is there anyway to configure Maven 2 (the wagon providers?) to use
compression for HTTP communication? In particular to accept compression
when requesting dependencies and to use compression when sending data
with WebDAV requests.

I have my HTTP servers setup to compress output and decompress input,
where appropriate.

Thanks.
-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: documenting composite objects in plugins configuration

2006-07-05 Thread Dennis Lundberg

jerome lacoste wrote:

Dennis,

related to your comment in MJAR-46, are you aware of any Jira issue
related to documenting composite objects fields of mojos ? I have a
similar problem with some plugins whose configuration consist mostly
of composite objects, making the generated plugin doc page useless.


Nope, I will probably be linking to the JavaDocs of the composite 
objects for MJAR-46. This is not ideal, as it requires manual tweaking 
of the documentation for each and every composite object. But it does 
work for both internal and external composite objects.


--
Dennis Lundberg

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



  1   2   >