Re: "Un-mavenize" a Maven2 project ?

2009-02-27 Thread Mark Struberg
Allessandro, 

just my opinion (as a former student and as someone who holds lessons from time 
to time):

Since maven nowadays is really a standard tool in the java world which almost 
_everyone_ uses, it would be a good point to introduce it to your students.
Also other ways fumbling around with eclipse config are much more time 
consuming than downloading maven.zip.

LieGrue,
strub

--- Alessio Pace  schrieb am Fr, 27.2.2009:

> Von: Alessio Pace 
> Betreff: Re: "Un-mavenize" a Maven2 project ?
> An: "Maven Users List" 
> Datum: Freitag, 27. Februar 2009, 8:43
> On Fri, Feb 27, 2009 at 8:36 AM, Ketan Khairnar
> wrote:
> 
> > simple solution would be to include classpath-entry 
> in .classpath eclipse
> > file
> >
> > e.g.
> >
> > * combineaccessrules="false" kind="src"
> > path="/DependencyProject"/>*
> 
> 
> 
> I don't know if we are talking about the exact use case
> I was referring to.
> I would like to have re-create a project source tree with a
> directory of
> libraries (the jars) my current project depend on, and have
> these jars
> inside this source tree (not just in my $M2 repository).
> 
> I know I can do maven eclipse:eclipse and then copy the
> files listed in the
> .classpath into my source tree, but I was wondering only if
> there was a more
> custom solution for this.
> 
> Thank you anyway.
> 
> Regards,
> Alessio Pace.
> 
> 
> >
> >
> >
> > On Fri, Feb 27, 2009 at 1:03 PM, Alessio Pace
>  > >wrote:
> >
> > > On Fri, Feb 27, 2009 at 8:24 AM, Ketan Khairnar
> <
> > ketan.khair...@gmail.com
> > > >wrote:
> > >
> > > > write a ant script to move maven project to
> new directory with standard
> > > > eclipse project format.
> > > >
> > > > Once you open a project in eclipse
> class-path entries can be added.
> > > >
> > > > this is partial automation though
> > >
> > >
> > >
> > > Hi,
> > >
> > > thanks for your answer. I was wondering, but what
> about dependency
> > > resolution?
> > >
> > > Regards,
> > > Alessio Pace.
> > >
> > >
> > >
> > > >
> > > >
> > > > On Fri, Feb 27, 2009 at 12:49 PM, Alessio
> Pace  > > > >wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > a project I'm working on is built
> by Maven2. It is a single module,
> > it
> > > > uses
> > > > > M2 merely for dependency managament.
> > > > >
> > > > > I have to let some students play with
> it as part of a lab project.
> > > Their
> > > > > machines just have plain Eclipse, and
> the users are Maven-unaware,
> > and
> > > I
> > > > > can't afford to make them
> pre-install Maven or install it during the
> > > lab
> > > > > session (too few hours).
> > > > >
> > > > > What I wanted to do is to
> "un-mavenize" the project, creating a
> > > separate
> > > > > source tree in the old fashion: without
> the pom.xml but with a libs
> > > > > directory filled with all the jars my
> project depends on. Possibly
> > also
> > > > > with
> > > > > the Eclipse .project and .classpath
> files already configured (ok ok,
> > > this
> > > > > is
> > > > > optional).
> > > > >
> > > > > Thanks in advance for any suggestion on
> how to achieve that, or with
> > > > > comments if you ever had to deal with
> such a situation (and possibly
> > if
> > > > you
> > > > > want me to discourage to go with the
> un-mavenize process)
> > > > >
> > > > > Regards,
> > > > > Alessio Pace.
> > > > >
> > > >
> > >
> >




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: The PluginDescriptor for the plugin maven:maven-war-plugin was not found

2009-02-27 Thread Martin Höller
On Thursday 26 February 2009 Wayne Fay wrote:
> 1. Check with CAS Users and Dev list to make sure someone else has
> successfully built their project with 2.0.10. If not, what about
> 2.0.9? Or 2.0.8?

The pom.xml Vinicious posted contains a configuration section for the 
enforcer plugin to make sure 2.0.10 is used. So it won't work with previous 
versions unless you modify the pom.xml.

> What version is the CAS Dev team using? What about 
> their operating system and JDK versions?

Same for JDK version: 1.5 is required.

- martin


signature.asc
Description: This is a digitally signed message part.


Re: "Un-mavenize" a Maven2 project ?

2009-02-27 Thread Alessio Pace
On Fri, Feb 27, 2009 at 9:45 AM, Mark Struberg  wrote:

> Allessandro,
>
> just my opinion (as a former student and as someone who holds lessons from
> time to time):
>
> Since maven nowadays is really a standard tool in the java world which
> almost _everyone_ uses, it would be a good point to introduce it to your
> students.
> Also other ways fumbling around with eclipse config are much more time
> consuming than downloading maven.zip.
>
> LieGrue,
> strub


Hi thanks for your point of view, the fact is that the lab session is only
few hours long, so I can't afford introducing Maven or asking users to
install it inside Eclipse (you always have someone encountering errors,
etc..).  Otherwise, surely I would have done it!

Regards,
Alessio Pace.



>
>
> --- Alessio Pace  schrieb am Fr, 27.2.2009:
>
> > Von: Alessio Pace 
> > Betreff: Re: "Un-mavenize" a Maven2 project ?
> > An: "Maven Users List" 
> > Datum: Freitag, 27. Februar 2009, 8:43
> > On Fri, Feb 27, 2009 at 8:36 AM, Ketan Khairnar
> > wrote:
> >
> > > simple solution would be to include classpath-entry
> > in .classpath eclipse
> > > file
> > >
> > > e.g.
> > >
> > > * > combineaccessrules="false" kind="src"
> > > path="/DependencyProject"/>*
> >
> >
> >
> > I don't know if we are talking about the exact use case
> > I was referring to.
> > I would like to have re-create a project source tree with a
> > directory of
> > libraries (the jars) my current project depend on, and have
> > these jars
> > inside this source tree (not just in my $M2 repository).
> >
> > I know I can do maven eclipse:eclipse and then copy the
> > files listed in the
> > .classpath into my source tree, but I was wondering only if
> > there was a more
> > custom solution for this.
> >
> > Thank you anyway.
> >
> > Regards,
> > Alessio Pace.
> >
> >
> > >
> > >
> > >
> > > On Fri, Feb 27, 2009 at 1:03 PM, Alessio Pace
> >  > > >wrote:
> > >
> > > > On Fri, Feb 27, 2009 at 8:24 AM, Ketan Khairnar
> > <
> > > ketan.khair...@gmail.com
> > > > >wrote:
> > > >
> > > > > write a ant script to move maven project to
> > new directory with standard
> > > > > eclipse project format.
> > > > >
> > > > > Once you open a project in eclipse
> > class-path entries can be added.
> > > > >
> > > > > this is partial automation though
> > > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > thanks for your answer. I was wondering, but what
> > about dependency
> > > > resolution?
> > > >
> > > > Regards,
> > > > Alessio Pace.
> > > >
> > > >
> > > >
> > > > >
> > > > >
> > > > > On Fri, Feb 27, 2009 at 12:49 PM, Alessio
> > Pace  > > > > >wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > a project I'm working on is built
> > by Maven2. It is a single module,
> > > it
> > > > > uses
> > > > > > M2 merely for dependency managament.
> > > > > >
> > > > > > I have to let some students play with
> > it as part of a lab project.
> > > > Their
> > > > > > machines just have plain Eclipse, and
> > the users are Maven-unaware,
> > > and
> > > > I
> > > > > > can't afford to make them
> > pre-install Maven or install it during the
> > > > lab
> > > > > > session (too few hours).
> > > > > >
> > > > > > What I wanted to do is to
> > "un-mavenize" the project, creating a
> > > > separate
> > > > > > source tree in the old fashion: without
> > the pom.xml but with a libs
> > > > > > directory filled with all the jars my
> > project depends on. Possibly
> > > also
> > > > > > with
> > > > > > the Eclipse .project and .classpath
> > files already configured (ok ok,
> > > > this
> > > > > > is
> > > > > > optional).
> > > > > >
> > > > > > Thanks in advance for any suggestion on
> > how to achieve that, or with
> > > > > > comments if you ever had to deal with
> > such a situation (and possibly
> > > if
> > > > > you
> > > > > > want me to discourage to go with the
> > un-mavenize process)
> > > > > >
> > > > > > Regards,
> > > > > > Alessio Pace.
> > > > > >
> > > > >
> > > >
> > >
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Re : Re: "Un-mavenize" a Maven2 project ?

2009-02-27 Thread Alessio Pace
Hi,

good point indeed, I'll give it a try!

Thank you.

Regards,
Alessio Pace.


On Fri, Feb 27, 2009 at 8:56 AM, Jean-François Mathiot <
jmath...@servebox.com> wrote:

> Hello Alessio,
> Why don't you use assembly plugin to create the second project ?
> Hope this helps.
> Jeff
> Jean-Francois Mathiot
> 
>
> Tel : 0 821 800 891
> Gsm : +33 (0) 607 967 911
> 
>
> -Original Message-
> From: Alessio Pace 
>
> Date: Fri, 27 Feb 2009 08:43:01
> To: Maven Users List
> Subject: Re: "Un-mavenize" a Maven2 project ?
>
>
> On Fri, Feb 27, 2009 at 8:36 AM, Ketan Khairnar  >wrote:
>
> > simple solution would be to include classpath-entry  in .classpath
> eclipse
> > file
> >
> > e.g.
> >
> > * > path="/DependencyProject"/>*
>
>
>
> I don't know if we are talking about the exact use case I was referring to.
> I would like to have re-create a project source tree with a directory of
> libraries (the jars) my current project depend on, and have these jars
> inside this source tree (not just in my $M2 repository).
>
> I know I can do maven eclipse:eclipse and then copy the files listed in the
> .classpath into my source tree, but I was wondering only if there was a
> more
> custom solution for this.
>
> Thank you anyway.
>
> Regards,
> Alessio Pace.
>
>
> >
> >
> >
> > On Fri, Feb 27, 2009 at 1:03 PM, Alessio Pace  > >wrote:
> >
> > > On Fri, Feb 27, 2009 at 8:24 AM, Ketan Khairnar <
> > ketan.khair...@gmail.com
> > > >wrote:
> > >
> > > > write a ant script to move maven project to new directory with
> standard
> > > > eclipse project format.
> > > >
> > > > Once you open a project in eclipse class-path entries can be added.
> > > >
> > > > this is partial automation though
> > >
> > >
> > >
> > > Hi,
> > >
> > > thanks for your answer. I was wondering, but what about dependency
> > > resolution?
> > >
> > > Regards,
> > > Alessio Pace.
> > >
> > >
> > >
> > > >
> > > >
> > > > On Fri, Feb 27, 2009 at 12:49 PM, Alessio Pace <
> alessio.p...@gmail.com
> > > > >wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > a project I'm working on is built by Maven2. It is a single module,
> > it
> > > > uses
> > > > > M2 merely for dependency managament.
> > > > >
> > > > > I have to let some students play with it as part of a lab project.
> > > Their
> > > > > machines just have plain Eclipse, and the users are Maven-unaware,
> > and
> > > I
> > > > > can't afford to make them pre-install Maven or install it during
> the
> > > lab
> > > > > session (too few hours).
> > > > >
> > > > > What I wanted to do is to "un-mavenize" the project, creating a
> > > separate
> > > > > source tree in the old fashion: without the pom.xml but with a libs
> > > > > directory filled with all the jars my project depends on. Possibly
> > also
> > > > > with
> > > > > the Eclipse .project and .classpath files already configured (ok
> ok,
> > > this
> > > > > is
> > > > > optional).
> > > > >
> > > > > Thanks in advance for any suggestion on how to achieve that, or
> with
> > > > > comments if you ever had to deal with such a situation (and
> possibly
> > if
> > > > you
> > > > > want me to discourage to go with the un-mavenize process)
> > > > >
> > > > > Regards,
> > > > > Alessio Pace.
> > > > >
> > > >
> > >
> >
>
>


Re: "Un-mavenize" a Maven2 project ?

2009-02-27 Thread Antonio Petrelli
2009/2/27 Alessio Pace :
> Hi thanks for your point of view, the fact is that the lab session is only
> few hours long, so I can't afford introducing Maven or asking users to
> install it inside Eclipse (you always have someone encountering errors,
> etc..).  Otherwise, surely I would have done it!

Why not m2eclipse?
http://m2eclipse.sonatype.org/

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: "Un-mavenize" a Maven2 project ?

2009-02-27 Thread Inman, Peter
You could get maven working from the command line in a few minutes.

All your users do is unzip into a standard folder and if you pre-create the 
settings.xml, environment batch files and any other bits that people need, it 
only takes a few minutes. I did that with my small development team, and they 
managed to install it and get it working very quickly - and they have no Maven 
experience.

Stick to the command line and forget about eclipse as it makes it much 
easier

Pete
-Original Message-
From: Antonio Petrelli [mailto:antonio.petre...@gmail.com] 
Sent: 27 February 2009 09:07
To: Maven Users List
Subject: Re: "Un-mavenize" a Maven2 project ?

2009/2/27 Alessio Pace :
> Hi thanks for your point of view, the fact is that the lab session is only
> few hours long, so I can't afford introducing Maven or asking users to
> install it inside Eclipse (you always have someone encountering errors,
> etc..).  Otherwise, surely I would have done it!

Why not m2eclipse?
http://m2eclipse.sonatype.org/

Antonio

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Ear & application.xml

2009-02-27 Thread JC Walmetz

Hi,

I use Maven ear plugin to generate an ear. This ear is used in jboss5. My
EAR application is huge and contains a lot of jars. Application.xml file is
difficult to maintain.

I have an EJB module that has a lot of transitive dependencies. I'd like to
list all that transitive dependencies in the application.xml file as java
module. 

Ear plugin add jars in the EAR. To add the EJB module ine the
application.xml I have 

com.foo
ejbservice


This configuration adds the module in the application.xml but not all its
transitive dependencies. Is there a solution to add automatically all
transitive dependencies in the applpication.xml ?

Previously I was using the JBoss 4.2.3, I have move to JBoss 5. With JBoss
4.2.3, I was adding the transitive dependencies in the classpath of the
manifest.mf of the ejb module and I just need to declare to ejb module in
the application.xml ... unfortunatelly it does not works anymore with
JBoss5. In JBoss 5, it works only if I removed the claaspath in manifest.mf
and adds all the lib in application.xml as java module. 

Does someone have the same issue ?

Thks


-- 
View this message in context: 
http://www.nabble.com/Ear---application.xml-tp22243464p22243464.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Can no longer create war file

2009-02-27 Thread Johan S

Hi

Suddenly I can't create a war file, with package, install, or war...
Can't figure out what I have done. It says "Access denied" to classes
folder. But the jar that is build and should be injected as dependency lands
in the target folder. I have tried to manually copy the file to classes
folder, but without any luck.

Any help, please...

Error stacktrace:
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executing goal
'org.apache.maven.plugins:maven-war-plugin:2.1-alpha-2:war': Mojo execution
failed.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:505)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
at 
org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
at
org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
at
org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo execution
failed.
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:601)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
... 20 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to copy
file for artifact[com.resultreporter.player:player-core:jar:1.1.0:compile]
at
org.apache.maven.plugin.war.packaging.ArtifactsPackagingTask.performPackaging(ArtifactsPackagingTask.java:125)
at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleArtifacts(WarProjectPackagingTask.java:183)
at
org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPackaging(WarProjectPackagingTask.java:103)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:439)
at
org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:375)
at 
org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:181)
at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:143)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
... 21 more
Caused by: java.io.FileNotFoundException:
C:\Workspaces\ResultReporter\resultreporter\player\player-core\target\classes
(Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at
org.codehaus.plexus.util.io.FileInputStreamFacade.getInputStream(FileInputStreamFacade.java:78)
at 
org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:1057)
at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:965)
at
org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:293)
at
org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask$1.registered(AbstractWarPackagingTask.java:150)
at
org.apache.maven.plugin.war.util.WebappStructure.registerFile(WebappStructure.java:176)
at
org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:145)
at
org.apache.maven.plugin.war.packaging.ArtifactsPackagingTask.performPackaging(ArtifactsPackagingTask.java:100)
... 28 more

[INFO]

[INFO] BUILD FAILED
[INFO]
---

Re: "Un-mavenize" a Maven2 project ?

2009-02-27 Thread Baptiste MATHUS
Using mvn dependency:copy-dependencies would just retrieve all your
dependencies quite simply. Then, it would just be a matter of seconds to
configure your eclipse project to use those downloaded jars.

Cheers

2009/2/27 Inman, Peter 

> You could get maven working from the command line in a few minutes.
>
> All your users do is unzip into a standard folder and if you pre-create the
> settings.xml, environment batch files and any other bits that people need,
> it only takes a few minutes. I did that with my small development team, and
> they managed to install it and get it working very quickly - and they have
> no Maven experience.
>
> Stick to the command line and forget about eclipse as it makes it much
> easier
>
> Pete
> -Original Message-
> From: Antonio Petrelli [mailto:antonio.petre...@gmail.com]
> Sent: 27 February 2009 09:07
> To: Maven Users List
> Subject: Re: "Un-mavenize" a Maven2 project ?
>
> 2009/2/27 Alessio Pace :
> > Hi thanks for your point of view, the fact is that the lab session is
> only
> > few hours long, so I can't afford introducing Maven or asking users to
> > install it inside Eclipse (you always have someone encountering errors,
> > etc..).  Otherwise, surely I would have done it!
>
> Why not m2eclipse?
> http://m2eclipse.sonatype.org/
>
> Antonio
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


recompilation issue

2009-02-27 Thread SHAILJA


 Hi,
I am not working on maven standard directory structure, so when i do first
time "mvn compile "  source java files ( present in source directory
explicitly specified by me) get compiled,  second time when i again did "mvn
compile "  again all source java files got compiled, inspite all .class
files are present in specified output directory. Is there any condition or
any suggestion to get rid of this recompilation overwork. 

  I found uptodate and mapper task exit in ant. We can take help from those
task in maven-ant-plugin. My problem still exit, because propert set in one
plugin(maven-ant-plugin) cant be  used in maven-complie-plugin.

plz  suggest me some way 
-- 
View this message in context: 
http://www.nabble.com/recompilation-issue-tp22244270p22244270.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can no longer create war file

2009-02-27 Thread Brett Randall
What happens if you "mvn clean" or otherwise brute-force delete the
offending folder:

C:\Workspaces\ResultReporter\resultreporter\player\player-core\target\classes
(Access is denied)

Brett

On Fri, Feb 27, 2009 at 9:53 PM, Johan S  wrote:

>
> Hi
>
> Suddenly I can't create a war file, with package, install, or war...
> Can't figure out what I have done. It says "Access denied" to classes
> folder. But the jar that is build and should be injected as dependency
> lands
> in the target folder. I have tried to manually copy the file to classes
> folder, but without any luck.
>
> Any help, please...
>
> Error stacktrace:
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
> the plugin manager executing goal
> 'org.apache.maven.plugins:maven-war-plugin:2.1-alpha-2:war': Mojo execution
> failed.
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:505)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
>at
> org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)
>at
>
> org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
>at
>
> org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java:904)
>at
>
> org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304)
>at
> org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1)
>at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
>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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
>at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
>at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Mojo execution
> failed.
>at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:601)
>at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)
>... 20 more
> Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to copy
> file for artifact[com.resultreporter.player:player-core:jar:1.1.0:compile]
>at
>
> org.apache.maven.plugin.war.packaging.ArtifactsPackagingTask.performPackaging(ArtifactsPackagingTask.java:125)
>at
>
> org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.handleArtifacts(WarProjectPackagingTask.java:183)
>at
>
> org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPackaging(WarProjectPackagingTask.java:103)
>at
>
> org.apache.maven.plugin.war.AbstractWarMojo.buildWebapp(AbstractWarMojo.java:439)
>at
>
> org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(AbstractWarMojo.java:375)
>at
> org.apache.maven.plugin.war.WarMojo.performPackaging(WarMojo.java:181)
>at org.apache.maven.plugin.war.WarMojo.execute(WarMojo.java:143)
>at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)
>... 21 more
> Caused by: java.io.FileNotFoundException:
>
> C:\Workspaces\ResultReporter\resultreporter\player\player-core\target\classes
> (Access is denied)
>at java.io.FileInputStream.open(Native Method)
>at java.io.FileInputStream.(FileInputStream.java:106)
>at
>
> org.codehaus.plexus.util.io.FileInputStreamFacade.getInputStream(FileInputStreamFacade.java:78)
>at
> org.codehaus.plexus.util.FileUtils.copyStreamToFile(FileUtils.java:1057)
>at org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:965)
>at
>
> org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(AbstractWarPackagingTask.java:293)
>at
>
> org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask$1.registered(AbstractWarPackagingTask.java:150)
>at
>
> org.apache.maven.plugin.war.util.WebappSt

Re: Ear & application.xml

2009-02-27 Thread Stephane Nicoll
Two options for you:

# Use the lib directory (lib by default) if you're using EE5
# Wait for MEAR- 86

S.

On Fri, Feb 27, 2009 at 11:49 AM, JC Walmetz  wrote:

>
> Hi,
>
> I use Maven ear plugin to generate an ear. This ear is used in jboss5. My
> EAR application is huge and contains a lot of jars. Application.xml file is
> difficult to maintain.
>
> I have an EJB module that has a lot of transitive dependencies. I'd like to
> list all that transitive dependencies in the application.xml file as java
> module.
>
> Ear plugin add jars in the EAR. To add the EJB module ine the
> application.xml I have
> 
>com.foo
>ejbservice
> 
>
> This configuration adds the module in the application.xml but not all its
> transitive dependencies. Is there a solution to add automatically all
> transitive dependencies in the applpication.xml ?
>
> Previously I was using the JBoss 4.2.3, I have move to JBoss 5. With JBoss
> 4.2.3, I was adding the transitive dependencies in the classpath of the
> manifest.mf of the ejb module and I just need to declare to ejb module in
> the application.xml ... unfortunatelly it does not works anymore with
> JBoss5. In JBoss 5, it works only if I removed the claaspath in manifest.mf
> and adds all the lib in application.xml as java module.
>
> Does someone have the same issue ?
>
> Thks
>
>
> --
> View this message in context:
> http://www.nabble.com/Ear---application.xml-tp22243464p22243464.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Large Systems Suck: This rule is 100% transitive. If you build one, you
suck" -- S.Yegge


Eclipse and maven

2009-02-27 Thread John Wooten
I'm trying to set up the structure below which was suggested as an  
appropriate structure for maven when there were multiple products  
depending upon common modules.


/areteq
/pom.xml - super pom - contains site information, etc.?
/modules
/foundation
/pom.xml  - to create the foundation jar (common to all 
products)
/src .. in all of these
/engine
/pom.xml - to create the engine jar ( common to all 
products )
/pre-processors
/pom.xml - to create all pre-processor jars
/pre-processor1
/pom.xml - to create pre-processor1 jar
/pre-processor2
/ etc.
/post-processors
/renderers
/products
/pom.xml - to create all products and test?
/product1
			/pom.xml - to create product1 and test?  Contains list of child  
modules it depends upon?
			/src - not clear there is much here except for resources, data,  
configurations.

/product2
etc.

However, it is difficult to also use this with Eclipse as one cannot  
have a project "areteq" and then have other projects, viz.  
"foundation" under that.
I want to be able to use "foundation" as an eclipse project for  
interactive development and debugging, but use the maven pom's to do  
integrated testing

documentation, profiling, etc.

Do I make foundation a separate eclipse project, but use the maven  
structure inside of it, and then just have pom's in the areteq project  
that refer to the
eclipse projects ( i.e. directories ) using relative paths?  Right now  
"areteq" and "foundation" are at the same directory level.


John W.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread Edelson, Justin
This looks like the right directory structure to me. Each directory  
with a pom.xml file would be an Eclipse project. Why do you think this  
won't work?


Justin

On Feb 27, 2009, at 8:25 AM, "John Wooten"   
wrote:


I'm trying to set up the structure below which was suggested as an  
appropriate structure for maven when there were multiple products  
depending upon common modules.


/areteq
   /pom.xml - super pom - contains site information, etc.?
   /modules
   /foundation
   /pom.xml  - to create the foundation jar (common to all  
products)

   /src .. in all of these
   /engine
   /pom.xml - to create the engine jar ( common to all  
products )

   /pre-processors
   /pom.xml - to create all pre-processor jars
   /pre-processor1
   /pom.xml - to create pre-processor1 jar
   /pre-processor2
   / etc.
   /post-processors
   /renderers
   /products
   /pom.xml - to create all products and test?
   /product1
   /pom.xml - to create product1 and test?  Contains list of  
child modules it depends upon?
   /src - not clear there is much here except for resources,  
data, configurations.

   /product2
   etc.

However, it is difficult to also use this with Eclipse as one cannot  
have a project "areteq" and then have other projects, viz.  
"foundation" under that.
I want to be able to use "foundation" as an eclipse project for  
interactive development and debugging, but use the maven pom's to do  
integrated testing

documentation, profiling, etc.

Do I make foundation a separate eclipse project, but use the maven  
structure inside of it, and then just have pom's in the areteq  
project that refer to the
eclipse projects ( i.e. directories ) using relative paths?  Right  
now "areteq" and "foundation" are at the same directory level.


John W.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Set default BeanInfo path for maven project

2009-02-27 Thread hoffmandirt

Is it possible to set the BeanInfo path for a maven project? If so, how can
you do this? My project is setup with the com.companyname.projectname
package structure. If I'm reading the Instrospector  documentation clearly,
this would bean that the BeanInfo implementations need to be in
com.beans.infos
(http://java.sun.com/javase/6/docs/api/java/beans/Introspector.html). I
would like to put them in a packaged named
com.companyname.projectname.beans.infos.
-- 
View this message in context: 
http://www.nabble.com/Set-default-BeanInfo-path-for-maven-project-tp22246874p22246874.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can no longer create war file

2009-02-27 Thread Johan S

I have tried that without any luck. Still stuck...


Brett Randall-2 wrote:
> 
> What happens if you "mvn clean" or otherwise brute-force delete the
> offending folder:
> 
> C:\Workspaces\ResultReporter\resultreporter\player\player-core\target\classes
> (Access is denied)
> 
> Brett
> 
> 


-
http://www.procensor.se
http://www.mobilepost.se
http://www.resultreporter.com
http://www.butiksbelysning.se
-- 
View this message in context: 
http://www.nabble.com/Can-no-longer-create-war-file-tp22243531p22247051.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



error in mvn archetype:generate

2009-02-27 Thread nani2ratna

Hi,

I am trying to generate a small framework by using the maven command

mvn archetype:generate

I am entering 19 th option, i am getting error as follows

Downloading:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/str
uts/struts2-archetype-starter/2.0.9-SNAPSHOT/struts2-archetype-starter-2.0.9-SNA
PSHOT.jar
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] : org.apache.maven.archetype.exception.UnknownArchetype: The desired
arch
etype does not exist
(org.apache.struts:struts2-archetype-starter:2.0.9-SNAPSHOT
)
The desired archetype does not exist
(org.apache.struts:struts2-archetype-starte
r:2.0.9-SNAPSHOT)

The desired archetype does not exist
(org.apache.struts:struts2-archetype-starte
r:2.0.9-SNAPSHOT)
[INFO]

[INFO] Trace
org.apache.maven.BuildFailureException: The desired archetype does not exist
(or
g.apache.struts:struts2-archetype-starter:2.0.9-SNAPSHOT)

struts 2.0.9 is not there in my local repository.
present Struts 2 latest GA version is 2.1.6.
So it should download that one from net.
But its trying to download 2.0.9.
ANd my internet connection is up.

If I dont understand maven please exceuse me.
I am new to maven.

Thanks and Regards
Ratna

-- 
View this message in context: 
http://www.nabble.com/error-in-mvn-archetype%3Agenerate-tp22247272p22247272.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Profiles & Filters - sharing common config

2009-02-27 Thread Les Hazlewood
Thanks Jason, I'll give it a shot right now.

Best,

Les

On Thu, Feb 26, 2009 at 11:54 PM, Jason van Zyl wrote:

> There is a bug in the remote-resources-plugin it seems. So I adjusted
> slightly and here's a version that works:
>
> http://people.apache.org/~jvanzyl/les2.tgz
>
> I put the resources in the standard src/main/resources, and then specified
> the web.xml in the WAR plugin. Not a hard bug to fix but this will let you
> use the released version of the remote resources plugin.
>
> On 26-Feb-09, at 4:35 PM, Les Hazlewood wrote:
>
>  Hi all,
>>
>> I'm having a hell of a time getting this to work with web.xml files.  Is
>> there an example I can look at that produces a bundle and then consumes
>> one?  If there are any uses of this where the template file is an XML
>> file,
>> that'd be really useful.
>>
>> I'm trying to do this using a web.xml file as the 'template' to be
>> exported
>> to other modules.  Here is what I have so far:
>>
>> === Creating the bundle (source module) ===
>> 
>>  maven-remote-resources-plugin
>>  
>>   
>> 
>>   bundle
>> 
>> 
>>   ${basedir}/src/main/webapp
>>   
>> **/*.xml
>>   
>> 
>>   
>>  
>> 
>>
>> == Consuming the bundle (dependent module) ==
>> 
>>  maven-remote-resources-plugin
>>  
>>   
>> 
>>   process
>> 
>> 
>>   
>>
>>
>> ${project.groupId}:moduleName:${project.version}
>>   
>> 
>>   
>>  
>> 
>>
>> When I look in the dependent module's
>> target\maven-shared-archive-resources\WEB-INF directory, there is nothing
>> there - no web.xml file.  Any ideas?
>>
>> Cheers,
>>
>> Les
>>
>> On Thu, Feb 26, 2009 at 10:31 AM, Jason van Zyl > >wrote:
>>
>>  The remote-resources-plugin. This is exactly how we share license
>>> templates
>>> across projects. So if you have a web.xml template you want to be used
>>> across many projects I would take a look at  
>>>
>>>
>>> On 25-Feb-09, at 4:33 PM, Les Hazlewood wrote:
>>>
>>> I have a webapp that can be deployed as one .war (development) or as two
>>>
 separate .war files (production w/ firewall in between the two).  I have
 3
 web modules to reflect this.

 web-colocated
 web-front
 web-back

 The web.xml file for each .war is nearly identical, save the spring
 files
 listed to start up an ApplicationContext in each .war.

 How can I share a single web.xml file across all 3, but filter in
 different
 values for the comma-delimited spring file list based on profile?  Where
 would that master "template" web.xml file live?  Or is there another way
 to
 go about this?

 Thanks,

 Les


>>> Thanks,
>>>
>>> Jason
>>>
>>> --
>>> Jason van Zyl
>>> Founder,  Apache Maven
>>> http://twitter.com/jvanzyl
>>> --
>>>
>>> A party which is not afraid of letting culture,
>>> business, and welfare go to ruin completely can
>>> be omnipotent for a while.
>>>
>>> -- Jakob Burckhardt
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>>
> Thanks,
>
> Jason
>
> --
> Jason van Zyl
> Founder,  Apache Maven
> http://twitter.com/jvanzyl
> --
>
> Three may keep a secret if two of them are dead.
>
>  -- Benjamin Franklin
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


The desired archetype does not exist (org.apache.maven.archetypes:maven-archetype-j2ee-simple:RELEASE)

2009-02-27 Thread Jerry Thome
Sorry for this basic question.  I cannot figure out how to get the updates 
in order to build a basic maven-archetype-j2ee-simple project.  Is there 
an update command I need to run?  I even deleted items from my local repo 
in hopes of the re-download working.  The architetypes plugin did 
downloaded, but the end result was the same. 

Thanks


C:\>mvn archetype:generate  -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:generate] (aggregator-style)
[INFO] 

[INFO] Preparing archetype:generate
[INFO] No goals needed for project - skipping
[INFO] Setting property: classpath.resource.loader.class => 
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:generate]
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart 
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0-SNAPSHOT)
Choose archetype:
1: internal -> appfuse-basic-jsf (AppFuse archetype for creating a web 
application with Hibernate, Spring and JSF)
2: internal -> appfuse-basic-spring (AppFuse archetype for creating a web 
application with Hibernate, Spring and Spring MVC)
3: internal -> appfuse-basic-struts (AppFuse archetype for creating a web 
application with Hibernate, Spring and Struts 2)
4: internal -> appfuse-basic-tapestry (AppFuse archetype for creating a 
web application with Hibernate, Spring and Tapestry 4)
5: internal -> appfuse-core (AppFuse archetype for creating a jar 
application with Hibernate and Spring and XFire)
6: internal -> appfuse-modular-jsf (AppFuse archetype for creating a 
modular application with Hibernate, Spring and JSF)
7: internal -> appfuse-modular-spring (AppFuse archetype for creating a 
modular application with Hibernate, Spring and Spring MVC)
8: internal -> appfuse-modular-struts (AppFuse archetype for creating a 
modular application with Hibernate, Spring and Struts 2)
9: internal -> appfuse-modular-tapestry (AppFuse archetype for creating a 
modular application with Hibernate, Spring and Tapestry 4)
10: internal -> maven-archetype-j2ee-simple (A simple J2EE Java 
application)
11: internal -> maven-archetype-marmalade-mojo (A Maven plugin development 
project using marmalade)
...
39: internal -> myfaces-archetype-jsfcomponents (A simple archetype for 
create custom JSF components using MyFaces)
40: internal -> gmaven-archetype-basic (Groovy basic archetype)
41: internal -> gmaven-archetype-mojo (Groovy mojo archetype)
Choose a number: 
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41)
 
15: : 10
[INFO] 

[ERROR] BUILD FAILURE
[INFO] 

[INFO] The desired archetype does not exist 
(org.apache.maven.archetypes:maven-archetype-j2ee-simple:RELEASE)
[INFO] 

[INFO] Trace
org.apache.maven.BuildFailureException: The desired archetype does not 
exist (org.apache.maven.archetypes:maven-archetype-j2ee-simple:RELEASE)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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:

Re: issues with profile and activeByDefault

2009-02-27 Thread Mick Knutson
I have tried all of these combination and I can not get this to work:

!QAS, !PRD

!QAS & !PRD

!QAS && !PRD

!QAS and !PRD

Any ideas?

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Thu, Feb 26, 2009 at 10:02 AM, Mick Knutson wrote:

> Can anyone help me with this?
>
> I got it partially in settings.xml:
>
> *
>   
>   !PRD
>   
> *
>
> But I actually have about 5 profiles that are NOT LOC (in my settings.xml).
> How can I say:
>
> * **!PRD && !QA && !INT
>
> *
> ---
> Thank You…
>
> Mick Knutson, President
>
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
>
> Website: http://baselogic.com
> Linked IN: http://linkedin.com/in/mickknutson
> Twitter: http://twitter.com/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---
>
>
>
> On Wed, Feb 25, 2009 at 10:41 AM, Mick Knutson wrote:
>
>> I got it partially in settings.xml:
>>
>> *
>>   
>>   !PRD
>>   
>> *
>>
>> But I actually have about 5 profiles that are NOT LOC (in my
>> settings.xml). How can I say:
>>
>> * **!PRD && !QA && !INT*
>>
>>
>>
>> ---
>> Thank You…
>>
>> Mick Knutson, President
>>
>> BASE Logic, Inc.
>> Enterprise Architecture, Design, Mentoring & Agile Consulting
>> p. (866) BLiNC-411: (254-6241-1)
>> f. (415) 685-4233
>>
>> Website: http://baselogic.com
>> Linked IN: http://linkedin.com/in/mickknutson
>> Twitter: http://twitter.com/mickknutson
>> Vacation Rental: http://tahoe.baselogic.com
>> ---
>>
>>
>>
>> On Wed, Feb 25, 2009 at 10:34 AM, Mick Knutson wrote:
>>
>>> How do I set the activation in the  for that?
>>>
>>> ---
>>> Thank You…
>>>
>>> Mick Knutson, President
>>>
>>> BASE Logic, Inc.
>>> Enterprise Architecture, Design, Mentoring & Agile Consulting
>>> p. (866) BLiNC-411: (254-6241-1)
>>> f. (415) 685-4233
>>>
>>> Website: http://baselogic.com
>>> Linked IN: http://linkedin.com/in/mickknutson
>>> Twitter: http://twitter.com/mickknutson
>>> Vacation Rental: http://tahoe.baselogic.com
>>> ---
>>>
>>>
>>>
>>> On Wed, Feb 25, 2009 at 10:07 AM, Brett Porter  wrote:
>>>
 This may be a bug - I'd need to test it to confirm.

 An alternative way to achieve this is to use two activations on system
 property, eg:

 !PRD and PRD

 and then use -DPRD instead.

 Please note that you might not get the results you are hoping for with
 this set up since the local repository retains information from previous
 builds.

 Cheers,
 Brett


 On 26/02/2009, at 1:56 AM, Mick Knutson wrote:

  I want to, by default, use a dev REPO in my settings.xml, or an LOC
> profile
> that has true
>
> Then if I choose to build with a specific PRD profile (-PPRD), then I
> want
> to use a PRD REPO instead of the DEV repo.
>
> In my pom, by default I have:
>
> *
>   
>   mvnprd
>   http://somehost:8080/archiva/repository/mvn-prd
> 
>   
>   
>   
>   
>   **mvnprd**
>   http://somehost:8080/archiva/repository/mvn-prd
> 
>   
>   
> *
>
> I have this in my settings.xml:
>
>  * 
>   default
>   
> true
>   
>   
>   LOC
>   
>
>   
>   
>   mvndev
>   http://somehost:8080/archiva/repository/mvn-dev
> 
>   
>   
>   
>   
>   **mvnprd**
>   http://somehost:8080/archiva/repository/mvn-prd
> 
>   
>   
>   
>   *
>
> By default, I get the *mvn-dev* activated.
>
> But I can NOT seem to get the default profile NOT active if I use a
> different profile on the command line like "*mvn -PPRD package*". It
> still
> used the default profile, thus the dev REPO.
>
> ---
> Thank You…
>
> Mick Knutson, President
>
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
>
> Website: http://baselogic.com
> Linked IN: http://linkedin.com/in/mickknutson
> Twitter: http://twitter.com/mickknutson
> Vacation Rental: http://tahoe.baselogic.com

Re: error in mvn archetype:generate

2009-02-27 Thread Wayne Fay
> Downloading:
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/str
> uts/struts2-archetype-starter/2.0.9-SNAPSHOT/struts2-archetype-starter-2.0.9-SNA
> PSHOT.jar

That Snapshot version does not exist in the Snapshot repo any more, as
seen here:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/struts2-archetype-starter/

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Profiles & Filters - sharing common config

2009-02-27 Thread Les Hazlewood
Before trying the .tgz file, I wanted to see if I could make it work as
suggested.  However, placing the template web.xml file in
src/main/resourcesdidn't work - the consumer's
target\maven-shared-archive-resources directory is empty.  Here is my
relevant config:

 producer module 

  maven-remote-resources-plugin
  

  
bundle
  
  

  **/*.xml

  

  


The web.xml file *is* listed in the
target\classes\META-INF\maven\remote-resources.xml file:


  
web.xml
  


Here is how I was trying to consume it from another module:

 consumer module 

  maven-remote-resources-plugin
  

  
process
  
  


${project.groupId}:producerModuleName:${project.version}

  

  


  maven-war-plugin
  

${basedir}/target/maven-shared-archive-resources/web.xml
  


Any ideas?  Now I'm going to try the tarball...

- Les

On Thu, Feb 26, 2009 at 11:54 PM, Jason van Zyl wrote:

> There is a bug in the remote-resources-plugin it seems. So I adjusted
> slightly and here's a version that works:
>
> http://people.apache.org/~jvanzyl/les2.tgz
>
> I put the resources in the standard src/main/resources, and then specified
> the web.xml in the WAR plugin. Not a hard bug to fix but this will let you
> use the released version of the remote resources plugin.
>
> On 26-Feb-09, at 4:35 PM, Les Hazlewood wrote:
>
>  Hi all,
>>
>> I'm having a hell of a time getting this to work with web.xml files.  Is
>> there an example I can look at that produces a bundle and then consumes
>> one?  If there are any uses of this where the template file is an XML
>> file,
>> that'd be really useful.
>>
>> I'm trying to do this using a web.xml file as the 'template' to be
>> exported
>> to other modules.  Here is what I have so far:
>>
>> === Creating the bundle (source module) ===
>> 
>>  maven-remote-resources-plugin
>>  
>>   
>> 
>>   bundle
>> 
>> 
>>   ${basedir}/src/main/webapp
>>   
>> **/*.xml
>>   
>> 
>>   
>>  
>> 
>>
>> == Consuming the bundle (dependent module) ==
>> 
>>  maven-remote-resources-plugin
>>  
>>   
>> 
>>   process
>> 
>> 
>>   
>>
>>
>> ${project.groupId}:moduleName:${project.version}
>>   
>> 
>>   
>>  
>> 
>>
>> When I look in the dependent module's
>> target\maven-shared-archive-resources\WEB-INF directory, there is nothing
>> there - no web.xml file.  Any ideas?
>>
>> Cheers,
>>
>> Les
>>
>> On Thu, Feb 26, 2009 at 10:31 AM, Jason van Zyl > >wrote:
>>
>>  The remote-resources-plugin. This is exactly how we share license
>>> templates
>>> across projects. So if you have a web.xml template you want to be used
>>> across many projects I would take a look at  
>>>
>>>
>>> On 25-Feb-09, at 4:33 PM, Les Hazlewood wrote:
>>>
>>> I have a webapp that can be deployed as one .war (development) or as two
>>>
 separate .war files (production w/ firewall in between the two).  I have
 3
 web modules to reflect this.

 web-colocated
 web-front
 web-back

 The web.xml file for each .war is nearly identical, save the spring
 files
 listed to start up an ApplicationContext in each .war.

 How can I share a single web.xml file across all 3, but filter in
 different
 values for the comma-delimited spring file list based on profile?  Where
 would that master "template" web.xml file live?  Or is there another way
 to
 go about this?

 Thanks,

 Les


>>> Thanks,
>>>
>>> Jason
>>>
>>> --
>>> Jason van Zyl
>>> Founder,  Apache Maven
>>> http://twitter.com/jvanzyl
>>> --
>>>
>>> A party which is not afraid of letting culture,
>>> business, and welfare go to ruin completely can
>>> be omnipotent for a while.
>>>
>>> -- Jakob Burckhardt
>>>
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>>>
>>>
> Thanks,
>
> Jason
>
> --
> Jason van Zyl
> Founder,  Apache Maven
> http://twitter.com/jvanzyl
> --
>
> Three may keep a secret if two of them are dead.
>
>  -- Benjamin Franklin
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


[ANN] GMaven 1.0-rc-5 released

2009-02-27 Thread Jason Dillon
For more details on whats included in this release please see the  
release notes:


   http://groovy.codehaus.org/GMaven+-+1.0-rc-5+Release

 * * *

Artifacts and generated site is being published now, may take a few  
hours for them to be available; please be patient.


Thanks,

--jason

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: issues with profile and activeByDefault

2009-02-27 Thread Mick Knutson
With that failing, I even tried to create a property that was set to false:

   * false





QAS

true
${user.home}/STAGING/${symphony.profile.name
}/QAS
qual/${groupId}-${artifactId}/stat
false


*

*Then in my settings.xml, I use this:
*

*default*

  
  scm.staging
  *false*
  


On the command line:
*mvn -PQAS clean package -e*

as well as:
*mvn clean package -e*

both result in the default profile to NOT get used.

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Fri, Feb 27, 2009 at 10:44 AM, Mick Knutson wrote:

> I have tried all of these combination and I can not get this to work:
>
> !QAS, !PRD
>
> !QAS & !PRD
>
> !QAS && !PRD
>
> !QAS and !PRD
>
> Any ideas?
>
> ---
> Thank You…
>
> Mick Knutson, President
>
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
>
> Website: http://baselogic.com
> Linked IN: http://linkedin.com/in/mickknutson
> Twitter: http://twitter.com/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---
>
>
>
> On Thu, Feb 26, 2009 at 10:02 AM, Mick Knutson wrote:
>
>> Can anyone help me with this?
>>
>> I got it partially in settings.xml:
>>
>> *
>>   
>>   !PRD
>>   
>> *
>>
>> But I actually have about 5 profiles that are NOT LOC (in my
>> settings.xml). How can I say:
>>
>> * **!PRD && !QA && !INT
>>
>> *
>> ---
>> Thank You…
>>
>> Mick Knutson, President
>>
>> BASE Logic, Inc.
>> Enterprise Architecture, Design, Mentoring & Agile Consulting
>> p. (866) BLiNC-411: (254-6241-1)
>> f. (415) 685-4233
>>
>> Website: http://baselogic.com
>> Linked IN: http://linkedin.com/in/mickknutson
>> Twitter: http://twitter.com/mickknutson
>> Vacation Rental: http://tahoe.baselogic.com
>> ---
>>
>>
>>
>> On Wed, Feb 25, 2009 at 10:41 AM, Mick Knutson wrote:
>>
>>> I got it partially in settings.xml:
>>>
>>> *
>>>   
>>>   !PRD
>>>   
>>> *
>>>
>>> But I actually have about 5 profiles that are NOT LOC (in my
>>> settings.xml). How can I say:
>>>
>>> * **!PRD && !QA && !INT*
>>>
>>>
>>>
>>> ---
>>> Thank You…
>>>
>>> Mick Knutson, President
>>>
>>> BASE Logic, Inc.
>>> Enterprise Architecture, Design, Mentoring & Agile Consulting
>>> p. (866) BLiNC-411: (254-6241-1)
>>> f. (415) 685-4233
>>>
>>> Website: http://baselogic.com
>>> Linked IN: http://linkedin.com/in/mickknutson
>>> Twitter: http://twitter.com/mickknutson
>>> Vacation Rental: http://tahoe.baselogic.com
>>> ---
>>>
>>>
>>>
>>> On Wed, Feb 25, 2009 at 10:34 AM, Mick Knutson wrote:
>>>
 How do I set the activation in the  for that?

 ---
 Thank You…

 Mick Knutson, President

 BASE Logic, Inc.
 Enterprise Architecture, Design, Mentoring & Agile Consulting
 p. (866) BLiNC-411: (254-6241-1)
 f. (415) 685-4233

 Website: http://baselogic.com
 Linked IN: http://linkedin.com/in/mickknutson
 Twitter: http://twitter.com/mickknutson
 Vacation Rental: http://tahoe.baselogic.com
 ---



 On Wed, Feb 25, 2009 at 10:07 AM, Brett Porter wrote:

> This may be a bug - I'd need to test it to confirm.
>
> An alternative way to achieve this is to use two activations on system
> property, eg:
>
> !PRD and PRD
>
> and then use -DPRD instead.
>
> Please note that you might not get the results you are hoping for with
> this set up since the local repository retains information from previous
> builds.
>
> Cheers,
> Brett
>
>
> On 26/02/2009, at 1:56 AM, Mick Knutson wrote:
>
>  I want to, by default, use a dev REPO in my settings.xml, or an LOC
>> profile
>> that has true
>>
>> Then if I choose to build with a specific PRD profile (-PPRD), then I
>> want
>> to use a PRD REPO instead of the DEV repo.
>>
>> In my pom, by default I have:
>>
>> *
>>   
>>   mvnprd
>>   http://somehost:8080/archiva/repository/mvn-
>> prd
>> 
>>   
>>   
>>   
>>   
>>   **mvnprd**
>>   http://somehost:8080/archiva/repository/mvn-
>> prd
>> 
>>   
>>   
>> *
>>
>> I have this in my settin

Re: Profiles & Filters - sharing common config

2009-02-27 Thread Les Hazlewood
Ahh - I see your approach Jason - using a .vm template.  Nice - I'll work
with that.

Thanks again!

Best,

Les

On Fri, Feb 27, 2009 at 11:03 AM, Les Hazlewood wrote:

> Before trying the .tgz file, I wanted to see if I could make it work as
> suggested.  However, placing the template web.xml file in
> src/main/resources didn't work - the consumer's
> target\maven-shared-archive-resources directory is empty.  Here is my
> relevant config:
>
>  producer module 
> 
>   maven-remote-resources-plugin
>   
> 
>   
> bundle
>   
>   
> 
>   **/*.xml
> 
>   
> 
>   
> 
>
> The web.xml file *is* listed in the
> target\classes\META-INF\maven\remote-resources.xml file:
>
> 
>   
> web.xml
>   
> 
>
> Here is how I was trying to consume it from another module:
>
>  consumer module 
> 
>   maven-remote-resources-plugin
>   
> 
>   
> process
>   
>   
> 
>
> ${project.groupId}:producerModuleName:${project.version}
> 
>   
> 
>   
> 
> 
>   maven-war-plugin
>   
>
> ${basedir}/target/maven-shared-archive-resources/web.xml
>   
> 
>
> Any ideas?  Now I'm going to try the tarball...
>
> - Les
>
>
> On Thu, Feb 26, 2009 at 11:54 PM, Jason van Zyl wrote:
>
>> There is a bug in the remote-resources-plugin it seems. So I adjusted
>> slightly and here's a version that works:
>>
>> http://people.apache.org/~jvanzyl/les2.tgz
>>
>> I put the resources in the standard src/main/resources, and then specified
>> the web.xml in the WAR plugin. Not a hard bug to fix but this will let you
>> use the released version of the remote resources plugin.
>>
>> On 26-Feb-09, at 4:35 PM, Les Hazlewood wrote:
>>
>>  Hi all,
>>>
>>> I'm having a hell of a time getting this to work with web.xml files.  Is
>>> there an example I can look at that produces a bundle and then consumes
>>> one?  If there are any uses of this where the template file is an XML
>>> file,
>>> that'd be really useful.
>>>
>>> I'm trying to do this using a web.xml file as the 'template' to be
>>> exported
>>> to other modules.  Here is what I have so far:
>>>
>>> === Creating the bundle (source module) ===
>>> 
>>>  maven-remote-resources-plugin
>>>  
>>>   
>>> 
>>>   bundle
>>> 
>>> 
>>>   ${basedir}/src/main/webapp
>>>   
>>> **/*.xml
>>>   
>>> 
>>>   
>>>  
>>> 
>>>
>>> == Consuming the bundle (dependent module) ==
>>> 
>>>  maven-remote-resources-plugin
>>>  
>>>   
>>> 
>>>   process
>>> 
>>> 
>>>   
>>>
>>>
>>> ${project.groupId}:moduleName:${project.version}
>>>   
>>> 
>>>   
>>>  
>>> 
>>>
>>> When I look in the dependent module's
>>> target\maven-shared-archive-resources\WEB-INF directory, there is nothing
>>> there - no web.xml file.  Any ideas?
>>>
>>> Cheers,
>>>
>>> Les
>>>
>>> On Thu, Feb 26, 2009 at 10:31 AM, Jason van Zyl >> >wrote:
>>>
>>>  The remote-resources-plugin. This is exactly how we share license
 templates
 across projects. So if you have a web.xml template you want to be used
 across many projects I would take a look at  


 On 25-Feb-09, at 4:33 PM, Les Hazlewood wrote:

 I have a webapp that can be deployed as one .war (development) or as two

> separate .war files (production w/ firewall in between the two).  I
> have 3
> web modules to reflect this.
>
> web-colocated
> web-front
> web-back
>
> The web.xml file for each .war is nearly identical, save the spring
> files
> listed to start up an ApplicationContext in each .war.
>
> How can I share a single web.xml file across all 3, but filter in
> different
> values for the comma-delimited spring file list based on profile?
>  Where
> would that master "template" web.xml file live?  Or is there another
> way
> to
> go about this?
>
> Thanks,
>
> Les
>
>
 Thanks,

 Jason

 --
 Jason van Zyl
 Founder,  Apache Maven
 http://twitter.com/jvanzyl
 --

 A party which is not afraid of letting culture,
 business, and welfare go to ruin completely can
 be omnipotent for a while.

 -- Jakob Burckhardt



 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



>> Thanks,
>>
>> Jason
>>
>> --
>> Jason van Zyl
>> Founder,  Apache Maven
>> http://twitter.com/jvanzyl
>> --
>>
>> Three may keep a secret if two of them are dead.
>>
>>  -- Benjamin Franklin
>>
>>
>>
>> -

Maven scm commands inheritance problem

2009-02-27 Thread cngyver

I've a j2ee project layout which mimics the one i have in CVS like below:
PCIIS
 -pom.xml
 --ear
   --pom.xml
 --Model
   --pom.xml
 --View
   --pom.xml

I've configured scm in parent pom and overriden required properties in child
poms. On single project basis scm commands work correctly. But what i want
for this multi project configuration is:

1. when i use scm checkout, update or update-subprojects on parent dir
(PCIIS), Maven should skip executing command for parent project, just run
command for sub projects (if it does not do like that, it checks out all the
modules into parent src/main directory). It does the opposite, checks out
parent module, skips child projects. So i have all PCIIS cvs modules in
src/java of parent project.

2. The ear project has nothing to do with CVS and scm commands should be
skipped for that project. 

I can't find a way to do what i need. Am I missing something here ? What
should i do to tell maven what i want. Or can this be done ?

-- 
View this message in context: 
http://www.nabble.com/Maven-scm-commands-inheritance-problem-tp22249725p22249725.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can no longer create war file

2009-02-27 Thread Marco Huber

Hi Johan,

have you add classifiers to your project or a sub module of your project?

I had once the problem, that I got this \target\classes access denied 
error, because the install plugin had problems with classifiers. Think 
it's fixed.


Hope that helps.

Marco

Johan S wrote:

I have tried that without any luck. Still stuck...


Brett Randall-2 wrote:

What happens if you "mvn clean" or otherwise brute-force delete the
offending folder:

C:\Workspaces\ResultReporter\resultreporter\player\player-core\target\classes
(Access is denied)

Brett





-
http://www.procensor.se
http://www.mobilepost.se
http://www.resultreporter.com
http://www.butiksbelysning.se



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Can no longer create war file

2009-02-27 Thread Johan S

Hi Marco

Could you give me an example with classifiers. I don't think I using it.
This isn't the only project that it appears in.

Johan


Marco Huber wrote:
> 
> Hi Johan,
> 
> have you add classifiers to your project or a sub module of your project?
> 
> I had once the problem, that I got this \target\classes access denied 
> error, because the install plugin had problems with classifiers. Think 
> it's fixed.
> 
> Hope that helps.
> 
> Marco
> 


-
http://www.procensor.se
http://www.mobilepost.se
http://www.resultreporter.com
http://www.butiksbelysning.se
-- 
View this message in context: 
http://www.nabble.com/Can-no-longer-create-war-file-tp22243531p22250211.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: error in mvn archetype:generate

2009-02-27 Thread nani2ratna

can you give me some solution what to do now.

Thanks and regards
ratna


Wayne Fay wrote:
> 
>> Downloading:
>> http://people.apache.org/repo/m2-snapshot-repository/org/apache/str
>> uts/struts2-archetype-starter/2.0.9-SNAPSHOT/struts2-archetype-starter-2.0.9-SNA
>> PSHOT.jar
> 
> That Snapshot version does not exist in the Snapshot repo any more, as
> seen here:
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/struts/struts2-archetype-starter/
> 
> Wayne
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/error-in-mvn-archetype%3Agenerate-tp22247272p22250356.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Where can I find more information on maven-metadata-local.xml?

2009-02-27 Thread Sahoo

Hi,

Where can I find more information on maven-metadata-local.xml? I want to 
understand meaning of entries specified in the file. e.g., what's the 
meaning of true under ? What causes 
this entry to be added? I see some snapshot artifacts in my local repo 
have this entry and some don't. How does this affect maven execution. I 
am using mvn 2.0.9.


Thanks,
Sahoo



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



JAX-RPC client generation in Maven2 project

2009-02-27 Thread Ryan de Laplante

Hi,

I'd like to add a JAX-RPC client to my JEE5 web project.  I tried using 
NetBeans 6.7M2's web service client wizard to see what it adds to my 
POM, but it won't get past the first screen because it wants a JAX-RPC 
plugin.  I already have the JAX-RPC plugin installed in NetBeans and 
tested that it works with a regular java web project.  So, I assume it 
wants a Maven2 plugin in my POM.


I searched google for a while and there doesn't seem to be examples of 
using JAX-RPC clients in a maven web project.  I'm running on GlassFish 
V2 so don't want to use Axis, XFire, etc.  I want to use the RI without 
bundling the runtime jars in my .war file.


Can someone please point me to an example of generating JAX-RPC client 
stubs in a maven2 web project, and using them?



Thanks,
Ryan


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: error in mvn archetype:generate

2009-02-27 Thread Wayne Fay
> can you give me some solution what to do now.

I would go remove the Snapshot repo reference from your settings.xml
file and try running it again.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread John Wooten

Eclipse won't let you nest projects in a directory structure.

On Feb 27, 2009, at 9:14 AM, Edelson, Justin wrote:

This looks like the right directory structure to me. Each directory  
with a pom.xml file would be an Eclipse project. Why do you think  
this won't work?


Justin

On Feb 27, 2009, at 8:25 AM, "John Wooten"  
 wrote:


I'm trying to set up the structure below which was suggested as an  
appropriate structure for maven when there were multiple products  
depending upon common modules.


/areteq
  /pom.xml - super pom - contains site information, etc.?
  /modules
  /foundation
  /pom.xml  - to create the foundation jar (common to all  
products)

  /src .. in all of these
  /engine
  /pom.xml - to create the engine jar ( common to all  
products )

  /pre-processors
  /pom.xml - to create all pre-processor jars
  /pre-processor1
  /pom.xml - to create pre-processor1 jar
  /pre-processor2
  / etc.
  /post-processors
  /renderers
  /products
  /pom.xml - to create all products and test?
  /product1
  /pom.xml - to create product1 and test?  Contains list of  
child modules it depends upon?
  /src - not clear there is much here except for resources,  
data, configurations.

  /product2
  etc.

However, it is difficult to also use this with Eclipse as one  
cannot have a project "areteq" and then have other projects, viz.  
"foundation" under that.
I want to be able to use "foundation" as an eclipse project for  
interactive development and debugging, but use the maven pom's to  
do integrated testing

documentation, profiling, etc.

Do I make foundation a separate eclipse project, but use the maven  
structure inside of it, and then just have pom's in the areteq  
project that refer to the
eclipse projects ( i.e. directories ) using relative paths?  Right  
now "areteq" and "foundation" are at the same directory level.


John W.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: "Un-mavenize" a Maven2 project ?

2009-02-27 Thread David Weintraub
Would Ant be okay to use?

You don't have to demavenize a thing -- just add a build.xml to your project.

We converted many of our projects from Ant to Maven, but still have
both the build.xml and pom.xml in the root directory. I even removed
the third party jars from our repository. Instead, I added Ant's 
task to the build.xml to fetch the needed jars. It is up to the tech
leads to decide whether to use Maven or Ant in our continuous build
process although more and more projects are now being built with
Maven.

Then again, installed Maven, set the settings.xml in the Maven
directory, then tarred it up and pass it out to the students. It's
pretty self contained. All they need to do is untar it somewhere, and
put a link to the "mvn" script into their PATH. That will allow the
students to learn Maven while they are at it.

Might as well let your students learn how to use Maven now while their
brains are still soft and moist rather than wait a few years after
brain hardening has started to set in.

On Fri, Feb 27, 2009 at 2:19 AM, Alessio Pace  wrote:
> Hi,
>
> a project I'm working on is built by Maven2. It is a single module, it uses
> M2 merely for dependency managament.
>
> I have to let some students play with it as part of a lab project. Their
> machines just have plain Eclipse, and the users are Maven-unaware, and I
> can't afford to make them pre-install Maven or install it during the lab
> session (too few hours).
>
> What I wanted to do is to "un-mavenize" the project, creating a separate
> source tree in the old fashion: without the pom.xml but with a libs
> directory filled with all the jars my project depends on. Possibly also with
> the Eclipse .project and .classpath files already configured (ok ok, this is
> optional).
>
> Thanks in advance for any suggestion on how to achieve that, or with
> comments if you ever had to deal with such a situation (and possibly if you
> want me to discourage to go with the un-mavenize process)
>
> Regards,
> Alessio Pace.
>



-- 
--
David Weintraub
qazw...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread David C. Hicks
run "mvn eclipse:eclipse" from the base project and it will create all 
of the .project and .classpath files for you to import into Eclipse.


John Wooten wrote:

Eclipse won't let you nest projects in a directory structure.



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread David C. Hicks
though...i would also encourage you to check out the M2Eclipse plugin 
for Eclipse.  it does a really good job of helping with the integration 
of Maven and Eclipse


John Wooten wrote:

Eclipse won't let you nest projects in a directory structure.




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



question regarding exclusions and indirect dependencies

2009-02-27 Thread Kirk Roberts

Apologies if someone has already answered this, a link would suffice.

I'm having a problem with the way maven dependencies handle exclusions. 
 Let me set up a little example:


* Project LOW_LEVEL has dependencies 1 and 2
* Project MID_LEVEL_1 has LOW_LEVEL as a dependency, but does not need 
dependency 2, so excludes it in its pom
* Project MID_LEVEL_2 has LOW_LEVEL as a dependency, but does not need 
dependency 1, so excludes it in its pom

* Project HIGH_LEVEL has MID_LEVEL_1 and MID_LEVEL_2 as dependencies

Now I would hope that my dependency tree would include HIGH_LEVEL, 
MID_LEVEL_1, MID_LEVEL_2, LOW_LEVEL, 1, and 2.  Unfortunately it won't. 
 It'll look something like this:


HIGH_LEVEL
+- MID_LEVEL_1
|  \- LOW_LEVEL
| \- 1
\- MID_LEVEL_2

The problem, as I see it, is that Maven doesn't analyze all the 
dependencies.  It sees LOW_LEVEL, grabs its dependencies at that point, 
and then once it sees LOW_LEVEL again it ignores it as well as any 
additional dependencies it might have (in this case, the LOW_LEVEL as a 
dependency of MID_LEVEL_2).


Now clearly, my projects aren't set up as well as I'd have liked. 
Basically, they were made before we switched over to Maven.  Totally 
refactoring them all so that this kind of problem doesn't happen is 
essentially out of the question as it would take too much time.


One solution is to directly depend on the "missing" dependencies (in 
this case project 2).  But clearly that is a very indirect dependency, 
and I would prefer to avoid this scenario if at all possible.


So my question: is there some maven "mode" that could help me here and 
transverse the entire dependency tree?  I'm sure it'll take much longer, 
but I'm willing to let that happen under certain circumstances.  Or am I 
just in tough luck and refactoring or careful use of exclusions is 
necessary?


Obviously, the example above it a toy scenario.  In reality, we have 
many maven projects and the high-level projects don't use 90% of them. 
I'd like for people in charge of projects to locally decide what 
exclusions to use, but the problem above would cause the high-level 
projects to have to include many many indirect dependencies.  I just 
don't think that would be very stable since not every developer should 
be expected to know the dependencies of every project.


Any insight, common experience, or solutions (!) would be greatly 
appreciated,


Kirk

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: "Un-mavenize" a Maven2 project ?

2009-02-27 Thread Mark Struberg
but ant must be installed also before it can be used. And installing ant is the 
same effort than installing maven. 
So this will not add anything to his problem.

LieGrue,
strub


--- David Weintraub  schrieb am Fr, 27.2.2009:

> Von: David Weintraub 
> Betreff: Re: "Un-mavenize" a Maven2 project ?
> An: "Maven Users List" 
> Datum: Freitag, 27. Februar 2009, 19:18
> Would Ant be okay to use?
> 
> You don't have to demavenize a thing -- just add a
> build.xml to your project.
> 
> We converted many of our projects from Ant to Maven, but
> still have
> both the build.xml and pom.xml in the root directory. I
> even removed
> the third party jars from our repository. Instead, I added
> Ant's 
> task to the build.xml to fetch the needed jars. It is up to
> the tech
> leads to decide whether to use Maven or Ant in our
> continuous build
> process although more and more projects are now being built
> with
> Maven.
> 
> Then again, installed Maven, set the settings.xml in the
> Maven
> directory, then tarred it up and pass it out to the
> students. It's
> pretty self contained. All they need to do is untar it
> somewhere, and
> put a link to the "mvn" script into their PATH.
> That will allow the
> students to learn Maven while they are at it.
> 
> Might as well let your students learn how to use Maven now
> while their
> brains are still soft and moist rather than wait a few
> years after
> brain hardening has started to set in.
> 
> On Fri, Feb 27, 2009 at 2:19 AM, Alessio Pace
>  wrote:
> > Hi,
> >
> > a project I'm working on is built by Maven2. It is
> a single module, it uses
> > M2 merely for dependency managament.
> >
> > I have to let some students play with it as part of a
> lab project. Their
> > machines just have plain Eclipse, and the users are
> Maven-unaware, and I
> > can't afford to make them pre-install Maven or
> install it during the lab
> > session (too few hours).
> >
> > What I wanted to do is to "un-mavenize" the
> project, creating a separate
> > source tree in the old fashion: without the pom.xml
> but with a libs
> > directory filled with all the jars my project depends
> on. Possibly also with
> > the Eclipse .project and .classpath files already
> configured (ok ok, this is
> > optional).
> >
> > Thanks in advance for any suggestion on how to achieve
> that, or with
> > comments if you ever had to deal with such a situation
> (and possibly if you
> > want me to discourage to go with the un-mavenize
> process)
> >
> > Regards,
> > Alessio Pace.
> >
> 
> 
> 
> -- 
> --
> David Weintraub
> qazw...@gmail.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail:
> users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Database plugin

2009-02-27 Thread Sommers, Elizabeth

Before I reinvent the wheel, does anybody have a good plugin for JDBC?
I am going to be mining data from attached artifacts.  If anybody has
mavenized Scriptella it would be perfect.

Thanks

Liz Sommers
somme...@pragmatics.com
 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread supareno

David,

http://code.google.com/p/q4e is a very good tool too
though...i would also encourage you to check out the M2Eclipse plugin 
for Eclipse.  it does a really good job of helping with the 
integration of Maven and Eclipse


John Wooten wrote:

Eclipse won't let you nest projects in a directory structure.




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread Eugene Kuleshov


  Sure it will. Unless you are using 3..4 year old version of Eclipse.

  regards,
  Eugene


John Wooten-2 wrote:
> 
> Eclipse won't let you nest projects in a directory structure.
> 
> On Feb 27, 2009, at 9:14 AM, Edelson, Justin wrote:
> 
>> This looks like the right directory structure to me. Each directory  
>> with a pom.xml file would be an Eclipse project. Why do you think  
>> this won't work?
>>
>> Justin
> 

-- 
View this message in context: 
http://www.nabble.com/Eclipse-and-maven-tp22245841p22254394.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread Kalle Korhonen
I attest that, the latest incarnation of q4e (the dev release at
http://q4e.googlecode.com/svn/trunk/updatesite-dev/) has solved all the
performance issues - I have 40-50 projects on my workspace and it's still
super fast.

Kalle


On Fri, Feb 27, 2009 at 11:18 AM, supareno  wrote:

> David,
>
> http://code.google.com/p/q4e is a very good tool too
>
>  though...i would also encourage you to check out the M2Eclipse plugin for
>> Eclipse.  it does a really good job of helping with the integration of Maven
>> and Eclipse
>>
>> John Wooten wrote:
>>
>>> Eclipse won't let you nest projects in a directory structure.
>>>
>>>
>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>>
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Maven reporting

2009-02-27 Thread EJ Ciramella
We have a standard "corp" type pom that defines a list of reports that
should be run/generated as part of every "site" build.
 
In a project that has this "corp" pom listed as a parent, I'd like to
NOT run a few of those reports.  Is there a way to exclude/override
which reports are run?


Re: Eclipse and maven

2009-02-27 Thread Eugene Kuleshov


  See comparison at
http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration

  regards,
  Eugene



supareno wrote:
> 
> David,
> 
> http://code.google.com/p/q4e is a very good tool too
> 
>> though...i would also encourage you to check out the M2Eclipse plugin 
>> for Eclipse.  it does a really good job of helping with the 
>> integration of Maven and Eclipse
> 

-- 
View this message in context: 
http://www.nabble.com/Eclipse-and-maven-tp22245841p22254461.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven reporting

2009-02-27 Thread Nick Stolwijk
Most plugins have a skip option, ie. pmd [1] and checkstyle [2]. You
can configure the report inside your own pom with the skip option
enabled. If the plugin you are targetting doesn't have, please submit
a feature request. It isn't hard to build in.

Hth,

[1] http://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#skip
[2] 
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#skip

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Fri, Feb 27, 2009 at 10:04 PM, EJ Ciramella  wrote:
> We have a standard "corp" type pom that defines a list of reports that
> should be run/generated as part of every "site" build.
>
> In a project that has this "corp" pom listed as a parent, I'd like to
> NOT run a few of those reports.  Is there a way to exclude/override
> which reports are run?
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Maven reporting

2009-02-27 Thread EJ Ciramella
OY - gotcha.

Some maven 2 things work such that any configuration in a child pom overwrites 
what's in a parent, just not in the reporting stanzas?

H.

Thank you! 

-Original Message-
From: Nick Stolwijk [mailto:nick.stolw...@gmail.com] 
Sent: Friday, February 27, 2009 4:10 PM
To: Maven Users List
Subject: Re: Maven reporting

Most plugins have a skip option, ie. pmd [1] and checkstyle [2]. You can 
configure the report inside your own pom with the skip option enabled. If the 
plugin you are targetting doesn't have, please submit a feature request. It 
isn't hard to build in.

Hth,

[1] http://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#skip
[2] 
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#skip

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl



On Fri, Feb 27, 2009 at 10:04 PM, EJ Ciramella  wrote:
> We have a standard "corp" type pom that defines a list of reports that 
> should be run/generated as part of every "site" build.
>
> In a project that has this "corp" pom listed as a parent, I'd like to 
> NOT run a few of those reports.  Is there a way to exclude/override 
> which reports are run?
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread John Wooten
Uses Ganymede, when I try to move one project as a folder under  
another, by trying to do a New/Project or a Refactor, it says it can  
not create a project under another project.


On Feb 27, 2009, at 4:02 PM, Eugene Kuleshov wrote:




 Sure it will. Unless you are using 3..4 year old version of Eclipse.

 regards,
 Eugene


John Wooten-2 wrote:


Eclipse won't let you nest projects in a directory structure.

On Feb 27, 2009, at 9:14 AM, Edelson, Justin wrote:


This looks like the right directory structure to me. Each directory
with a pom.xml file would be an Eclipse project. Why do you think
this won't work?

Justin




--
View this message in context: 
http://www.nabble.com/Eclipse-and-maven-tp22245841p22254394.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread John Wooten

I have added:


 1.5
 1.5
   


to each plugin and I still get:

[WARNING] Error while parsing /Users/woo/Development/workspaces/areteq/ 
modules/Foundation/src/main/java/com/areteq/common/ 
HashMapHandler.java: Can't use generics unless running in JDK 1.5 mode!


Would be nice to specify this in one place ( run in JDK 1.5 mode ).


On Feb 27, 2009, at 4:06 PM, Eugene Kuleshov wrote:




 See comparison at
http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration

 regards,
 Eugene



supareno wrote:


David,

http://code.google.com/p/q4e is a very good tool too

though...i would also encourage you to check out the M2Eclipse  
plugin

for Eclipse.  it does a really good job of helping with the
integration of Maven and Eclipse




--
View this message in context: 
http://www.nabble.com/Eclipse-and-maven-tp22245841p22254461.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread Rusty Wright

Only one plugin needs that:

   
   
 maven-compiler-plugin

 
   1.5
   1.5
 
   
   etc.


John Wooten wrote:

I have added:


 1.5
 1.5
   


to each plugin and I still get:

[WARNING] Error while parsing 
/Users/woo/Development/workspaces/areteq/modules/Foundation/src/main/java/com/areteq/common/HashMapHandler.java: 
Can't use generics unless running in JDK 1.5 mode!


Would be nice to specify this in one place ( run in JDK 1.5 mode ).


On Feb 27, 2009, at 4:06 PM, Eugene Kuleshov wrote:




 See comparison at
http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration

 regards,
 Eugene



supareno wrote:


David,

http://code.google.com/p/q4e is a very good tool too


though...i would also encourage you to check out the M2Eclipse plugin
for Eclipse.  it does a really good job of helping with the
integration of Maven and Eclipse




--
View this message in context: 
http://www.nabble.com/Eclipse-and-maven-tp22245841p22254461.html

Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread John Wooten

That is 1 place I have it. Still get error.

Pardon bad thumbsmanship.  Sent from mobile phone.

On Feb 27, 2009, at 7:05 PM, Rusty Wright   
wrote:



Only one plugin needs that:

  
  
maven-compiler-plugin


  1.5
  1.5

  
  etc.


John Wooten wrote:

I have added:
   
1.5
1.5
  
to each plugin and I still get:
[WARNING] Error while parsing /Users/woo/Development/workspaces/ 
areteq/modules/Foundation/src/main/java/com/areteq/common/ 
HashMapHandler.java: Can't use generics unless running in JDK 1.5  
mode!

Would be nice to specify this in one place ( run in JDK 1.5 mode ).
On Feb 27, 2009, at 4:06 PM, Eugene Kuleshov wrote:



See comparison at
http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration

regards,
Eugene



supareno wrote:


David,

http://code.google.com/p/q4e is a very good tool too

though...i would also encourage you to check out the M2Eclipse  
plugin

for Eclipse.  it does a really good job of helping with the
integration of Maven and Eclipse




--
View this message in context: 
http://www.nabble.com/Eclipse-and-maven-tp22245841p22254461.html
Sent from the Maven - Users mailing list archive at Nabble.com.


--- 
--

To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Eclipse and maven

2009-02-27 Thread Edelson, Justin
I believe that's a javadoc warning (not error). In addition to 
maven-compiler-plugin, you also need to specify the Java version in the javadoc 
plugin (in the reporting section) and, if you use it, the pmd plugin.
 
Justin



From: John Wooten [mailto:jwoo...@shoulderscorp.com]
Sent: Fri 2/27/2009 7:16 PM
To: Maven Users List
Subject: Re: Eclipse and maven



That is 1 place I have it. Still get error.

Pardon bad thumbsmanship.  Sent from mobile phone.

On Feb 27, 2009, at 7:05 PM, Rusty Wright  
wrote:

> Only one plugin needs that:
>
>   
>   
> maven-compiler-plugin
>
> 
>   1.5
>   1.5
> 
>   
>   etc.
>
>
> John Wooten wrote:
>> I have added:
>>
>> 1.5
>> 1.5
>>   
>> to each plugin and I still get:
>> [WARNING] Error while parsing /Users/woo/Development/workspaces/
>> areteq/modules/Foundation/src/main/java/com/areteq/common/
>> HashMapHandler.java: Can't use generics unless running in JDK 1.5 
>> mode!
>> Would be nice to specify this in one place ( run in JDK 1.5 mode ).
>> On Feb 27, 2009, at 4:06 PM, Eugene Kuleshov wrote:
>>>
>>>
>>> See comparison at
>>> http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration
>>>
>>> regards,
>>> Eugene
>>>
>>>
>>>
>>> supareno wrote:

 David,

 http://code.google.com/p/q4e is a very good tool too

> though...i would also encourage you to check out the M2Eclipse 
> plugin
> for Eclipse.  it does a really good job of helping with the
> integration of Maven and Eclipse

>>>
>>> --
>>> View this message in context: 
>>> http://www.nabble.com/Eclipse-and-maven-tp22245841p22254461.html
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---
>>> --
>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>>> For additional commands, e-mail: users-h...@maven.apache.org
>>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





Re: Eclipse and maven

2009-02-27 Thread Rusty Wright

I feel vindicated; in a previous post of mine I was also saying that I thought 
eclipse didn't like nested projects.  ;-)

The way I took my first baby steps with maven and eclipse is that I used the 
appfuse modular spring archetype.  From the command line type

 mvn \
   archetype:create \
   -DarchetypeGroupId=org.appfuse.archetypes \
   -DarchetypeArtifactId=appfuse-modular-spring \
   -DremoteRepositories=http://static.appfuse.org/releases \
   -DarchetypeVersion=2.0.2 \
   -DgroupId=com.mycompany.app \
   -DartifactId=myproject

Then look in the myproject directory, and in its core and web directories.

Within eclipse you can do File > New > Other and then in the Select a wizard window go into the Maven folder and select Maven Project and then click Next, then leave Create a simple project unselected, so it brings up the archetype selector, then scroll down and find org.appfuse.archetypes and use one of the appfuse-modular ones.  Keep an eye on the bottom of the eclipse window and the status; it cranks for a while getting it all set up.  Then, outside of eclipse, look at how it set things up, and eyeball the pom.xml files.  


John Wooten wrote:
Uses Ganymede, when I try to move one project as a folder under another, 
by trying to do a New/Project or a Refactor, it says it can not create a 
project under another project.


On Feb 27, 2009, at 4:02 PM, Eugene Kuleshov wrote:




 Sure it will. Unless you are using 3..4 year old version of Eclipse.

 regards,
 Eugene


John Wooten-2 wrote:


Eclipse won't let you nest projects in a directory structure.

On Feb 27, 2009, at 9:14 AM, Edelson, Justin wrote:


This looks like the right directory structure to me. Each directory
with a pom.xml file would be an Eclipse project. Why do you think
this won't work?

Justin




--
View this message in context: 
http://www.nabble.com/Eclipse-and-maven-tp22245841p22254394.html

Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread Eugene Kuleshov


   Try this: create a folder in one of your project, create a pom.xml in
that folder. Then you can import that nested project with m2eclipse using
"Import... / Maven projects wizard" or if you have .project and .classpath
can also use "Import... / Existing projects into workspace".

  regards,
  Eugene


John Wooten-2 wrote:
> 
> Uses Ganymede, when I try to move one project as a folder under  
> another, by trying to do a New/Project or a Refactor, it says it can  
> not create a project under another project.
> 
> On Feb 27, 2009, at 4:02 PM, Eugene Kuleshov wrote:
> 
>>
>>
>>  Sure it will. Unless you are using 3..4 year old version of Eclipse.
>>
>>  regards,
>>  Eugene
>>
>>
>> John Wooten-2 wrote:
>>>
>>> Eclipse won't let you nest projects in a directory structure.
>>>
>>> On Feb 27, 2009, at 9:14 AM, Edelson, Justin wrote:
>>>
 This looks like the right directory structure to me. Each directory
 with a pom.xml file would be an Eclipse project. Why do you think
 this won't work?

 Justin
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/Eclipse-and-maven-tp22245841p22254394.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Eclipse-and-maven-tp22245841p22257816.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread Eugene Kuleshov


  Try "mvn help:effective-pom" and check what plugin configuration is used
for that project.

  regards,
  Eugene


John Wooten-2 wrote:
> 
> I have added:
> 
>  
>   1.5
>   1.5
> 
> 
> 
> to each plugin and I still get:
> 
> [WARNING] Error while parsing /Users/woo/Development/workspaces/areteq/ 
> modules/Foundation/src/main/java/com/areteq/common/ 
> HashMapHandler.java: Can't use generics unless running in JDK 1.5 mode!
> 
> Would be nice to specify this in one place ( run in JDK 1.5 mode ).
> 
> 
> On Feb 27, 2009, at 4:06 PM, Eugene Kuleshov wrote:
> 
>>
>>
>>  See comparison at
>> http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration
>>
>>  regards,
>>  Eugene
>>
>>
>>
>> supareno wrote:
>>>
>>> David,
>>>
>>> http://code.google.com/p/q4e is a very good tool too
>>>
 though...i would also encourage you to check out the M2Eclipse  
 plugin
 for Eclipse.  it does a really good job of helping with the
 integration of Maven and Eclipse
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/Eclipse-and-maven-tp22245841p22254461.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Eclipse-and-maven-tp22245841p22257832.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Eclipse and maven

2009-02-27 Thread David C. Hicks
This might be a dumb question, but it's easy enough to overlook.  You 
do, in fact, have a 1.5 JVM installed, right?
(I'm not trying to be a wise ass.  I just haven't seen mention of that 
particular fact or question in this thread, yet.)


John Wooten wrote:

I have added:


 1.5
 1.5
   


to each plugin and I still get:

[WARNING] Error while parsing 
/Users/woo/Development/workspaces/areteq/modules/Foundation/src/main/java/com/areteq/common/HashMapHandler.java: 
Can't use generics unless running in JDK 1.5 mode!




-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org