For those behind an NTLM proxy

2008-01-18 Thread Antonio Petrelli
Hi all,
I would like you to know that I found CNTLM, that works better than
NTLM APS (and does not need to be patched):
http://cntlm.sourceforge.net/
I updated the wiki page too:
http://docs.codehaus.org/display/MAVENUSER/Configuring+Maven+behind+an+NTLM+proxy

HTH
Antonio

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



Re: M2 Cargo Plugin

2008-01-18 Thread amit kumar
Hi,
What is the containerId for JBoss 4.2.0GA? Is it same jboss4x or different?
Because I tried fetching the plugin without version name and maven did
download something newer than 0.3-SNAPSHOT but it threw the same error when
I used container id jboss4x.

Regards,
Amit

On Jan 18, 2008 11:00 AM, amit kumar <[EMAIL PROTECTED]> wrote:

> Thanks a ton. But using an older version of JBoss would not be a
> possibility reason being the product already on this version.
>
>
>
> On Jan 17, 2008 9:35 PM, David J. M. Karlsen < [EMAIL PROTECTED]>
> wrote:
>
> > On Thu, 17 Jan 2008, amit kumar wrote:
> >
> > > Hi,
> > > Anyone aware of any online documentation for M2 Cargo plugin for
> > JBoss. I
> > > tried looking for it ,but in vain.
> > > If someone has already worked on it, please guide.
> > >
> > > I am using maven 2.0.7
> > > Windows XP
> > > JBoss 4.2.0GA
> >
> > Try the cargo users/dev list - there's a new commiter working on this.
> >
> >
> > David J. M. Karlsen - +47 90 68 22 43
> > http://www.davidkarlsen.com
> > http://mp3.davidkarlsen.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Strange problems with mvn release:perform when running javadoc:jar on Windows

2008-01-18 Thread Stephen Connolly
Anyone??? or will i just file an issue

On Jan 17, 2008 8:24 AM, Stephen Connolly <[EMAIL PROTECTED]>
wrote:

> Here is the stacktrace:
>
> The exact same commands from my machine work with the exact same proxyHost
> and proxyPort and JDK and Maven version
>
> [INFO] [javadoc:jar]
> [DEBUG] C:\Java\jdk1.6.0_04\jre\..\bin\javadoc.exe
> -J-DproxyHost=.com -J-DproxyPort= @options @packages
> Loading source files for package com....
> Constructing Javadoc information...
> Standard Doclet version 1.6.0_04
> Building tree for all the packages and classes...
> Generating
> C:/work/jsr-112-workmanager-impl/target/apidocs\com/___/___/___//\_.html...
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error while creating archive:Exit code: 1 -
> java.lang.IllegalArgumentException
>  at sun.net.www.ParseUtil.decode(ParseUtil.java:189)
>  at sun.misc.URLClassPath$FileLoader.(URLClassPath.java:953)
>  at sun.misc.URLClassPath$3.run(URLClassPath.java:326)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
>  at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
>  at sun.misc.URLClassPath.findResource(URLClassPath.java:144)
>  at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
>  at java.lang.ClassLoader.getResource(ClassLoader.java:977)
>  at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
>  at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:96)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at javax.xml.parsers.SecuritySupport.getResourceAsStream(
> SecuritySupport.java:89)
>  at javax.xml.parsers.FactoryFinder.findJarServiceProvider(
> FactoryFinder.java:250)
>  at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:223)
>  at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java
> :128)
>  at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(
> LayoutParser.java:72)
>  at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(
> ClassBuilder.java:108)
>  at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(
> HtmlDoclet.java:155)
>  at
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(
> AbstractDoclet.java:164)
>  at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
> AbstractDoclet.java:106)
>  at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(
> AbstractDoclet.java:64)
>  at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java
> :42)
>  at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
>  at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
>  at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
>  at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
>  at com.sun.tools.javadoc.Start.begin(Start.java:128)
>  at com.sun.tools.javadoc.Main.execute(Main.java:41)
>  at com.sun.tools.javadoc.Main.main(Main.java:31)
> com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
>  at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(
> LayoutParser.java:79)
>  at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(
> ClassBuilder.java:108)
>  at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(
> HtmlDoclet.java:155)
>  at
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(
> AbstractDoclet.java:164)
>  at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
> AbstractDoclet.java:106)
>  at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(
> AbstractDoclet.java:64)
>  at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java
> :42)
>  at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
>  at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
>  at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
>  at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
>  at com.sun.tools.javadoc.Start.begin(Start.java:128)
>  

Re: IBM custom project

2008-01-18 Thread Thomas Tardy
Hello,

I haven't managed to get the example from Peter Pilgrim's blog working. In
the example they use the ant task. The problem I faced was, that you have to
initialize the runtime with lot of properties and I wasn't feeling like
finding all the required properties.

Therefore I'm unsing the bat-file or shellscript included in each websphere
installation. It's setting up all the requiered properties. And in the poms
of my ejb projects it's looking like this.



maven-antrun-plugin


verify






















run






It's working fine. The only condition you have is that you have access to a
Websphere installation on the machine you are building the ejb.
The ${custom.was.home} property is the path to the root directory of your
Websphere installation.

Hope this helps!

Kind Regards,
Thomas

On Jan 17, 2008 4:53 PM, David J. M. Karlsen <[EMAIL PROTECTED]> wrote:

> On Wed, 16 Jan 2008, Wendy Smoak wrote:
>
> Hmm, I'm running just fine with the IBM jdk from WebSphere 6.1:
>
> C:\data\felles\spring-utils>java -version
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20060511
> (SR2))
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
> j9vmwi3223-20060504 (JIT enabled)
> J9VM - 20060501_06428_lHdSMR
> JIT  - 20060428_1800_r8
> GC   - 20060501_AA)
> JCL  - 20060511a
>
>
> > On Jan 16, 2008 6:19 AM, Jörg Schaible
> > <[EMAIL PROTECTED]> wrote:
> >
> >> For whatever reason, Maven 2 does not run on an IBM JDK.
> >
> > I don't see anything in JIRA about this.  What issues have you run into?
>
>
> David J. M. Karlsen - +47 90 68 22 43
> http://www.davidkarlsen.com
> http://mp3.davidkarlsen.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


Re: IBM custom project

2008-01-18 Thread Jeff Mutonho
On Jan 18, 2008 11:43 AM, Thomas Tardy <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I haven't managed to get the example from Peter Pilgrim's blog working. In
> the example they use the ant task. The problem I faced was, that you have
> to
> initialize the runtime with lot of properties and I wasn't feeling like
> finding all the required properties.
>
> Therefore I'm unsing the bat-file or shellscript included in each
> websphere
> installation. It's setting up all the requiered properties. And in the
> poms
> of my ejb projects it's looking like this.
>
> 
>
>maven-antrun-plugin
>
>
>verify
>
>
>
> executable="${custom.was.home}/bin/ejbdeploy.bat"
> failonerror="true" os="Windows XP">
>
> value="${project.build.directory}/ejbdeply-working"
> />
>
>
>
>
> executable="${custom.was.home}/bin/ejbdeploy.sh"
> failonerror="true" os="Linux">
>
> value="${project.build.directory}/ejbdeply-working"
> />
>
>
>
>
> />
>
>
>
>
>run
>
>
>
>
>
>
> It's working fine. The only condition you have is that you have access to
> a
> Websphere installation on the machine you are building the ejb.
> The ${custom.was.home} property is the path to the root directory of your
> Websphere installation.
>
> Hope this helps!
>
> Kind Regards,
> Thomas
>
>
Thanks Thomas .Whats your  custom.was.home variable pointing to?
On the Windows platform  , the plugin seems to battle with directory names
that have spaces in them.On my work machine , I'm using the RAD 6 and my
executable is pointing to "C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\bin\wsdeploy.bat"

which the  plugin doesn't seem to like very much , complaining that :

[INFO] [exec:exec {execution: BankComponentEJB}]
[DEBUG] executable "C:\Program
Files\IBM\Rational\SDP\6.0\runtimes\base_v6\bin\wsdeploy.bat" not found in
place, assuming it is in the PATH.
[INFO] 'C:\Program' is not recognized as an internal or external command,
[INFO] operable program or batch file.

-- 


"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: IBM custom project

2008-01-18 Thread Jeff Mutonho
On Jan 18, 2008 12:25 PM, Thomas Tardy <[EMAIL PROTECTED]> wrote:

> Hello
>
> I'm not using a standalone WAS, I'm using the installation from the RSA7
> installation. And the property is looking like yours, just applied to the
> RSA7 installation structure. I'm not facing any problems with the Windows
> 'Program Files' directory.
>
> I have defined the property in my settings.xml looking like this:
>
> http://maven.apache.org/POM/4.0.0";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>  http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>
>C:\repos\maven
>
>
>
>default
>
>true
>
>
>
>C:\Program
> Files\IBM\SDP70\runtimes\base_v61
>
>
>
> 
>
> Hope this helps!
>
> Kind Regards,
> Thomas
>
>
> On Jan 18, 2008 11:15 AM, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
>
> > On Jan 18, 2008 11:43 AM, Thomas Tardy <[EMAIL PROTECTED]> wrote:
> >
> > > Hello,
> > >
> > > I haven't managed to get the example from Peter Pilgrim's blog
> working.
> > In
> > > the example they use the ant task. The problem I faced was, that you
> > have
> > > to
> > > initialize the runtime with lot of properties and I wasn't feeling
> like
> > > finding all the required properties.
> > >
> > > Therefore I'm unsing the bat-file or shellscript included in each
> > > websphere
> > > installation. It's setting up all the requiered properties. And in the
> > > poms
> > > of my ejb projects it's looking like this.
> > >
> > > 
> > >
> > >maven-antrun-plugin
> > >
> > >
> > >verify
> > >
> > >
> > >
> > > > > executable="${custom.was.home}/bin/ejbdeploy.bat"
> > > failonerror="true" os="Windows XP">
> > >
> > > > > value="${project.build.directory}/ejbdeply-working"
> > > />
> > >
> > >
> > >
> > >
> > > > > executable="${custom.was.home}/bin/ejbdeploy.sh"
> > > failonerror="true" os="Linux">
> > >
> > > > > value="${project.build.directory}/ejbdeply-working"
> > > />
> > >
> > >
> > >
> > >
> > > > > />
> > > > />
> > >
> > >
> > >
> > >run
> > >
> > >
> > >
> > >
> > >
> > >
> > > It's working fine. The only condition you have is that you have access
> > to
> > > a
> > > Websphere installation on the machine you are building the ejb.
> > > The ${custom.was.home} property is the path to the root directory of
> > your
> > > Websphere installation.
> > >
> > > Hope this helps!
> > >
> > > Kind Regards,
> > > Thomas
>

Thanks Thomas.It worked finally. I , however noticed that the final ejb jar
has EJSxyz.class files , but not the _EJBSxyv.class  files.It seems like
they're not being generated , where's creating the jar using RAD does
generate the those _EJBxyz class files.
Arent these _EJSxyz.class files needed?





"Don't take the name of root in vain."

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042


Re: IBM custom project

2008-01-18 Thread Thomas Tardy
Hello

I'm not using a standalone WAS, I'm using the installation from the RSA7
installation. And the property is looking like yours, just applied to the
RSA7 installation structure. I'm not facing any problems with the Windows
'Program Files' directory.

I have defined the property in my settings.xml looking like this:

http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/xsd/settings-1.0.0.xsd";>

C:\repos\maven



default

true



C:\Program
Files\IBM\SDP70\runtimes\base_v61





Hope this helps!

Kind Regards,
Thomas


On Jan 18, 2008 11:15 AM, Jeff Mutonho <[EMAIL PROTECTED]> wrote:

> On Jan 18, 2008 11:43 AM, Thomas Tardy <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> >
> > I haven't managed to get the example from Peter Pilgrim's blog working.
> In
> > the example they use the ant task. The problem I faced was, that you
> have
> > to
> > initialize the runtime with lot of properties and I wasn't feeling like
> > finding all the required properties.
> >
> > Therefore I'm unsing the bat-file or shellscript included in each
> > websphere
> > installation. It's setting up all the requiered properties. And in the
> > poms
> > of my ejb projects it's looking like this.
> >
> > 
> >
> >maven-antrun-plugin
> >
> >
> >verify
> >
> >
> >
> > > executable="${custom.was.home}/bin/ejbdeploy.bat"
> > failonerror="true" os="Windows XP">
> >
> > > value="${project.build.directory}/ejbdeply-working"
> > />
> >
> >
> >
> >
> > > executable="${custom.was.home}/bin/ejbdeploy.sh"
> > failonerror="true" os="Linux">
> >
> > > value="${project.build.directory}/ejbdeply-working"
> > />
> >
> >
> >
> >
> > > />
> > />
> >
> >
> >
> >run
> >
> >
> >
> >
> >
> >
> > It's working fine. The only condition you have is that you have access
> to
> > a
> > Websphere installation on the machine you are building the ejb.
> > The ${custom.was.home} property is the path to the root directory of
> your
> > Websphere installation.
> >
> > Hope this helps!
> >
> > Kind Regards,
> > Thomas
> >
> >
> Thanks Thomas .Whats your  custom.was.home variable pointing to?
> On the Windows platform  , the plugin seems to battle with directory names
> that have spaces in them.On my work machine , I'm using the RAD 6 and my
> executable is pointing to "C:\Program
> Files\IBM\Rational\SDP\6.0\runtimes\base_v6\bin\wsdeploy.bat"
>
> which the  plugin doesn't seem to like very much , complaining that :
>
> [INFO] [exec:exec {execution: BankComponentEJB}]
> [DEBUG] executable "C:\Program
> Files\IBM\Rational\SDP\6.0\runtimes\base_v6\bin\wsdeploy.bat" not found in
> place, assuming it is in the PATH.
> [INFO] 'C:\Program' is not recognized as an internal or external command,
> [INFO] operable program or batch file.
>
> --
>
>
> "Don't take the name of root in vain."
>
> Jeff  Mutonho
> Cape Town
> South Africa
>
> GoogleTalk : ejbengine
> Skype: ejbengine
> Registered Linux user number 366042
>


Re: Strange problems with mvn release:perform when running javadoc:jar on Windows

2008-01-18 Thread Tom Huybrechts
I've had my share of javadoc problems, but not this one. Did you try to run
the javadoc command itself from the commandline ?

Tom

On Jan 18, 2008 10:48 AM, Stephen Connolly <[EMAIL PROTECTED]>
wrote:

> Anyone??? or will i just file an issue
>
> On Jan 17, 2008 8:24 AM, Stephen Connolly <[EMAIL PROTECTED]
> >
> wrote:
>
> > Here is the stacktrace:
> >
> > The exact same commands from my machine work with the exact same
> proxyHost
> > and proxyPort and JDK and Maven version
> >
> > [INFO] [javadoc:jar]
> > [DEBUG] C:\Java\jdk1.6.0_04\jre\..\bin\javadoc.exe
> > -J-DproxyHost=.com -J-DproxyPort= @options @packages
> > Loading source files for package com....
> > Constructing Javadoc information...
> > Standard Doclet version 1.6.0_04
> > Building tree for all the packages and classes...
> > Generating
> >
> C:/work/jsr-112-workmanager-impl/target/apidocs\com/___/___/___//\_.html...
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] Error while creating archive:Exit code: 1 -
> > java.lang.IllegalArgumentException
> >  at sun.net.www.ParseUtil.decode(ParseUtil.java:189)
> >  at sun.misc.URLClassPath$FileLoader.(URLClassPath.java:953)
> >  at sun.misc.URLClassPath$3.run(URLClassPath.java:326)
> >  at java.security.AccessController.doPrivileged(Native Method)
> >  at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
> >  at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
> >  at sun.misc.URLClassPath.findResource(URLClassPath.java:144)
> >  at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
> >  at java.security.AccessController.doPrivileged(Native Method)
> >  at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
> >  at java.lang.ClassLoader.getResource(ClassLoader.java:977)
> >  at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
> >  at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:96)
> >  at java.security.AccessController.doPrivileged(Native Method)
> >  at javax.xml.parsers.SecuritySupport.getResourceAsStream(
> > SecuritySupport.java:89)
> >  at javax.xml.parsers.FactoryFinder.findJarServiceProvider(
> > FactoryFinder.java:250)
> >  at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:223)
> >  at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java
> > :128)
> >  at
> com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(
> > LayoutParser.java:72)
> >  at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(
> > ClassBuilder.java:108)
> >  at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(
> > HtmlDoclet.java:155)
> >  at
> > com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles
> (
> > AbstractDoclet.java:164)
> >  at
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
> > AbstractDoclet.java:106)
> >  at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(
> > AbstractDoclet.java:64)
> >  at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java
> > :42)
> >  at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> >  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >  at java.lang.reflect.Method.invoke(Method.java:597)
> >  at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
> >  at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
> >  at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
> >  at com.sun.tools.javadoc.Start.begin(Start.java:128)
> >  at com.sun.tools.javadoc.Main.execute(Main.java:41)
> >  at com.sun.tools.javadoc.Main.main(Main.java:31)
> > com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
> >  at
> com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(
> > LayoutParser.java:79)
> >  at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(
> > ClassBuilder.java:108)
> >  at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(
> > HtmlDoclet.java:155)
> >  at
> > com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles
> (
> > AbstractDoclet.java:164)
> >  at
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
> > AbstractDoclet.java:106)
> >  at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(
> > AbstractDoclet.java:64)
> >  at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java
> > :42)
> >  at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> >  at

Re: M2 Cargo Plugin

2008-01-18 Thread Daniele De Francesco
Hi,

the id of the container is "jboss42x"...assure you have the latest version
of maven 2 cargo plugin...alternatively do a full build yourself with the
svn code...take a look at

http://cargo.codehaus.org/Importing+sources

hope this helps.

Cheers
Daniele



On Jan 18, 2008 10:09 AM, amit kumar <[EMAIL PROTECTED]> wrote:

> Hi,
> What is the containerId for JBoss 4.2.0GA? Is it same jboss4x or
> different?
> Because I tried fetching the plugin without version name and maven did
> download something newer than 0.3-SNAPSHOT but it threw the same error
> when
> I used container id jboss4x.
>
> Regards,
> Amit
>
> On Jan 18, 2008 11:00 AM, amit kumar <[EMAIL PROTECTED]> wrote:
>
> > Thanks a ton. But using an older version of JBoss would not be a
> > possibility reason being the product already on this version.
> >
> >
> >
> > On Jan 17, 2008 9:35 PM, David J. M. Karlsen < [EMAIL PROTECTED]>
> > wrote:
> >
> > > On Thu, 17 Jan 2008, amit kumar wrote:
> > >
> > > > Hi,
> > > > Anyone aware of any online documentation for M2 Cargo plugin for
> > > JBoss. I
> > > > tried looking for it ,but in vain.
> > > > If someone has already worked on it, please guide.
> > > >
> > > > I am using maven 2.0.7
> > > > Windows XP
> > > > JBoss 4.2.0GA
> > >
> > > Try the cargo users/dev list - there's a new commiter working on this.
> > >
> > >
> > > David J. M. Karlsen - +47 90 68 22 43
> > > http://www.davidkarlsen.com
> > > http://mp3.davidkarlsen.com
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>


Re: IBM custom project

2008-01-18 Thread Thomas Tardy
They are needed and they are being generated for my EJB project.

On Jan 18, 2008 11:55 AM, Jeff Mutonho <[EMAIL PROTECTED]> wrote:

> On Jan 18, 2008 12:25 PM, Thomas Tardy <[EMAIL PROTECTED]> wrote:
>
> > Hello
> >
> > I'm not using a standalone WAS, I'm using the installation from the RSA7
> > installation. And the property is looking like yours, just applied to
> the
> > RSA7 installation structure. I'm not facing any problems with the
> Windows
> > 'Program Files' directory.
> >
> > I have defined the property in my settings.xml looking like this:
> >
> > http://maven.apache.org/POM/4.0.0";
> >xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >  http://maven.apache.org/xsd/settings-1.0.0.xsd";>
> >
> >C:\repos\maven
> >
> >
> >
> >default
> >
> >true
> >
> >
> >
> >C:\Program
> > Files\IBM\SDP70\runtimes\base_v61
> >
> >
> >
> > 
> >
> > Hope this helps!
> >
> > Kind Regards,
> > Thomas
> >
> >
> > On Jan 18, 2008 11:15 AM, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
> >
> > > On Jan 18, 2008 11:43 AM, Thomas Tardy <[EMAIL PROTECTED]> wrote:
> > >
> > > > Hello,
> > > >
> > > > I haven't managed to get the example from Peter Pilgrim's blog
> > working.
> > > In
> > > > the example they use the ant task. The problem I faced was, that you
> > > have
> > > > to
> > > > initialize the runtime with lot of properties and I wasn't feeling
> > like
> > > > finding all the required properties.
> > > >
> > > > Therefore I'm unsing the bat-file or shellscript included in each
> > > > websphere
> > > > installation. It's setting up all the requiered properties. And in
> the
> > > > poms
> > > > of my ejb projects it's looking like this.
> > > >
> > > > 
> > > >
> > > >maven-antrun-plugin
> > > >
> > > >
> > > >verify
> > > >
> > > >
> > > > refid="
> > > > maven.runtime.classpath" />
> > > > > > > executable="${custom.was.home}/bin/ejbdeploy.bat"
> > > > failonerror="true" os="Windows XP">
> > > >
> > > > > > > value="${project.build.directory}/ejbdeply-working"
> > > > />
> > > >
> > > >
> > > >
> > > >
> > > > > > > executable="${custom.was.home}/bin/ejbdeploy.sh"
> > > > failonerror="true" os="Linux">
> > > >
> > > > > > > value="${project.build.directory}/ejbdeply-working"
> > > > />
> > > >
> > > >
> > > >
> > > >
> > > > > > > />
> > > > > > />
> > > >
> > > >
> > > >
> > > >run
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > It's working fine. The only condition you have is that you have
> access
> > > to
> > > > a
> > > > Websphere installation on the machine you are building the ejb.
> > > > The ${custom.was.home} property is the path to the root directory of
> > > your
> > > > Websphere installation.
> > > >
> > > > Hope this helps!
> > > >
> > > > Kind Regards,
> > > > Thomas
> >
>
> Thanks Thomas.It worked finally. I , however noticed that the final ejb
> jar
> has EJSxyz.class files , but not the _EJBSxyv.class  files.It seems like
> they're not being generated , where's creating the jar using RAD does
> generate the those _EJBxyz class files.
> Arent these _EJSxyz.class files needed?
>
>
>
>
>
> "Don't take the name of root in vain."
>
> Jeff  Mutonho
> Cape Town
> South Africa
>
> GoogleTalk : ejbengine
> Skype: ejbengine
> Registered Linux user number 366042
>


Avoid Dependency version

2008-01-18 Thread amit kumar
Hi,
Can I make it possible for my dependencies(jar files) declared in
 tags, not have version. Just like in case of plugin it happens,
the latest on gets fetched?
When I don't put a version in my dependency tag, it throws error.

Regards,
Amit


add test classes to main jar

2008-01-18 Thread adrien1977

Hi
I am kinda new in the maven world and i have a question.
I have a couple test classes that I'd like to embed in the main jar.
the problem is that (like everyone knows) test-classes and main classes are
in different folder.

So how can i accomplish this.

thanks

-- 
View this message in context: 
http://www.nabble.com/add-test-classes-to-main-jar-tp14950893s177p14950893.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Re: Sending email notification to Owners

2008-01-18 Thread Mick Knutson
I have the same question. sort-of:

I have:

pom.xml
|--->module 1 pom.xml
 |--->[EMAIL PROTECTED]
|--->module 2 pom.xml
 |--->[EMAIL PROTECTED]


Is it possible to have developer2 emailed if module1 fails and developer1
emailed when project1 fails?



On Jan 17, 2008 9:27 PM, amit kumar <[EMAIL PROTECTED]> wrote:

> :-). We are as well using continuum 1.1. But isn't there a possibility
> that
> something else has failed rather than last commit? Because we are doing
> daily build ( once).
> That's why was looking for something with in maven where i could specify
> all
> this information in pom.xml only.
>
>
> On Jan 17, 2008 11:52 PM, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
>
> > On Jan 17, 2008 5:16 PM, Martin Alejandro Villalobos <
> > [EMAIL PROTECTED]> wrote:
> >
> > > Jeff, Continuum 1.1 have a new option in the notifiers section named
> > > "Send a mail to latest committers"
> > > I hope that it be helpful.
> > >
> > > Regards.
> > > \Martin.
> > >
> > >
> > Thanks Martin  , but I think the "target member of the audience" here is
> > Amit :)
> >
> >
> > --
> >
> > "Don't take the name of root in vain."
> >
> > Jeff  Mutonho
> > Cape Town
> > South Africa
> >
> > GoogleTalk : ejbengine
> > Skype: ejbengine
> > Registered Linux user number 366042
> >
>



-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Re: Trouble with "ejbs" folder and maven1 proxy

2008-01-18 Thread Henrik Brautaset Aronsen

OK, thanks.

nicolas de loof skrev:

I've created MRM-659 for this issue, so that we don't forget it and create
ejb dedicated testcase.

2008/1/18, Henrik Brautaset Aronsen <[EMAIL PROTECTED]>:

nicolas de loof skrev:

Rename the "type" folder in your repository to the "jars" expected by
archiva or build/install the ejb on the same computer that requires it

Mixing jars and ejbs in the same folder is not an option for us, I'm
afraid.  We are in a large project with hundreds of artifacts.

I guess I'll stick to maven-proxy for our maven1 repo until this is
solved.  Is http://jira.codehaus.org/browse/MRM-268 the issue that is
tracking this problem?

Henrik


Re: how can I to use build time in pom files

2008-01-18 Thread Mark Eramo

Rex,
  Have a look at the Maven build number plugin. It may be able to do 
what you need.


*http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html*

Regards,
Mark


Rex Huang wrote:

Does maven has build time property, which I can use in pom files
${build time}

BR//Rex

  


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



Re: how can I to use build time in pom files

2008-01-18 Thread amit kumar
You can use buildnumber-maven-plugin, for this but i was able to have
date+time... tried only time format but it wasn't running. If this solves
your purpose lemme know, I will share the relevant portion of my pom.

On Jan 18, 2008 7:58 PM, Rex Huang <[EMAIL PROTECTED]> wrote:

> Does maven has build time property, which I can use in pom files
> ${build time}
>
> BR//Rex
>


Re: Trouble with "ejbs" folder and maven1 proxy

2008-01-18 Thread Henrik Brautaset Aronsen

nicolas de loof skrev:

Rename the "type" folder in your repository to the "jars" expected by
archiva or build/install the ejb on the same computer that requires it


Mixing jars and ejbs in the same folder is not an option for us, I'm 
afraid.  We are in a large project with hundreds of artifacts.


I guess I'll stick to maven-proxy for our maven1 repo until this is 
solved.  Is http://jira.codehaus.org/browse/MRM-268 the issue that is 
tracking this problem?


Henrik


Maestro 1.5

2008-01-18 Thread Artamonov, Juri
Guys,

 

I know that Maestro 1.5 containing release of Continuum 1.1 has been released. 
Perhaps somebody knows the public location of the artifact for Windows and can 
share it?

 

Thanks,

  Juri.



RE: Source Dir

2008-01-18 Thread Artamonov, Juri
http://mojo.codehaus.org/build-helper-maven-plugin/howto.html

-Original Message-
From: Arthur Rodrigues Stilben [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 18, 2008 4:16 PM
To: Maven Users List
Subject: Source Dir

I wan to know if is it possible to use more than one source dir using
the task "sourceDirectory".

Arthur Rodrigues Stilben

-
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: Trouble with "ejbs" folder and maven1 proxy

2008-01-18 Thread Henrik Brautaset Aronsen

OK, thanks for the swift answer.  Is there a workaround available?

Henrik

nicolas de loof skrev:

This issue has been reported recently.

It requires a fix in archiva code to enhance the "type" folder used by
maven1. The current code use the file extension to select the folder, with
few exceptions, but "ejb" type is not correctly supported.

Nico.

2008/1/18, Henrik Brautaset Aronsen <[EMAIL PROTECTED]>:

I recently tried switching from maven-proxy to archiva.

I have installed archiva in http://myhost:9876/archiva/ and my maven1
repo is accessible from http://myhost:9876/archiva/repository/my-maven1/

Everything seems to work OK, except for one weird thing:

If I try accessing e.g. ...


http://myhost:9876/archiva/repository/my-maven1/myproject/ejbs/accounting-ejb-0.2.jar

.. I receive a 404 Not Found with a link to ...

http://myhost:9876/repository/myproject/jars/accounting-ejb-0.2.jar

This only happens when accessing something in the "ejbs" folder.  E.g.

http://myhost:9876/archiva/repository/my-maven1/myproject/jars/backend-dao-0.11.jar
works fine.

The file permissions are the same all over the repo.  If I switch back
to use maven-proxy, access to files in the ejbs folder works again.

Henrik







mvh,
Henrik
--
Utvikler, Nordic Lottery Systems AS
+47 908 89 864


maven replaces @@ with [EMAIL PROTECTED] in resources

2008-01-18 Thread Jan Torben Heuer
Hi, why does maven replace the String @@ in resources with
[EMAIL PROTECTED]

Is there a documentation of default replacements? ${sas.url} was replaced
with http://maven.apache.org. Do I have to expect more surprises?

Jan


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



Re: M2 Cargo Plugin

2008-01-18 Thread amit kumar
Hi Daniele,
thanks. I tried with 0.3.1 version of cargo plugin and used the id as
jboss42x but mvn cargo:start threw the error below

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'cargo'.
[INFO]

[INFO] Building jobsstest Maven Webapp
[INFO]task-segment: [cargo:start]
[INFO]

[INFO] [cargo:start]
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Cannot create configuration. There's no registered configuration for
the parameters (container [id = [jboss42x], type = [installed]], conf
iguration type [standalone]). Actually there are no valid types registered
for this configuration. Maybe you've made a mistake spelling it?
[INFO]

[INFO] Trace
org.codehaus.cargo.container.ContainerException: Cannot create
configuration. There's no registered configuration for the parameters
(container [
id = [jboss42x], type = [installed]], configuration type [standalone]).
Actually there are no valid types registered for this configuration. Mayb
e you've made a mistake spelling it?
at
org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.createImplementation
(AbstractGenericHintFactory.java:143)
at
org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory.createImplementation
(AbstractIntrospectionGenericHintFactory.ja
va:86)
at
org.codehaus.cargo.generic.configuration.DefaultConfigurationFactory.createConfiguration
(DefaultConfigurationFactory.java:205)
at
org.codehaus.cargo.maven2.configuration.Configuration.createConfiguration(
Configuration.java:131)
at org.codehaus.cargo.maven2.AbstractCargoMojo.createConfiguration(
AbstractCargoMojo.java:292)
at org.codehaus.cargo.maven2.AbstractCargoMojo.createNewContainer(
AbstractCargoMojo.java:380)
at org.codehaus.cargo.maven2.AbstractCargoMojo.createContainer(
AbstractCargoMojo.java:320)
at org.codehaus.cargo.maven2.ContainerStartMojo.doExecute(
ContainerStartMojo.java:52)
at org.codehaus.cargo.maven2.AbstractCargoMojo.execute(
AbstractCargoMojo.java:243)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:443)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time: 14 seconds
[INFO] Finished at: Fri Jan 18 18:01:04 GMT+05:30 2008
[INFO] Final Memory: 3M/6M
[INFO]



Looks like the plugin is not recognizing jboss42x with type installed. Or is
there something that I am missing?
Below is relevant part of my pom.xml.


  
codehaus snapshot repository
http://repository.codehaus.org/

  true

  

 
  
  
jobsstest
package


org.codehaus.cargo
cargo-maven2-plugin
0.3.1
   
  
jboss42x
E:/jboss-4.2.0.GA
  
  


  

I haven't tried yet the building of resources for the cargo plugin as told
by you. Need to look into svn, haven't used it. Worked with CVS.
Regards,
Amit
On Jan 18, 2008 3:17 PM, Daniele De Francesco <

Re: Strange problems with mvn release:perform when running javadoc:jar on Windows

2008-01-18 Thread Stephen Connolly
oh it gets stranger.

we have no problems with javadoc:javadoc, only javadoc:jar

On Jan 18, 2008 9:57 AM, Tom Huybrechts <[EMAIL PROTECTED]> wrote:

> I've had my share of javadoc problems, but not this one. Did you try to
> run
> the javadoc command itself from the commandline ?
>
> Tom
>
> On Jan 18, 2008 10:48 AM, Stephen Connolly <
> [EMAIL PROTECTED]>
> wrote:
>
> > Anyone??? or will i just file an issue
> >
> > On Jan 17, 2008 8:24 AM, Stephen Connolly <
> [EMAIL PROTECTED]
> > >
> > wrote:
> >
> > > Here is the stacktrace:
> > >
> > > The exact same commands from my machine work with the exact same
> > proxyHost
> > > and proxyPort and JDK and Maven version
> > >
> > > [INFO] [javadoc:jar]
> > > [DEBUG] C:\Java\jdk1.6.0_04\jre\..\bin\javadoc.exe
> > > -J-DproxyHost=.com -J-DproxyPort= @options @packages
> > > Loading source files for package com....
> > > Constructing Javadoc information...
> > > Standard Doclet version 1.6.0_04
> > > Building tree for all the packages and classes...
> > > Generating
> > >
> >
> C:/work/jsr-112-workmanager-impl/target/apidocs\com/___/___/___//\_.html...
> > > [INFO]
> > >
> 
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> 
> > > [INFO] Error while creating archive:Exit code: 1 -
> > > java.lang.IllegalArgumentException
> > >  at sun.net.www.ParseUtil.decode(ParseUtil.java:189)
> > >  at sun.misc.URLClassPath$FileLoader.(URLClassPath.java:953)
> > >  at sun.misc.URLClassPath$3.run(URLClassPath.java:326)
> > >  at java.security.AccessController.doPrivileged(Native Method)
> > >  at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
> > >  at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
> > >  at sun.misc.URLClassPath.findResource(URLClassPath.java:144)
> > >  at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
> > >  at java.security.AccessController.doPrivileged(Native Method)
> > >  at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
> > >  at java.lang.ClassLoader.getResource(ClassLoader.java:977)
> > >  at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
> > >  at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:96)
> > >  at java.security.AccessController.doPrivileged(Native Method)
> > >  at javax.xml.parsers.SecuritySupport.getResourceAsStream(
> > > SecuritySupport.java:89)
> > >  at javax.xml.parsers.FactoryFinder.findJarServiceProvider(
> > > FactoryFinder.java:250)
> > >  at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:223)
> > >  at javax.xml.parsers.SAXParserFactory.newInstance(
> SAXParserFactory.java
> > > :128)
> > >  at
> > com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(
> > > LayoutParser.java:72)
> > >  at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build
> (
> > > ClassBuilder.java:108)
> > >  at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(
> > > HtmlDoclet.java:155)
> > >  at
> > >
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles
> > (
> > > AbstractDoclet.java:164)
> > >  at
> > com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
> > > AbstractDoclet.java:106)
> > >  at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(
> > > AbstractDoclet.java:64)
> > >  at com.sun.tools.doclets.formats.html.HtmlDoclet.start(
> HtmlDoclet.java
> > > :42)
> > >  at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
> > >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >  at sun.reflect.NativeMethodAccessorImpl.invoke(
> > > NativeMethodAccessorImpl.java:39)
> > >  at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > > DelegatingMethodAccessorImpl.java:25)
> > >  at java.lang.reflect.Method.invoke(Method.java:597)
> > >  at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:215)
> > >  at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:91)
> > >  at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
> > >  at com.sun.tools.javadoc.Start.begin(Start.java:128)
> > >  at com.sun.tools.javadoc.Main.execute(Main.java:41)
> > >  at com.sun.tools.javadoc.Main.main(Main.java:31)
> > > com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
> > >  at
> > com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(
> > > LayoutParser.java:79)
> > >  at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build
> (
> > > ClassBuilder.java:108)
> > >  at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(
> > > HtmlDoclet.java:155)
> > >  at
> > >
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles
> > (
> > > AbstractDoclet.java:164)
> > >  at
> > com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
> > > AbstractDoclet.java:106)
> > >  at com.sun.tools.doclets.int

Multiple Artifacts, Same Source

2008-01-18 Thread Adamson, Eric (DIT)
I'm relatively new to Maven 2, and am seeking advice regarding the
following problem:  I have written a data transfer object
(MailMergeRequest) that will be passed (serialized to XML using Xstream)
between web client, app server and database.  The client and app server
are running JDK5, the database (Oracle 10g) has an internal JVM, version
1.4.2_06.  I'll be creating a JAR file for each tier.

I understand re: "one POM, one artifact", and hence expect to break this
into three separate projects.  Since all JARs must contain this data
transfer object, I'm trying to decide the best way (or at least a very
good one) of keeping the three projects in sync.

So far, I've considered:

  1. using the scm plugin to checkout from SVN
   prior to building/packaging

  2. copying the duplicate source files from one project to the
   others using some other method (e.g. ant
   task)

Option #1 seems the safest to me, #2 seems like a hack.  Are both of
these bad options, and/or is there a more appropriate mechanism/plugin
that I should be looking at?

TIA,

Eric Adamson

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



how can I to use build time in pom files

2008-01-18 Thread Rex Huang
Does maven has build time property, which I can use in pom files
${build time}

BR//Rex


Re: Customizing which modules should be processed using goals

2008-01-18 Thread Patrick Schneider
Alternatively, the user can just navigate to the desired module's directory
and do a 'mvn clean install' from there.  Then you have the option of
building everything at once, or building one at a time.


Patrick

On Jan 18, 2008 3:53 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:

> You don't do this with goals. Use  for this purpose. You
> will need to remove all the  from your pom and then redeclare
> them in the various .
>
> Wayne
>
> On 1/18/08, Neeraj Joshi <[EMAIL PROTECTED]> wrote:
> > Hi All,
> > I am a maven newbie so forgive my ignorance.
> >  I am migrating my ANT build to a maven one.
> > In my ANT build I have several high-level targets like build_all,
> > build_runtime, build_editor etc which built a subset of the projects
> >
> > Now in maven I have converted the projects to modules and I want the
> user
> > to specify which modules should be processed
> >
> > I was trying to figure out how to do that using maven goals?
> > Any tips/ references?
> >
> > Thanks in advance!
> > Neeraj
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Customizing which modules should be processed using goals

2008-01-18 Thread Wayne Fay
You don't do this with goals. Use  for this purpose. You
will need to remove all the  from your pom and then redeclare
them in the various .

Wayne

On 1/18/08, Neeraj Joshi <[EMAIL PROTECTED]> wrote:
> Hi All,
> I am a maven newbie so forgive my ignorance.
>  I am migrating my ANT build to a maven one.
> In my ANT build I have several high-level targets like build_all,
> build_runtime, build_editor etc which built a subset of the projects
>
> Now in maven I have converted the projects to modules and I want the user
> to specify which modules should be processed
>
> I was trying to figure out how to do that using maven goals?
> Any tips/ references?
>
> Thanks in advance!
> Neeraj

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



Re: Sending email notification to Owners

2008-01-18 Thread Wendy Smoak
On Jan 18, 2008 3:25 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:

> My issue is that I do not want to just send to the last submitter, I want to
> send the the developers of a module.

Then configure a notifier (or several) in the pom for that module.

Have you tried it?

-- 
Wendy

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



How to create a jar that uses a subset of files in the source directory ?

2008-01-18 Thread wendellGee

I am reading that it is easy to do with profiles- as I read from the Maven
site :

If you are producing a JAR that is a derivative of the original (eg, just a
subset of classes, or the same JAR with debugging enabled), the Maven
supports this completely using profiles. See Introduction to Profiles for
more information.  



 I read the page in detail but still cannot figure out how. You can't
overwrite the source directory, so how do you tell maven that when running a
specific profile, you only want to include a subset of the main source
directory?

I can't find any examples of this and I haven't been  able to figure it out
by trial and error. Thanks in advance for any help.

-- 
View this message in context: 
http://www.nabble.com/How-to-create-a-jar-that-uses-a-subset-of-files-in-the-source-directory---tp14961436s177p14961436.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Sending email notification to Owners

2008-01-18 Thread Mick Knutson
My issue is that I do not want to just send to the last submitter, I want to
send the the developers of a module.

Module a developers should not get an email if module b fails. But the
module b developers should get that email.

The scenario you just gave will send to both module a & b developers no
matter what.



On Jan 18, 2008 2:16 PM, Kalle Korhonen <[EMAIL PROTECTED]> wrote:

> Notifiers can be set either in pom.xml or in Continuum (if you are using
> one). In pom, the way to do it is:
>
>  
>continuum
>http://127.0.0.1:8080/continuum
>
>  
>mail
>true
>true
>false
>false
>
>  [EMAIL PROTECTED]
>
>  
>
>  
>
> (from
>
> http://maven.apache.org/continuum/docs/1.1/user_guides/notification/index.html
> )
>
> Any number of things can happen that causes a build failure, so it's not a
> good idea to send an email *only* to the last committer (what if he's not
> around?). Wendy's suggestion is a standard practice.
>
> Kalle
>
>
> On Jan 18, 2008 11:26 AM, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> > On Jan 18, 2008 11:58 AM, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >
> > > In each of my pom.xml's, I have developer settings:
> > ...
> > > This is what I want the configuration to use. I do not want to have to
> > > duplicate my efforts.
> >
> > The usual way to do this is to set up a mailing list, have the CI
> > server send mail to one place, and then people can subscribe to the
> > list, watch an rss feed of it, etc.
> >
> > Perhaps you could suggest an enhancement for the notifier
> > configuration, some way to tell it "send mail to all developers listed
> > in this project".  (Which immediately suggests that you should be able
> > to send only to people with a certain role in the project...)
> >
> > --
> > Wendy
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>



-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Re: Sending email notification to Owners

2008-01-18 Thread Kalle Korhonen
Notifiers can be set either in pom.xml or in Continuum (if you are using
one). In pom, the way to do it is:

  
continuum
http://127.0.0.1:8080/continuum

  
mail
true
true
false
false

  [EMAIL PROTECTED]

  

  

(from
http://maven.apache.org/continuum/docs/1.1/user_guides/notification/index.html
)

Any number of things can happen that causes a build failure, so it's not a
good idea to send an email *only* to the last committer (what if he's not
around?). Wendy's suggestion is a standard practice.

Kalle


On Jan 18, 2008 11:26 AM, Wendy Smoak <[EMAIL PROTECTED]> wrote:

> On Jan 18, 2008 11:58 AM, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> > In each of my pom.xml's, I have developer settings:
> ...
> > This is what I want the configuration to use. I do not want to have to
> > duplicate my efforts.
>
> The usual way to do this is to set up a mailing list, have the CI
> server send mail to one place, and then people can subscribe to the
> list, watch an rss feed of it, etc.
>
> Perhaps you could suggest an enhancement for the notifier
> configuration, some way to tell it "send mail to all developers listed
> in this project".  (Which immediately suggests that you should be able
> to send only to people with a certain role in the project...)
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Customizing which modules should be processed using goals

2008-01-18 Thread Neeraj Joshi
Hi All,
I am a maven newbie so forgive my ignorance.
 I am migrating my ANT build to a maven one.
In my ANT build I have several high-level targets like build_all, 
build_runtime, build_editor etc which built a subset of the projects 

Now in maven I have converted the projects to modules and I want the user 
to specify which modules should be processed 

I was trying to figure out how to do that using maven goals?
Any tips/ references?

Thanks in advance!
Neeraj

RE: Multiple Artifacts, Same Source

2008-01-18 Thread Adamson, Eric (DIT)
Hi Nico,

Thanks for your reply.  Actually, I need 1.4 *inside* the Oracle
database, which has its own internal JVM -- but I'm sure this detail
doesn't really matter (does it?) -- your suggestions still appear to be
relevant.  I'll have a look at both of the options you've suggested.
Thanks for your help!

Regards,

  Eric Adamson


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of nicolas de loof
Sent: Friday, January 18, 2008 1:22 PM
To: Maven Users List
Subject: Re: Multiple Artifacts, Same Source


Please correct me : what you need is a java 1.4 version of your java
1.5classes used on client / app server ?

Option 1 : compile with target = 1.4, so that same jar can be used on
all runtimes Option 2 : use retrotranslator to backport your j5 classes
to 1.4. This can be auto-configured in maven to produce two jars
(yourcode.jar and
yourcode-backport.jar)

As your code needs to be 1.4 compliant (no java5 construct), option1
seems simpliest.

Nico

2008/1/18, Adamson, Eric (DIT) <[EMAIL PROTECTED]>:
>
> I'm relatively new to Maven 2, and am seeking advice regarding the 
> following problem:  I have written a data transfer object
> (MailMergeRequest) that will be passed (serialized to XML using 
> Xstream) between web client, app server and database.  The client and 
> app server are running JDK5, the database (Oracle 10g) has an internal

> JVM, version 1.4.2_06.  I'll be creating a JAR file for each tier.
>
> I understand re: "one POM, one artifact", and hence expect to break 
> this into three separate projects.  Since all JARs must contain this 
> data transfer object, I'm trying to decide the best way (or at least a

> very good one) of keeping the three projects in sync.
>
> So far, I've considered:
>
> 1. using the scm plugin to checkout from SVN
>   prior to building/packaging
>
> 2. copying the duplicate source files from one project to the
>   others using some other method (e.g. ant
>   task)
>
> Option #1 seems the safest to me, #2 seems like a hack.  Are both of 
> these bad options, and/or is there a more appropriate mechanism/plugin

> that I should be looking at?
>
> TIA,
>
> Eric Adamson
>
> -
> 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: Source Dir

2008-01-18 Thread noon

I have used the "build-helper-maven-plugin" Maven2 plugin to achieve this.
http://mojo.codehaus.org/build-helper-maven-plugin/



Arthur  Rodrigues Stilben wrote:
> 
> I wan to know if is it possible to use more than one source dir using the
> task "sourceDirectory".
> 
> Arthur Rodrigues Stilben
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Source-Dir-tp14953985s177p14957800.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Configure maven-jetty-plugin logging

2008-01-18 Thread Michael

Hi,

I have some serious logging configuration problems with Maven, slf4j and
Jetty.

The jetty plugin was configured this way
http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin#Logging but
all I see are the log outputs from jetty, none from my webapp made with
slf4j :-(

Did I something wrong? Is there any approach?

Thx
--
 OOXML - Say NO To Microsoft Office broken standard
http://www.noooxml.org

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



Re: Sending email notification to Owners

2008-01-18 Thread Wendy Smoak
On Jan 18, 2008 11:58 AM, Mick Knutson <[EMAIL PROTECTED]> wrote:

> In each of my pom.xml's, I have developer settings:
...
> This is what I want the configuration to use. I do not want to have to
> duplicate my efforts.

The usual way to do this is to set up a mailing list, have the CI
server send mail to one place, and then people can subscribe to the
list, watch an rss feed of it, etc.

Perhaps you could suggest an enhancement for the notifier
configuration, some way to tell it "send mail to all developers listed
in this project".  (Which immediately suggests that you should be able
to send only to people with a certain role in the project...)

-- 
Wendy

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



Re: [m2] continuum dashboard integration?

2008-01-18 Thread Mick Knutson
How do I run more than one goal in a series? Can anyone help me?


On Jan 17, 2008 8:56 AM, Mick Knutson <[EMAIL PROTECTED]> wrote:

> Ok, I am switching lists now as I am now into issues with continuum.
>
> Issue #1:
> I followed:
> http://mojo.codehaus.org/dashboard-maven-plugin/continuum.html
>
> Thus I have this setting:
> clean package site --batch-mode -P documentation -e -
> Dbuild.type=documentation pom.xml 
> DEFAULT_SCHEDULE
>   GROUP true true DAP clean install site maven2 [image: Build]
> 
>   [image:
> Edit]
> 
>   [image:
> Delete]
> 
> dashboard-report:dashboard --batch-mode -P documentation -e -
> Dbuild.type=documentation pom.xml 
> DEFAULT_SCHEDULE
>   PROJECT true false dashboard-report:dashboard maven2 [image: Build]
> 
>   [image:
> Edit]
> 
>   [image:
> Delete]
> 
> site:deploy --batch-mode -P documentation -e -Dbuild.type=documentation
> pom.xml 
> DEFAULT_SCHEDULE
>   PROJECT true false site:deploy maven2 [image: Build]
> 
>   [image:
> Edit]
> 
>   [image:
> Delete]
> 
> But still only the 1st goal is ever run. How can I get the others to run?
>
>
>
>
>
> On Jan 15, 2008 7:00 PM, Kalle Korhonen < [EMAIL PROTECTED]>
> wrote:
>
> > On 1/15/08, Mick Knutson < [EMAIL PROTECTED]> wrote:
> > >
> > > http://mojo.codehaus.org/dashboard-maven-plugin/continuum.html
> > > I do not understand what is meant by first goal, second goal and third
> > > goal.
> > > DO I need to setup a seperate Maven2 project in my default project
> > group
> > > for
> > > each goal?
> > >
> >
> > No. Open your project definition in Continuum (as admin or as user with
> > proper rights) and add the three build definitions as explained.
> >
> > Kalle
> >
> >
> >
> > --
> > > Thanks,
> > > Mick Knutson
> > >
> > > http://www.baselogic.com
> > > http://www.blincmagazine.com
> > > http://www.djmick.com
> > > http://www.myspace.com/mickknutson
> > > http://www.myspace.com/BLiNCMagazine
> > > http://tahoe.baselogic.com
> > > ---
> > >
> >
>
>
>
> --
>
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/BLiNCMagazine
> http://tahoe.baselogic.com
> ---
>



-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Strange Ant Plugin Execution

2008-01-18 Thread Thomas Tardy
Hi all,

I have a project parent pom which contains the following plugin execution:


intBuild



org.apache.maven.plugins
maven-antrun-plugin


deploy


  Profile: intBuild, Phase:
deploy, Task: ant




run









The child pom looks like this:



maven-antrun-plugin


verify


...



run







The child is defined as a module of the parent pom.

When I start maven executing on the parent in the profile 'intBuild' but
just for the goal 'install', the ant commands defined in the parent pom are
being executed as well


Re: add test classes to main jar

2008-01-18 Thread Olivier Lamy
Hi,
IMHO the best is to build a separate jar with the test classes.
Have a look here http://maven.apache.org/guides/mini/guide-attached-tests.html

--
Olivier

2008/1/18, adrien1977 <[EMAIL PROTECTED]>:
>
> Hi
> I am kinda new in the maven world and i have a question.
> I have a couple test classes that I'd like to embed in the main jar.
> the problem is that (like everyone knows) test-classes and main classes are
> in different folder.
>
> So how can i accomplish this.
>
> thanks
>
> --
> View this message in context: 
> http://www.nabble.com/add-test-classes-to-main-jar-tp14950893s177p14950893.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: add test classes to main jar

2008-01-18 Thread adrien1977

Hi,
That is exactly what i have done.
I was wondering if there was a way to do it. If there is not well i guess
that will be ok.

thanks for the help

--Adrien


Olivier Lamy wrote:
> 
> Hi,
> IMHO the best is to build a separate jar with the test classes.
> Have a look here
> http://maven.apache.org/guides/mini/guide-attached-tests.html
> 
> --
> Olivier
> 
> 2008/1/18, adrien1977 <[EMAIL PROTECTED]>:
>>
>> Hi
>> I am kinda new in the maven world and i have a question.
>> I have a couple test classes that I'd like to embed in the main jar.
>> the problem is that (like everyone knows) test-classes and main classes
>> are
>> in different folder.
>>
>> So how can i accomplish this.
>>
>> thanks
>>
>> --
>> View this message in context:
>> http://www.nabble.com/add-test-classes-to-main-jar-tp14950893s177p14950893.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/add-test-classes-to-main-jar-tp14950893s177p14956625.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Sending email notification to Owners

2008-01-18 Thread Mick Knutson
In each of my pom.xml's, I have developer settings:

   
Mahadevan Virudhagiri
CA50922
[EMAIL PROTECTED]
http://www.delta.org
Delta Dental: DAP Project
http://www.delta.org

C2 Developer




Sattiamoorthy Dessingou
ca50891
[EMAIL PROTECTED]
http://www.delta.org
Delta Dental: DAP Project
http://www.delta.org



This is what I want the configuration to use. I do not want to have to
duplicate my efforts.




On Jan 18, 2008 10:49 AM, Michael Meyer <[EMAIL PROTECTED]> wrote:

> Hi Amit,
> you say you are using continuum 1.1. Can you not just add a different
> notifier to each module?
>
>  > But I was told by a colleague of mine that there is something
>  > in maven as well which would let you add the information about
>  > the owner and the email address in the pom.xml
> Your colleague probably ment the "Continuus Integration" section of the
> pom: http://maven.apache.org/pom.html#Continuous_Integration_Management
>
> michael
>
> amit kumar schrieb:
> > Ditto mick, ditto! That's what I am looking for but no clue yet.
> >
> > Regards,
> > Amit
> >
> > On Jan 18, 2008 8:59 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:
> >
> >> I have the same question. sort-of:
> >>
> >> I have:
> >>
> >> pom.xml
> >>|--->module 1 pom.xml
> >> |--->[EMAIL PROTECTED]
> >>|--->module 2 pom.xml
> >> |--->[EMAIL PROTECTED]
> >>
> >>
> >> Is it possible to have developer2 emailed if module1 fails and
> developer1
> >> emailed when project1 fails?
> >>
> >>
> >>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---


Source Dir

2008-01-18 Thread Arthur Rodrigues Stilben
I wan to know if is it possible to use more than one source dir using the task 
"sourceDirectory".

Arthur Rodrigues Stilben

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



Re: Multiple Artifacts, Same Source

2008-01-18 Thread nicolas de loof
Please correct me : what you need is a java 1.4 version of your java
1.5classes used on client / app server ?

Option 1 : compile with target = 1.4, so that same jar can be used on all
runtimes
Option 2 : use retrotranslator to backport your j5 classes to 1.4. This can
be auto-configured in maven to produce two jars (yourcode.jar and
yourcode-backport.jar)

As your code needs to be 1.4 compliant (no java5 construct), option1 seems
simpliest.

Nico

2008/1/18, Adamson, Eric (DIT) <[EMAIL PROTECTED]>:
>
> I'm relatively new to Maven 2, and am seeking advice regarding the
> following problem:  I have written a data transfer object
> (MailMergeRequest) that will be passed (serialized to XML using Xstream)
> between web client, app server and database.  The client and app server
> are running JDK5, the database (Oracle 10g) has an internal JVM, version
> 1.4.2_06.  I'll be creating a JAR file for each tier.
>
> I understand re: "one POM, one artifact", and hence expect to break this
> into three separate projects.  Since all JARs must contain this data
> transfer object, I'm trying to decide the best way (or at least a very
> good one) of keeping the three projects in sync.
>
> So far, I've considered:
>
> 1. using the scm plugin to checkout from SVN
>   prior to building/packaging
>
> 2. copying the duplicate source files from one project to the
>   others using some other method (e.g. ant
>   task)
>
> Option #1 seems the safest to me, #2 seems like a hack.  Are both of
> these bad options, and/or is there a more appropriate mechanism/plugin
> that I should be looking at?
>
> TIA,
>
> Eric Adamson
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Multiple Artifacts, Same Source

2008-01-18 Thread Michael Meyer

> Since all JARs must contain this data

transfer object, I'm trying to decide the best way (or at least a very
good one) of keeping the three projects in sync.
Maybe I misunderstand your question but this sounds like an ordinary 
maven multi module build. Are your sure that "all JARs must contain this 
data transfer object"? Dont you mean that all jars need to have access 
to the MailMergeRequest.class at compile and runtime?


If so, I would create 4 jars.
- mycommon.jar contains your MailMergeRequest class (and other common 
classes) and is compiled with java 1.4
- the web client, app server and database jars all have mycommon.jar as 
dependency (@see dependency section in the pom.xml file)


michael

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



Strange Ant Plugin Execution

2008-01-18 Thread Thomas Tardy
Hi all,

Sorry, it wasn't supposed to send the previous email!

I have a project parent pom which contains the following plugin execution:


intBuild



org.apache.maven.plugins
maven-antrun-plugin


deploy


  Profile: intBuild, Phase:
deploy, Task: ant
  



run









The child pom looks like this:



maven-antrun-plugin


verify


  Profile: none, Phase: verify, Task:
exec
  



run







The child is defined as a module of the parent pom.

The ant script called by the parent pom is printing out a message, when it
is called.

When I start maven executing on the parent in the profile 'intBuild' but
just for the goal 'install', I get the following output.

echo: Profile: none, Phase: verify, Task: exec
echo: Hello from the ant script

How is this possible? I can't see the echo from the plugin in the parent
pom, but the ant is being executed. And why is something executed from the
parent pom at all? I'm starting maven with the goal 'install' and not
deploy.

Thank you for any help!

Kind Regards,
Thomas


[M2] correct goal sequence for multimodule site generation

2008-01-18 Thread jblack

I have found conflicting guidance on which goals should be run to get a
correct multimodule maven build to correctly produce all module site.  Note
that we use the cobertura and dashboard report plugins.  Currently we do:

mvn clean install site
mvn site
mvn site:deploy

(The second 'site' run is apparently needed for the dashboard plugin)

So is the 'install' goal even needed?  Does anyone have better guidance on
this?

Using maven 2.0.7.
-- 
View this message in context: 
http://www.nabble.com/-M2--correct-goal-sequence-for-multimodule-site-generation-tp14955602s177p14955602.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



MAVEN SCM - Big Problems with ClearTool on Linux .

2008-01-18 Thread Hirn, Joseph
Hello. I am having an issue with Maven SCM checking in multiple files
during release:prepare phase. It seems to issue the right command but
only the first file is checked in. If I run this command from the
command line it works just fine. The next step that fails is when it
tried to re-checkout the file to increment version and re-add snapshot. 

I have already stepped through this in the debugger but can't seem to
find the issue. Please find the output to console below:

[DEBUG] executing checkin command...
[DEBUG] Executing:
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT>>cleartool
ci -c "[maven-release-plugin] prepare release firmsoft_project-6.0.0.17"
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/pom.xml
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/firmsoft-jar
/pom.xml
/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/firmsoft-war
/pom.xml
[DEBUG] Checked in
"/view/jhirn_ETS_FIRMSOFT6.0/cc/ETS_FIRMSOFT_SOURCE/FIRMSOFT/pom.xml"
version "/main/jhirn_ETS_FIRMSOFT6.0/81".
[DEBUG]   Attached activities

I have also had other issues with cleartool, specifically with checkout
where the ClearCaseEditCommand.executeEditCommand() fails. This happens
at line 58 in when the CommandLineUtils.executeCommandLine() call
returns 141 as an exit code even though the file was checked out
successfully. By stepping through slowly in the debugger and giving
cleartool more time to finish I have gotten around this problem. I have
since used a wrapper script to spoof the return value. I do not have
this problem on windows, only linux so I assume it's cleartool on linux
but it could be plexus. 

What Linux version of cleartool is everyone else using? I am using
7.0.0.0 (Fri Apr 21 08:25:19 EDT 2006).

Thanks for anyone who can help me. This is keeping my organization from
moving forward with Maven and has been a throne in the project for
months now. We may end up having to write our own SCM provider. 




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



Re: Re: Sending email notification to Owners

2008-01-18 Thread amit kumar
Ditto mick, ditto! That's what I am looking for but no clue yet.

Regards,
Amit

On Jan 18, 2008 8:59 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:

> I have the same question. sort-of:
>
> I have:
>
> pom.xml
>|--->module 1 pom.xml
> |--->[EMAIL PROTECTED]
>|--->module 2 pom.xml
> |--->[EMAIL PROTECTED]
>
>
> Is it possible to have developer2 emailed if module1 fails and developer1
> emailed when project1 fails?
>
>
>
> On Jan 17, 2008 9:27 PM, amit kumar <[EMAIL PROTECTED]> wrote:
>
> > :-). We are as well using continuum 1.1. But isn't there a possibility
> > that
> > something else has failed rather than last commit? Because we are doing
> > daily build ( once).
> > That's why was looking for something with in maven where i could specify
> > all
> > this information in pom.xml only.
> >
> >
> > On Jan 17, 2008 11:52 PM, Jeff Mutonho <[EMAIL PROTECTED]> wrote:
> >
> > > On Jan 17, 2008 5:16 PM, Martin Alejandro Villalobos <
> > > [EMAIL PROTECTED]> wrote:
> > >
> > > > Jeff, Continuum 1.1 have a new option in the notifiers section named
> > > > "Send a mail to latest committers"
> > > > I hope that it be helpful.
> > > >
> > > > Regards.
> > > > \Martin.
> > > >
> > > >
> > > Thanks Martin  , but I think the "target member of the audience" here
> is
> > > Amit :)
> > >
> > >
> > > --
> > >
> > > "Don't take the name of root in vain."
> > >
> > > Jeff  Mutonho
> > > Cape Town
> > > South Africa
> > >
> > > GoogleTalk : ejbengine
> > > Skype: ejbengine
> > > Registered Linux user number 366042
> > >
> >
>
>
>
> --
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/mickknutson
> http://www.myspace.com/BLiNCMagazine
> http://tahoe.baselogic.com
> ---
>


Re: Sending email notification to Owners

2008-01-18 Thread Michael Meyer

Hi Amit,
you say you are using continuum 1.1. Can you not just add a different 
notifier to each module?


> But I was told by a colleague of mine that there is something
> in maven as well which would let you add the information about
> the owner and the email address in the pom.xml
Your colleague probably ment the "Continuus Integration" section of the 
pom: http://maven.apache.org/pom.html#Continuous_Integration_Management


michael

amit kumar schrieb:

Ditto mick, ditto! That's what I am looking for but no clue yet.

Regards,
Amit

On Jan 18, 2008 8:59 PM, Mick Knutson <[EMAIL PROTECTED]> wrote:


I have the same question. sort-of:

I have:

pom.xml
   |--->module 1 pom.xml
|--->[EMAIL PROTECTED]
   |--->module 2 pom.xml
|--->[EMAIL PROTECTED]


Is it possible to have developer2 emailed if module1 fails and developer1
emailed when project1 fails?





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



Configure a Plugin for two different Phases

2008-01-18 Thread Thomas Tardy
Hello,

I have to say sorry for the previous emails. I haven't seen all the messages
in my log file.

The problem is, that I configure the ant-run-plugin for two phases and it's
executing in both phases the tasks from all phases. One execution is defined
in the parent, and one in the child itself.

Isn't it possible to define twice definitions for a plugin?

Thanks for your help!

Kind Regards,
Thomas


Re: Strange Ant Plugin Execution

2008-01-18 Thread Thomas Tardy
Please ignore this email!

On Jan 18, 2008 7:29 PM, Thomas Tardy <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I have a project parent pom which contains the following plugin execution:
> 
> 
> intBuild
> 
> 
> 
> org.apache.maven.plugins
> maven-antrun-plugin
> 
> 
> deploy
> 
> 
>   Profile: intBuild, Phase:
> deploy, Task: ant
>
> 
> 
> 
> run
> 
> 
> 
> 
> 
> 
> 
> 
>
> The child pom looks like this:
> 
> 
> 
> maven-antrun-plugin
> 
> 
> verify
> 
> 
> ...
> 
> 
> 
> run
> 
> 
> 
> 
> 
> 
>
> The child is defined as a module of the parent pom.
>
> When I start maven executing on the parent in the profile 'intBuild' but
> just for the goal 'install', the ant commands defined in the parent pom are
> being executed as well
>


Re: Strange Ant Plugin Execution

2008-01-18 Thread Thomas Tardy
please ignore this email!

On Jan 18, 2008 7:35 PM, Thomas Tardy <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> Sorry, it wasn't supposed to send the previous email!
>
> I have a project parent pom which contains the following plugin execution:
> 
> 
> intBuild
> 
> 
> 
> org.apache.maven.plugins
> maven-antrun-plugin
> 
> 
> deploy
> 
> 
>   Profile: intBuild, Phase:
> deploy, Task: ant
>   
> 
> 
> 
> run
> 
> 
> 
> 
> 
> 
> 
> 
>
> The child pom looks like this:
> 
> 
> 
> maven-antrun-plugin
> 
> 
> verify
> 
> 
>   Profile: none, Phase: verify,
> Task: exec
>   
> 
> 
> 
> run
> 
> 
> 
> 
> 
> 
>
> The child is defined as a module of the parent pom.
>
> The ant script called by the parent pom is printing out a message, when it
> is called.
>
> When I start maven executing on the parent in the profile 'intBuild' but
> just for the goal 'install', I get the following output.
>
> echo: Profile: none, Phase: verify, Task: exec
> echo: Hello from the ant script
>
> How is this possible? I can't see the echo from the plugin in the parent
> pom, but the ant is being executed. And why is something executed from the
> parent pom at all? I'm starting maven with the goal 'install' and not
> deploy.
>
> Thank you for any help!
>
> Kind Regards,
> Thomas
>


Re: Trouble with "ejbs" folder and maven1 proxy

2008-01-18 Thread nicolas de loof
Rename the "type" folder in your repository to the "jars" expected by
archiva
or
build/install the ejb on the same computer that requires it

2008/1/18, Henrik Brautaset Aronsen <[EMAIL PROTECTED]>:
>
> OK, thanks for the swift answer.  Is there a workaround available?
>
> Henrik
>
> nicolas de loof skrev:
> > This issue has been reported recently.
> >
> > It requires a fix in archiva code to enhance the "type" folder used by
> > maven1. The current code use the file extension to select the folder,
> with
> > few exceptions, but "ejb" type is not correctly supported.
> >
> > Nico.
> >
> > 2008/1/18, Henrik Brautaset Aronsen <[EMAIL PROTECTED]>:
> >> I recently tried switching from maven-proxy to archiva.
> >>
> >> I have installed archiva in http://myhost:9876/archiva/ and my maven1
> >> repo is accessible from
> http://myhost:9876/archiva/repository/my-maven1/
> >>
> >> Everything seems to work OK, except for one weird thing:
> >>
> >> If I try accessing e.g. ...
> >>
> >>
> >>
> http://myhost:9876/archiva/repository/my-maven1/myproject/ejbs/accounting-ejb-0.2.jar
> >>
> >> .. I receive a 404 Not Found with a link to ...
> >>
> >> http://myhost:9876/repository/myproject/jars/accounting-ejb-0.2.jar
> >>
> >> This only happens when accessing something in the "ejbs" folder.  E.g.
> >>
> >>
> http://myhost:9876/archiva/repository/my-maven1/myproject/jars/backend-dao-0.11.jar
> >> works fine.
> >>
> >> The file permissions are the same all over the repo.  If I switch back
> >> to use maven-proxy, access to files in the ejbs folder works again.
> >>
> >> Henrik
> >>
> >>
> >
>
>
> mvh,
> Henrik
> --
> Utvikler, Nordic Lottery Systems AS
> +47 908 89 864
>