Re: Intellij/IDEA plugin

2006-03-14 Thread Konstantin Polyzois
Thanks! I'll do that

On 3/14/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
>
> To create a patch:
> http://maven.apache.org/guides/development/guide-m2-development.html
>
> To submit it:
> http://jira.codehaus.org/browse/MIDEA
>
> Konstantin Polyzois wrote:
> > I'd like to help finish idea-plugin it does not handle ejb/ear very
> well, I
> > have it checked out where can I submit a patch? (And how do I create one
> > from svn)
> >
> > /Konstantin
> >
>
> --
> With kind regards,
> Geoffrey De Smet
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


M2 + Pluto1.1

2006-03-14 Thread javed mandary
Hi all,
am trying to use  a portal and it seems M2 is already intergrated
with the  build for the pluto1.1 portal , does any one know where to get
source code for pluto 1.1 ?

regards,
Javed


Re: Maven2 plugins for IDEA

2006-03-14 Thread Laurie Harper
I'm talking about plugins for the IDEA IDE that support M2, not Maven 
plugins that work in M2 :-)


Wayne Fay wrote:

Many m1 plugins also seem to work in m2.

Have you tried any of them to confirm they don't seem to work right in
m2? Or just read that they are m1 plugins, and ignored them?

Wayne


On 3/14/06, Laurie Harper <[EMAIL PROTECTED]> wrote:

Does anyone know of any IDEA plugins that integrate Maven 2? I've found
several that work with Maven 1, but none yet for M2.

Thanks,

L.


-
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 do you install a JAR with source

2006-03-14 Thread Aaron Freeman
Thanks a lot!! After looking at that link I figured the way you
install the sources and the javadocs with the binary is with the
command:

mvn source:jar javadoc:jar install

It works great!

Thanks again.

On 3/14/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> This might also help?
>
> "mvn source:jar javadoc:jar repository:bundle-create"
> From: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html
>
> But this just prepares a bundle you can then upload to Maven JIRA for
> deployment in Ibiblio. Not sure if you can use that same bundle to
> deploy locally... We're just installing binaries in our local repo at
> this point.
>
> Definitely respond back to the list when you get it working, so the
> rest of us know how to do it properly.
>
> Wayne
>
>
> On 3/14/06, dan tran <[EMAIL PROTECTED]> wrote:
> > try it with -DperformRelease=true, i found this in release plugin.
> >
> > -D
> >
> > On 3/14/06, Aaron Freeman <[EMAIL PROTECTED]> wrote:
> > >
> > > I am new to Maven and trying to build a JAR from one of my projects
> > > and insall it in my local repository. I am able to build it and
> > > itstall it just fine, but I would like to include the source in the
> > > repository also. I haven't been able to find anything that would tell
> > > me how to do this. Can anyone tell me how, or where I can get some
> > > information about it.
> > >
> > > Also, is there some place I can get some good information about
> > > creating archtypes. I didn't find much on the Maven web site.
> > >
> > > 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]



Re: Maven2 plugins for IDEA

2006-03-14 Thread Wayne Fay
Many m1 plugins also seem to work in m2.

Have you tried any of them to confirm they don't seem to work right in
m2? Or just read that they are m1 plugins, and ignored them?

Wayne


On 3/14/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Does anyone know of any IDEA plugins that integrate Maven 2? I've found
> several that work with Maven 1, but none yet for M2.
>
> Thanks,
>
> L.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] tracing dependencies

2006-03-14 Thread Wayne Fay
I believe UMLGraph can generate what you're looking for (.dot files
that show links between dependencies)... I know some people are using
it in M1/M2.

This thread discusses UMLGraph in more detail, if you go down to
Wendy's email and the responses to it:
http://www.nabble.com/-m2-Javadoc-plugin-Javadoc-report-with-Maven2-t1242695.html

PS- I haven't ever used this myself! So report back if you get it
working right etc. ;-)

Wayne


On 3/14/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> Runnign with -X gives a lot of output on dependencies.  Not sure if
> there's any way to get more than that.
>
> -Stephen
>
> On 3/14/06, Lee Meador <[EMAIL PROTECTED]> wrote:
> > Is there an easy way to tell why a particular jar file got included in the
> > classpath on a compile or when running tests?
> >
> > -- Lee Meador
> > Sent from gmail. My real email address is [EMAIL PROTECTED]
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Maven2 plugins for IDEA

2006-03-14 Thread Laurie Harper
Does anyone know of any IDEA plugins that integrate Maven 2? I've found 
several that work with Maven 1, but none yet for M2.


Thanks,

L.


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



Re: [m2] library project

2006-03-14 Thread Napoleon Esmundo Ramirez
Hello,

Or you could also create a project of just dependencies and use the
dependency-maven-plugin, so you wouldn't have to write an assembly
descriptor or type so much in the command line. :)

Cheers!
Nap

On 3/15/06, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
>
> Milos Kleint schrieb:
> > check out the maven-assebly-plugin. it does exactly what you want I
> think..
> >
> Thanks, will have a look at it!
>
>
> Ciao,
> Mario
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2] tracing dependencies

2006-03-14 Thread Stephen Duncan
Runnign with -X gives a lot of output on dependencies.  Not sure if
there's any way to get more than that.

-Stephen

On 3/14/06, Lee Meador <[EMAIL PROTECTED]> wrote:
> Is there an easy way to tell why a particular jar file got included in the
> classpath on a compile or when running tests?
>
> -- Lee Meador
> Sent from gmail. My real email address is [EMAIL PROTECTED]
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: Maven2 changelog for clearcase

2006-03-14 Thread raghurajan . x . gurunathan
Thanks for your reply,

This is what i have in my pom.xml

  
scm|clearcase|viewName|path to my config_spec



and if you see the error message i posted i guess it is finding the scm 
element but instead of cvs, as its seeing clearcase it needs some property 
need to be set,  when i googled i saw this property can be set for maven1 
in project.properties, but no idea where and what need to be set for 
Maven2


Thanks,
Raghu 





Edwin Punzalan <[EMAIL PROTECTED]>
03/13/2006 06:59 PM
Please respond to "Maven Users List"

 
To: Maven Users List 
cc: 
Subject:Re: Maven2 changelog for clearcase



The changelog plugin uses the  elements available in your pom.xml.

Be sure to set it up in your pom.xml especially the developer and/or 
anonymous connection strings.


^_^



[EMAIL PROTECTED] wrote:
> Hi All,
>
> Is there any sample to show how to use changelog plugin with clearcase, 
>
> When i tried with
>
> 
>   org.codehaus.mojo
>   changelog-maven-plugin
>   2.0-beta-1
>   
> date
> 
>implementation="java.lang.String">2006-01-01
>implementation="java.lang.String">2006-03-01
> 
> -MM-dd
> 
> 
>
>
> it threw error
>
> [INFO] 
> 

> [ERROR] FATAL ERROR
> [INFO] 
> 

> [INFO] repository connection string does not specify 'cvs' as the scm
> If using another scm, maven.changelog.factory must be set.
> See the maven changelog plugin documentation for correct settings.
> [INFO] 
> 

> [INFO] Trace
> java.lang.IllegalArgumentException: repository connection string does 
not 
> specify 'cvs' as the scm
>
>
> so where to set this properties to what?/
>
> Any one please advise!!!
>
> Thanks,
> Raghu 
>
> 

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





Re: Jabber not working

2006-03-14 Thread raghurajan . x . gurunathan
OK

I tried couple of things

1. I changed something so build would fail(that would change the previous 
state of build) and my jabber configuration i used it as SSL then i got 
the error

jvm 1| 2006-03-14 17:40:19,385 [Thread-1] ERROR 
ContinuumNotificationDispatcher - Error while trying to use the jabb
ernotifier.
jvm 1| org.codehaus.plexus.notification.NotificationException: 
Exception while sending message.
jvm 1|  at 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNot
ifier.java:236)
jvm 1|  at 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinu
umNotifier.java:135)
jvm 1|  at 
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(Defau
ltContinuumNotificationDispatcher.java:173)
jvm 1|  at 
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultC
ontinuumNotificationDispatcher.java:96)
jvm 1|  at 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:3
63)
jvm 1|  at 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecu
tor.java:53)
jvm 1|  at 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQu
eueExecutor.java:103)
jvm 1|  at java.lang.Thread.run(Thread.java:534)
jvm 1| Caused by: org.codehaus.plexus.jabber.JabberClientException: 
Can't connect to mx.mycompany:5223
jvm 1|  at 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:51)
jvm 1|  at 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNot
ifier.java:216)
jvm 1|  ... 7 more
jvm 1| Caused by: Connection failed. No response from server.:
jvm 1|  at 
org.jivesoftware.smack.PacketReader.startup(PacketReader.java:170)
jvm 1|  at 
org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:766)
jvm 1|  at 
org.jivesoftware.smack.XMPPConnection.(XMPPConnection.java:222)
jvm 1|  at 
org.jivesoftware.smack.SSLXMPPConnection.(SSLXMPPConnection.java:87)
jvm 1|  at 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:46)
jvm 1|  ... 8 more




2. Then again changed the fixed the code (so now it would change exit code 
from 1 - 0) then changed the SSL connection to false for jabber 
notification

 This time got Exit 0  but no notification to Jabber, it just stopped 
at saying Exit Code - 0



Thanks,
Raghu 





Emmanuel Venisse <[EMAIL PROTECTED]>
03/14/2006 10:36 AM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: Jabber not working


it's because you have the same state in your current build and your last.

Create an error in your code (if actually, your build is in success) so, 
the build state will be 
different and notifier will be called.

Emmanuel

[EMAIL PROTECTED] a écrit :
> Yes,
> 
> It just displays error code 0 thats it nothing more
> 
> 
> 
> 
> 
> 
> Thanks,
> Raghu 
> 
> 
> 
> 
> 
> Emmanuel Venisse <[EMAIL PROTECTED]>
> 03/14/2006 02:36 AM
> Please respond to continuum-users
> 
> 
> To: continuum-users@maven.apache.org
> cc: 
> Subject:Re: Jabber not working
> 
> 
> Without SSL checked, you have nothing, no errors, no log messages?
> 
> Emmanuel
> 
> [EMAIL PROTECTED] a écrit :
> 
>>Yeah exactly same thing (room as Recipient address, then "Is it a Jabber 

> 
> group"  has checked)  have it defined in my notifier
> 
>>I also logged into to my room using the samecredential so the server is 
> 
> up 
> 
>>and credential also right.
>>
>>the one thing i noticied is 
>>
>>when i say it has SSL Connection then its threw that error,
>>
>>vm 1| Caused by: org.codehaus.plexus.jabber.JabberClientException: 
>>Can't connect to mx.company.com:5223
>>vm 1|  at 
>>
> 
> 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:51)
> 
>>vm 1|  at 
>>
> 
> 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNot
> 
>>fier.java:216)
>>vm 1|  ... 7 more
>>vm 1| Caused by: Connection failed. No response from server.:
>>vm 1|  at 
>>org.jivesoftware.smack.PacketReader.startup(PacketReader.java:170)
>>vm 1|  at 
>>org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:766)
>>vm 1|  at 
>>org.jivesoftware.smack.XMPPConnection.(XMPPConnection.java:222)
>>vm 1|  at 
>>
> 
> 
org.jivesoftware.smack.SSLXMPPConnection.(SSLXMPPConnection.java:87)
> 
>>vm 1|  at 
>>
> 
> 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:46)
> 
>> if i uncheck the SSL connection its not throwing error, as w

RE: Pulling in pages from another WAR with maven 2

2006-03-14 Thread KC Baltz
See this thread:

http://www.nabble.com/-m202-common-resources-between-2-war-modules--t1220038.html#a3228555

K.C.

-Original Message-
From: Andrew Watters [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 9:11 AM
To: Maven Users List
Subject: Pulling in pages from another WAR with maven 2


Hi

I am trying to build a WAR which needs to includes pages and other 
resources that are packaged as a WAR stored in my local repository. Is 
there a built in way to pull down WARs from the repository and unpack 
and copy files? Or should I use ant (in maven)?

Any suggestions would be appreciated.

Regards
Andrew


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


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



[m2] tracing dependencies

2006-03-14 Thread Lee Meador
Is there an easy way to tell why a particular jar file got included in the
classpath on a compile or when running tests?

-- Lee Meador
Sent from gmail. My real email address is [EMAIL PROTECTED]


Re: [M2] Findbugs plugin results to stacktrace

2006-03-14 Thread Wayne Fay
Root cause:
> java.lang.NoClassDefFoundError: org/jaxen/JaxenException

Its trying to build and use an XPath and it can't find the org.jaxen
library in your classpath. Add it to your dependencies, at least for
this report.

Wayne


On 3/14/06, Rik Bosman <[EMAIL PROTECTED]> wrote:
> Hi to All,
>
> Adding the following snippet to the reporting section of my pom results in a
> stacktrace:
> Configuring the treshold specifically also fails.
> Maven 2.0.2
>
> Any suggestions?
>
> Rik
>
> 
>  org.codehaus.mojo
>  findbugs-maven-plugin
>  1.0-SNAPSHOT
>  
>
> [INFO] Generate "Maven FindBugs Report" report.
> [INFO]   No threshold provided, using default threshold.
> Jaws uses plugin: \C:\Documents and
> Settings\BosmanGH\.m2\repository\findbugs\coreplugin\0.9.3\coreplugin-
> 0.9.3.jar
> [INFO]
> 
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] org/jaxen/JaxenException
> [INFO]
> 
> [INFO] Trace
> java.lang.NoClassDefFoundError: org/jaxen/JaxenException
>  at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
>  at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
>  at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189)
>  at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:125)
>  at edu.umd.cs.findbugs.PluginLoader.(PluginLoader.java:88)
>  at edu.umd.cs.findbugs.DetectorFactoryCollection.loadPlugins(
> DetectorFactoryCollection.java:188)
>  at edu.umd.cs.findbugs.DetectorFactoryCollection.(
> DetectorFactoryCollection.java:52)
>  at edu.umd.cs.findbugs.DetectorFactoryCollection.instance(
> DetectorFactoryCollection.java:73)
>  at edu.umd.cs.findbugs.config.UserPreferences.enableAllDetectors(
> UserPreferences.java:314)
>  at org.codehaus.mojo.findbugs.FindBugsMojo.initialiseFindBugs(
> FindBugsMojo.java:312)
>  at org.codehaus.mojo.findbugs.FindBugsMojo.executeReport(FindBugsMojo.java
> :254)
>  at org.apache.maven.reporting.AbstractMavenReport.generate(
> AbstractMavenReport.java:98)
>  at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(
> SiteMojo.java:1055)
>  at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:397)
>  at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:415)
>  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:531)
>  at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:472)
>  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:451)
>  at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:303)
>  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:270)
>  at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:139)
>  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:249)
>  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]
> --
>
>


Re: User Profiles

2006-03-14 Thread Wayne Fay
Yes I understand that. That's why I was suggesting the Maven2 approach
with resources and filters. ;-)

This is all very possible with standard Maven2 usage and xml
configuration files etc. I have presently defined "dev_workstation" as
active, "dev", "qe", and "prod" in my profiles. Hoping to get the full
build, configure, deploy in a single Maven command at some point in
the near future (it hasn't really been a goal for me, so I haven't
bothered to get it working 100% in Maven yet).

Assuming you get your full process in a single command, perhaps post
your pom etc back to the list for other people's usage?

Wayne


On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> The point is of course that I am talking about properties files specific
> to the application and not the build process. Just wanted to make it clear.
>
> Serge
>
> Wayne Fay wrote:
> > Simon is right... I simply went "whole hog" with Maven2 as much as
> > possible, and except for the Oc4j deployment via Ant, I have
> > eliminated all "old" ant *.properties files in favor of profiles.
> >
> > So instead of various properties files in various places in my project
> > filesystem, I've got it all contained in a single profile.xml file,
> > and I'm much happier with the centralized management of all properties
> > used in my project.
> >
> > Wayne
> >
> >
> > On 3/14/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
> >
> >>While Wayne's suggestion is probably better "maven style", I expect you
> >>could also use the maven-antrun-plugin to execute an external ant task
> >>at the process-resources phase.
> >>http://maven.apache.org/plugins/maven-antrun-plugin/
> >>http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
> >>http://maven.apache.org/guides/mini/guide-configuring-plugins.html
> >>
> >>On Tue, 2006-03-14 at 11:10 -0600, Wayne Fay wrote:
> >>
> >>>Well first off, those properties files need to be placed in
> >>>src/main/resources. Then you need to learn about filtering. ;-)
> >>>
> >>>So what you do is something along these lines...
> >>>/src/main/resources/c3p0.properties
> >>>blah=abc
> >>>yadda=xyz
> >>>server=${c3p0.server}
> >>>
> >>>Then in pom.xml:
> >>>  
> >>>
> >>>  
> >>>src/main/resources
> >>>true
> >>>  
> >>>
> >>>  
> >>>
> >>>And then the profile & properties data in pom.xml or profile.xml.
> >>>
> >>>Then finally:
> >>>mvn package -P name1
> >>>
> >>>And the proper variable values will be substituted into your
> >>>properties files during the filter step.
> >>>
> >>>HTH.
> >>>Wayne
> >>>
> >>>On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> >>>
> But those properties files are referenced by Spring configurations in
> turn, c3p0.properties is the default for c3p0 connection pool
> configuration. This all happens after deploying in Tomcat. How would
> Spring know about Maven configurations when the war file is deployed on
> a remote server? :-)
> 
> I am open to other approaches but they have to work for one-stop builds.
> I clearly want to be able to run a single command and have the app
> deployed to a remote server with all the necessary configs.
> 
> Serge
> 
> Wayne Fay wrote:
> 
> >With a new build environment comes changes to your existing build.
> >When you moved to Ant, you made these properties files. Now it might
> >be time to change again if you move to Maven. So just realize upfront
> >that you will probably have to change.
> >
> >The easiest way to achieve your requirements is through the use of
> >profiles either in pom.xml, settings.xml, or profiles.xml file. Then
> >you call "mvn -P name1 package" and it uses the variable values you
> >have defined in the "name1" profile.
> >See this page for more info:
> >http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> >
> >If you want to keep your existing properties files and build process,
> >stay in Ant. You could probably write some complicated plugin to
> >duplicate what you already have in ANT, but I wouldn't do it.
> >
> >Wayne
> >
> >
> >On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> >
> >
> >>I am still trying to get my head around the concept of user profiles
> >>(using Maven2). Here is what I do in Ant:
> >>
> >>1. Let's say we have a project called "leonardo".
> >>
> >>2. To work with my Ant process the user is required to have a directory
> >>called $HOME/.leonardorc and an environment variable called
> >>$LEONARDO_EXT that contains his current configurational profile.
> >>
> >>3. $HOME/.leonardorc contains customer properties files. Let's say:
> >>db.properties.${LEONARDO_EXT}, c3p0.properties.${LEONARDO_EXT},
> >>tomcat.properties.${LEONARDO_EXT}. They all contain configurational info
> >>specific to that user's current profile (set by LEONARD_EXT).
> >>
> >>4. Th

Re: How do you install a JAR with source

2006-03-14 Thread Wayne Fay
This might also help?

"mvn source:jar javadoc:jar repository:bundle-create"
From: http://maven.apache.org/guides/mini/guide-ibiblio-upload.html

But this just prepares a bundle you can then upload to Maven JIRA for
deployment in Ibiblio. Not sure if you can use that same bundle to
deploy locally... We're just installing binaries in our local repo at
this point.

Definitely respond back to the list when you get it working, so the
rest of us know how to do it properly.

Wayne


On 3/14/06, dan tran <[EMAIL PROTECTED]> wrote:
> try it with -DperformRelease=true, i found this in release plugin.
>
> -D
>
> On 3/14/06, Aaron Freeman <[EMAIL PROTECTED]> wrote:
> >
> > I am new to Maven and trying to build a JAR from one of my projects
> > and insall it in my local repository. I am able to build it and
> > itstall it just fine, but I would like to include the source in the
> > repository also. I haven't been able to find anything that would tell
> > me how to do this. Can anyone tell me how, or where I can get some
> > information about it.
> >
> > Also, is there some place I can get some good information about
> > creating archtypes. I didn't find much on the Maven web site.
> >
> > Thanks!
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


Re: [m2] Has anyone gotten the maven-taglib plugin to produce taglibdoc?

2006-03-14 Thread Stephen Duncan
It says on the documentation page: 
http://maven-taglib.sourceforge.net/m2/overview.html

(Though it incorrectly leaves out  around the  inside
of )

-Stephen

On 3/14/06, Bernd Bohmann <[EMAIL PROTECTED]> wrote:
> How about with
>
> http://maven-taglib.sourceforge.net/m2/
>
> net.sourceforge.maven-taglib
> maven-taglib-plugin
>
> Bernd
>
> KC Baltz schrieb:
> > I'd like to produce taglibdoc for our custom taglibs (E.g. 
> > http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html).  It 
> > looks like someone created a Maven plugin for doing just that ( 
> > http://sourceforge.net/projects/maven-taglib/), but I can't get it to work 
> > in Maven2.  Anyone else have success?
> >
> > K.C.
> >
>
>
> -
> 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]



[M2] Findbugs plugin results to stacktrace

2006-03-14 Thread Rik Bosman
Hi to All,

Adding the following snippet to the reporting section of my pom results in a
stacktrace:
Configuring the treshold specifically also fails.
Maven 2.0.2

Any suggestions?

Rik


  org.codehaus.mojo
  findbugs-maven-plugin
  1.0-SNAPSHOT
 

[INFO] Generate "Maven FindBugs Report" report.
[INFO]   No threshold provided, using default threshold.
Jaws uses plugin: \C:\Documents and
Settings\BosmanGH\.m2\repository\findbugs\coreplugin\0.9.3\coreplugin-
0.9.3.jar
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] org/jaxen/JaxenException
[INFO]

[INFO] Trace
java.lang.NoClassDefFoundError: org/jaxen/JaxenException
 at org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
 at org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)
 at org.dom4j.tree.AbstractNode.valueOf(AbstractNode.java:189)
 at edu.umd.cs.findbugs.PluginLoader.init(PluginLoader.java:125)
 at edu.umd.cs.findbugs.PluginLoader.(PluginLoader.java:88)
 at edu.umd.cs.findbugs.DetectorFactoryCollection.loadPlugins(
DetectorFactoryCollection.java:188)
 at edu.umd.cs.findbugs.DetectorFactoryCollection.(
DetectorFactoryCollection.java:52)
 at edu.umd.cs.findbugs.DetectorFactoryCollection.instance(
DetectorFactoryCollection.java:73)
 at edu.umd.cs.findbugs.config.UserPreferences.enableAllDetectors(
UserPreferences.java:314)
 at org.codehaus.mojo.findbugs.FindBugsMojo.initialiseFindBugs(
FindBugsMojo.java:312)
 at org.codehaus.mojo.findbugs.FindBugsMojo.executeReport(FindBugsMojo.java
:254)
 at org.apache.maven.reporting.AbstractMavenReport.generate(
AbstractMavenReport.java:98)
 at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(
SiteMojo.java:1055)
 at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:397)
 at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:415)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:531)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:472)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:451)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:303)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:139)
 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:249)
 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]
--


RE: [M2] IntelliJ Idea plugin and jdkName

2006-03-14 Thread Johann Reyes
Hello Andreas,

The correct values would be:

  
org.apache.maven.plugins
maven-idea-plugin

  1.4

  

Regards

Johann Reyes


-Original Message-
From: Andreas Guther [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 4:15 PM
To: Maven Users List
Subject: [M2] IntelliJ Idea plugin and jdkName

Hi,

Does anyone know how to configure the idea plug-in to   use a specific
JDK version?

The documentation reads to set the jdkName, but does not tell where:
http://maven.apache.org/plugins/maven-idea-plugin/idea-mojo.html

I tried to configure the plug-in in my build section with the following,
but that seems not the right groupId and artifactId.  What are the
correct values?


idea
idea

1.4



Thanks in advance,

Andreas





-
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: User Profiles

2006-03-14 Thread Sergei Dubov
The point is of course that I am talking about properties files specific 
to the application and not the build process. Just wanted to make it clear.


Serge

Wayne Fay wrote:

Simon is right... I simply went "whole hog" with Maven2 as much as
possible, and except for the Oc4j deployment via Ant, I have
eliminated all "old" ant *.properties files in favor of profiles.

So instead of various properties files in various places in my project
filesystem, I've got it all contained in a single profile.xml file,
and I'm much happier with the centralized management of all properties
used in my project.

Wayne


On 3/14/06, Simon Kitching <[EMAIL PROTECTED]> wrote:


While Wayne's suggestion is probably better "maven style", I expect you
could also use the maven-antrun-plugin to execute an external ant task
at the process-resources phase.
http://maven.apache.org/plugins/maven-antrun-plugin/
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
http://maven.apache.org/guides/mini/guide-configuring-plugins.html

On Tue, 2006-03-14 at 11:10 -0600, Wayne Fay wrote:


Well first off, those properties files need to be placed in
src/main/resources. Then you need to learn about filtering. ;-)

So what you do is something along these lines...
/src/main/resources/c3p0.properties
blah=abc
yadda=xyz
server=${c3p0.server}

Then in pom.xml:
 
   
 
   src/main/resources
   true
 
   
 

And then the profile & properties data in pom.xml or profile.xml.

Then finally:
mvn package -P name1

And the proper variable values will be substituted into your
properties files during the filter step.

HTH.
Wayne

On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:


But those properties files are referenced by Spring configurations in
turn, c3p0.properties is the default for c3p0 connection pool
configuration. This all happens after deploying in Tomcat. How would
Spring know about Maven configurations when the war file is deployed on
a remote server? :-)

I am open to other approaches but they have to work for one-stop builds.
I clearly want to be able to run a single command and have the app
deployed to a remote server with all the necessary configs.

Serge

Wayne Fay wrote:


With a new build environment comes changes to your existing build.
When you moved to Ant, you made these properties files. Now it might
be time to change again if you move to Maven. So just realize upfront
that you will probably have to change.

The easiest way to achieve your requirements is through the use of
profiles either in pom.xml, settings.xml, or profiles.xml file. Then
you call "mvn -P name1 package" and it uses the variable values you
have defined in the "name1" profile.
See this page for more info:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

If you want to keep your existing properties files and build process,
stay in Ant. You could probably write some complicated plugin to
duplicate what you already have in ANT, but I wouldn't do it.

Wayne


On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:



I am still trying to get my head around the concept of user profiles
(using Maven2). Here is what I do in Ant:

1. Let's say we have a project called "leonardo".

2. To work with my Ant process the user is required to have a directory
called $HOME/.leonardorc and an environment variable called
$LEONARDO_EXT that contains his current configurational profile.

3. $HOME/.leonardorc contains customer properties files. Let's say:
db.properties.${LEONARDO_EXT}, c3p0.properties.${LEONARDO_EXT},
tomcat.properties.${LEONARDO_EXT}. They all contain configurational info
specific to that user's current profile (set by LEONARD_EXT).

4. The moment a user tries to do something (build, deploy, whatever).
Some of those files will be copied to the "right" place in the project
repository, and some will be directly referenced in the Ant build
script. Of course, the extension of ${LEONARDO_EXT} will be removed upon
copy.

I'd really appreciate if somebody could explain to me how to achieve the
same flexibility with Maven. Note: the above-mentioned property files
have to be the entities that specify the user configuration.

Thanks a lot beforehand!

Serge





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



[M2] IntelliJ Idea plugin and jdkName

2006-03-14 Thread Andreas Guther
Hi,

Does anyone know how to configure the idea plug-in to   use a specific
JDK version?

The documentation reads to set the jdkName, but does not tell where:
http://maven.apache.org/plugins/maven-idea-plugin/idea-mojo.html

I tried to configure the plug-in in my build section with the following,
but that seems not the right groupId and artifactId.  What are the
correct values?


idea
idea

1.4



Thanks in advance,

Andreas





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



RE: [M2] Project Lifecycle generate-sources -- how compile?

2006-03-14 Thread Andreas Guther
Simon,

Thank you very much.  

Andreas


-Original Message-
From: Simon Kitching [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 11:17 AM
To: Maven Users List
Subject: Re: [M2] Project Lifecycle generate-sources -- how compile?

I believe the codehaus build-helper plugin does this:
  http://mojo.codehaus.org/build-helper-maven-plugin/


On Tue, 2006-03-14 at 19:28 +0100, Mattias Olofsson wrote:
>  
> I looked in the sourcecode in the xdoclet plugin hosted at
http://mojo.codehaus.org/. 
> 
>   
> 
>
http://cvs.codehaus.org/viewrep/~raw,r=1.4/xdoclet/maven2-plugin/src/mai
n/java/org/codehaus/xdoclet/XDocletMojo.java  
> 
>
> 
> It seems that you only have to invoke the addCompileSourceRoot method
on the MavenProject object. You just have to declare the MavenProject
object as an instance and it will be populated by the IC plugin
framework in maven.  
> 
>
> 
>   /**  
> 
>* @parameter expression="${project}"  
> 
>* @required  
> 
>* @readonly  
> 
>*/  
> 
>   private MavenProject project;  
> 
>
> 
>   /**  
> 
>* @parameter
expression="${project.build.directory}/generated-sources/xdoclet"  
> 
>* @required  
> 
>*/  
> 
>   private String generatedSourcesDirectory;  
> 
>
> 
>
> 
> project.addCompileSourceRoot( generatedSourcesDirectory );  
> 
>
> 
>
> 
>  
>   _  
> 
>   From: Andreas Guther [mailto:[EMAIL PROTECTED]
> To: Maven Users List [mailto:[EMAIL PROTECTED]
> Sent: Tue, 14 Mar 2006 19:01:26 +0100
> Subject: [M2] Project Lifecycle generate-sources -- how compile?
> 
> Hi,
> 
> I am still having problems with the project lifecycle configuration.
> 
> I succeeded in having a source code generating plug-in for jaxb to
> generate source during the generate-sources lifecycle phase.
> Unfortunately the sources do not get compiled. They are generated into
> the folder target/jaxb-sources which is obviously unknown to maven 2.
> 
> How do I tell Maven 2 that it has to include the additional folder
into
> the build?
> 
> Thanks again for any help.
> 
> Andreas
> 
> 
> 
> 
> -
> 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: How do you install a JAR with source

2006-03-14 Thread dan tran
try it with -DperformRelease=true, i found this in release plugin.

-D

On 3/14/06, Aaron Freeman <[EMAIL PROTECTED]> wrote:
>
> I am new to Maven and trying to build a JAR from one of my projects
> and insall it in my local repository. I am able to build it and
> itstall it just fine, but I would like to include the source in the
> repository also. I haven't been able to find anything that would tell
> me how to do this. Can anyone tell me how, or where I can get some
> information about it.
>
> Also, is there some place I can get some good information about
> creating archtypes. I didn't find much on the Maven web site.
>
> Thanks!
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


How do you install a JAR with source

2006-03-14 Thread Aaron Freeman
I am new to Maven and trying to build a JAR from one of my projects
and insall it in my local repository. I am able to build it and
itstall it just fine, but I would like to include the source in the
repository also. I haven't been able to find anything that would tell
me how to do this. Can anyone tell me how, or where I can get some
information about it.

Also, is there some place I can get some good information about
creating archtypes. I didn't find much on the Maven web site.

Thanks!

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



Re: [m2] library project

2006-03-14 Thread Mario Ivankovits
Milos Kleint schrieb:
> check out the maven-assebly-plugin. it does exactly what you want I think..
>   
Thanks, will have a look at it!


Ciao,
Mario


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



Re: [m2] library project

2006-03-14 Thread Milos Kleint
check out the maven-assebly-plugin. it does exactly what you want I think..

Milos

On 3/14/06, Mario Ivankovits <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Is it possible to create a "library project"?
>
> Its indention is to pack all the dependend libraries into one jar/war
> and have all other projects depend on them.
>
> The idea is that I do not have to bundle all libraries in my war.
> The application changes much more than the used libraries - this will
> significantly reduce the size if I deploy the application.
>
> Any idea?
>
> Ciao,
> Mario
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



[m2] library project

2006-03-14 Thread Mario Ivankovits
Hi!

Is it possible to create a "library project"?

Its indention is to pack all the dependend libraries into one jar/war
and have all other projects depend on them.

The idea is that I do not have to bundle all libraries in my war.
The application changes much more than the used libraries - this will
significantly reduce the size if I deploy the application.

Any idea?

Ciao,
Mario



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



ConcurrentModificationException when building with maven 1, CVS and Windows

2006-03-14 Thread Ryan, Scott D
I noticed a posting on JIRA for this issue but no activity since
November.  We were getting this problem on some of our projects but it
seems now that non of our projects will build due to this error.  Has
anyone found a cause or workaround for this issue.  

java.util.ConcurrentModificationException
at
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:448)
at java.util.AbstractList$Itr.next(AbstractList.java:419)
at
org.apache.maven.continuum.execution.maven.m1.DefaultMavenOneMetadataHel
per.mapMetadata(DefaultMavenOneMetadataHelper.java:288)
at
org.apache.maven.continuum.execution.maven.m1.MavenOneBuildExecutor.upda
teProjectFromCheckOut(MavenOneBuildExecutor.java:108)
at
org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectory
ContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction
.java:62)
at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(
DefaultBuildController.java:169)
at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.exec
uteTask(BuildProjectTaskExecutor.java:53)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Execut
orRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:534)

http://jira.codehaus.org/browse/CONTINUUM-441

 


Scott D. Ryan


--

This message is intended only for the personal and confidential use of the 
designated recipient(s) named. 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 Aurora Loan 
Services. 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: User Profiles

2006-03-14 Thread Wayne Fay
Simon is right... I simply went "whole hog" with Maven2 as much as
possible, and except for the Oc4j deployment via Ant, I have
eliminated all "old" ant *.properties files in favor of profiles.

So instead of various properties files in various places in my project
filesystem, I've got it all contained in a single profile.xml file,
and I'm much happier with the centralized management of all properties
used in my project.

Wayne


On 3/14/06, Simon Kitching <[EMAIL PROTECTED]> wrote:
> While Wayne's suggestion is probably better "maven style", I expect you
> could also use the maven-antrun-plugin to execute an external ant task
> at the process-resources phase.
> http://maven.apache.org/plugins/maven-antrun-plugin/
> http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
> http://maven.apache.org/guides/mini/guide-configuring-plugins.html
>
> On Tue, 2006-03-14 at 11:10 -0600, Wayne Fay wrote:
> > Well first off, those properties files need to be placed in
> > src/main/resources. Then you need to learn about filtering. ;-)
> >
> > So what you do is something along these lines...
> > /src/main/resources/c3p0.properties
> > blah=abc
> > yadda=xyz
> > server=${c3p0.server}
> >
> > Then in pom.xml:
> >   
> > 
> >   
> > src/main/resources
> > true
> >   
> > 
> >   
> >
> > And then the profile & properties data in pom.xml or profile.xml.
> >
> > Then finally:
> > mvn package -P name1
> >
> > And the proper variable values will be substituted into your
> > properties files during the filter step.
> >
> > HTH.
> > Wayne
> >
> > On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> > > But those properties files are referenced by Spring configurations in
> > > turn, c3p0.properties is the default for c3p0 connection pool
> > > configuration. This all happens after deploying in Tomcat. How would
> > > Spring know about Maven configurations when the war file is deployed on
> > > a remote server? :-)
> > >
> > > I am open to other approaches but they have to work for one-stop builds.
> > > I clearly want to be able to run a single command and have the app
> > > deployed to a remote server with all the necessary configs.
> > >
> > > Serge
> > >
> > > Wayne Fay wrote:
> > > > With a new build environment comes changes to your existing build.
> > > > When you moved to Ant, you made these properties files. Now it might
> > > > be time to change again if you move to Maven. So just realize upfront
> > > > that you will probably have to change.
> > > >
> > > > The easiest way to achieve your requirements is through the use of
> > > > profiles either in pom.xml, settings.xml, or profiles.xml file. Then
> > > > you call "mvn -P name1 package" and it uses the variable values you
> > > > have defined in the "name1" profile.
> > > > See this page for more info:
> > > > http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> > > >
> > > > If you want to keep your existing properties files and build process,
> > > > stay in Ant. You could probably write some complicated plugin to
> > > > duplicate what you already have in ANT, but I wouldn't do it.
> > > >
> > > > Wayne
> > > >
> > > >
> > > > On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> > > >
> > > >>I am still trying to get my head around the concept of user profiles
> > > >>(using Maven2). Here is what I do in Ant:
> > > >>
> > > >>1. Let's say we have a project called "leonardo".
> > > >>
> > > >>2. To work with my Ant process the user is required to have a directory
> > > >>called $HOME/.leonardorc and an environment variable called
> > > >>$LEONARDO_EXT that contains his current configurational profile.
> > > >>
> > > >>3. $HOME/.leonardorc contains customer properties files. Let's say:
> > > >>db.properties.${LEONARDO_EXT}, c3p0.properties.${LEONARDO_EXT},
> > > >>tomcat.properties.${LEONARDO_EXT}. They all contain configurational info
> > > >>specific to that user's current profile (set by LEONARD_EXT).
> > > >>
> > > >>4. The moment a user tries to do something (build, deploy, whatever).
> > > >>Some of those files will be copied to the "right" place in the project
> > > >>repository, and some will be directly referenced in the Ant build
> > > >>script. Of course, the extension of ${LEONARDO_EXT} will be removed upon
> > > >>copy.
> > > >>
> > > >>I'd really appreciate if somebody could explain to me how to achieve the
> > > >>same flexibility with Maven. Note: the above-mentioned property files
> > > >>have to be the entities that specify the user configuration.
> > > >>
> > > >>Thanks a lot beforehand!
> > > >>
> > > >>Serge
> > > >>
> > > >>
> > > >>
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional com

Re: User Profiles

2006-03-14 Thread Simon Kitching
While Wayne's suggestion is probably better "maven style", I expect you
could also use the maven-antrun-plugin to execute an external ant task
at the process-resources phase.
http://maven.apache.org/plugins/maven-antrun-plugin/
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
http://maven.apache.org/guides/mini/guide-configuring-plugins.html

On Tue, 2006-03-14 at 11:10 -0600, Wayne Fay wrote:
> Well first off, those properties files need to be placed in
> src/main/resources. Then you need to learn about filtering. ;-)
> 
> So what you do is something along these lines...
> /src/main/resources/c3p0.properties
> blah=abc
> yadda=xyz
> server=${c3p0.server}
> 
> Then in pom.xml:
>   
> 
>   
> src/main/resources
> true
>   
> 
>   
> 
> And then the profile & properties data in pom.xml or profile.xml.
> 
> Then finally:
> mvn package -P name1
> 
> And the proper variable values will be substituted into your
> properties files during the filter step.
> 
> HTH.
> Wayne
> 
> On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> > But those properties files are referenced by Spring configurations in
> > turn, c3p0.properties is the default for c3p0 connection pool
> > configuration. This all happens after deploying in Tomcat. How would
> > Spring know about Maven configurations when the war file is deployed on
> > a remote server? :-)
> >
> > I am open to other approaches but they have to work for one-stop builds.
> > I clearly want to be able to run a single command and have the app
> > deployed to a remote server with all the necessary configs.
> >
> > Serge
> >
> > Wayne Fay wrote:
> > > With a new build environment comes changes to your existing build.
> > > When you moved to Ant, you made these properties files. Now it might
> > > be time to change again if you move to Maven. So just realize upfront
> > > that you will probably have to change.
> > >
> > > The easiest way to achieve your requirements is through the use of
> > > profiles either in pom.xml, settings.xml, or profiles.xml file. Then
> > > you call "mvn -P name1 package" and it uses the variable values you
> > > have defined in the "name1" profile.
> > > See this page for more info:
> > > http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> > >
> > > If you want to keep your existing properties files and build process,
> > > stay in Ant. You could probably write some complicated plugin to
> > > duplicate what you already have in ANT, but I wouldn't do it.
> > >
> > > Wayne
> > >
> > >
> > > On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> > >
> > >>I am still trying to get my head around the concept of user profiles
> > >>(using Maven2). Here is what I do in Ant:
> > >>
> > >>1. Let's say we have a project called "leonardo".
> > >>
> > >>2. To work with my Ant process the user is required to have a directory
> > >>called $HOME/.leonardorc and an environment variable called
> > >>$LEONARDO_EXT that contains his current configurational profile.
> > >>
> > >>3. $HOME/.leonardorc contains customer properties files. Let's say:
> > >>db.properties.${LEONARDO_EXT}, c3p0.properties.${LEONARDO_EXT},
> > >>tomcat.properties.${LEONARDO_EXT}. They all contain configurational info
> > >>specific to that user's current profile (set by LEONARD_EXT).
> > >>
> > >>4. The moment a user tries to do something (build, deploy, whatever).
> > >>Some of those files will be copied to the "right" place in the project
> > >>repository, and some will be directly referenced in the Ant build
> > >>script. Of course, the extension of ${LEONARDO_EXT} will be removed upon
> > >>copy.
> > >>
> > >>I'd really appreciate if somebody could explain to me how to achieve the
> > >>same flexibility with Maven. Note: the above-mentioned property files
> > >>have to be the entities that specify the user configuration.
> > >>
> > >>Thanks a lot beforehand!
> > >>
> > >>Serge
> > >>
> > >>
> > >>
> >
> > -
> > 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] Project Lifecycle generate-sources -- how compile?

2006-03-14 Thread Simon Kitching
I believe the codehaus build-helper plugin does this:
  http://mojo.codehaus.org/build-helper-maven-plugin/


On Tue, 2006-03-14 at 19:28 +0100, Mattias Olofsson wrote:
>  
> I looked in the sourcecode in the xdoclet plugin hosted at 
> http://mojo.codehaus.org/. 
> 
>   
> 
> http://cvs.codehaus.org/viewrep/~raw,r=1.4/xdoclet/maven2-plugin/src/main/java/org/codehaus/xdoclet/XDocletMojo.java
>   
> 
>
> 
> It seems that you only have to invoke the addCompileSourceRoot method on the 
> MavenProject object. You just have to declare the MavenProject object as an 
> instance and it will be populated by the IC plugin framework in maven.  
> 
>
> 
>   /**  
> 
>* @parameter expression="${project}"  
> 
>* @required  
> 
>* @readonly  
> 
>*/  
> 
>   private MavenProject project;  
> 
>
> 
>   /**  
> 
>* @parameter 
> expression="${project.build.directory}/generated-sources/xdoclet"  
> 
>* @required  
> 
>*/  
> 
>   private String generatedSourcesDirectory;  
> 
>
> 
>
> 
> project.addCompileSourceRoot( generatedSourcesDirectory );  
> 
>
> 
>
> 
>  
>   _  
> 
>   From: Andreas Guther [mailto:[EMAIL PROTECTED]
> To: Maven Users List [mailto:[EMAIL PROTECTED]
> Sent: Tue, 14 Mar 2006 19:01:26 +0100
> Subject: [M2] Project Lifecycle generate-sources -- how compile?
> 
> Hi,
> 
> I am still having problems with the project lifecycle configuration.
> 
> I succeeded in having a source code generating plug-in for jaxb to
> generate source during the generate-sources lifecycle phase.
> Unfortunately the sources do not get compiled. They are generated into
> the folder target/jaxb-sources which is obviously unknown to maven 2.
> 
> How do I tell Maven 2 that it has to include the additional folder into
> the build?
> 
> Thanks again for any help.
> 
> Andreas
> 
> 
> 
> 
> -
> 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] Has anyone gotten the maven-taglib plugin to produce taglibdoc?

2006-03-14 Thread Bernd Bohmann

Ask google for taglib maven2 plugin :-)

Bernd

KC Baltz schrieb:
Thanks, that worked.  I had been trying with groupId "maven-taglib".  

How did you determine the groupId?  Is it just assumed from the website address "maven-taglib.sourceforge.net" == net.sourceforge.maven-taglib ?  I had searched ibiblio and the first hits  were for the non-sourceforge version.  


K.C.



-Original Message-
From: Bernd Bohmann [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 8:38 AM
To: Maven Users List
Subject: Re: [m2] Has anyone gotten the maven-taglib plugin to produce
taglibdoc?


How about with

http://maven-taglib.sourceforge.net/m2/

net.sourceforge.maven-taglib
maven-taglib-plugin

Bernd

KC Baltz schrieb:


I'd like to produce taglibdoc for our custom taglibs (E.g. 
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html).  It looks 
like someone created a Maven plugin for doing just that ( 
http://sourceforge.net/projects/maven-taglib/), but I can't get it to work in 
Maven2.  Anyone else have success?

K.C.





-
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: [m2] Has anyone gotten the maven-taglib plugin to produce taglibdoc?

2006-03-14 Thread KC Baltz
Thanks, that worked.  I had been trying with groupId "maven-taglib".  

How did you determine the groupId?  Is it just assumed from the website address 
"maven-taglib.sourceforge.net" == net.sourceforge.maven-taglib ?  I had 
searched ibiblio and the first hits  were for the non-sourceforge version.  

K.C.



-Original Message-
From: Bernd Bohmann [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 8:38 AM
To: Maven Users List
Subject: Re: [m2] Has anyone gotten the maven-taglib plugin to produce
taglibdoc?


How about with

http://maven-taglib.sourceforge.net/m2/

net.sourceforge.maven-taglib
maven-taglib-plugin

Bernd

KC Baltz schrieb:
> I'd like to produce taglibdoc for our custom taglibs (E.g. 
> http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html).  It looks 
> like someone created a Maven plugin for doing just that ( 
> http://sourceforge.net/projects/maven-taglib/), but I can't get it to work in 
> Maven2.  Anyone else have success?
>  
> K.C.
> 


-
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] Project Lifecycle generate-sources -- how compile?

2006-03-14 Thread Mattias Olofsson
 

I looked in the sourcecode in the xdoclet plugin hosted at 
http://mojo.codehaus.org/. 

  

http://cvs.codehaus.org/viewrep/~raw,r=1.4/xdoclet/maven2-plugin/src/main/java/org/codehaus/xdoclet/XDocletMojo.java
  

   

It seems that you only have to invoke the addCompileSourceRoot method on the 
MavenProject object. You just have to declare the MavenProject object as an 
instance and it will be populated by the IC plugin framework in maven.  

   

  /**  

   * @parameter expression="${project}"  

   * @required  

   * @readonly  

   */  

  private MavenProject project;  

   

  /**  

   * @parameter 
expression="${project.build.directory}/generated-sources/xdoclet"  

   * @required  

   */  

  private String generatedSourcesDirectory;  

   

   

project.addCompileSourceRoot( generatedSourcesDirectory );  

   

   

 
  _  

  From: Andreas Guther [mailto:[EMAIL PROTECTED]
To: Maven Users List [mailto:[EMAIL PROTECTED]
Sent: Tue, 14 Mar 2006 19:01:26 +0100
Subject: [M2] Project Lifecycle generate-sources -- how compile?

Hi,

I am still having problems with the project lifecycle configuration.

I succeeded in having a source code generating plug-in for jaxb to
generate source during the generate-sources lifecycle phase.
Unfortunately the sources do not get compiled. They are generated into
the folder target/jaxb-sources which is obviously unknown to maven 2.

How do I tell Maven 2 that it has to include the additional folder into
the build?

Thanks again for any help.

Andreas




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

  
   
 

Re: Maven 2.0.3 availability

2006-03-14 Thread Alexandre Poitras
Won't be long. Here's the vote results just 22 hours (according to gmail :))

Binding: 5 (John, Vincent, Carlos, Brett, Emmanuel)
Non-Binding: 7 (Fabrizio, Alex, Vincent S, Dan, Edwin, Brian, Jesse)

I'm going to start working on the release now. It should be out tomorrow
at the latest.


On 3/14/06, Mayorgaadame, Alex <[EMAIL PROTECTED]> wrote:
> Anyone have a tentative date?
>
> I need it to put some due dates to my project. Any approximates would be 
> helpful.
>
> Best regards,
> Alex Mayorga Adame
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



Re: [M2] How to checkout working maven 2.0.2 from svn

2006-03-14 Thread Alexandre Poitras
http://maven.apache.org/guides/development/guide-building-m2.html

On 3/14/06, Szczepan Faber <[EMAIL PROTECTED]> wrote:
> There are no releases with sources, so I'd like to checkout 2.0.2 from
> svn. Can you provide exact svn command for this, please.
>
> I tried this one (and couple of others :> ):
> svn checkout http://svn.apache.org/repos/asf/maven/components/trunk/
>
> But it depends on snapshot binaries that are NOT released to snapshot
> repositories, so most components don't compile.
>
> How to check out working (able to compile) source?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



[M2] Project Lifecycle generate-sources -- how compile?

2006-03-14 Thread Andreas Guther
Hi,

I am still having problems with the project lifecycle configuration.

I succeeded in having a source code generating plug-in for jaxb to
generate source during the generate-sources lifecycle phase.
Unfortunately the sources do not get compiled.  They are generated into
the folder target/jaxb-sources which is obviously unknown to maven 2.

How do I tell Maven 2 that it has to include the additional folder into
the build?

Thanks again for any help.

Andreas




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



RE: [M2] Version-less jar files

2006-03-14 Thread Andreas Guther
The problem is that I am pretty new to Maven 2 and I was not aware that
I have to declare the dependency on the plugins section.  Once I moved
the dependency to the right spot,  I got the problem solved.

Andreas

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 9:19 AM
To: Maven Users List
Subject: Re: [M2] Version-less jar files

Mang, I think you don't understand the question. ;-)

Andreas, I have no idea how to handle the situation that a dependency
does not declare the versions of files it needs. If there was a
work-around in M1, I'd suspect there's a one for M2, I just don't know
what it would be.

Personally I'd avoid the issue altogether -- I'd grab the jaxb1
source, write my own pom with proper versions etc, and deploy it
internally for my coworkers to use instead of the non-versioned jaxb1
binary file.

Wayne


On 3/14/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote:
> Hi,
>
> 
>  
> 
>
> This lets you specify the final name without the version numbers on
the
> jar but I still think there's a version number attached to it in the
> repository.  The numbers only go away when the jars are packed into
wars
> or ears.
>
> _Mang Lau
>
>
>
>
>
> "Andreas Guther" <[EMAIL PROTECTED]>
> 03/14/2006 12:02 PM
> Please respond to
> "Maven Users List" 
>
>
> To
> "Maven Users List" 
> cc
>
> Subject
> [M2] Version-less jar files
>
>
>
>
>
>
> Hi,
>
> This is another Maven 2 question I am having problems finding the
> answer:
>
>
> How do I configure my maven 2 repository for jar files without a
version
> number in the file name?
>
>
> I have the problem that jaxb1 has in its manifest file version less
jar
> files in the Class-Path definition.  I have added to my repository
> versioned jars but it looks as if jaxb is not unable to locate the
> requested class.
>
> In maven 1 I could add an entry to the dependency that gave the jar
file
> name.  How does this work in Maven 2?
>
> Thanks in advance for any help.
>
> Andreas
>
>
>
>
> -
> 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 use scm from Java

2006-03-14 Thread Emmanuel Venisse

It isn't supported actually by providers maven-scm.

You can write a patch for providers.

Need to add a method in AbstractScmProvider that use listfiles command and 
implementations in providers

Emmanuel

Zsolt a écrit :

Thank you Emmanuel,

and how can I add new commands?

For example provider.listFiles...

Zsolt



-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 5:35 PM
To: scm-users@maven.apache.org
Subject: Re: How to use scm from Java

I must write a doc about it.

1- Create a manager that extends
org.apache.maven.scm.manager.AbstractScmManager
2- ScmProvider provider = manager.getProviderByUrl( scmUrl )
3- provider.checkout(...)

If you create your own manager, you'll need to add in it all providers, if
you don't want to do it,
you can add Plexus ScmManager like we do it in maven-scm-client

Emmanuel

Zsolt a écrit :


Hi,

how can I use maven-scm from Java.

For example I want to checkout something from CVS or Subversion fro my


Java


application instead of starting "cvs" or "svn" via shell.

Zsolt

















Maven 2.0.3 availability

2006-03-14 Thread Mayorgaadame, Alex
Anyone have a tentative date?

I need it to put some due dates to my project. Any approximates would be 
helpful.

Best regards,
Alex Mayorga Adame

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



RE : Pulling in pages from another WAR with maven 2

2006-03-14 Thread Olivier Lamy
Look http://mojo.codehaus.org/dependency-maven-plugin/introduction.html.
Try
http://mojo.codehaus.org/dependency-maven-plugin/unpack-dependencies-moj
o.html

- Olivier

-Message d'origine-
De : Andrew Watters [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 14 mars 2006 18:11
À : Maven Users List
Objet : Pulling in pages from another WAR with maven 2


Hi

I am trying to build a WAR which needs to includes pages and other 
resources that are packaged as a WAR stored in my local repository. Is 
there a built in way to pull down WARs from the repository and unpack 
and copy files? Or should I use ant (in maven)?

Any suggestions would be appreciated.

Regards
Andrew


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



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



RE: How to use scm from Java

2006-03-14 Thread Zsolt
Thank you Emmanuel,

and how can I add new commands?

For example provider.listFiles...

Zsolt

>-Original Message-
>From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 14, 2006 5:35 PM
>To: scm-users@maven.apache.org
>Subject: Re: How to use scm from Java
>
>I must write a doc about it.
>
>1- Create a manager that extends
>org.apache.maven.scm.manager.AbstractScmManager
>2- ScmProvider provider = manager.getProviderByUrl( scmUrl )
>3- provider.checkout(...)
>
>If you create your own manager, you'll need to add in it all providers, if
>you don't want to do it,
>you can add Plexus ScmManager like we do it in maven-scm-client
>
>Emmanuel
>
>Zsolt a écrit :
>> Hi,
>>
>> how can I use maven-scm from Java.
>>
>> For example I want to checkout something from CVS or Subversion fro my
>Java
>> application instead of starting "cvs" or "svn" via shell.
>>
>> Zsolt
>>
>>
>>
>>
>>
>>
>>



Pulling in pages from another WAR with maven 2

2006-03-14 Thread Andrew Watters

Hi

I am trying to build a WAR which needs to includes pages and other 
resources that are packaged as a WAR stored in my local repository. Is 
there a built in way to pull down WARs from the repository and unpack 
and copy files? Or should I use ant (in maven)?


Any suggestions would be appreciated.

Regards
Andrew


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



Re: [M2] Version-less jar files

2006-03-14 Thread Wayne Fay
Mang, I think you don't understand the question. ;-)

Andreas, I have no idea how to handle the situation that a dependency
does not declare the versions of files it needs. If there was a
work-around in M1, I'd suspect there's a one for M2, I just don't know
what it would be.

Personally I'd avoid the issue altogether -- I'd grab the jaxb1
source, write my own pom with proper versions etc, and deploy it
internally for my coworkers to use instead of the non-versioned jaxb1
binary file.

Wayne


On 3/14/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote:
> Hi,
>
> 
>  
> 
>
> This lets you specify the final name without the version numbers on the
> jar but I still think there's a version number attached to it in the
> repository.  The numbers only go away when the jars are packed into wars
> or ears.
>
> _Mang Lau
>
>
>
>
>
> "Andreas Guther" <[EMAIL PROTECTED]>
> 03/14/2006 12:02 PM
> Please respond to
> "Maven Users List" 
>
>
> To
> "Maven Users List" 
> cc
>
> Subject
> [M2] Version-less jar files
>
>
>
>
>
>
> Hi,
>
> This is another Maven 2 question I am having problems finding the
> answer:
>
>
> How do I configure my maven 2 repository for jar files without a version
> number in the file name?
>
>
> I have the problem that jaxb1 has in its manifest file version less jar
> files in the Class-Path definition.  I have added to my repository
> versioned jars but it looks as if jaxb is not unable to locate the
> requested class.
>
> In maven 1 I could add an entry to the dependency that gave the jar file
> name.  How does this work in Maven 2?
>
> Thanks in advance for any help.
>
> Andreas
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


[M2] How to checkout working maven 2.0.2 from svn

2006-03-14 Thread Szczepan Faber
There are no releases with sources, so I'd like to checkout 2.0.2 from
svn. Can you provide exact svn command for this, please.

I tried this one (and couple of others :> ):
svn checkout http://svn.apache.org/repos/asf/maven/components/trunk/

But it depends on snapshot binaries that are NOT released to snapshot
repositories, so most components don't compile.

How to check out working (able to compile) source?

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



Re: [M2] Version-less jar files

2006-03-14 Thread Mang Jun Lau
Hi,


  


This lets you specify the final name without the version numbers on the 
jar but I still think there's a version number attached to it in the 
repository.  The numbers only go away when the jars are packed into wars 
or ears.

_Mang Lau





"Andreas Guther" <[EMAIL PROTECTED]> 
03/14/2006 12:02 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
[M2] Version-less jar files






Hi,

This is another Maven 2 question I am having problems finding the
answer:


How do I configure my maven 2 repository for jar files without a version
number in the file name?


I have the problem that jaxb1 has in its manifest file version less jar
files in the Class-Path definition.  I have added to my repository
versioned jars but it looks as if jaxb is not unable to locate the
requested class.

In maven 1 I could add an entry to the dependency that gave the jar file
name.  How does this work in Maven 2?

Thanks in advance for any help.

Andreas




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




Re: User Profiles

2006-03-14 Thread Wayne Fay
Well first off, those properties files need to be placed in
src/main/resources. Then you need to learn about filtering. ;-)

So what you do is something along these lines...
/src/main/resources/c3p0.properties
blah=abc
yadda=xyz
server=${c3p0.server}

Then in pom.xml:
  

  
src/main/resources
true
  

  

And then the profile & properties data in pom.xml or profile.xml.

Then finally:
mvn package -P name1

And the proper variable values will be substituted into your
properties files during the filter step.

HTH.
Wayne

On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> But those properties files are referenced by Spring configurations in
> turn, c3p0.properties is the default for c3p0 connection pool
> configuration. This all happens after deploying in Tomcat. How would
> Spring know about Maven configurations when the war file is deployed on
> a remote server? :-)
>
> I am open to other approaches but they have to work for one-stop builds.
> I clearly want to be able to run a single command and have the app
> deployed to a remote server with all the necessary configs.
>
> Serge
>
> Wayne Fay wrote:
> > With a new build environment comes changes to your existing build.
> > When you moved to Ant, you made these properties files. Now it might
> > be time to change again if you move to Maven. So just realize upfront
> > that you will probably have to change.
> >
> > The easiest way to achieve your requirements is through the use of
> > profiles either in pom.xml, settings.xml, or profiles.xml file. Then
> > you call "mvn -P name1 package" and it uses the variable values you
> > have defined in the "name1" profile.
> > See this page for more info:
> > http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> >
> > If you want to keep your existing properties files and build process,
> > stay in Ant. You could probably write some complicated plugin to
> > duplicate what you already have in ANT, but I wouldn't do it.
> >
> > Wayne
> >
> >
> > On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> >
> >>I am still trying to get my head around the concept of user profiles
> >>(using Maven2). Here is what I do in Ant:
> >>
> >>1. Let's say we have a project called "leonardo".
> >>
> >>2. To work with my Ant process the user is required to have a directory
> >>called $HOME/.leonardorc and an environment variable called
> >>$LEONARDO_EXT that contains his current configurational profile.
> >>
> >>3. $HOME/.leonardorc contains customer properties files. Let's say:
> >>db.properties.${LEONARDO_EXT}, c3p0.properties.${LEONARDO_EXT},
> >>tomcat.properties.${LEONARDO_EXT}. They all contain configurational info
> >>specific to that user's current profile (set by LEONARD_EXT).
> >>
> >>4. The moment a user tries to do something (build, deploy, whatever).
> >>Some of those files will be copied to the "right" place in the project
> >>repository, and some will be directly referenced in the Ant build
> >>script. Of course, the extension of ${LEONARDO_EXT} will be removed upon
> >>copy.
> >>
> >>I'd really appreciate if somebody could explain to me how to achieve the
> >>same flexibility with Maven. Note: the above-mentioned property files
> >>have to be the entities that specify the user configuration.
> >>
> >>Thanks a lot beforehand!
> >>
> >>Serge
> >>
> >>
> >>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [M2] how to setup proxy in POM?

2006-03-14 Thread Szczepan Faber
> Running Maven from the command line is the ONE TRUE TEST

Agreed :) but...
in our environment cruise control does it, so ONE TRUE TEST is fired
many times a day and on nightly build.

> Also not everyone likes the same IDE. We have people using Eclipse

Sure, but everyone likse IDE that speeds the development. So no matter
what you use (IDEA, eclipse, ...) it is recommended to take full
advantage of plugins :)

> It also means we are not tied to one IDE (though I think everyone here uses 
> Eclipse)

We neither. We don't allow to commit IDE-specific files to SCM; you
can create eclipse config from POM. But you are free to use any plugin
you want and I deeply believe that feasibilty of firing maven from IDE
is a time-saving solution


On 3/14/06, Siegmann Daniel, NY <[EMAIL PROTECTED]> wrote:
> > > > Everything else (build, run, jar:install, tests) is
> > > > run with 'maven xyz' from command line, it's easier to manage.
> > >
> > > Can you explain how com it may be easier to manage? In my
> > opinion it
> > > is just inconvenient. Imagine working this way with ant, which is
> > > tightly incorporated into Eclipse JDT.
> 
> >
> > Running Maven from the command line is the ONE TRUE TEST that
> > the project builds and deploys properly. (We deploy locally
> > and to centralized dev servers.)
> >
> > Wayne
>
> At my company we use Wayne's approach. If you want to develop in Eclipse
> just have Maven create the appropriate files. But our continuous integration
> server (running CruiseControl) runs Maven.
>
> This has worked well for us. I think it helps keep everyone's settings
> uniform. It also means we are not tied to one IDE (though I think everyone
> here uses Eclipse).
>
> --
> Daniel Siegmann
> FJA-US, Inc.
> (212) 840-2618 ext. 139
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



[M2] Version-less jar files

2006-03-14 Thread Andreas Guther
Hi,

This is another Maven 2 question I am having problems finding the
answer:


How do I configure my maven 2 repository for jar files without a version
number in the file name?


I have the problem that jaxb1 has in its manifest file version less jar
files in the Class-Path definition.  I have added to my repository
versioned jars but it looks as if jaxb is not unable to locate the
requested class.

In maven 1 I could add an entry to the dependency that gave the jar file
name.  How does this work in Maven 2?

Thanks in advance for any help.

Andreas




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



Re: Build error

2006-03-14 Thread Jeff Mutonho
>
>
> Your , , , ,  fields are all
> empty.  Either set these fields or remove them.  Also, set
> true.  Again I haven't tried this stuff before so I'm
> just guessing.  If you can, remove the  section all together.
>
>
> _Mang Lau
>
>
>
Whoo hoo!!!It really was those unset  fields.I took them out and  it
worked!Thanx Mang :)

--
"All I ask is a chance to prove that money can't make me happy."

Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: User Profiles

2006-03-14 Thread Sergei Dubov
But those properties files are referenced by Spring configurations in 
turn, c3p0.properties is the default for c3p0 connection pool 
configuration. This all happens after deploying in Tomcat. How would 
Spring know about Maven configurations when the war file is deployed on 
a remote server? :-)


I am open to other approaches but they have to work for one-stop builds. 
I clearly want to be able to run a single command and have the app 
deployed to a remote server with all the necessary configs.


Serge

Wayne Fay wrote:

With a new build environment comes changes to your existing build.
When you moved to Ant, you made these properties files. Now it might
be time to change again if you move to Maven. So just realize upfront
that you will probably have to change.

The easiest way to achieve your requirements is through the use of
profiles either in pom.xml, settings.xml, or profiles.xml file. Then
you call "mvn -P name1 package" and it uses the variable values you
have defined in the "name1" profile.
See this page for more info:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

If you want to keep your existing properties files and build process,
stay in Ant. You could probably write some complicated plugin to
duplicate what you already have in ANT, but I wouldn't do it.

Wayne


On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:


I am still trying to get my head around the concept of user profiles
(using Maven2). Here is what I do in Ant:

1. Let's say we have a project called "leonardo".

2. To work with my Ant process the user is required to have a directory
called $HOME/.leonardorc and an environment variable called
$LEONARDO_EXT that contains his current configurational profile.

3. $HOME/.leonardorc contains customer properties files. Let's say:
db.properties.${LEONARDO_EXT}, c3p0.properties.${LEONARDO_EXT},
tomcat.properties.${LEONARDO_EXT}. They all contain configurational info
specific to that user's current profile (set by LEONARD_EXT).

4. The moment a user tries to do something (build, deploy, whatever).
Some of those files will be copied to the "right" place in the project
repository, and some will be directly referenced in the Ant build
script. Of course, the extension of ${LEONARDO_EXT} will be removed upon
copy.

I'd really appreciate if somebody could explain to me how to achieve the
same flexibility with Maven. Note: the above-mentioned property files
have to be the entities that specify the user configuration.

Thanks a lot beforehand!

Serge





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



Re: Build error

2006-03-14 Thread Mang Jun Lau
I haven't played with proxies but from your file, it looks like you have 
some tags with no values in them

  

  
  
  
  
  80
  198.blah.blah.blah
  

  

Your , , , ,  fields are all 
empty.  Either set these fields or remove them.  Also, set 
true.  Again I haven't tried this stuff before so I'm 
just guessing.  If you can, remove the  section all together.


_Mang Lau





"Jeff Mutonho" <[EMAIL PROTECTED]> 
03/14/2006 11:38 AM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: Build error






On 3/14/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote:
>
> hmm...your maven has almost no changes to it right?  It's just unzipped
> and you played with some stuff in settings.xml?  Has it retrieved 
anything
> from the repository at all?
>
> Does anyone have any ideas?
>
>
> _Mang Lau
>
>
>
I downloaded M2 today, unzipped it , setup my $PATH variable and went to 
the
getting started site (
http://maven.apache.org/guides/getting-started/index.html) , started 
reading
, reached the " How do I make my first Maven project?" sub-heading and got
STUMPED , with this error.My settings.xml looks as follows (without the
"blah.blah.blah")



  

  
  
  
  
  80
  198.blah.blah.blah
  

  
  
   
 lsu.edu
 http://ibiblio.lsu.edu/main/pub/packages/maven2
 central
   
 





--
"All I ask is a chance to prove that money can't make me happy."

Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042



RE: [m2] defining new lifecycle / packaging with maven-plugin-tools-ant

2006-03-14 Thread andreas.ebbert-karroum
Hi,

My problem is still existing, I tried to put the components.xml to various 
places, to be picked up automatically, but that did not work out. How do I do 
it?

Thanks,
 _ ___  _
//\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com
   `-`
   Andreas Ebbert-Karroum
   Software Design Engineer - Nokia Networks Services / Middleware 
   phone: +49-211-94123928, fax: +49-211-9412-3838
   Heltorfer Straße 1, 40472 Düsseldorf, Germany 

>-Original Message-
>From: ext 
>[EMAIL PROTECTED]
>e.org 
>[mailto:[EMAIL PROTECTED]
>en.apache.org] 
>Sent: 11 March, 2006 11:47
>To: users@maven.apache.org
>Subject: [m2] defining new lifecycle / packaging with 
>maven-plugin-tools-ant
>
>Hi,
> 
>some of you might have followed my trials to setup a new 
>project [1]: I'm now trying to work on the first step, which 
>is using the assembly plugin to stuff all generated sources 
>into a zip/jar file. The problem is, that during the build 
>lifecycle I actually only want two plugins to be executed:
>1) my custom plugin in the generate-sources phase and
>2) the assembly plugin for packaging. 
> 
>How can that be achieved? When I define only those plugins and 
>no packaging, maven defaults to the jar packaging, which is 
>invoking a lot of other unwanted plugins/mojos. 
> 
>I tried to define a new packaging in my plugin for the source 
>code generation, but I don't know how to do that. I was 
>following the giode [2] so far, but there isn't explained how 
>the plexus/components.xml can be integrated, or if it's 
>possible at all.
> 
>[1] http://www.mail-archive.com/users@maven.apache.org/msg37006.html
>[2] 
>http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html
> 
>Thanks for your feedback.
> 
>Andreas Ebbert-Karroum
>  Software Design Engineer - Nokia Networks Services / Middleware
>  phone: +49-211-94123928, fax: +49-211-94123838
>  Heltorfer Straße 1, 40472 Düsseldorf, Germany 
>

--
This message is confidential. If you have received this message in error,
please delete it from your system. You should not copy it for any purpose,
or disclose its contents to any other person. Internet communications are
not secure and therefore Nokia GmbH does not accept legal responsibility
for the contents of this message as it has been transmitted over a public
network. Thank you.
Nokia GmbH, Nokia Networks is a German Company. Further information
about the Company is available from its principal offices at
Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the
website at http://www.nokia.com/
-- 

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



Re: Build error

2006-03-14 Thread Wayne Fay
Try mvn -X -e ... to get full debugging info.

I'm sure something is wrong with your proxy, but of course I don't use
proxy so I have no idea what it should look like in the configuration
or what the potential errors might be. Hopefully -X will reveal what's
going on exactly.

Wayne


On 3/14/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
> On 3/14/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote:
> >
> > hmm...your maven has almost no changes to it right?  It's just unzipped
> > and you played with some stuff in settings.xml?  Has it retrieved anything
> > from the repository at all?
> >
> > Does anyone have any ideas?
> >
> >
> > _Mang Lau
> >
> >
> >
> I downloaded M2 today, unzipped it , setup my $PATH variable and went to the
> getting started site (
> http://maven.apache.org/guides/getting-started/index.html) , started reading
> , reached the " How do I make my first Maven project?" sub-heading and got
> STUMPED , with this error.My settings.xml looks as follows (without the
> "blah.blah.blah")
>
> 
> 
>  
>
>  
>  
>  
>  
>  80
>  198.blah.blah.blah
>  
>
>  
>  
>   
> lsu.edu
> http://ibiblio.lsu.edu/main/pub/packages/maven2
> central
>   
>  
> 
>
>
>
>
> --
> "All I ask is a chance to prove that money can't make me happy."
>
> Jeff  Mutonho
> Java/J2EE Developer
> mob: + 27 82 907 6420
>
> GoogleTalk : ejbengine
> Skype: ejbengine
> Registered Linux user number 366042
>
>


Re: Build error

2006-03-14 Thread Jeff Mutonho
On 3/14/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote:
>
> hmm...your maven has almost no changes to it right?  It's just unzipped
> and you played with some stuff in settings.xml?  Has it retrieved anything
> from the repository at all?
>
> Does anyone have any ideas?
>
>
> _Mang Lau
>
>
>
I downloaded M2 today, unzipped it , setup my $PATH variable and went to the
getting started site (
http://maven.apache.org/guides/getting-started/index.html) , started reading
, reached the " How do I make my first Maven project?" sub-heading and got
STUMPED , with this error.My settings.xml looks as follows (without the
"blah.blah.blah")



  

  
  
  
  
  80
  198.blah.blah.blah
  

  
  
   
 lsu.edu
 http://ibiblio.lsu.edu/main/pub/packages/maven2
 central
   
 





--
"All I ask is a chance to prove that money can't make me happy."

Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: [m2] Has anyone gotten the maven-taglib plugin to produce taglibdoc?

2006-03-14 Thread Bernd Bohmann

How about with

http://maven-taglib.sourceforge.net/m2/

net.sourceforge.maven-taglib
maven-taglib-plugin

Bernd

KC Baltz schrieb:

I'd like to produce taglibdoc for our custom taglibs (E.g. 
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html).  It looks 
like someone created a Maven plugin for doing just that ( 
http://sourceforge.net/projects/maven-taglib/), but I can't get it to work in 
Maven2.  Anyone else have success?
 
K.C.





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



Re: User Profiles

2006-03-14 Thread Wayne Fay
With a new build environment comes changes to your existing build.
When you moved to Ant, you made these properties files. Now it might
be time to change again if you move to Maven. So just realize upfront
that you will probably have to change.

The easiest way to achieve your requirements is through the use of
profiles either in pom.xml, settings.xml, or profiles.xml file. Then
you call "mvn -P name1 package" and it uses the variable values you
have defined in the "name1" profile.
See this page for more info:
http://maven.apache.org/guides/introduction/introduction-to-profiles.html

If you want to keep your existing properties files and build process,
stay in Ant. You could probably write some complicated plugin to
duplicate what you already have in ANT, but I wouldn't do it.

Wayne


On 3/14/06, Sergei Dubov <[EMAIL PROTECTED]> wrote:
> I am still trying to get my head around the concept of user profiles
> (using Maven2). Here is what I do in Ant:
>
> 1. Let's say we have a project called "leonardo".
>
> 2. To work with my Ant process the user is required to have a directory
> called $HOME/.leonardorc and an environment variable called
> $LEONARDO_EXT that contains his current configurational profile.
>
> 3. $HOME/.leonardorc contains customer properties files. Let's say:
> db.properties.${LEONARDO_EXT}, c3p0.properties.${LEONARDO_EXT},
> tomcat.properties.${LEONARDO_EXT}. They all contain configurational info
> specific to that user's current profile (set by LEONARD_EXT).
>
> 4. The moment a user tries to do something (build, deploy, whatever).
> Some of those files will be copied to the "right" place in the project
> repository, and some will be directly referenced in the Ant build
> script. Of course, the extension of ${LEONARDO_EXT} will be removed upon
> copy.
>
> I'd really appreciate if somebody could explain to me how to achieve the
> same flexibility with Maven. Note: the above-mentioned property files
> have to be the entities that specify the user configuration.
>
> Thanks a lot beforehand!
>
> Serge
>
>
>


Re: Build error

2006-03-14 Thread Mang Jun Lau
hmm...your maven has almost no changes to it right?  It's just unzipped 
and you played with some stuff in settings.xml?  Has it retrieved anything 
from the repository at all?

Does anyone have any ideas?


_Mang Lau





"Jeff Mutonho" <[EMAIL PROTECTED]> 
03/14/2006 11:26 AM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: Build error






> Try adding -U as a parameter after archetype:create.  This will force an
> update from the server.
>
>
Still same error  :(
--
"All I ask is a chance to prove that money can't make me happy."

Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042



[m2] Has anyone gotten the maven-taglib plugin to produce taglibdoc?

2006-03-14 Thread KC Baltz
I'd like to produce taglibdoc for our custom taglibs (E.g. 
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html).  It looks 
like someone created a Maven plugin for doing just that ( 
http://sourceforge.net/projects/maven-taglib/), but I can't get it to work in 
Maven2.  Anyone else have success?
 
K.C.


Re: Build error

2006-03-14 Thread Jeff Mutonho
> Try adding -U as a parameter after archetype:create.  This will force an
> update from the server.
>
>
Still same error  :(
--
"All I ask is a chance to prove that money can't make me happy."

Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: Intellij/IDEA plugin

2006-03-14 Thread Geoffrey De Smet

To create a patch:
http://maven.apache.org/guides/development/guide-m2-development.html

To submit it:
http://jira.codehaus.org/browse/MIDEA

Konstantin Polyzois wrote:

I'd like to help finish idea-plugin it does not handle ejb/ear very well, I
have it checked out where can I submit a patch? (And how do I create one
from svn)

/Konstantin



--
With kind regards,
Geoffrey De Smet


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



Re: [m2] dependency conflicts using jibx 1.0.1

2006-03-14 Thread Wayne Fay
You might try:
[1.0.1)
to force the version to be no less than 1.0.1... Not sure if it will
work though.

If you are certain this is a bug, file a report in JIRA and include a
small pom.xml that clearly demonstrates the trouble so someone can
look into it.

Wayne


On 3/14/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> I'm trying to use JiBX plugin (from
> http://jibx.sourceforge.net/maven-jibx-plugin
> ) but have some version
> conflicts :
> maven downloads 1.0-RC1.jar of jibx artifacts even if I've set
>  from 1.0.1 on my pom and on the jibx  dependencies.
>
> In debugs, I can read :
> org.jibx:jibx-run:jar:1.0.1 (removed - nearer found: 1.0-RC1)
>
> Does this mean that maven consider 1.0-RC1 "newer" that 1.0.1.
>
> Dosen't the "-RC1" consider an implicit ".0-RC1" according to
> http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution
>
> " any '0' build or revision elements can be omitted. "
>
>
> Here are extracts from my pom :
>
> 
>org.jibx
>maven-jibx-plugin
>1.1
>
>  src/main/jibx
>
>
>  
>bind
>  
>
>
>
>  
>org.jibx
>jibx-bind
>1.0.1
>  
>  
>org.jibx
>jibx-extras
>1.0.1
>  
>  
>org.jibx
>jibx-run
>1.0.1
>  
>
>  
> ...
>
>
>  org.jibx
>  jibx-extras
>  1.0.1
>
>
>
> 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]
>
>


Re: Jabber not working

2006-03-14 Thread raghurajan . x . gurunathan
Yes,

It just displays error code 0 thats it nothing more






Thanks,
Raghu 





Emmanuel Venisse <[EMAIL PROTECTED]>
03/14/2006 02:36 AM
Please respond to continuum-users

 
To: continuum-users@maven.apache.org
cc: 
Subject:Re: Jabber not working


Without SSL checked, you have nothing, no errors, no log messages?

Emmanuel

[EMAIL PROTECTED] a écrit :
> Yeah exactly same thing (room as Recipient address, then "Is it a Jabber 
group"  has checked)  have it defined in my notifier
> 
> I also logged into to my room using the samecredential so the server is 
up 
> and credential also right.
> 
> the one thing i noticied is 
> 
> when i say it has SSL Connection then its threw that error,
> 
> vm 1| Caused by: org.codehaus.plexus.jabber.JabberClientException: 
> Can't connect to mx.company.com:5223
> vm 1|  at 
> 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:51)
> vm 1|  at 
> 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNot
> fier.java:216)
> vm 1|  ... 7 more
> vm 1| Caused by: Connection failed. No response from server.:
> vm 1|  at 
> org.jivesoftware.smack.PacketReader.startup(PacketReader.java:170)
> vm 1|  at 
> org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:766)
> vm 1|  at 
> org.jivesoftware.smack.XMPPConnection.(XMPPConnection.java:222)
> vm 1|  at 
> 
org.jivesoftware.smack.SSLXMPPConnection.(SSLXMPPConnection.java:87)
> vm 1|  at 
> 
org.codehaus.plexus.jabber.DefaultJabberClient.connect(DefaultJabberClient.java:46)
> 
>  if i uncheck the SSL connection its not throwing error, as wellas its 
not 
> sending any messages it just stops at 
> 
> jvm 1| 2006-03-13 13:44:54,039 [Thread-1] INFO 
> ContinuumBuildExecutor:shell   - Exit code: 0
> 
> 
> 
> 
> 
> 
> Thanks,
> Raghu 
> 
> 
> 
> 
> 
> Emmanuel Venisse <[EMAIL PROTECTED]>
> 03/13/2006 12:55 PM
> Please respond to continuum-users
> 
> 
> To: continuum-users@maven.apache.org
> cc: 
> Subject:Re: Jabber not working
> 
> 
> Are you sure your server is up?
> Exception is :
> Can't connect to mx.company.com with user raghu.guru
> Caused by: No response from the server.:
> 
> Recipient address is the jabber address of user that will receive all 
> notifications.
> For room, you must define the room name in recipient address and 
activate 
> "Is it a Jabber group?" field.
> 
> Emmanuel
> 
> [EMAIL PROTECTED] a écrit :
> 
>>Thanks for your reply,
>>
>>I tried with your new continuum snapshot, i added notification thru 
>>continuum admin console, and created a shell project also
>>
>>now i'mgetting
>>
>>jjvm 1| 2006-03-13 12:36:01,978 [Thread-1] ERROR 
>>ContinuumNotificationDispatcher - Error while trying to use the jabb
>>ernotifier.
>>jvm 1| org.codehaus.plexus.notification.NotificationException: 
>>Exception while sending message.
>>jvm 1|  at 
>>
> 
> 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNot
> 
>>ifier.java:236)
>>jvm 1|  at 
>>
> 
> 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendNotification(JabberContinu
> 
>>umNotifier.java:135)
>>jvm 1|  at 
>>
> 
> 
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(Defau
> 
>>ltContinuumNotificationDispatcher.java:173)
>>jvm 1|  at 
>>
> 
> 
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultC
> 
>>ontinuumNotificationDispatcher.java:96)
>>jvm 1|  at 
>>
> 
> 
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:3
> 
>>63)
>>jvm 1|  at 
>>
> 
> 
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecu
> 
>>tor.java:53)
>>jvm 1|  at 
>>
> 
> 
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQu
> 
>>eueExecutor.java:103)
>>jvm 1|  at java.lang.Thread.run(Thread.java:534)
>>jvm 1| Caused by: org.codehaus.plexus.jabber.JabberClientException: 
>>Can't connect to mx.company.com with user raghu.guru
>>jvm 1|  at 
>>
> 
> 
org.codehaus.plexus.jabber.DefaultJabberClient.logon(DefaultJabberClient.java:121)
> 
>>jvm 1|  at 
>>
> 
> 
org.apache.maven.continuum.notification.jabber.JabberContinuumNotifier.sendMessage(JabberContinuumNot
> 
>>ifier.java:218)
>>jvm 1|  ... 7 more
>>jvm 1| Caused by: No response from the server.:
>>jvm 1|  at 
>>
> 
> 
org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication.java:58)
> 
>>jvm 1|  at 
>>
> 
> 
org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:220)
> 
>>jvm 1|  at 
>>org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:

Re: Build error

2006-03-14 Thread Mang Jun Lau
Try adding -U as a parameter after archetype:create.  This will force an 
update from the server.


_Mang Lau





"Jeff Mutonho" <[EMAIL PROTECTED]> 
03/14/2006 11:12 AM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: Build error






Sorry missing a closing mirrors tag.  It should be like this:
>
> 
>   
> 
>   lsu.edu
>   http://ibiblio.lsu.edu/main/pub/packages/maven2
>   central
> 
>   
> 
>
>
> _Mang Lau
>
>
>
>
>
>
>
>
> I tried that but no luck.My settings.xml looks as follows :



  

  
  
  
  
  80
  myproxy
  

  
  
   
 lsu.edu
 http://ibiblio.lsu.edu/main/pub/packages/maven2
 central
   
 



--
"All I ask is a chance to prove that money can't make me happy."

Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042



RE: [M2] how to setup proxy in POM?

2006-03-14 Thread Siegmann Daniel, NY
> > > Everything else (build, run, jar:install, tests) is
> > > run with 'maven xyz' from command line, it's easier to manage.
> >
> > Can you explain how com it may be easier to manage? In my 
> opinion it 
> > is just inconvenient. Imagine working this way with ant, which is 
> > tightly incorporated into Eclipse JDT.

> 
> Running Maven from the command line is the ONE TRUE TEST that 
> the project builds and deploys properly. (We deploy locally 
> and to centralized dev servers.)
> 
> Wayne

At my company we use Wayne's approach. If you want to develop in Eclipse
just have Maven create the appropriate files. But our continuous integration
server (running CruiseControl) runs Maven.

This has worked well for us. I think it helps keep everyone's settings
uniform. It also means we are not tied to one IDE (though I think everyone
here uses Eclipse).

--
Daniel Siegmann
FJA-US, Inc.
(212) 840-2618 ext. 139

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



How to use scm from Java

2006-03-14 Thread Zsolt
Hi,

how can I use maven-scm from Java.

For example I want to checkout something from CVS or Subversion fro my Java
application instead of starting "cvs" or "svn" via shell.

Zsolt






Re: [M2] Intellij/IDEA plugin

2006-03-14 Thread Wayne Fay
If you aren't great with SVN, and you are running Windows, you should
download TortoiseSVN.

It gives you a nice little GUI interface to SVN. And it makes things
like generating unified-diffs (patches) trivial with a couple of mouse
clicks. (Even has a "Create Patch" option in the pop-up menu.)

So you should write your code, get a nice patch with good code
commenting etc as necessary, and then create a new JIRA issue in the
Maven-Idea-Plugin section:
http://jira.codehaus.org/browse/MPIDEA

And attach your patch etc.

Wayne


On 3/14/06, Konstantin Polyzois <[EMAIL PROTECTED]> wrote:
> I'd like to help finish idea-plugin it does not handle ejb/ear very well, I
> have it checked out where can I submit a patch? (And how do I create one
> from svn)
>
> /Konstantin
>
>


Re: Build error

2006-03-14 Thread Jeff Mutonho
Sorry missing a closing mirrors tag.  It should be like this:
>
> 
>   
> 
>   lsu.edu
>   http://ibiblio.lsu.edu/main/pub/packages/maven2
>   central
> 
>   
> 
>
>
> _Mang Lau
>
>
>
>
>
>
>
>
> I tried that but no luck.My settings.xml looks as follows :



  

  
  
  
  
  80
  myproxy
  

  
  
   
 lsu.edu
 http://ibiblio.lsu.edu/main/pub/packages/maven2
 central
   
 



--
"All I ask is a chance to prove that money can't make me happy."

Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: [m2] maven2 javadoc for plugin development available online?

2006-03-14 Thread Wayne Fay
To only get maven-core, you need to issue:

svn co https://svn.apache.org/repos/asf/maven/trunks maven/maven-core

But you might as well pull the whole codebase down, its not that large
if you have a good connection to the Internet.

svn co https://svn.apache.org/repos/asf/maven/trunks maven

Wayne




On 3/14/06, Thorsten Heit <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi Sebastian,
>
> > I'm a new maven user. Is there a complete maven2 api documentation
> > online available?
>
> AFAIK no. You should download the Maven source code and build Maven by
> yourself:
>
> http://maven.apache.org/guides/development/guide-building-m2.html
>
>
> > I wanted to download maven but the
> > "maven-core" component (wich i assume i have to use) returns a 403
> > forbidden while opening the folder:
> > http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/ .
>
> Have you tried to download all Maven projects in one directory? Don't
> know if that works, just an idea...
>
> - -> svn co https://svn.apache.org/repos/asf/maven/trunks maven
>
>
> > And just a matter of interest: Maven is capable of generating, very
> > nice, complete javadocs and sourcecode for online usage but maven2
> > itself uses none of these great features? Is there a reason behind this?
> > Also the project reports seem not to be completly related to maven.
>
> You have to specify the reports you want to use. Example from my pom.xml:
>
>  
>
>  
>org.apache.maven.plugins
>maven-project-info-reports-plugin
>  
>
>  
>org.apache.maven.plugins
>maven-javadoc-plugin
>2.0-beta-4-SNAPSHOT
>
>  256m
>
>  
>
>  
>org.codehaus.mojo
>jxr-maven-plugin
>  
>
>  
>org.codehaus.mojo
>surefire-report-maven-plugin
>  
>
>  
>  
>  
>
>  
>org.codehaus.mojo
>taglist-maven-plugin
>
>  TODO, @todo, FIXME, HACK, @deprecated
>
>  
>
>  
>
>
>
> HTH
>
> Thorsten
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.2.1 (MingW32)
>
> iD8DBQFEFuO1QvObkgCcDe0RAjSfAJ0bBF3cZjZONeuAWzcTT49xGBwhmQCfViC5
> NtoPoLkHE2GNWnVWx5nljbI=
> =2C7o
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [m2,antlr] maven-antlr-plugin compatibility of antlrall.jar and antlr.jar

2006-03-14 Thread Wayne Fay
This sounds like a question for the antlr team, on their Antlr Users list.

Wayne


On 3/14/06, Khin, Gerald <[EMAIL PROTECTED]> wrote:
> Hi!
>
> There is a antlrall-2.7.4.jar used by maven-antlr-plugin in
> http://www.ibiblio.org/maven2/antlr/antlrall/ whereas 2.7.4 is the
> highest version number available for that antlrall jar. But in
> http://www.ibiblio.org/maven2/antlr/antlr/ there is also a
> antlr-2.7.5.jar and a antlr-2.7.6.jar. Now, I wonder if the code built
> with the buildtime antlrall-2.7.4.jar is compatible with the runtime
> libraries antlr-2.7.5.jar or antlr-2.7.6.jar?
>
> Regards
> Gerald
>
>
>


Re: [M2] how to setup proxy in POM?

2006-03-14 Thread Wayne Fay
> > Everything else (build, run, jar:install, tests) is
> > run with 'maven xyz' from command line, it's easier to manage.
>
> Can you explain how com it may be easier to manage? In my opinion it
> is just inconvenient. Imagine working this way with ant, which is
> tightly incorporated into Eclipse JDT.

Personally I prefer to run Maven outside of my IDE. It guarantees that
my projects will always build 100% with just the scripts, no
requirements for the IDE, and allows me to guarantee that our future
Continuous Integration and Production Deployment efforts will have a
very low probability for errors/gotchas.

Also not everyone likes the same IDE. We have people using Eclipse,
Netbeans, IDEA, SubEthaEdit, etc on a variety (Win32, Linux, Mac OS X,
and of course deployment is on Solaris) of platforms.

Running Maven from the command line is the ONE TRUE TEST that the
project builds and deploys properly. (We deploy locally and to
centralized dev servers.)

Wayne


[M2] Intellij/IDEA plugin

2006-03-14 Thread Konstantin Polyzois
I'd like to help finish idea-plugin it does not handle ejb/ear very well, I
have it checked out where can I submit a patch? (And how do I create one
from svn)

/Konstantin


Re: Intellij/IDEA plugin

2006-03-14 Thread Konstantin Polyzois
Sorry wrong subject...

On 3/14/06, Konstantin Polyzois <[EMAIL PROTECTED]> wrote:
>
> I'd like to help finish idea-plugin it does not handle ejb/ear very well,
> I have it checked out where can I submit a patch? (And how do I create one
> from svn)
>
> /Konstantin
>


Re: [M2] compile sources fails - where are snapshot repositories???

2006-03-14 Thread Wayne Fay
Maven plugin snapshots are hosted:

  Maven Snapshots
  http://snapshots.maven.codehaus.org/maven2/
  
true
  
  
false
  


However, you can always just pull the code for maven-assembly-plugin
as well from SVN and package it up and install locally? Then you
aren't dependent on yet another repo...

Wayne


On 3/14/06, Szczepan Faber <[EMAIL PROTECTED]> wrote:
> I need to change maven embedder to force him to go through proxy. The
> problem is that 'mvn package' command fails in maven-embedder
> directory. The reason is that default snaphot repository does not have
> appropriate artifacts.
>
> --
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.maven.plugins:maven-assembly-plugin:pom:2.1-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  apache.snapshots (http://svn.apache.org/maven-snapshot-repository)
>
> -
>
> Are there snaphot repositories maintained?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Intellij/IDEA plugin

2006-03-14 Thread Konstantin Polyzois
I'd like to help finish idea-plugin it does not handle ejb/ear very well, I
have it checked out where can I submit a patch? (And how do I create one
from svn)

/Konstantin


Re: Plugin JAR : bug maven.jar.final.name

2006-03-14 Thread Wayne Fay
Rename your project to ...-client?

;-)
Wayne

On 3/14/06, Allison, Bob <[EMAIL PROTECTED]> wrote:
> Actually, it is not just the JAR plugin.  ALL plugins do this so that
> Maven can find things in the Repository at a later date.
>
> -Original Message-
> From: Ruel Loehr [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 14, 2006 10:14
> To: Maven Users List
> Subject: RE: Plugin JAR : bug maven.jar.final.name
>
>
> You can't.
>
> You cannot alter the name it uses to install the jar.  This is my
> biggest complaint about the jar plugin.  It's very stringent.
>
> Ruel Loehr
> JBoss QA
>
> -
> 512-342-7840 ext 2011
> Yahoo: ruelloehr
> Skype: ruelloehr
> AOL: dokoruel
> -Original Message-
> From: Blaise Gosselin [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 14, 2006 8:28 AM
> To: users@maven.apache.org
> Subject: Plugin JAR : bug maven.jar.final.name
>
> Hello,
>
> I set the JAR variable maven.jar.final.name =
> ${pom.artifactId}-client-${pom.currentVersion}.jar.
> When I make a jar:install, I have this jar in my target directory, but
> the jar installed in my local repository is
> ${pom.artifactId}-${pom.currentVersion}.jar.
> What should I do in order to install the jar generated with the good
> name ?
>
> Thanks in advance.
>  _ _ _
> bgOnline
>
> -
> 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] maven2 javadoc for plugin development available online?

2006-03-14 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Sebastian,

> I'm a new maven user. Is there a complete maven2 api documentation
> online available?

AFAIK no. You should download the Maven source code and build Maven by
yourself:

http://maven.apache.org/guides/development/guide-building-m2.html


> I wanted to download maven but the
> "maven-core" component (wich i assume i have to use) returns a 403
> forbidden while opening the folder:
> http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/ .

Have you tried to download all Maven projects in one directory? Don't
know if that works, just an idea...

- -> svn co https://svn.apache.org/repos/asf/maven/trunks maven


> And just a matter of interest: Maven is capable of generating, very
> nice, complete javadocs and sourcecode for online usage but maven2
> itself uses none of these great features? Is there a reason behind this?
> Also the project reports seem not to be completly related to maven.

You have to specify the reports you want to use. Example from my pom.xml:

  

  
org.apache.maven.plugins
maven-project-info-reports-plugin
  

  
org.apache.maven.plugins
maven-javadoc-plugin
2.0-beta-4-SNAPSHOT

  256m

  

  
org.codehaus.mojo
jxr-maven-plugin
  

  
org.codehaus.mojo
surefire-report-maven-plugin
  

  
  
  

  
org.codehaus.mojo
taglist-maven-plugin

  TODO, @todo, FIXME, HACK, @deprecated

  

  



HTH

Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)

iD8DBQFEFuO1QvObkgCcDe0RAjSfAJ0bBF3cZjZONeuAWzcTT49xGBwhmQCfViC5
NtoPoLkHE2GNWnVWx5nljbI=
=2C7o
-END PGP SIGNATURE-

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



Re: Oracle 10G Appserver

2006-03-14 Thread Wayne Fay
Hi Jeff,

This webpage explains how to deploy to OC4J using Ant, its pretty simple:
http://radio.weblogs.com/0132383/stories/2004/03/16/antDeploymentToOc4j.html

I've included some of my build.xml targets below as well. You'll note
that the OC4J targets are slightly different from IAS, so depending on
your server, you will need to use one or the other. (We run OC4J on
dev machines and IAS on real servers.)

And of course you need a build.properties file with your
environment-specific deployment settings ie:
oc4j.host=localhost
oc4j.ormi.port=23791
oc4j.admin=admin
oc4j.admin.password=admin
oc4j.web.site=http-web-site

Wayne





































http://${ias.host}:${ias.em.port}/${ias.dcmservlet}/"/>












http://${ias.host}:${ias.em.port}/${ias.dcmservlet}/"/>










On 3/14/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
>
>
>
> On 3/14/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > No, we are deploying with ant script which just calls the oc4j
> > admin.jar to deploy and then bindWebApp...
> >
> > You could probably deploy with Cargo, but I just didn't have the
> > patience or time to get it working yet. Too busy with real work, and
> > the ant scripts are fine for now, no particular reason to force the
> > change...
> >
> > Wayne
>
>
> Wayne , I'm pretty new to deployment wrt Oracle .I have Websphere experience
> though.Do you mind giving me a snippet of how your ant script looks
> like?Thanx
>
>
>
> > On 3/14/06, Jeff Mutonho <[EMAIL PROTECTED] > wrote:
> > > On 3/14/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> > > >
> > > > One thing to note : JSTL jars are not included in the 10.1.3 version
> > > > so you need to modify a little bit your pom file.
> > > >
> > > > On 3/13/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > > > > I'm deploying to oc4j 10.1.2 with no issues. Tried 10.1.3 briefly
> but
> > > > > broke a bunch of things and I'm not inspired to change them since
> our
> > > > > Production environment is 10.1.2 for the immediate future. Sounds
> like
> > > > > the JDev approach mentioned by Alexandre would help resolve some of
> > > > > these troubles, if you're moving to 10.1.3.
> > > > >
> > > > > Wayne
> > > > >
> > > > >
> > > > > On 3/13/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> > > > > > We have done it without any problems. By te way, for our migration
> to
> > > > > > Oc4j 10.1.3,  we have used the Jdeveloper plugin found in the
> > > > > > preliminary adf faces drop to convert our old projects, everything
> > > > > > worked great, even better then using the default conversion in
> > > > > > JDeveloper wich has some issues :)
> > > > > >
> > > > > > On 3/13/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
> > > > > > > Anyone building ear or war files to deploy on the 10G
> appserver?Have
> > > > you
> > > > > > > experienced any problems?What should I look out for?
> > > > > > > Pointers,etc...?
> > > > > > >
> > > >
> > >
> > > Wayne , are you using hot deployment  .ie merely  copying the ear or war
> > > file to the right directory and letting oc4j 10.1.2 take care of things?
> > >
> > > --
> > > Jeff  GoogleTalk : ejbengine
> > > Skype: ejbengine
> > > Registered Linux user number 366042
> > >
> > >
> >
>
>
>
>
> --
> Jeff  Mutonho
> Java/J2EE Developer
> ph   : + 27 21 408 6230
> mob: + 27 82 907 6420
>
>
> GoogleTalk : ejbengine
> Skype: ejbengine
> Registered Linux user number 366042


RE: Plugin JAR : bug maven.jar.final.name

2006-03-14 Thread Allison, Bob
Actually, it is not just the JAR plugin.  ALL plugins do this so that
Maven can find things in the Repository at a later date.

-Original Message-
From: Ruel Loehr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 10:14
To: Maven Users List
Subject: RE: Plugin JAR : bug maven.jar.final.name


You can't.

You cannot alter the name it uses to install the jar.  This is my
biggest complaint about the jar plugin.  It's very stringent.

Ruel Loehr
JBoss QA
 
-
512-342-7840 ext 2011
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel
-Original Message-
From: Blaise Gosselin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 8:28 AM
To: users@maven.apache.org
Subject: Plugin JAR : bug maven.jar.final.name

Hello,
 
I set the JAR variable maven.jar.final.name =
${pom.artifactId}-client-${pom.currentVersion}.jar.
When I make a jar:install, I have this jar in my target directory, but
the jar installed in my local repository is
${pom.artifactId}-${pom.currentVersion}.jar.
What should I do in order to install the jar generated with the good
name ?
 
Thanks in advance.
 _ _ _
bgOnline

-
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: Oracle 10G Appserver

2006-03-14 Thread Wayne Fay
Well I'm talking about deploying the app locally into my own personal
development environment, on the same machine I'm working on, which I'm
obviously the administrator for. ;-)

In our "real" dev environment, we all have the passwords to the
machine (not root) and oc4j.

Then we have "real" qe and prod environments that we are not given
accounts, passwords, etc and we are responsible for creating
sufficient sys admin documentation so the Operations people can
deploy.

You either have a very small or very trusting organization if you
allow developers direct access to Production machines for deploying
J2ee apps. ;-)

Wayne


On 3/14/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> The problem I have with this approach is that Oc4j force you to
> connect as the administrator to deploy  your application. Might not be
> a problem for you, but it was for us.
>
> On 3/14/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > No, we are deploying with ant script which just calls the oc4j
> > admin.jar to deploy and then bindWebApp...
> >
> > You could probably deploy with Cargo, but I just didn't have the
> > patience or time to get it working yet. Too busy with real work, and
> > the ant scripts are fine for now, no particular reason to force the
> > change...
> >
> > Wayne
> >
> >
> > On 3/14/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
> > > On 3/14/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> > > >
> > > > One thing to note : JSTL jars are not included in the 10.1.3 version
> > > > so you need to modify a little bit your pom file.
> > > >
> > > > On 3/13/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > > > > I'm deploying to oc4j 10.1.2 with no issues. Tried 10.1.3 briefly but
> > > > > broke a bunch of things and I'm not inspired to change them since our
> > > > > Production environment is 10.1.2 for the immediate future. Sounds like
> > > > > the JDev approach mentioned by Alexandre would help resolve some of
> > > > > these troubles, if you're moving to 10.1.3.
> > > > >
> > > > > Wayne
> > > > >
> > > > >
> > > > > On 3/13/06, Alexandre Poitras <[EMAIL PROTECTED]> wrote:
> > > > > > We have done it without any problems. By te way, for our migration 
> > > > > > to
> > > > > > Oc4j 10.1.3,  we have used the Jdeveloper plugin found in the
> > > > > > preliminary adf faces drop to convert our old projects, everything
> > > > > > worked great, even better then using the default conversion in
> > > > > > JDeveloper wich has some issues :)
> > > > > >
> > > > > > On 3/13/06, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
> > > > > > > Anyone building ear or war files to deploy on the 10G 
> > > > > > > appserver?Have
> > > > you
> > > > > > > experienced any problems?What should I look out for?
> > > > > > > Pointers,etc...?
> > > > > > >
> > > >
> > >
> > > Wayne , are you using hot deployment  .ie merely  copying the ear or war
> > > file to the right directory and letting oc4j 10.1.2 take care of things?
> > >
> > > --
> > > Jeff  GoogleTalk : ejbengine
> > > Skype: ejbengine
> > > Registered Linux user number 366042
> > >
> > >
> >
>
>
> --
> Alexandre Poitras
> Québec, Canada
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: custom src directory layout - how to get it to not checkstyle/javadoc the tests too.

2006-03-14 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> The M2 standards are src/main/java and src/test/java:
> http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
> 
> Only mentioning because I saw src/java listed by someone as the Maven 
> default...

Erm, yes, indeed, that was me. Sorry for the unnecessary confusion; I
should drink fewer coffee before writing mails... ;-)


Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)

iD8DBQFEFt8wQvObkgCcDe0RAuPRAKD40NQla39oIpUu5YcEK4QwM0S/IACbBBCW
dIjmdurIW6bRdVwfe77G/4E=
=Dogg
-END PGP SIGNATURE-

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



User Profiles

2006-03-14 Thread Sergei Dubov
I am still trying to get my head around the concept of user profiles 
(using Maven2). Here is what I do in Ant:


1. Let's say we have a project called "leonardo".

2. To work with my Ant process the user is required to have a directory 
called $HOME/.leonardorc and an environment variable called 
$LEONARDO_EXT that contains his current configurational profile.


3. $HOME/.leonardorc contains customer properties files. Let's say:
db.properties.${LEONARDO_EXT}, c3p0.properties.${LEONARDO_EXT}, 
tomcat.properties.${LEONARDO_EXT}. They all contain configurational info 
specific to that user's current profile (set by LEONARD_EXT).


4. The moment a user tries to do something (build, deploy, whatever). 
Some of those files will be copied to the "right" place in the project 
repository, and some will be directly referenced in the Ant build 
script. Of course, the extension of ${LEONARDO_EXT} will be removed upon 
copy.


I'd really appreciate if somebody could explain to me how to achieve the 
same flexibility with Maven. Note: the above-mentioned property files 
have to be the entities that specify the user configuration.


Thanks a lot beforehand!

Serge










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



RE: Plugin JAR : bug maven.jar.final.name

2006-03-14 Thread Ruel Loehr
You can't.

You cannot alter the name it uses to install the jar.  This is my
biggest complaint about the jar plugin.  It's very stringent.

Ruel Loehr
JBoss QA
 
-
512-342-7840 ext 2011
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel
-Original Message-
From: Blaise Gosselin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 8:28 AM
To: users@maven.apache.org
Subject: Plugin JAR : bug maven.jar.final.name

Hello,
 
I set the JAR variable maven.jar.final.name =
${pom.artifactId}-client-${pom.currentVersion}.jar.
When I make a jar:install, I have this jar in my target directory, but
the jar installed in my local repository is
${pom.artifactId}-${pom.currentVersion}.jar.
What should I do in order to install the jar generated with the good
name ?
 
Thanks in advance.
 _ _ _
bgOnline

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



RE: [M2] Jcoverage plugin?

2006-03-14 Thread Siegmann Daniel, NY
I have voted for those two bugs. I don't have any immediate need for this,
but it would be nice to have. We have only one project that actually must
have coverage reports now, but unfortunately it is on M1 and there is a bug
in the jcoverage plugin. :( Oh well, hopefully Cobertura will get fixed and
that project will eventually migrate to M2.

Thanks for the info.

~Daniel

-Original Message-
From: David Sag [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 8:28 AM
To: Maven Users List
Subject: RE: [M2] Jcoverage plugin?



There are a few serious bugs with cobertura and maven 2.  i've been plugging
away with it for a while now and if you build maven from source it does work
but only for single project builds.  multi-project builds all report zero
coverage. 

see http://jira.codehaus.org/browse/MCOBERTURA-2 and
http://jira.codehaus.org/browse/MCOBERTURA-5 for examples. 

i urge you to vote on these issues in Jira.  cobertura not working properly
is pretty much my final showstopper for getting maven 2 approved for use
here at work.

Kind regards,
Dave Sag 

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



Re: How to escape dollar sign in archetype resource files

2006-03-14 Thread Kathryn Huxtable
It's nice to know I'm not the only person seeing this. I'd ignore the
warnings, but the build terminates when it sees more complex JSTL than
simply a bean substitution.

I guess I'll look into Velocity. I'm aware of it, but have never
investigated.

Thanks!

-K


On 3/14/06 8:23 AM, "Wendy Smoak" <[EMAIL PROTECTED]> wrote:

> On 3/14/06, Kathryn Huxtable <[EMAIL PROTECTED]> wrote:
>> I should actually have asked where the lexical analysis is happening? I'm
>> interested in where the file's text is broken up into tokens, as that's
>> where escaping usually happens.
> 
> I believe this is done with Velocity:  http://jakarta.apache.org/velocity/
> 
> So far, I'm just getting warnings during archetype:create, but it still works:
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference
> :
> template = archetype-resources/pom.xml [line 82,column 34] :
> ${project.build.dir
> ectory} is not a valid reference.
> 
> There might be a JIRA issue already, it sounds familiar.
> 
> --
> Wendy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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



[m2] dependency conflicts using jibx 1.0.1

2006-03-14 Thread Nicolas De Loof


Hello

I'm trying to use JiBX plugin (from 
http://jibx.sourceforge.net/maven-jibx-plugin 
) but have some version 
conflicts :
maven downloads 1.0-RC1.jar of jibx artifacts even if I've set 
 from 1.0.1 on my pom and on the jibx  dependencies.


In debugs, I can read :
org.jibx:jibx-run:jar:1.0.1 (removed - nearer found: 1.0-RC1)

Does this mean that maven consider 1.0-RC1 "newer" that 1.0.1.

Dosen't the "-RC1" consider an implicit ".0-RC1" according to 
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution 


" any '0' build or revision elements can be omitted. "


Here are extracts from my pom :


   org.jibx
   maven-jibx-plugin
   1.1
   
 src/main/jibx
   
   
 
   bind
 
   
   
   
 
   org.jibx
   jibx-bind
   1.0.1
 
 
   org.jibx
   jibx-extras
   1.0.1
 
 
   org.jibx
   jibx-run
   1.0.1
 
   
 
...

   
 org.jibx
 jibx-extras
 1.0.1
   


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]



RE: [M2] How to configure POM for generated sources folder

2006-03-14 Thread Andreas Guther
Henry,

Thank you very much for your response.  This is (almost) what I am
looking for.  I just wonder why it is so hard to find such plug-ins.  I
spent quite a while searching around and last night.  I also started
looking into Mojo programming to write my own Jaxb plug-in.  

The only problem I see now is that the plug-in requires a Java 5
compiler since it is using Generics.  We are still running on Java 1.4.
I guess I will have to massage the code a bit to not use Generics.

Today I have a better understanding on the Maven build process and the
Mojo coding.

Thanks again for your input.

Andreas


-Original Message-
From: Henry S. Isidro [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 13, 2006 4:22 PM
To: Maven Users List
Subject: Re: [M2] How to configure POM for generated sources folder

[AG] [Content deleted] 

For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>
Mojo codehouse has a jaxb plugin in its sandbox. Check it out here: 
http://mojo.codehaus.org/jaxb2-maven-plugin/

HTH,
Henry

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

2006-03-14 Thread Mang Jun Lau
Sorry missing a closing mirrors tag.  It should be like this:


  

  lsu.edu
  http://ibiblio.lsu.edu/main/pub/packages/maven2
  central

  



_Mang Lau





Mang Jun Lau <[EMAIL PROTECTED]> 
03/14/2006 09:47 AM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: Build error






Hi,

My guess is that the central repository was down at that time so it could 
not download the maven-archetype-plugin.  I would try it again at another 
time or add a mirror to your settings.xml file.  This file can be found in 

your user home .m2 directory.  If it's not there then make one like so:


  

  lsu.edu
  http://ibiblio.lsu.edu/main/pub/packages/maven2
  central



I use this mirror and it's usually up.  Give that a try.


_Mang Lau





"Jeff Mutonho" <[EMAIL PROTECTED]> 
03/14/2006 09:00 AM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Build error






I've just started going through the M2 docs.I tried to create my first
project  , but got an error message as shown below :



M2_FirstSteps]#mvn -e archetype:create -DgroupId=za.co.mycompany
-DartifactId=myapp
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retri
eved from repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]
-
---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does 
not
exi
st or no valid version could be found
[INFO]
-
---
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
org.apache.m
aven.plugins:maven-archetype-plugin' does not exist or no valid version
could be
 found
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin
(Defa
ultLifecycleExecutor.java:1247)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1483)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:378)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:134)
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:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.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)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or 
no
val
id version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin
(DefaultPlug
inManager.java:160)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin
(Defa
ultLifecycleExecutor.java:1218)
... 14 more
[INFO]
-
---
[INFO] Total time: 21 seconds
[INFO] Finished at: Tue Mar 14 15:54:08 GMT+02:00 2006
[INFO] Final Memory: 1M/2M
[INFO]
-
---

M2_FirstSteps]#






"All I ask is a chance to prove that money can't make me happy."



Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042




Re: Build error

2006-03-14 Thread Mang Jun Lau
Hi,

My guess is that the central repository was down at that time so it could 
not download the maven-archetype-plugin.  I would try it again at another 
time or add a mirror to your settings.xml file.  This file can be found in 
your user home .m2 directory.  If it's not there then make one like so:


  

  lsu.edu
  http://ibiblio.lsu.edu/main/pub/packages/maven2
  central



I use this mirror and it's usually up.  Give that a try.


_Mang Lau





"Jeff Mutonho" <[EMAIL PROTECTED]> 
03/14/2006 09:00 AM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Build error






I've just started going through the M2 docs.I tried to create my first
project  , but got an error message as shown below :



M2_FirstSteps]#mvn -e archetype:create -DgroupId=za.co.mycompany
-DartifactId=myapp
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retri
eved from repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]
-
---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does 
not
exi
st or no valid version could be found
[INFO]
-
---
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
org.apache.m
aven.plugins:maven-archetype-plugin' does not exist or no valid version
could be
 found
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin
(Defa
ultLifecycleExecutor.java:1247)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1483)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:378)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:134)
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:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.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)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or 
no
val
id version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin
(DefaultPlug
inManager.java:160)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin
(Defa
ultLifecycleExecutor.java:1218)
... 14 more
[INFO]
-
---
[INFO] Total time: 21 seconds
[INFO] Finished at: Tue Mar 14 15:54:08 GMT+02:00 2006
[INFO] Final Memory: 1M/2M
[INFO]
-
---

M2_FirstSteps]#






"All I ask is a chance to prove that money can't make me happy."



Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042



[m2] Tricky question about mojo plugins

2006-03-14 Thread hermod.opstvedt
Hi

I am working on a plugin that uses ant tasks. One of the ant tasks is running a 
java ant task, calling a javaclass that is packaged with the plugin. However I 
get a NoClassDefFoundError when I try to run it with the ant java task. So what 
I am trying to do is:


Now running

.



and this is defined in the mojo.xml file, and the class is part of the plugin 
jar file.

Is there any special trick in doing this?

Hermod


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



[M2] compile sources fails - where are snapshot repositories???

2006-03-14 Thread Szczepan Faber
I need to change maven embedder to force him to go through proxy. The
problem is that 'mvn package' command fails in maven-embedder
directory. The reason is that default snaphot repository does not have
appropriate artifacts.

--

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.1-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  apache.snapshots (http://svn.apache.org/maven-snapshot-repository)

-

Are there snaphot repositories maintained?

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



Plugin JAR : bug maven.jar.final.name

2006-03-14 Thread Blaise Gosselin
Hello,
 
I set the JAR variable maven.jar.final.name = 
${pom.artifactId}-client-${pom.currentVersion}.jar.
When I make a jar:install, I have this jar in my target directory, but the jar 
installed in my local repository is ${pom.artifactId}-${pom.currentVersion}.jar.
What should I do in order to install the jar generated with the good name ?
 
Thanks in advance.
 _ _ _
bgOnline


Re: How to escape dollar sign in archetype resource files

2006-03-14 Thread Wendy Smoak
On 3/14/06, Kathryn Huxtable <[EMAIL PROTECTED]> wrote:
> I should actually have asked where the lexical analysis is happening? I'm
> interested in where the file's text is broken up into tokens, as that's
> where escaping usually happens.

I believe this is done with Velocity:  http://jakarta.apache.org/velocity/

So far, I'm just getting warnings during archetype:create, but it still works:
[WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference :
template = archetype-resources/pom.xml [line 82,column 34] : ${project.build.dir
ectory} is not a valid reference.

There might be a JIRA issue already, it sounds familiar.

--
Wendy

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



Re: How to escape dollar sign in archetype resource files

2006-03-14 Thread Kathryn Huxtable
I should actually have asked where the lexical analysis is happening? I'm
interested in where the file's text is broken up into tokens, as that's
where escaping usually happens.

-K


On 3/14/06 8:06 AM, "Kathryn Huxtable" <[EMAIL PROTECTED]> wrote:

> Yes, I tried that. I also tried doubling the dollar sign. Neither worked.
> 
> If the syntax looked like \${bean.property} I got a warning about an unknown
> variable "bean.property" and I got \${bean.property} in my output. Likewise
> with the doubled dollar sign.
> 
> I could live with the warning, but it died on the ${empty bean.property}
> reference. It complained about an unrecognized token " empty bean.property"
> and a lot of other stuff, and that it was expecting a close brace.
> 
> I've written plenty of parsers and in grad school taught compiler
> construction (back in the dark ages of the early 1980s). I understand what's
> going on.
> 
> Is there some place I could look in the source? Where is the parsing
> happening?
> 
> -K
> 
> 
> On 3/13/06 6:16 PM, "Alexandre Poitras" <[EMAIL PROTECTED]> wrote:
> 
>> Have you tried '\'? I don't know if it's work but it is usually the
>> convention in the Java world.
>> 
>> On 3/13/06, Kathryn Huxtable <[EMAIL PROTECTED]> wrote:
>>> I posted this last week and never got a response.
>>> 
>>> I'm creating an archetype for my team to use in creating new projects. I
>>> want to include a sample jsp file with jstl tags. The archetype creates just
>>> fine, but when I do a "mvn archetype:create" command it blows up on the
>>> 
>>> ${empty bean.property}
>>> 
>>> Is there some way to escape the dollar sign in the file?
>>> 
>>> --
>>> Kathryn Huxtable
>>> Middleware Architect
>>> IT Core Middleware
>>> The University of Kansas
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>> 
>> 
>> --
>> Alexandre Poitras
>> Québec, Canada
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> --
> Kathryn Huxtable
> Middleware Architect
> Core Middleware
> Information Technology, a division of Information Services
> The University of Kansas
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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



Re: How to escape dollar sign in archetype resource files

2006-03-14 Thread Kathryn Huxtable
Yes, I tried that. I also tried doubling the dollar sign. Neither worked.

If the syntax looked like \${bean.property} I got a warning about an unknown
variable "bean.property" and I got \${bean.property} in my output. Likewise
with the doubled dollar sign.

I could live with the warning, but it died on the ${empty bean.property}
reference. It complained about an unrecognized token " empty bean.property"
and a lot of other stuff, and that it was expecting a close brace.

I've written plenty of parsers and in grad school taught compiler
construction (back in the dark ages of the early 1980s). I understand what's
going on.

Is there some place I could look in the source? Where is the parsing
happening?

-K


On 3/13/06 6:16 PM, "Alexandre Poitras" <[EMAIL PROTECTED]> wrote:

> Have you tried '\'? I don't know if it's work but it is usually the
> convention in the Java world.
> 
> On 3/13/06, Kathryn Huxtable <[EMAIL PROTECTED]> wrote:
>> I posted this last week and never got a response.
>> 
>> I'm creating an archetype for my team to use in creating new projects. I
>> want to include a sample jsp file with jstl tags. The archetype creates just
>> fine, but when I do a "mvn archetype:create" command it blows up on the
>> 
>> ${empty bean.property}
>> 
>> Is there some way to escape the dollar sign in the file?
>> 
>> --
>> Kathryn Huxtable
>> Middleware Architect
>> IT Core Middleware
>> The University of Kansas
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> --
> Alexandre Poitras
> Québec, Canada
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

--
Kathryn Huxtable
Middleware Architect
Core Middleware
Information Technology, a division of Information Services
The University of Kansas


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



Build error

2006-03-14 Thread Jeff Mutonho
I've just started going through the M2 docs.I tried to create my first
project  , but got an error message as shown below :



M2_FirstSteps]#mvn -e archetype:create -DgroupId=za.co.mycompany
-DartifactId=myapp
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be
retri
eved from repository: central due to an error: Error transferring file
[INFO] Repository 'central' will be blacklisted
[INFO]
-
---
[ERROR] BUILD ERROR
[INFO]
-
---
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not
exi
st or no valid version could be found
[INFO]
-
---
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
org.apache.m
aven.plugins:maven-archetype-plugin' does not exist or no valid version
could be
 found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin
(Defa
ultLifecycleExecutor.java:1247)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1483)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:378)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLi
fecycleExecutor.java:134)
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:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.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)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException:
The p
lugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no
val
id version could be found
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:225)
at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:87)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin
(DefaultPlug
inManager.java:160)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin
(Defa
ultLifecycleExecutor.java:1218)
... 14 more
[INFO]
-
---
[INFO] Total time: 21 seconds
[INFO] Finished at: Tue Mar 14 15:54:08 GMT+02:00 2006
[INFO] Final Memory: 1M/2M
[INFO]
-
---

M2_FirstSteps]#






"All I ask is a chance to prove that money can't make me happy."



Jeff  Mutonho
Java/J2EE Developer
mob: + 27 82 907 6420

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: Help!Maven MultiProject

2006-03-14 Thread Marco Mistroni
Hello,
 here's a sample. for maven1.1  im not sure maven1.0  is still a viable
option

 main project.xml **



  2

  TestJSFApp
  TestJSFApp
  JSF Application
  1.3

  

 
  log4j
  log4j
  1.2.9
  
true

  
 


 
   dbunit
   dbunit
   2.2-dev
   
  true
   
 

 
  hsqldb
   hsqldb
   1.8.0.1
   
true
   
 





  

  
   commons-validator
commons-validator
   1.1.4
   
true

  


  
  commons-lang
2.1

true
  
  

  
   commons-chain
   commons-chain
   1.0
   
  true

  

  
commons-beanutils
1.6

  true

  


  
   commons-digester
   1.5
   
  true

  

  
   commons-codec
   1.2
   
  true

  

  
   commons-el
   1.0
   
  true

  

  
   commons-fileupload
   1.0
   
  true

  


  
   commons-logging
   1.0.3
   
 true
   
  

  
commons-collections
3.0

  true

  

  
commons-lang
2.0

  true

  

  

   
  myfaces
  myfaces-api
  1.1.3-SNAPSHOT
  
true
  



  myfaces
  myfaces-impl
  1.1.3-SNAPSHOT
  
true
  


   
  myfaces
  myfaces-commons
  1.1.3-SNAPSHOT
  
true
  
 

   
  myfaces
  tomahawk
  1.1.2-SNAPSHOT
  
true
  
 

 

  jstl
  jstl
  1.1.0
  
true
  


  jstl
  standard
  1.0.6
  
true
  
   

   



   
  struts
  struts
  1.1
  
true
  
   


   
  geronimo-spec
  geronimo-spec-j2ee
  1.4-rc4
  

  
  struts-menu
  2.3
  
true
  
  



  
  
  springframework
  spring
  1.2.3
  
true
  
  

 
springframework
jsf-spring
3.0.0M2

   true

 

  
  springframework
  spring-aop
  1.2.1
  
true
  
   


  
 aopalliance
 aopalliance
 1.0
  

  
  
 mysql
   mysql-connector
   3.0.11
   
true
   
  



  
   dom4j
 dom4j
 1.4-dev-8
 
true
   
  

  
   cglib
   cglib-full
 2.0.2
 
 true
 
 

  
   odmg
   odmg
   3.0

true
   
  

  
   hibernate
   2.1.8

true
   
  

  
ehcache
ehcache
1.1

true

  

  
  c3p0
  c3p0
  0.8.5.2
  
 true
  
 

 
  informa
  informa
0.6.0

 true

 




 



   poi
   2.5.1
  
true
   


 
   jasperreports
   0.6.6
   
true
   


 
   jdom
   b9
   
true
   
 



   acegisecurity
   acegi-security
   0.8.2
 
true
   

 




   jsf
   jakarta-oro
   1.0
 
true
   





  xdoclet
  xdoclet
  1.2.3



  xdoclet
  xdoclet-apache-module
  1.2.3



  xdoclet
  xdoclet-java-module

[m2] maven2 javadoc for plugin development available online?

2006-03-14 Thread Sebastian Himberger

Hi,

I'm a new maven user. Is there a complete maven2 api documentation 
online available?


I'm currently exploring plugin development and have read the guides 
available on the maven site. But beside the short introduction of the 
mojo-api i found no further link to a complete javadoc. E.g. i want my 
plugin to generate an xml file based on the dependencies and include 
those in a distribution. This sounds like a rather easy task if i had an 
api documentation available. I wanted to download maven but the 
"maven-core" component (wich i assume i have to use) returns a 403 
forbidden while opening the folder: 
http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-core/ .


And just a matter of interest: Maven is capable of generating, very 
nice, complete javadocs and sourcecode for online usage but maven2 
itself uses none of these great features? Is there a reason behind this? 
Also the project reports seem not to be completly related to maven.


Thanks very much in advance

best regards
Sebstian

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



Help!Maven MultiProject

2006-03-14 Thread narayan dhumale
  
Hello,
I am a Maven newbie.I am using Maven 1.0.2.Using this version i am successfully 
able to build small individual projects i.e compiling,test-report,javadoc 
deneration ,.war generation etc.
Now i have to create a single .war file using these projects.
I know that i have use MultiProject using POM inheritance.
Kindly anyone give me the steps to follow for all this task

I have compiled classes,images,xmls,js etc. in each of these project.I want to 
keep individual project seperate while building the .war 

Please guide

Re: [m2] SCM url: ${groupId} alternative with slashes instead of .

2006-03-14 Thread Emmanuel Venisse

you can define the property only in your root pom, child pom won't be modified.

Emmanuel

Stefan Fritz a écrit :

I know I could define properties, but I don't want to define it.
I have a hierarchical project/pom structure and want to add this entry in my 
root pom and do not want to touch it in every project pom.
That's why I wanted to use the artefactId and the groupId but that doesn't work 
because of the dots in the groupID.

So if there would be a replaceDotsWithSlashes( ${groupId} )
Function or another approach that would be great ;-)

Stefan

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 14, 2006 1:45 PM

To: Maven Users List
Subject: Re: [m2] SCM url: ${groupId} alternative with slashes instead of .

It isn't possible, you must define it manually?

You can define test/application as a property of your pom and use it in your 
scm url

Emmanuel

Stefan Fritz a écrit :

Hi all, 


I try to build pom's for my projects and do not want to specify the url
manually for every pom. 

My pom.xml: 
... 
test.applications 
myapp 
... 

... ... 
 http://myserver.com/svn/${groupId
 }/${artifactId}/ 
  



What I get is http://myserver.com/svn/test.application/myapp/
  but waht I want is 
 http://myserver.com/svn/test/application/myapp/

  (slashes instead of
dots in the groupId). 

Is that possible or do I have to do it manually for every pom I have? 

Regards 
Stefan 









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



  1   2   >