RE: Newbie issues with maven castor plugin in Maven 1.0.2

2006-07-29 Thread Karr, David
Well, I've filed the patch with JIRA.  I don't expect I'll be taking
over maintenance of the project. 

> -Original Message-
> From: Lukas Theussl [mailto:[EMAIL PROTECTED] 
> Sent: Friday, July 28, 2006 10:10 PM
> To: Maven Users List
> Subject: Re: Newbie issues with maven castor plugin in Maven 1.0.2
> 
> That's right. If you work out something nice, you might 
> consider to file your patches at JIRA [1] so other people can 
> look it up too; and maybe one day someone might even want to 
> revive the plugin. Or, if you want to take over it's 
> maintenance yourself, you are free to take the codebase and 
> find another home for the plugin, eg at the sourceforge project [2].
> 
> Cheers,
> -Lukas
> 
> [1] http://jira.codehaus.org/browse/MPCASTOR
> [2] http://maven-plugins.sourceforge.net/
> 
> 
> Karr, David wrote:
> > I see.  So since the the castor plugin for maven 1.x isn't 
> supported 
> > anymore, the only way I'm going to get it to use an 
> alternate binding 
> > file is for me to patch the plugin script myself (which 
> I've already 
> > done and tested, just to verify I could do it)?
> > 
> > 
> >>-Original Message-
> >>From: Lukas Theussl [mailto:[EMAIL PROTECTED]
> >>Sent: Friday, July 28, 2006 4:45 PM
> >>To: Maven Users List
> >>Subject: Re: Newbie issues with maven castor plugin in Maven 1.0.2
> >>
> >>The mojo plugins are all for Maven 2, you cannot use them 
> with Maven 
> >>1.x. The castor plugin for Maven 1.x has been deprecated [1], it is 
> >>not supported by the Maven team anymore (but it should work 
> still with 
> >>Maven 1.0.2).
> >>
> >>HTH,
> >>-Lukas
> >>
> >>[1] http://maven.apache.org/maven-1.x/plugins/castor/
> >>
> >>
> >>Karr, David wrote:
> >>
> >>>I'm working on a project using Maven 1.0.2, and I'm not
> >>
> >>that familiar
> >>
> >>>with how Maven works.  I'm trying to use the maven castor 
> plugin to 
> >>>generate classes from an XSD, but I need to override the
> >>
> >>class binding
> >>
> >>>to prevent duplicate classes.  I'm finding it a little hard to 
> >>>determine exactly what maven castor plugin I'm using, and
> >>
> >>what I should be using.
> >>
> >>>When I first googled for info about this, it looked like 
> the plugin 
> >>>had a "binding" or "bindingfile" attribute that specified
> >>
> >>the path to
> >>
> >>>a specific binding file to use.  I found that whatever I set for 
> >>>either of those properties was being ignored.
> >>>
> >>>After turning on maven debug, I discovered that I'm using the 
> >>>"maven-castor-plugin-1.2", and the plugin.jelly file shows
> >>
> >>that this
> >>
> >>>plugin is quite different from what I found by googling.  I
> >>
> >>found info
> >>
> >>>on the "mojo" site about the maven castor plugin, and this has the 
> >>>"bindingfile" attribute, which I assume will do what I want.
> >>>
> >>>So, now I have some questions:
> >>>
> >>>1. Can I, and should I, use the maven castor plugin I 
> found on mojo 
> >>>instead of what I have right now?
> >>>2. If I should use the mojo plugin, how exactly do I get
> >>
> >>it?  I can't
> >>
> >>>find anyplace on the mojo site to download it?  Is that not the 
> >>>process for installing it?
> >>>
> >>>I've been asking about this on the castor and mojo mailing
> >>
> >>lists, but
> >>
> >>>I haven't seen much response.
> >>>
> >>>
> >>
> >>
> -
> >>
> >>>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]
> > 
> > 
> 
> -
> 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: Cargo Plugin

2006-07-29 Thread Vincent Massol
Hi Alex,

 

  _  

From: Alex Turner [mailto:[EMAIL PROTECTED] 
Sent: samedi 29 juillet 2006 21:03
To: Maven Users List; [EMAIL PROTECTED]
Subject: Re: Cargo Plugin

 

To make it easier, I might break it down into scenarios.  In a kind of how
do I? format.  How do I deploy a war file to a container?  How do I deploy a
war file exploded to a conatiner?  How do I restart a container?

This is what we have for the m2 plugin: testCreateCustomDeployable. We don’t
have it in general though so I believe the problem is in generalizing this
to all the different APIs. That’s a good idea. I’ve created a jira issue for
this: http://jira.codehaus.org/browse/CARGO-399

The other thing is, I haven't found a way to update my deployment.  I want
to just copy files that have changes and ask the container to redeploy the
web app.  This is something ant can do quite easily, and I can't figure out
how to do with maven/cargo. 

Yep, I agree. It is undocumented for now. I have created a jira issue for
it: http://jira.codehaus.org/browse/CARGO-398

Now all we need are contributors to help us and speed this up.

Thanks for the feedback
-Vincent

Thanks for all the great support,

Alex.

On 7/29/06, Vincent Massol <[EMAIL PROTECTED]> wrote: 

Hi Alex,

> -Original Message-
> From: Alex Turner [mailto:   [EMAIL PROTECTED]
> Sent: samedi 29 juillet 2006 06:46
> To: Maven Users List
> Subject: Re: Cargo Plugin
>
> Thanks for the pointer - the documentation isn't the easiest to follow,
> but 
> I figured it out.

What do you think would the single most important point to improve it?

[snip]

Thanks
-Vincent






___ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le
sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et
vos expériences.
http://fr.answers.yahoo.com


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

 



Re: Maven 2.0 Eclipse Plug-in compatibility with Eclipse 3.2.x (and IBMRAD 6.x)

2006-07-29 Thread Mark Hewett

On 7/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Actually I get appears whenever I now access the Eclipse preferences dialog
e.g. MenuBar -> Windows -> Preferences.

"Plug-in org.maven.ide.eclipse was unable to load class 
org.maven.ide.eclipse.preferences.Maven2PreferencePage."



Peter,

Check that you have a .m2 directory in the default location (~/.m2,
C:\Documents and Settings\\.m2).  See
http://jira.codehaus.org/browse/MNGECLIPSE-124.

Hope this helps,
Mark

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



Re: Cargo Plugin

2006-07-29 Thread Alex Turner

To make it easier, I might break it down into scenarios.  In a kind of how
do I? format.  How do I deploy a war file to a container?  How do I deploy a
war file exploded to a conatiner?  How do I restart a container?

The other thing is, I haven't found a way to update my deployment.  I want
to just copy files that have changes and ask the container to redeploy the
web app.  This is something ant can do quite easily, and I can't figure out
how to do with maven/cargo.

Thanks for all the great support,

Alex.

On 7/29/06, Vincent Massol <[EMAIL PROTECTED]> wrote:


Hi Alex,

> -Original Message-
> From: Alex Turner [mailto:[EMAIL PROTECTED]
> Sent: samedi 29 juillet 2006 06:46
> To: Maven Users List
> Subject: Re: Cargo Plugin
>
> Thanks for the pointer - the documentation isn't the easiest to follow,
> but
> I figured it out.

What do you think would the single most important point to improve it?

[snip]

Thanks
-Vincent







___
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le
sujet !
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et
vos expériences.
http://fr.answers.yahoo.com


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




Re: Dependencies not getting resolved even after install

2006-07-29 Thread Wayne Fay

Maven uses poms to tell it information about an artifact -- its
version, dependencies, etc. So Maven "always" needs a pom for all
artifacts.

Installing a third-party artifact with install-file will *only* copy
the jar file to the proper directory in your local Maven repo. Then
when you run Maven the next time and reference that jar, Maven will
look at the poms in its local repo, see that it does not have a pom
for the artifact, and go out to the Internet to find it. It does this
*before* it even looks to see if it has the jar in its repo. Only once
it resolves all the poms for all direct and transitional dependencies
does Maven start looking at the jars themselves in the repo, to decide
what else needs to be downloaded etc.

Thus, when installing third-party artifacts, you should use
generatePom unless you already have a pom for the artifact which you
will copy to the local repo. Maven will generate an "empty" pom for
the file and it will not bother looking out on the Internet for it the
next time you reference the artifact.

Finally, I have to wonder why you're installing commons-logging-api
manually into your local repo. Isn't that already available in the
Central repo? (Perhaps not version 1.1, I don't know...)

Wayne

On 7/29/06, Kapil Gupta(CT) <[EMAIL PROTECTED]> wrote:

Hi,

I have installed my thirdparty jar files in maven local repository using
install:install-file goal.

While compiling my module, I receive following errors

[ERROR] BUILD ERROR

[INFO]


[INFO] Error building POM (may not be this project's POM).





Project ID: commons-logging:commons-logging-api



Reason: Error getting POM for 'commons-logging:commons-logging-api' from
the repository: Error transferring file

 commons-logging:commons-logging-api:pom:1.1 from the specified remote
repositories:  central (http://repo1.maven.org/maven2)



The error goes if I Install my jar using -DgeneratePom=true



As per the documentation, generatedPom flag is optional then why I have
to install jars using this flag?



Thanks,

Kapil





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



Dependencies not getting resolved even after install

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

I have installed my thirdparty jar files in maven local repository using
install:install-file goal. 

While compiling my module, I receive following errors

[ERROR] BUILD ERROR

[INFO]


[INFO] Error building POM (may not be this project's POM).

 

 

Project ID: commons-logging:commons-logging-api

 

Reason: Error getting POM for 'commons-logging:commons-logging-api' from
the repository: Error transferring file

  commons-logging:commons-logging-api:pom:1.1 from the specified remote
repositories:  central (http://repo1.maven.org/maven2)

 

The error goes if I Install my jar using -DgeneratePom=true

 

As per the documentation, generatedPom flag is optional then why I have
to install jars using this flag?

 

Thanks,

Kapil



RE: Cargo Plugin

2006-07-29 Thread Vincent Massol
Hi Alex,

> -Original Message-
> From: Alex Turner [mailto:[EMAIL PROTECTED]
> Sent: samedi 29 juillet 2006 06:46
> To: Maven Users List
> Subject: Re: Cargo Plugin
> 
> Thanks for the pointer - the documentation isn't the easiest to follow,
> but
> I figured it out.

What do you think would the single most important point to improve it?

[snip]

Thanks
-Vincent






___ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet 
! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences. 
http://fr.answers.yahoo.com 


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