Maven API to identify the parent for a project with 'N' levels of POM Inheritance

2010-06-25 Thread Madhanraj Meignanam
Hi,

We are trying to build a tool around Maven and need to identify the top
level parent of any given POM. For example, If ProjectC inherits from
ProjectB and ProjectB from ProjectA, we want to know if there is any API in
maven to identify ProjectA's POM, given ProjectC's POM as input.

In this case, we are NOT really starting a maven execution, just running the
tool we build against a list of POMs to find the top level parent.

Could someone throw some light if you have any idea?

-- 
"...and miles 2 go b4 I sleep"

Madhanraj M


Sanity Check

2010-06-25 Thread Greg Akins
I feel like creating a plug-in that will monitor for file changes and
run "test" when notified of a change.

1)  It looks like it's a little cumbersome to call a goal for one
plugin from the execute method of another.
2)  There are a few plugins that look like they wrap this ability
alread ("inherit" is one, "cli" and "mojo-executor library")

Does anyone have an opinions?  I'll probably follow this blog
(http://unserializableone.blogspot.com/2009/06/executing-maven-plugin-from-maven.html)
to get started and have an execute method with

public void execute() {
  while(true) {
if (lookForChanges()) TestMojo().execute();
  }
}

-- 
Greg Akins

http://insomnia-consulting.org
http://www.pghcodingdojo.org
http://pittjug.dev.java.net
http://twitter.com/akinsgre
http://www.linkedin.com/in/akinsgre

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



Re: Developing Eclipse plugin with Maven

2010-06-25 Thread Jason van Zyl
On Jun 25, 2010, at 6:36 PM, Kathryn Huxtable wrote:

> Okay, one more question: do the java sources have to be under src instead of 
> src/main/java?
> 

Tycho obeys PDE metadata so however you created the accompanying 
build.properties file in PDE is what Tycho uses. So you can put it wherever you 
like. Just change the values in here:

http://github.com/khuxtable/eclipse-cocoa-set-represented-filename/blob/master/build.properties

from src/ to src/main/java if you want something more Maven-esque.

> If so, where do I put my site docs?
> 
> -K
> 
> On Jun 25, 2010, at 4:41 PM, Jason van Zyl wrote:
> 
>> Change the names accordingly, but you should be able to drop this in and 
>> build with Maven 3:
>> 
>> http://gist.github.com/453490
>> 
>> This won't work with Maven 2.x.
>> 
>> On Jun 25, 2010, at 5:10 PM, Kathryn Huxtable wrote:
>> 
>>> BTW, what I'm developing is a relatively throwaway plugin for Mac Cocoa 
>>> Eclipse to set the represented filename for the active editor in the 
>>> associated window. This enables software such as DTerm, which provides a 
>>> convenient terminal window, to correctly get the directory associated with 
>>> the active file.
>>> 
>>> I'm using DTerm because EGit/JGit aren't really complete yet and I need 
>>> command-line git. If good support for "git svn" isn't built into EGit at 
>>> some point, I'll probably always need DTerm.
>>> 
>>> The current non-mavenized plugin is at
>>> 
>>> http://github.com/khuxtable/eclipse-cocoa-set-represented-filename
>>> 
>>> It works, but I want it mavenized.
>>> 
>>> -K
>>> 
>>> On Jun 25, 2010, at 4:04 PM, Jason van Zyl wrote:
>>> 
 Tycho.
 
 http://tycho.sonatype.org
 
 It's used to build M2Eclipse, Eclipse EGit, Eclipse Memory Analyzer, and 
 Antlr IDE.
 
 Sources: http://github.com/sonatype/sonatype-tycho
 
 Integration tests specifically which shows how to build everything from 
 plugins the products:
 
 http://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/
 
 On Jun 25, 2010, at 4:53 PM, Kathryn Huxtable wrote:
 
> Are there any *good* guides to building an Eclipse plugin using Maven, 
> preferably in a way that allows it to be developed in Eclipse? I don't 
> really have any dependencies other than standard Eclipse packages, but I 
> want all the great lifecycle and site management tools that Maven 
> supplies.
> 
> I've seen:
> 
> http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
> by Peter H. Petersen, and Sumit Gupta, of Princeton Softech, from 2006.
> 
> I've also seen:
> 
> https://cwiki.apache.org/UIMA/building-eclipse-plugins-with-maven-bundle-plugin-and-friends.html
> by Marshall Schor, from 2008.
> 
> Are these reasonable? Is there something newer? The former is what you 
> get when you search the eclipse site. It's pretty crude.
> 
> -K
> -
> 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
 -
 
 To do two things at once is to do neither.
 
 -—Publilius Syrus, Roman slave, first century B.C.
 
 
 
>>> 
>>> 
>>> -
>>> 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
>> -
>> 
>> What matters is not ideas, but the people who have them. Good people can fix 
>> bad ideas, but good ideas can't save bad people. 
>> 
>> -- Paul Graham
>> 
>> 
>> 
> 
> 
> -
> 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
-

You are never dedicated to something you have complete confidence in.
No one is fanatically shouting that the sun is going to rise tomorrow.
They know it is going to rise tomorrow. When people are fanatically
dedicated to political or religious faiths or any other kind of 
dogmas or goals, it's always because these dogmas or
goals are in doubt.

  -- Robert Pirzig, Zen and the Art of Motorcycle Mainte

Re: Developing Eclipse plugin with Maven

2010-06-25 Thread Kathryn Huxtable
Okay, one more question: do the java sources have to be under src instead of 
src/main/java?

If so, where do I put my site docs?

-K

On Jun 25, 2010, at 4:41 PM, Jason van Zyl wrote:

> Change the names accordingly, but you should be able to drop this in and 
> build with Maven 3:
> 
> http://gist.github.com/453490
> 
> This won't work with Maven 2.x.
> 
> On Jun 25, 2010, at 5:10 PM, Kathryn Huxtable wrote:
> 
>> BTW, what I'm developing is a relatively throwaway plugin for Mac Cocoa 
>> Eclipse to set the represented filename for the active editor in the 
>> associated window. This enables software such as DTerm, which provides a 
>> convenient terminal window, to correctly get the directory associated with 
>> the active file.
>> 
>> I'm using DTerm because EGit/JGit aren't really complete yet and I need 
>> command-line git. If good support for "git svn" isn't built into EGit at 
>> some point, I'll probably always need DTerm.
>> 
>> The current non-mavenized plugin is at
>> 
>> http://github.com/khuxtable/eclipse-cocoa-set-represented-filename
>> 
>> It works, but I want it mavenized.
>> 
>> -K
>> 
>> On Jun 25, 2010, at 4:04 PM, Jason van Zyl wrote:
>> 
>>> Tycho.
>>> 
>>> http://tycho.sonatype.org
>>> 
>>> It's used to build M2Eclipse, Eclipse EGit, Eclipse Memory Analyzer, and 
>>> Antlr IDE.
>>> 
>>> Sources: http://github.com/sonatype/sonatype-tycho
>>> 
>>> Integration tests specifically which shows how to build everything from 
>>> plugins the products:
>>> 
>>> http://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/
>>> 
>>> On Jun 25, 2010, at 4:53 PM, Kathryn Huxtable wrote:
>>> 
 Are there any *good* guides to building an Eclipse plugin using Maven, 
 preferably in a way that allows it to be developed in Eclipse? I don't 
 really have any dependencies other than standard Eclipse packages, but I 
 want all the great lifecycle and site management tools that Maven supplies.
 
 I've seen:
 
 http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
 by Peter H. Petersen, and Sumit Gupta, of Princeton Softech, from 2006.
 
 I've also seen:
 
 https://cwiki.apache.org/UIMA/building-eclipse-plugins-with-maven-bundle-plugin-and-friends.html
 by Marshall Schor, from 2008.
 
 Are these reasonable? Is there something newer? The former is what you get 
 when you search the eclipse site. It's pretty crude.
 
 -K
 -
 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
>>> -
>>> 
>>> To do two things at once is to do neither.
>>> 
>>> -—Publilius Syrus, Roman slave, first century B.C.
>>> 
>>> 
>>> 
>> 
>> 
>> -
>> 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
> -
> 
> What matters is not ideas, but the people who have them. Good people can fix 
> bad ideas, but good ideas can't save bad people. 
> 
> -- Paul Graham
> 
> 
> 


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



Re: Developing Eclipse plugin with Maven

2010-06-25 Thread Kathryn Huxtable
Okay, I answered that myself. ("Yes.")

-K

On Jun 25, 2010, at 4:54 PM, Kathryn Huxtable wrote:

> Will this work with the released tycho (0.8.0) or does it need the 
> 0.9.0-SNAPSHOT versions? -K
> 
> On Jun 25, 2010, at 4:41 PM, Jason van Zyl wrote:
> 
>> Change the names accordingly, but you should be able to drop this in and 
>> build with Maven 3:
>> 
>> http://gist.github.com/453490
>> 
>> This won't work with Maven 2.x.
>> 
>> On Jun 25, 2010, at 5:10 PM, Kathryn Huxtable wrote:
>> 
>>> BTW, what I'm developing is a relatively throwaway plugin for Mac Cocoa 
>>> Eclipse to set the represented filename for the active editor in the 
>>> associated window. This enables software such as DTerm, which provides a 
>>> convenient terminal window, to correctly get the directory associated with 
>>> the active file.
>>> 
>>> I'm using DTerm because EGit/JGit aren't really complete yet and I need 
>>> command-line git. If good support for "git svn" isn't built into EGit at 
>>> some point, I'll probably always need DTerm.
>>> 
>>> The current non-mavenized plugin is at
>>> 
>>> http://github.com/khuxtable/eclipse-cocoa-set-represented-filename
>>> 
>>> It works, but I want it mavenized.
>>> 
>>> -K
>>> 
>>> On Jun 25, 2010, at 4:04 PM, Jason van Zyl wrote:
>>> 
 Tycho.
 
 http://tycho.sonatype.org
 
 It's used to build M2Eclipse, Eclipse EGit, Eclipse Memory Analyzer, and 
 Antlr IDE.
 
 Sources: http://github.com/sonatype/sonatype-tycho
 
 Integration tests specifically which shows how to build everything from 
 plugins the products:
 
 http://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/
 
 On Jun 25, 2010, at 4:53 PM, Kathryn Huxtable wrote:
 
> Are there any *good* guides to building an Eclipse plugin using Maven, 
> preferably in a way that allows it to be developed in Eclipse? I don't 
> really have any dependencies other than standard Eclipse packages, but I 
> want all the great lifecycle and site management tools that Maven 
> supplies.
> 
> I've seen:
> 
> http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
> by Peter H. Petersen, and Sumit Gupta, of Princeton Softech, from 2006.
> 
> I've also seen:
> 
> https://cwiki.apache.org/UIMA/building-eclipse-plugins-with-maven-bundle-plugin-and-friends.html
> by Marshall Schor, from 2008.
> 
> Are these reasonable? Is there something newer? The former is what you 
> get when you search the eclipse site. It's pretty crude.
> 
> -K
> -
> 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
 -
 
 To do two things at once is to do neither.
 
 -—Publilius Syrus, Roman slave, first century B.C.
 
 
 
>>> 
>>> 
>>> -
>>> 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
>> -
>> 
>> What matters is not ideas, but the people who have them. Good people can fix 
>> bad ideas, but good ideas can't save bad people. 
>> 
>> -- Paul Graham
>> 
>> 
>> 
> 
> 
> -
> 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: Developing Eclipse plugin with Maven

2010-06-25 Thread Kathryn Huxtable
Will this work with the released tycho (0.8.0) or does it need the 
0.9.0-SNAPSHOT versions? -K

On Jun 25, 2010, at 4:41 PM, Jason van Zyl wrote:

> Change the names accordingly, but you should be able to drop this in and 
> build with Maven 3:
> 
> http://gist.github.com/453490
> 
> This won't work with Maven 2.x.
> 
> On Jun 25, 2010, at 5:10 PM, Kathryn Huxtable wrote:
> 
>> BTW, what I'm developing is a relatively throwaway plugin for Mac Cocoa 
>> Eclipse to set the represented filename for the active editor in the 
>> associated window. This enables software such as DTerm, which provides a 
>> convenient terminal window, to correctly get the directory associated with 
>> the active file.
>> 
>> I'm using DTerm because EGit/JGit aren't really complete yet and I need 
>> command-line git. If good support for "git svn" isn't built into EGit at 
>> some point, I'll probably always need DTerm.
>> 
>> The current non-mavenized plugin is at
>> 
>> http://github.com/khuxtable/eclipse-cocoa-set-represented-filename
>> 
>> It works, but I want it mavenized.
>> 
>> -K
>> 
>> On Jun 25, 2010, at 4:04 PM, Jason van Zyl wrote:
>> 
>>> Tycho.
>>> 
>>> http://tycho.sonatype.org
>>> 
>>> It's used to build M2Eclipse, Eclipse EGit, Eclipse Memory Analyzer, and 
>>> Antlr IDE.
>>> 
>>> Sources: http://github.com/sonatype/sonatype-tycho
>>> 
>>> Integration tests specifically which shows how to build everything from 
>>> plugins the products:
>>> 
>>> http://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/
>>> 
>>> On Jun 25, 2010, at 4:53 PM, Kathryn Huxtable wrote:
>>> 
 Are there any *good* guides to building an Eclipse plugin using Maven, 
 preferably in a way that allows it to be developed in Eclipse? I don't 
 really have any dependencies other than standard Eclipse packages, but I 
 want all the great lifecycle and site management tools that Maven supplies.
 
 I've seen:
 
 http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
 by Peter H. Petersen, and Sumit Gupta, of Princeton Softech, from 2006.
 
 I've also seen:
 
 https://cwiki.apache.org/UIMA/building-eclipse-plugins-with-maven-bundle-plugin-and-friends.html
 by Marshall Schor, from 2008.
 
 Are these reasonable? Is there something newer? The former is what you get 
 when you search the eclipse site. It's pretty crude.
 
 -K
 -
 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
>>> -
>>> 
>>> To do two things at once is to do neither.
>>> 
>>> -—Publilius Syrus, Roman slave, first century B.C.
>>> 
>>> 
>>> 
>> 
>> 
>> -
>> 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
> -
> 
> What matters is not ideas, but the people who have them. Good people can fix 
> bad ideas, but good ideas can't save bad people. 
> 
> -- Paul Graham
> 
> 
> 


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



Re: Developing Eclipse plugin with Maven

2010-06-25 Thread Jason van Zyl
Change the names accordingly, but you should be able to drop this in and build 
with Maven 3:

http://gist.github.com/453490

This won't work with Maven 2.x.

On Jun 25, 2010, at 5:10 PM, Kathryn Huxtable wrote:

> BTW, what I'm developing is a relatively throwaway plugin for Mac Cocoa 
> Eclipse to set the represented filename for the active editor in the 
> associated window. This enables software such as DTerm, which provides a 
> convenient terminal window, to correctly get the directory associated with 
> the active file.
> 
> I'm using DTerm because EGit/JGit aren't really complete yet and I need 
> command-line git. If good support for "git svn" isn't built into EGit at some 
> point, I'll probably always need DTerm.
> 
> The current non-mavenized plugin is at
> 
> http://github.com/khuxtable/eclipse-cocoa-set-represented-filename
> 
> It works, but I want it mavenized.
> 
> -K
> 
> On Jun 25, 2010, at 4:04 PM, Jason van Zyl wrote:
> 
>> Tycho.
>> 
>> http://tycho.sonatype.org
>> 
>> It's used to build M2Eclipse, Eclipse EGit, Eclipse Memory Analyzer, and 
>> Antlr IDE.
>> 
>> Sources: http://github.com/sonatype/sonatype-tycho
>> 
>> Integration tests specifically which shows how to build everything from 
>> plugins the products:
>> 
>> http://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/
>> 
>> On Jun 25, 2010, at 4:53 PM, Kathryn Huxtable wrote:
>> 
>>> Are there any *good* guides to building an Eclipse plugin using Maven, 
>>> preferably in a way that allows it to be developed in Eclipse? I don't 
>>> really have any dependencies other than standard Eclipse packages, but I 
>>> want all the great lifecycle and site management tools that Maven supplies.
>>> 
>>> I've seen:
>>> 
>>> http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
>>> by Peter H. Petersen, and Sumit Gupta, of Princeton Softech, from 2006.
>>> 
>>> I've also seen:
>>> 
>>> https://cwiki.apache.org/UIMA/building-eclipse-plugins-with-maven-bundle-plugin-and-friends.html
>>> by Marshall Schor, from 2008.
>>> 
>>> Are these reasonable? Is there something newer? The former is what you get 
>>> when you search the eclipse site. It's pretty crude.
>>> 
>>> -K
>>> -
>>> 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
>> -
>> 
>> To do two things at once is to do neither.
>> 
>> -—Publilius Syrus, Roman slave, first century B.C.
>> 
>> 
>> 
> 
> 
> -
> 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
-

What matters is not ideas, but the people who have them. Good people can fix 
bad ideas, but good ideas can't save bad people. 

 -- Paul Graham





Re: Developing Eclipse plugin with Maven

2010-06-25 Thread Kathryn Huxtable
BTW, what I'm developing is a relatively throwaway plugin for Mac Cocoa Eclipse 
to set the represented filename for the active editor in the associated window. 
This enables software such as DTerm, which provides a convenient terminal 
window, to correctly get the directory associated with the active file.

I'm using DTerm because EGit/JGit aren't really complete yet and I need 
command-line git. If good support for "git svn" isn't built into EGit at some 
point, I'll probably always need DTerm.

The current non-mavenized plugin is at

http://github.com/khuxtable/eclipse-cocoa-set-represented-filename

It works, but I want it mavenized.

-K

On Jun 25, 2010, at 4:04 PM, Jason van Zyl wrote:

> Tycho.
> 
> http://tycho.sonatype.org
> 
> It's used to build M2Eclipse, Eclipse EGit, Eclipse Memory Analyzer, and 
> Antlr IDE.
> 
> Sources: http://github.com/sonatype/sonatype-tycho
> 
> Integration tests specifically which shows how to build everything from 
> plugins the products:
> 
> http://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/
> 
> On Jun 25, 2010, at 4:53 PM, Kathryn Huxtable wrote:
> 
>> Are there any *good* guides to building an Eclipse plugin using Maven, 
>> preferably in a way that allows it to be developed in Eclipse? I don't 
>> really have any dependencies other than standard Eclipse packages, but I 
>> want all the great lifecycle and site management tools that Maven supplies.
>> 
>> I've seen:
>> 
>> http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
>> by Peter H. Petersen, and Sumit Gupta, of Princeton Softech, from 2006.
>> 
>> I've also seen:
>> 
>> https://cwiki.apache.org/UIMA/building-eclipse-plugins-with-maven-bundle-plugin-and-friends.html
>> by Marshall Schor, from 2008.
>> 
>> Are these reasonable? Is there something newer? The former is what you get 
>> when you search the eclipse site. It's pretty crude.
>> 
>> -K
>> -
>> 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
> -
> 
> To do two things at once is to do neither.
> 
> -—Publilius Syrus, Roman slave, first century B.C.
> 
> 
> 


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



Re: Developing Eclipse plugin with Maven

2010-06-25 Thread Kathryn Huxtable
Thanks! -K

On Jun 25, 2010, at 4:04 PM, Jason van Zyl wrote:

> Tycho.
> 
> http://tycho.sonatype.org
> 
> It's used to build M2Eclipse, Eclipse EGit, Eclipse Memory Analyzer, and 
> Antlr IDE.
> 
> Sources: http://github.com/sonatype/sonatype-tycho
> 
> Integration tests specifically which shows how to build everything from 
> plugins the products:
> 
> http://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/
> 
> On Jun 25, 2010, at 4:53 PM, Kathryn Huxtable wrote:
> 
>> Are there any *good* guides to building an Eclipse plugin using Maven, 
>> preferably in a way that allows it to be developed in Eclipse? I don't 
>> really have any dependencies other than standard Eclipse packages, but I 
>> want all the great lifecycle and site management tools that Maven supplies.
>> 
>> I've seen:
>> 
>> http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
>> by Peter H. Petersen, and Sumit Gupta, of Princeton Softech, from 2006.
>> 
>> I've also seen:
>> 
>> https://cwiki.apache.org/UIMA/building-eclipse-plugins-with-maven-bundle-plugin-and-friends.html
>> by Marshall Schor, from 2008.
>> 
>> Are these reasonable? Is there something newer? The former is what you get 
>> when you search the eclipse site. It's pretty crude.
>> 
>> -K
>> -
>> 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
> -
> 
> To do two things at once is to do neither.
> 
> -—Publilius Syrus, Roman slave, first century B.C.
> 
> 
> 


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



Re: Developing Eclipse plugin with Maven

2010-06-25 Thread Jason van Zyl
Tycho.

http://tycho.sonatype.org

It's used to build M2Eclipse, Eclipse EGit, Eclipse Memory Analyzer, and Antlr 
IDE.

Sources: http://github.com/sonatype/sonatype-tycho

Integration tests specifically which shows how to build everything from plugins 
the products:

http://github.com/sonatype/sonatype-tycho/tree/master/tycho-its/projects/

On Jun 25, 2010, at 4:53 PM, Kathryn Huxtable wrote:

> Are there any *good* guides to building an Eclipse plugin using Maven, 
> preferably in a way that allows it to be developed in Eclipse? I don't really 
> have any dependencies other than standard Eclipse packages, but I want all 
> the great lifecycle and site management tools that Maven supplies.
> 
> I've seen:
> 
> http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
> by Peter H. Petersen, and Sumit Gupta, of Princeton Softech, from 2006.
> 
> I've also seen:
> 
> https://cwiki.apache.org/UIMA/building-eclipse-plugins-with-maven-bundle-plugin-and-friends.html
> by Marshall Schor, from 2008.
> 
> Are these reasonable? Is there something newer? The former is what you get 
> when you search the eclipse site. It's pretty crude.
> 
> -K
> -
> 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
-

To do two things at once is to do neither.
 
 -—Publilius Syrus, Roman slave, first century B.C.





Developing Eclipse plugin with Maven

2010-06-25 Thread Kathryn Huxtable
Are there any *good* guides to building an Eclipse plugin using Maven, 
preferably in a way that allows it to be developed in Eclipse? I don't really 
have any dependencies other than standard Eclipse packages, but I want all the 
great lifecycle and site management tools that Maven supplies.

I've seen:

http://www.eclipse.org/articles/article.php?file=Article-Eclipse-and-Maven2/index.html
by Peter H. Petersen, and Sumit Gupta, of Princeton Softech, from 2006.

I've also seen:

https://cwiki.apache.org/UIMA/building-eclipse-plugins-with-maven-bundle-plugin-and-friends.html
by Marshall Schor, from 2008.

Are these reasonable? Is there something newer? The former is what you get when 
you search the eclipse site. It's pretty crude.

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



Re: Maven Package Speed

2010-06-25 Thread Wayne Fay
> CPU Speed - is already running optimal (using only necessary applications,
> set page options in system settings etc.)

The copying of resources (files) from one directory on your machine to
another took 75 seconds. That is a really long time unless you're
dealing with tons of files indicating your project could stand to be
reorganized/refactored into a series of smaller modules that you would
then depend upon. Copying 500 files of 5kb each takes quite a bit
longer than copying one file of the same total size, so the shared
libraries suggestion given to you by others is a good approach.

Your total build time is 7 minutes so just the resource copying step
is taking up about 1/6th of your total time. Have you profiled your
build to see where the other ~6 minutes are consumed?

> If you have any suggestions that a limited user can do in a team
> environment, that will be helpful!

Run package less often.
Take regular bathroom/coffee/smoking breaks for 7 minutes.

Wayne

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



Re: Maven Package Speed

2010-06-25 Thread Rajasekar Karthik

Same here - tons of apache stuff 
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Package-Speed-tp511260p511388.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 Package Speed

2010-06-25 Thread Rajasekar Karthik

Good suggestion - will try to convince my superiors on the same!
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Package-Speed-tp511260p511387.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 Package Speed

2010-06-25 Thread Rajasekar Karthik

Your solutions are good and probably will get the job done, except I do not
have authority over to do any of those.

CPU Speed - is already running optimal (using only necessary applications,
set page options in system settings etc.)

If you have any suggestions that a limited user can do in a team
environment, that will be helpful!

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Package-Speed-tp511260p511386.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



webResources not copied during build on UNIX.

2010-06-25 Thread Michael Delaney

All,

I have a war project (by this I mean packaging type is 'war') that, in 
the maven-war-plugin, I'm defining some web resources (see snipped 
below). During a build on Windows the resources specified in the 
'webResources' tag are copied over but during a build on UNIX (most 
explicitly Solaris) the resources are not copied over. The paths do not 
contain any Windows specific slashes and the case of the files is also 
correct.


Anyone know what could be causing this?

We're using maven-war-plugin version 2.1-alpha-1 and 
maven-resources-plugin 2.3.



org.apache.maven.plugins
maven-war-plugin



false
${basedir}/src/main/resources/templates


web.xml

WEB-INF/templates







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



Re: Maven Package Speed

2010-06-25 Thread Ron Wheeler

On 25/06/2010 11:00 AM, Shan Syed wrote:

I don't know what your webapp does, so it's hard for me to describe how it
could be broken up; but personally, if I had a webapp that relied on 50
dependencies (and as a result, 50+ jars), I would try to identify how I
could modularize it and move the service layer to actual independent web
services or something, that are called/invoked by the actual front-end


   

Exactly!
50 dependencies is not hard to get to if you like Apache stuff and don't 
like writing stuff that already exists.

Spring, Hibernate, Mysql, Tomcat
Commons-  easy to get 20+ of these just to support the above. 
Add a few  more in to support MS-Office docs, file uploads, etc.

Jasper
JSF
CXF
Jetspeed in our case since we are building portals.


Ron

On Fri, Jun 25, 2010 at 10:36 AM, Rajasekar Karthikwrote:

   

Shared library is a good option - will give it a try!
Most of the back-end functionality are services!

Breaking the webapp into multiple webapps?
Do you mean by functionality?
If not, what did you mean?

My disk speed is around 7200 RPM (SATA).

--
View this message in context:
http://maven.40175.n5.nabble.com/Maven-Package-Speed-tp511260p511357.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: Maven Package Speed

2010-06-25 Thread Ron Wheeler

On 25/06/2010 10:36 AM, Rajasekar Karthik wrote:

Shared library is a good option - will give it a try!
Most of the back-end functionality are services!

Breaking the webapp into multiple webapps?
Do you mean by functionality?
If not, what did you mean?

My disk speed is around 7200 RPM (SATA).

   

We have services that perform some "controller" functions.
In our case, these range from printing reports or course completion 
certificates to a cache manager that can be asked about various stable 
database entries such as codes or the user's view of course catalogue 
for our LMS based on the user's group access and competency requirements.


Anything that you do to add more of a service architecture will reduce 
the size and complexity of individual webapps at the expense of having 
more webapps that change less often (and get built less often)


Ron

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



Re: Maven Package Speed

2010-06-25 Thread Shan Syed
I don't know what your webapp does, so it's hard for me to describe how it
could be broken up; but personally, if I had a webapp that relied on 50
dependencies (and as a result, 50+ jars), I would try to identify how I
could modularize it and move the service layer to actual independent web
services or something, that are called/invoked by the actual front-end



On Fri, Jun 25, 2010 at 10:36 AM, Rajasekar Karthik wrote:

>
> Shared library is a good option - will give it a try!
> Most of the back-end functionality are services!
>
> Breaking the webapp into multiple webapps?
> Do you mean by functionality?
> If not, what did you mean?
>
> My disk speed is around 7200 RPM (SATA).
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Maven-Package-Speed-tp511260p511357.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 Package Speed

2010-06-25 Thread Ron Wheeler

On 25/06/2010 10:22 AM, Wayne Fay wrote:

Copying webapp
resources[C:\Users\7yw\netbeans_workspace\BioKDF\src\main\webapp]
Webapp assembled in[75025 msecs]
 

Reduce the amount of code being processed,
or increase cpu speed,
or increase i/o speed (ramdisk or ssd).

Wayne

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


   
We broke the dependencies into families and built stable jar files that 
are deployed into the shared library of Tomcat so that they built once 
for each new version and are included as "provided" dependencies in our 
war files so that the war files only contain code that we wrote.


We also are moving to SAO with much of the Controller functionality 
built into web services smaller servlets that make the application much 
more robust and less complex.


Ron


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



Re: Maven Package Speed

2010-06-25 Thread Rajasekar Karthik

Shared library is a good option - will give it a try!
Most of the back-end functionality are services!

Breaking the webapp into multiple webapps?
Do you mean by functionality?
If not, what did you mean?

My disk speed is around 7200 RPM (SATA).

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Package-Speed-tp511260p511357.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 Package Speed

2010-06-25 Thread Shan Syed
also, consider breaking the WAR up into different webapps, if you can,
architecturally
50 dependencies is pretty big

On Fri, Jun 25, 2010 at 10:22 AM, Wayne Fay  wrote:

> > Copying webapp
> > resources[C:\Users\7yw\netbeans_workspace\BioKDF\src\main\webapp]
> > Webapp assembled in[75025 msecs]
>
> Reduce the amount of code being processed,
> or increase cpu speed,
> or increase i/o speed (ramdisk or ssd).
>
> Wayne
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Maven Package Speed

2010-06-25 Thread Wayne Fay
> Copying webapp
> resources[C:\Users\7yw\netbeans_workspace\BioKDF\src\main\webapp]
> Webapp assembled in[75025 msecs]

Reduce the amount of code being processed,
or increase cpu speed,
or increase i/o speed (ramdisk or ssd).

Wayne

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



Re: Maven Package Speed

2010-06-25 Thread Rajasekar Karthik

I have never used NEXUS. Can you please explain what it does and helps in my
case?
Problem seems to be more related to processing war project (as explained in
the earlier mail)
All the necessary jar files are installed in the local maven repository!
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Package-Speed-tp511260p511349.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 Package Speed

2010-06-25 Thread Rajasekar Karthik

I was not sure what the problem was - only clue was that it was related to
maven.
After googling around, I came across few solutions, with one being setting
MAVEN_OPTS as explained in this article:
http://www.waltercedric.com/java-j2ee-mainmenu-53/361-maven-build-system/1360-get-more-speed-with-your-maven2-build.html

Even though it didn't help with building, it definitely helped with cleaning
the package.
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Package-Speed-tp511260p511346.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 Package Speed

2010-06-25 Thread Rajasekar Karthik

Well, my project has ~50 dependencies. It has many full-packaged frameworks
like ExtJS, OpenLayers tc.

Part that seems to be taking time:
Processing war project
Copying webapp
resources[C:\Users\7yw\netbeans_workspace\BioKDF\src\main\webapp]
Webapp assembled in[75025 msecs]
Building war: \Project\target\Project.war

Do you think this could be cause of the problem?
Besides unnecessary code removal, what other solutions can be done?
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-Package-Speed-tp511260p511343.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



how to exclude generated sources from reports

2010-06-25 Thread Andrey Zhuchkov
I have a multi-module project and defined reporting plugins under
 in the parent pom.

Two modules have no sources - they generate source code during build and
package one to jar then. So I've been trying to exclude generated sources
from reports. Checkstyle plugin exclude it by default. But I have PMD and
findbugs plugin else.
For PMD (version 2.5) I use following configuration:


${project.build.outputDirectory}/generated-sources


but it doesn't work.

For findbugs (version 2.0.1) I use :

   com.griddynamics.pmo.*

but now I have report for all packages except com.griddynamics.pmo.*. It's
strange.

My maven version is 2.2.1. Building is recursive.
-- 
Andrey Zhuchkov


Problem with ReleaseDescriptor model

2010-06-25 Thread Timothy Mcginnis
I have been trying to compile the 2.0 release plugin and I am having a 
problem with building the ReleaseDescriptor class from the model.
It seems to build a class but there are parts missing.  I have errors like

ReleaseDescriptor.ORIGINAL_VERSION cannot be resolved
ReleaseDescriptor.RELEASE_KEY cannot be resolved
ReleaseDescriptor.DEVELOPMENT_KEY cannot be resolved

I looked at the class in target/generated-sources/modello and all I have 
is the following.

/*
 === DO NOT EDIT THIS FILE 
 Generated by Modello 1.1 on 2010-06-25 09:18:32,
 any modifications will be overwritten.
 ==
 */

package org.apache.maven.shared.release.config;

/**
 * Class ReleaseDescriptor.
 * 
 * @version $Revision$ $Date$
 */
public class ReleaseDescriptor
implements java.io.Serializable
{

  //--/
 //- Class/Member Variables -/
//--/

/**
 * Field modelEncoding.
 */
private String modelEncoding = "UTF-8";


  //---/
 //- Methods -/
//---/

/**
 * Get the modelEncoding field.
 * 
 * @return String
 */
public String getModelEncoding()
{
return this.modelEncoding;
} //-- String getModelEncoding()

/**
 * Set the modelEncoding field.
 * 
 * @param modelEncoding
 */
public void setModelEncoding( String modelEncoding )
{
this.modelEncoding = modelEncoding;
} //-- void setModelEncoding( String )

}

Tim McGinnis
717 720-1962
Web Development
AES/PHEAA
==
This message contains privileged and confidential information intended for the 
above addressees only.  If you
receive this message in error please delete or destroy this message and/or 
attachments.  

The sender of this message will fully cooperate in the civil and criminal 
prosecution of any individual engaging
in the unauthorized use of this message.
==


Re: Maven Package Speed

2010-06-25 Thread Ron Wheeler

On 24/06/2010 2:36 PM, Rajasekar Karthik wrote:

Hi,
How can Maven's package of war be speed up?
Currently, it is extremely slow - around 7 minutes or more.

I even set the following options
-DMAVEN_OPTS="-Xms64m –Xmx512m"
(higher Xmx to see if it will increase speed - but, it does not)

Other options being set and command (invoked through NetBeans)
mvn.bat -Dnetbeans.deploy=true -Dnetbeans.execution=true
-DMAVEN_OPTS=-Xms64m –Xmx512m package

   
You probably should refactor the packaging to extract out some of the 
functionality into libraries that can be built separately.
This will reduce the size of the war file if you deploy the libraries to 
the container's shared library.


You may also want to move some of the back-end functionality into 
services that servlets can call.


You may also just want to look breaking the webapp into multiple webapps.

If your build is disk bound, you will have little success in fiddling 
with memory settings.


Ron

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



Re: Apt munges local links to JavaDocs

2010-06-25 Thread Thom Nichols
Thanks Lukas for the sanity check and bug report.


On Fri, Jun 25, 2010 at 6:04 AM, Lukas Theussl  wrote:

>
> I can confirm that this does NOT work as it should. I have opened
> http://jira.codehaus.org/browse/DOXIA-397
>
> Cheers,
> -Lukas
>
>
>
> Thom Nichols wrote:
>
>> I'm trying to put links in my apt documents that link to javadoc:
>>
>>
>> {{{../apidocs/groovyx/net/http/ParserRegistry.html#parseText(org.apache.http.HttpResponse)}ParserRegistry}}
>>
>>
>> I've got the relative path (../) in front, so it should be picked up as a
>> local (not internal link).  Apt still doesn't like it though and munges
>> it:
>>
>> [WARNING] [APT Parser] Modified invalid link:
>> 'parseText(org.apache.http.HttpResponse)' to
>>
>> '../apidocs/groovyx/net/http/ParserRegistry.html#parseTextorg.apache.http.HttpResponse'
>>
>> So essentially it doesn't like the parens in the anchor (method anchors
>> that
>> include spaces and commas get munged too.)  Boo!  Now I can't link to
>> methods in javadocs.  Do I need to add an absolute URI for all of these
>> links?  As far as I can tell, I'm using doxia-core 1.1.3.  Can someone
>> confirm for me that it _does_ work (maybe the dependencies aren't
>> resolving
>> like I think they are?)
>>
>> I'm using Maven 2.2.1 and running "mvn site:site"
>>
>> Thanks!
>>
>> Here's the relevant part of my POM:
>> 
>> org.apache.maven.plugins
>> maven-site-plugin
>> 2.1.1
>> 
>> 
>> 
>> com.anasoft.os
>> m2st-doxia-macros
>> ${m2st.version}
>> 
>>   
>> org.apache.maven.doxia
>> doxia-sink-api
>>  1.1.3
>> 
>>  
>> org.apache.maven.doxia
>> doxia-core
>>  1.1.3
>> 
>> 
>> 
>>
>>


Re: How to Check If some file exists or not in resource folder

2010-06-25 Thread Marshall Schor


On 6/24/2010 2:29 PM, Umer Khan wrote:
> Hey,
>
> Is there any possible way to check if the file exist or not, thorough maven
> script, 

Yes, have a look at
http://maven.apache.org/enforcer/enforcer-rules/requireFilesExist.html
> Actualy when packaging my project, I need some files to be in jar,
> so I just want to make sure if files are present or not, and then show
> appropriate message, this file doesn't exist.
>
>
>
> Regards,
> Umer
>
>   

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



Re: Apt munges local links to JavaDocs

2010-06-25 Thread Lukas Theussl


I can confirm that this does NOT work as it should. I have opened 
http://jira.codehaus.org/browse/DOXIA-397


Cheers,
-Lukas


Thom Nichols wrote:

I'm trying to put links in my apt documents that link to javadoc:

{{{../apidocs/groovyx/net/http/ParserRegistry.html#parseText(org.apache.http.HttpResponse)}ParserRegistry}}


I've got the relative path (../) in front, so it should be picked up as a
local (not internal link).  Apt still doesn't like it though and munges it:

[WARNING] [APT Parser] Modified invalid link:
'parseText(org.apache.http.HttpResponse)' to
'../apidocs/groovyx/net/http/ParserRegistry.html#parseTextorg.apache.http.HttpResponse'

So essentially it doesn't like the parens in the anchor (method anchors that
include spaces and commas get munged too.)  Boo!  Now I can't link to
methods in javadocs.  Do I need to add an absolute URI for all of these
links?  As far as I can tell, I'm using doxia-core 1.1.3.  Can someone
confirm for me that it _does_ work (maybe the dependencies aren't resolving
like I think they are?)

I'm using Maven 2.2.1 and running "mvn site:site"

Thanks!

Here's the relevant part of my POM:
 
 org.apache.maven.plugins
 maven-site-plugin
 2.1.1
 
 
 
 com.anasoft.os
 m2st-doxia-macros
 ${m2st.version}
 
   
 org.apache.maven.doxia
 doxia-sink-api
  1.1.3
 
  
 org.apache.maven.doxia
 doxia-core
  1.1.3
 
 
 



Creating Tar-Archive with UNIX-username/group permissions using maven

2010-06-25 Thread Slarti Bartfast
Hi,
I'm currently working on a migration from ant to maven and want to create a
tar-file with unix-permissions (mode, username and group).

My Ant-code looked like this:

  

  


I managed to get the 700 filepermission with the -tag in maven -
but I coudn't find any tag that allows me to tell maven to set the username
and group for files within my output-tar.

Some Links:
Maven usage for the assembly-plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_fileSet
Ant usage: 
http://ant.apache.org/manual/Types/tarfileset.html
Maven assembly issue tracking:
http://jira.codehaus.org/browse/MASSEMBLY

Can anyone help me with this? Any workarounds suggested (ant-call is not
really what I want)?

Thanks a lot!
Daniel


How to Check If some file exists or not in resource folder

2010-06-25 Thread Umer Khan
Hey,

Is there any possible way to check if the file exist or not, thorough maven
script, Actualy when packaging my project, I need some files to be in jar,
so I just want to make sure if files are present or not, and then show
appropriate message, this file doesn't exist.



Regards,
Umer


Maven Package Speed

2010-06-25 Thread Rajasekar Karthik
Hi,
How can Maven's package of war be speed up?
Currently, it is extremely slow - around 7 minutes or more.

I even set the following options
-DMAVEN_OPTS="-Xms64m –Xmx512m"
(higher Xmx to see if it will increase speed - but, it does not)

Other options being set and command (invoked through NetBeans)
mvn.bat -Dnetbeans.deploy=true -Dnetbeans.execution=true
-DMAVEN_OPTS=-Xms64m –Xmx512m package

-- 
Best Regards,
Rajasekar Karthik
karthik...@gmail.com


Re: pom.xml configuration file

2010-06-25 Thread vector

Thank you Ron and Wayne for the help and your patience.
-- 
View this message in context: 
http://maven.40175.n5.nabble.com/pom-xml-configuration-file-tp57p511255.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: Run maven-jetty-plugin for webapp in other Maven module

2010-06-25 Thread ykyuen

Finally i can make the maven-jetty-plugin in the test project to start the
webapp of another maven module. just add the following configuration in the
pom.xml

/"webapp_project_name"
${project.parent.basedir}/"webapp_project_name"/src/main/webapp
${project.parent.basedir}/"webapp_project_name"/src/main/webapp/WEB-INF/web.xml
${project.parent.basedir}/"webapp_project_name"/target/classes


Thanks.

-- 
View this message in context: 
http://maven.40175.n5.nabble.com/Run-maven-jetty-plugin-for-webapp-in-other-Maven-module-tp511054p511249.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