Question about the JIRA report program?

2008-10-13 Thread 陈思淼
anybody who are familiar with JIRA configuration can tell me how to config
this kind of report?In the right the report section
http://jira.codehaus.org/browse/MWAR?report=com.atlassian.jira.ext.fisheye:fisheye-projectpanel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

How to release module build projects?

2008-10-13 Thread Stefan Fritz

Hi,

I try to use mvn release in a multi-module build scenario but I'm not 
sure whether I go into the right direction.

Our standalone projects have the following structure:

projA
   \_trunk
   \_tags
   \_branches

We also have some multi module projects and I wonder what is the best 
way to structure these to be able to run a "mvn release:perform" on the 
module build pom?


My first thought was to have trunk/tags/branches on the module-parent as 
well:


moduleBuild
   \_trunk
   |  \_pom.xml (which defines the modules via 
../projA/trunk etc.)

\_tags
\_branches
\_projA
   \_trunk
   \_tags
   \_branches
\_projB
   \_trunk
   \_tags
   \_branches
  
 


Is that recommended or is there a smarter way to do that?
Is there any documentation regarding releasing module builds?

Thanks
Stefan


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



The integration-test phase meaning?

2008-10-13 Thread 陈思淼
If the Project contains lots of subproject and the final project result is a
Big EAR package.
I think the integration-test is to put the ear package into jboss or other
app server to do the test thing lots of environment variable for example:
database connection parameter, the domain url, the SOA service url are
different with the unit test.

but the integration-test is hard to perform because of the environment
difficult.
I can see the maven-war-plugin have the war:run mojo binding with the
integration-test , Is there any best practice who can make smooth and
productive integration-test in their project, can you share with me ?


AW: WSDL as Maven artifact

2008-10-13 Thread Andreas Ebbert-Karroum
I support this idea. As the previous discussion shows, there are use-cases 
where WSDL files on its own are too small a fragment, but there are also other 
use-cases. For example for JSR 264 we used a tooling to generate the 
specification, which consisted purely of interfaces. We wanted to package them 
separately and create a jar file with all the JavaEE interfaces, one with tens 
of XML Schema and another one with WSDL files. All the packages describe the 
same interface from a functionality point of view, but allow for different 
interaction patterns and integration scenarios.

 

If you want to take a look at our project layout, look here:

 

https://jsr264-public.dev.java.net/source/browse/jsr264-public/

 

It's still kind of crude, but the spec_model is generating all interfaces in a 
single artifact, which is then split in the spec_jvt, spec_xsd and spec_wsdl 
projects.

 

 

Andreas [EMAIL PROTECTED]  

  mobile: +49 (175) 2664109; office: +49 (212) 2494 331; fax: +49 (212) 2494 334

  Grünewalder Str. 29-31; 42657 Solingen

 

Geschäftsführer: Peter Gierse, Mirko Novakovic und Rainer Vehns - Sitz der 
Gesellschaft: Solingen
Registergericht: Amtsgericht Wuppertal, HRB 19214

 

 

 

Von: Hayes, Peter [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 9. Oktober 2008 19:03
An: Maven Users List
Betreff: WSDL as Maven artifact

 

We are building web services and in our approach multiple maven projects would 
be consumers of the service WSDL in order to generate their server / client 
stubs.  I think it would be good to have a project of packaging type wsdl and 
then have consumer projects depend on that artifact.  Has anybody tried to do 
this or is there a better pattern for doing this?

 

I found one reference on the web about this :

 

http://myarch.com/using-maven-repository-as-web-services-registry

 

Possibly the hard part would be integrating with existing wsdl2java plugins 
that expect a file path to the WSDL file.  I would guess that I would have to 
customize one to automatically grab depencies of type wsdl and then pass them 
to the code generator.  

 

Peter Hayes LinkedIn Profile  
Architecture & Shared Technology Services | Fidelity Investments Management 
Technology 

 



Re: Using a property from a mojo in subsequent plugin executions

2008-10-13 Thread stug23

Thanks for the tip!

There appear to be a number of good tips for mojo programming in the mojo
developer cookbook. I was able to immediately take advantage of the
MavenProject object to set a property from a mojo for use by other plugins
later in the lifecycle.



Wayne Fay wrote:
> 
> You can add a property via MavenProject, see the Mojo Developer Cookbook
> here:
> http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
> 
> Wayne
> 
> On Mon, Oct 13, 2008 at 9:04 AM, stug23 <[EMAIL PROTECTED]> wrote:
>>
>> Is there a standard way to access a property that was set/established
>> within
>> a mojo in other, different plugin executions in the same POM?
>>
>> My use case is one where a mojo determines the value for a property that
>> was
>> not set/input to the mojo. This property needs to be available to other
>> plugins for execution within the same lifecycle in later phases. I was
>> able
>> to stuff the property into System.setProperty("key",value) however I was
>> wondering if there is a better way to do this?
>>
>> Or is the only way to make this work via filtering and writing to files?
>>
>> TIA
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Using-a-property-from-a-mojo-in-subsequent-plugin-executions-tp19957750p19957750.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-a-property-from-a-mojo-in-subsequent-plugin-executions-tp19957750p19966249.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Excluding a runtime dependency during testing

2008-10-13 Thread Ryan Cuprak


Thanks,
 Below is the exception - I have come across two solutions on the web:
 1. remove RichFaces from the test classpath (from what you have said  
and my own research this isn't possible - also not a good long term  
solution)

 2. add web.xml to the test classpath

 I am not sure about how to add web.xml to the test classpath - right  
now it resides under the src/main/webapp/WEB-INF.


 I have cross posted on the Seam discussion board. It baffles me why  
adding a new jar to my project would suddenly cause this problem. The  
test case prints "Hello World" and doesn't invoke any RichFaces  
classes. Digging into the source now.


Exception:
 javax.servlet.ServletException: ServletContext not allow to  
getResourceAsStream for /WEB-INF/web.xml
at org.ajax4jsf.webapp.WebXml.init(WebXml.java:131) at  
org 
.ajax4jsf 
.resource.InternetResourceService.init(InternetResourceService.java: 
130) at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:181) at  
org.jboss.seam.web.Ajax4jsfFilter.init(Ajax4jsfFilter.java:82) at  
org.jboss.seam.servlet.SeamFilter.init(SeamFilter.java:97) at  
org 
.jboss 
.seam.mock.AbstractSeamTest.createSeamFilter(AbstractSeamTest.java: 
976) at  
org.jboss.seam.mock.AbstractSeamTest.setupClass(AbstractSeamTest.java: 
953) at org.jboss.seam.mock.SeamTest.setupClass(SeamTest.java:44) at  
org 
.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java: 
62) at  
org 
.apache 
.maven 
.surefire 
.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java: 
141) at org.apache.maven.surefire.Surefire.run(Surefire.java:177) at  
org 
.apache 
.maven 
.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java: 
345) at  
org 
.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java: 
1009)


On Oct 13, 2008, at 4:02 AM, Baptiste MATHUS wrote:


Hi Ryan,

I don't think it's possible. Maybe you could manually try removing the
dependency to understand what's the cause of your problem.
If RichFaces is doing something under the cover that causes the test  
to
fail, it seems to be a bad strategy not to try to tackle it  
directltly.
Trying to workaround it by excluding it when testing could backfire  
when in

prod, imo.

Just a thought : couldn't your problem come from a dependency coming  
from

TestNg or RichFaces that makes running themselves together
problematic/incompatible?

Cheers.

2008/10/13 Ryan Cuprak <[EMAIL PROTECTED]>


Hello,
Does anyone know how to exclude a runtime dependency from the test
classpath? I am using RichFaces and TestNG. When I run my Seam  
TestNG tests
RichFaces tries to perform some operations which causes a test to  
fail. I
want RichFaces dependencies in my war file but I don't want them  
added to

the classpath when running tests.

Thanks!
-Ryan

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





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




Re: dynamic properies

2008-10-13 Thread ez

thanks :-)
is there another way? i had seen in maven 1 some scripting examples to
implement just that. is something similar available in maven 2?


Stephen Connolly-2 wrote:
> 
> why not use profiles?
> 
> i.e.
> 
> 
>   
> xxx
> 
>   ${property.xxx}
> 
>   
>   
> yyy
> 
>   ${property.yyy}
> 
>   
>   
> zzz
> 
>   ${property.zzz}
> 
>   
> 
> 
> 2008/10/13 ez <[EMAIL PROTECTED]>:
>>
>> i need to use dynamic properties i maven 2.
>> say i pass to maven a property called propName using -DpropName=zzz
>> then in the pom.xml i need to define a dynamic property, which loads its
>> value from another pre-defined property:
>> some xxx val
>> some yyy val
>> some zzz val
>> ${property.}
>>
>> can that be done?
>>
>> --
>> View this message in context:
>> http://www.nabble.com/dynamic-properies-tp19951753p19951753.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

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


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



Re: examples of using build-classpath to create a launcher script

2008-10-13 Thread Barrie Treloar
On Tue, Oct 14, 2008 at 3:18 AM, Beyer,Nathan <[EMAIL PROTECTED]> wrote:
> Are there any examples of using the dependency:build-classpath [1] to create 
> a launcher script or something similar? Or should I be looking to another 
> MOJO?
>
> Say I have a windows bat file, I'd like to insert into it a line, something 
> like the following.
>
> set CLASSPATH="%~dp0MyApp-1.0.jar;%~dp0MapApp-Dependency-1.0.jar"
>
>
>
> [1] 
> http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html

I have the Class-Path: entry in META-INF/MANIFEST.MF for MyApp-1.0.jar set.

using:

  org.apache.maven.plugins
  maven-jar-plugin
  

  
config/
  
  
true
lib/
  

  

And then use the assembly plugin to ensure all dependencies are copied
into the lib/ directory.

Then you can do

  java -jar MyApp-1.0.jar

to run your app.

I also have scripts in src/main/scripts like "start.bar"
  java -jar ${project.artifactId}-${project.version}.jar start

which the assembly filters as they are copied into the assembly:
  

  src/main/scripts/start.bat
  true


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



Re: examples of using build-classpath to create a launcher script

2008-10-13 Thread Brett Porter
You might consider the appassembler plugin over at mojo.codehaus.org.

- Brett

2008/10/14 Beyer,Nathan <[EMAIL PROTECTED]>:
> Are there any examples of using the dependency:build-classpath [1] to create 
> a launcher script or something similar? Or should I be looking to another 
> MOJO?
>
> Say I have a windows bat file, I'd like to insert into it a line, something 
> like the following.
>
> set CLASSPATH="%~dp0MyApp-1.0.jar;%~dp0MapApp-Dependency-1.0.jar"
>
>
>
> [1] 
> http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html
>
>
>
> --
> CONFIDENTIALITY NOTICE This message and any included attachments are from 
> Cerner Corporation and are intended only for the addressee. The information 
> contained in this message is confidential and may constitute inside or 
> non-public information under international, federal, or state securities 
> laws. Unauthorized forwarding, printing, copying, distribution, or use of 
> such information is strictly prohibited and may be unlawful. If you are not 
> the addressee, please promptly delete this message and notify the sender of 
> the delivery error by e-mail or you may call Cerner's corporate offices in 
> Kansas City, Missouri, U.S.A at (+1) (816)221-1024.
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: CVS command line parameters

2008-10-13 Thread Brett Porter
in which plugin? SCM?

(one way outside of Maven is to use ~/.cvsrc if it will always be used).

- Brett

2008/10/14 Jon Strayer <[EMAIL PROTECTED]>:
> How can I pass command line parameters to CVS?  I want to do an update with
> -C.
>
> --
> Esse Quam Videre
> To Be, rather than to Seem
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Phase property?

2008-10-13 Thread Brett Porter
Using a well known project property is probably the best alternative.
This has the advantage of also being able to be used in the project
itself to temporarily disable the functions, but has the drawback that
if anything persists the project the property will be visible.

However, antrun doesn't have access to the project properties itself
so that logic would need to be in plugins of their own.

- Brett

2008/10/14 Jon Strayer <[EMAIL PROTECTED]>:
> I was going to attach a fourth run to pre-site that would set the property
> to block the others.
>
> On Sun, Oct 12, 2008 at 7:43 PM, Brett Porter <[EMAIL PROTECTED]>wrote:
>
>> I don't quite understand your use case. Wouldn't it always run in
>> validate and block the others?
>>
>> 2008/10/12 Jon Strayer <[EMAIL PROTECTED]>:
>> > I have some executions attached to three phases (validate,
>> process-resources
>> > & process-classes) that it would like to execute only once per build.
>> > What's the best way to achieve that?
>> >
>> > I tried using the ant-run plugin to set a property but that doesn't seem
>> to
>> > be working (I haven't figured out why yet).
>> >
>> > --
>> > Esse Quam Videre
>> > To Be, rather than to Seem
>> >
>>
>>
>>
>> --
>> Brett Porter
>> Blog: http://blogs.exist.com/bporter/
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Esse Quam Videre
> To Be, rather than to Seem
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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



Re: Would really appreciate some feedback on this Maven2-EJB3/JPA example that I've posted, to make it better

2008-10-13 Thread Rick
On Mon, Oct 13, 2008 at 6:26 PM, Rusty Wright <[EMAIL PROTECTED]> wrote:
> I was wondering if you need to use JBoss?  Couldn't you do it as a war
> instead of an ear?

Mine is an EJB3 example.  (For a decent spring/jpa example, look at appfuse)

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



Re: Grails Maven plugin

2008-10-13 Thread Ed
Yes, that is the plugin for Grails I'm talking about. I forgot to include
the link in my post, so thanks.

I'm able to use it to build and run the Grails app, but I haven't been able
to use it to set up my dependencies the way I describe below. The docs don't
speak to this issue either.

I could be doing something wrong, but I use maven for all my other java
projects, and have no trouble with dependency resolution as long as I
specify the dependencies correctly in the pom.

*Full length versions, as well as highlights of both programs, will be
available on TeamComcast.*


On Mon, Oct 13, 2008 at 4:16 PM, Arnaud HERITIER <[EMAIL PROTECTED]>wrote:

> Did you used this one :
> http://forge.octo.com/maven/sites/mtg/grails-maven-plugin/index.html ???
>
> Arnaud
>
> On Tue, Oct 14, 2008 at 12:01 AM, Ed <[EMAIL PROTECTED]> wrote:
>
> > I asked this on the Grails user list, and haven't gotten any resolution
> > yet,
> > so I'm posting here too. Hope no one minds.
> >
> > I'm concerned about the size of my grails projects, and I'm wondering if
> > the
> > use of the grails maven plugin will allow me to keep my jar files in my
> > repositories rather than in the lib directory and the plugins
> directories.
> > The dependencies I'd need would be specified in the pom as is normal for
> > maven projects, and kept either in a local repository or proxy.
> >
> > This way, when I check in to svn it's much smaller and when I check out
> and
> > build it builds against the dependencies in the repository, rather than
> > keeping it in the project itself.
> >
> > I tried to specify some of the jar files in the dependency list of the
> pom
> > file, but they didn't resolve, even though I made sure that the groupId
> and
> > artifactId matched what was in iblio or other repos.
> >
> > Thanks,
> >
> > --
> > Ed
> >
>
>
>
> --
> ..
> Arnaud HERITIER
> ..
> OCTO Technology - aheritier AT octo DOT com
> www.octo.com | blog.octo.com
> ..
> ASF - aheritier AT apache DOT org
> www.apache.org | maven.apache.org
> ...
>



-- 
Ed


Re: Would really appreciate some feedback on this Maven2-EJB3/JPA example that I've posted, to make it better

2008-10-13 Thread Rusty Wright

I was wondering if you need to use JBoss?  Couldn't you do it as a war instead 
of an ear?

Rick wrote:

Thanks to those on this list helping me start to get a handle on Maven.

I made my first attempt at a decent simple lesson that can work as an
EJB3/JPA skeleton app that builds with Maven2. (There are some things
out there but many of them are a bit outdated, or else they cover too
much, or too little. I tried to get the core basics down in this demo
that I wish I had when starting out.)

I'd appreciate if some of you could at least look over the pom.xml
files that you see posted:

http://learntechnology.net/content/ejb/maven-ejb3.jsp

I'm not sure I'm using provided and optional correctly (although the
generate ear seems to look ok to me.) I'm obviously still a maven newb
so any recommendations I'll kindly take to get it fixed up.

Thanks



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



Re: Grails Maven plugin

2008-10-13 Thread Arnaud HERITIER
Did you used this one :
http://forge.octo.com/maven/sites/mtg/grails-maven-plugin/index.html ???

Arnaud

On Tue, Oct 14, 2008 at 12:01 AM, Ed <[EMAIL PROTECTED]> wrote:

> I asked this on the Grails user list, and haven't gotten any resolution
> yet,
> so I'm posting here too. Hope no one minds.
>
> I'm concerned about the size of my grails projects, and I'm wondering if
> the
> use of the grails maven plugin will allow me to keep my jar files in my
> repositories rather than in the lib directory and the plugins directories.
> The dependencies I'd need would be specified in the pom as is normal for
> maven projects, and kept either in a local repository or proxy.
>
> This way, when I check in to svn it's much smaller and when I check out and
> build it builds against the dependencies in the repository, rather than
> keeping it in the project itself.
>
> I tried to specify some of the jar files in the dependency list of the pom
> file, but they didn't resolve, even though I made sure that the groupId and
> artifactId matched what was in iblio or other repos.
>
> Thanks,
>
> --
> Ed
>



-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Would really appreciate some feedback on this Maven2-EJB3/JPA example that I've posted, to make it better

2008-10-13 Thread Rick
Thanks to those on this list helping me start to get a handle on Maven.

I made my first attempt at a decent simple lesson that can work as an
EJB3/JPA skeleton app that builds with Maven2. (There are some things
out there but many of them are a bit outdated, or else they cover too
much, or too little. I tried to get the core basics down in this demo
that I wish I had when starting out.)

I'd appreciate if some of you could at least look over the pom.xml
files that you see posted:

http://learntechnology.net/content/ejb/maven-ejb3.jsp

I'm not sure I'm using provided and optional correctly (although the
generate ear seems to look ok to me.) I'm obviously still a maven newb
so any recommendations I'll kindly take to get it fixed up.

Thanks

-- 
Rick

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



Grails Maven plugin

2008-10-13 Thread Ed
I asked this on the Grails user list, and haven't gotten any resolution yet,
so I'm posting here too. Hope no one minds.

I'm concerned about the size of my grails projects, and I'm wondering if the
use of the grails maven plugin will allow me to keep my jar files in my
repositories rather than in the lib directory and the plugins directories.
The dependencies I'd need would be specified in the pom as is normal for
maven projects, and kept either in a local repository or proxy.

This way, when I check in to svn it's much smaller and when I check out and
build it builds against the dependencies in the repository, rather than
keeping it in the project itself.

I tried to specify some of the jar files in the dependency list of the pom
file, but they didn't resolve, even though I made sure that the groupId and
artifactId matched what was in iblio or other repos.

Thanks,

-- 
Ed


Re: Neater way to include/exclude DAO tests?

2008-10-13 Thread Rusty Wright

Hey, for once I figured something out on my own.  I need to exclude a test on 
Windows; it's testing sending email using localhost and my desktop pc isn't 
running an smtp server. In my pom.xml I have

   
   
   windows

   
   
   Windows
   
   

   
   
   
   org.apache.maven.plugins
   maven-surefire-plugin

   
   unix-only
   
   
   
   
   
   

And the test method starts like this:

   @Test(groups = {
   "unix-only"
   })
   public void sendLocalTest() {
   final Email myEmail = new Email("localhost", "root", null, "[EMAIL 
PROTECTED]");

   log.debug("sending using localhost");


Olivier THIERRY wrote:

I can't see if you use TestNG or JUnit to write your tests, but if you use
TestNG you can use its groups feature.
You can put your dao tests in a dedicated group and exclude this group when
running tests.
This link should help you :
http://testng.org/doc/documentation-main.html#test-groups

2008/9/15 Haikal Saadh <[EMAIL PROTECTED]>


Yeah, that's how I started out initially, but unfortunately, this app's a
wrapper for an Oracle database, and thus, needs oracle specific SQL.


Dennis Lundberg-2 wrote:

A totally different way to do it is to run your DAO test cases against
an embedded database like HSQLDB or perhaps Derby. We use HSQLDB for
this with at file based database that gets created locally when the
tests are run.

I know this doesn't answer your question, I'm just thinking outside the
box here :-)

Haikal Saadh wrote:

Hi all.

I'm trying to figure out what the best way is to exclude DAO tests. The
reason for this being that not everyone who checks a project out may

have

the credentials necessary to connect to the database.

At the moment, I have two profiles like this:



  skip-dao-tests
  
true
  
  

  
org.apache.maven.plugins
maven-surefire-plugin

  
**/WhatEverDaoTest.java
  

  

  


  run-dao-tests
  

  run.dao.tests
  true

  
  

  
org.apache.maven.plugins
maven-surefire-plugin
  

  
  
...
  



This works fine, but it just seems like it's bloating the pom.

I could move the DAO tests to a new module, but then, I'd have two
different
sets of cobertura/surefire reports for the same thing.

Any different approaches I can try? Or is this pretty much it?

Thanks.


--
Dennis Lundberg

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




--
View this message in context:
http://www.nabble.com/Neater-way-to-include-exclude-DAO-tests--tp19485851p19489322.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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







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



Re: Excluding certain file types using the maven-war-plugin

2008-10-13 Thread Alex Coles
On Mon, Oct 13, 2008 at 7:57 AM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> You can see the line causing the NPE here:
> http://maven.apache.org/plugins/maven-war-plugin/xref/org/apache/maven/plugin/war/packaging/WarProjectPackagingTask.html
>
> I'd grab the source, add some debugging/tracing log entries, trace
> down (and fix) the issue, and contribute it back via JIRA. Or open an
> issue in JIRA, attach a sample project which demonstrates the bug, and
> wait for someone else to fix it for you.
>
> Wayne
>
> On Sun, Oct 12, 2008 at 9:18 PM, Alex Coles <[EMAIL PROTECTED]> wrote:
>> On Mon, Oct 13, 2008 at 6:05 AM, Wayne Fay <[EMAIL PROTECTED]> wrote:
>>> You are specifying version 2.0.2.
>>>
>>> The website docs appear to be for 2.1-alpha-2 (note the Last Published
>>> etc near the top left corner). I would try that version instead, with
>>> this configuration, perhaps the NPE will go away.
>>>
>>> Wayne
>>>
>>> On Sun, Oct 12, 2008 at 7:07 PM, Alex Coles <[EMAIL PROTECTED]> wrote:
 I am encountering problems trying to exclude certain file types from
 my WAR files. My WAR files are bloated, and becoming difficult to very
 cumbersome to deploy to production servers.

 Here's the two main types of files that should not be included in my WARs:
  * Versioning Control Files (.git, .gitignore, .svn; I am using git's
 submodules feature with one particular directory, but certainly do not
 want to deploy a whole .git repository with my WAR)
  * Photoshop PSD files, of which most are contained within a
 assets/src-images folder.

 This issue is somewhat similar to the issue raised here, over 2 years ago:
 http://www.mail-archive.com/users@maven.apache.org/msg41790.html
 http://markmail.org/message/qeoprewtxngxlaom

 I have tried two configurations:

 [1]


maven-war-plugin
2.0.2


 **/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**


**/.git
**/.gitignore
**/*.psd
assets/src-images/**





 [2]


maven-war-plugin
2.0.2


 **/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**






**/.git
**/.gitignore
**/*.psd
assets/src-images/**

   




 [1] doesn't seem to be working. the excludes are simply ignored.
 [2] throws a NullPointerException if the directory element is omitted.
 This appears to contradict the fourth example in the documentation
 (under Includes/Excludes here:
 http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html)
 which shows the directory element may be omitted.

 Thanks for any advice you can give.

 Alex Coles

>>
>> Thanks, Wayne. I tried upgrading to 2.1-alpha-2, per your suggestion.
>> Unfortunately, no change.
>>
>> Going with configuration
>> [1] still isn't working.
>> [2] still throws a NullPointerException. The stack trace for which
>> I've posted here: http://pastie.org/private/l8nmhtepm74dm7idpuszlg
>>
>> In addition, with 2.1-alpha-2, I am getting the following warning:
>> [WARNING] DEPRECATED [dependentWarExcludes]: use the excludes in the
>> overlay object instead
>>
>> Alex

Thanks for your suggestion. I can create a JIRA ticket (or even
attempt to create a patch for the NPE -- the code looks reasonably
straightforward).

However, there still is the discrepancy with the documentation.

Which syntax should I be using to exclude various file patterns from
the resultant WAR?


[1]

   
   maven-war-plugin
   2.0.2
   

**/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**

   
   **/.git
   **/.gitignore
   **/*.psd
   assets/src-images/**
   
   
   


[2]

   
   maven-war-plugin
   2.0.2
   

**/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**

   

 

Re: How to Set local repository for development environment

2008-10-13 Thread Baptiste MATHUS
See maven repository manager like archiva (http://archiva.apache.org) or
Nexus (http://nexus.sonatype.org).

Cheers.

2008/10/13 rohan chauhan <[EMAIL PROTECTED]>

>
>
>  Hi all,
>
> I m working in maven for long time but till date i'm the only one in my
> project.
> Now things goes like this:
>We are total for developers. we want that my PC should be server
> for Maven. So that all others developer check in my repository first and if
> jar is not available then jar is download to my pc and then developers
> access it. we all are in our intranet only.
>
>
>
>Developer1
>
>
>Developer2   MyPc
>  Maven Public Repo
>
>
>Developer3
>
> Can any one give me what i need to do?
>
>
>
>
>
> 
> Do not follow where the path may lead. Go instead where there is no path
> and leave a trail ! ! !
>
> 
>
> 
> * Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
> something outside of yourself to make you happy in the future.  Think how
> really precious is the time you have to spend, whether it's at work or with
> your family.  Every minute should be enjoyed and savored
> by forgetting problems. * - My Thought
>
> 
>
>
>  Add more friends to your messenger and enjoy! Go to
> http://messenger.yahoo.com/invite/
>



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


Re: Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Mark Derricutt
Cheers - I'll take a look.  Basically, in my instance, I have my library for
migrating databases [1] which I'm wrapping with a maven plugin, the plugin
walks the classpath finding classes with the @DataMigration annotation
(opening JarFile instances and walking File[] lists to determine available
classnames), then instantiating them and calling their methods where
appropriate.

As Brett says - I might be able to get away with just creating a Classloader
looking at the target/classes directory.

Mark

[1] http://code.google.com/p/dbng/wiki/IntroductionToDatabaseNG

On Tue, Oct 14, 2008 at 5:28 AM, Jason van Zyl <[EMAIL PROTECTED]> wrote:

> Look at the Jetty plugin, Jan has done most of the work there and I'm sure
> you can lift it all.


-- 
"It is easier to optimize correct code than to correct optimized code." --
Bill Harlan


Re: Using a property from a mojo in subsequent plugin executions

2008-10-13 Thread Dan Tran
inaddition to Wayne's suggestion, take a looks at
build-helper-maven-plugin's source, it does some thing similar

On Mon, Oct 13, 2008 at 12:32 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> You can add a property via MavenProject, see the Mojo Developer Cookbook here:
> http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook
>
> Wayne
>
> On Mon, Oct 13, 2008 at 9:04 AM, stug23 <[EMAIL PROTECTED]> wrote:
>>
>> Is there a standard way to access a property that was set/established within
>> a mojo in other, different plugin executions in the same POM?
>>
>> My use case is one where a mojo determines the value for a property that was
>> not set/input to the mojo. This property needs to be available to other
>> plugins for execution within the same lifecycle in later phases. I was able
>> to stuff the property into System.setProperty("key",value) however I was
>> wondering if there is a better way to do this?
>>
>> Or is the only way to make this work via filtering and writing to files?
>>
>> TIA
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/Using-a-property-from-a-mojo-in-subsequent-plugin-executions-tp19957750p19957750.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Using a property from a mojo in subsequent plugin executions

2008-10-13 Thread Wayne Fay
You can add a property via MavenProject, see the Mojo Developer Cookbook here:
http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook

Wayne

On Mon, Oct 13, 2008 at 9:04 AM, stug23 <[EMAIL PROTECTED]> wrote:
>
> Is there a standard way to access a property that was set/established within
> a mojo in other, different plugin executions in the same POM?
>
> My use case is one where a mojo determines the value for a property that was
> not set/input to the mojo. This property needs to be available to other
> plugins for execution within the same lifecycle in later phases. I was able
> to stuff the property into System.setProperty("key",value) however I was
> wondering if there is a better way to do this?
>
> Or is the only way to make this work via filtering and writing to files?
>
> TIA
>
> --
> View this message in context: 
> http://www.nabble.com/Using-a-property-from-a-mojo-in-subsequent-plugin-executions-tp19957750p19957750.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Assembly Plugin

2008-10-13 Thread Michael McCallum
On Tue, 14 Oct 2008 07:08:27 David wrote:
> Is it possible to have two different descriptor files where one can be
> binded to a phase and the other only activated from the command line?
>
> Thanks,
>
> David

you could probably do that with a profile, just specify the plugin in a 
profile but only with the descriptor configuration and do mvn -P 
other-descriptor-profile assembly:assemble 

-- 
Michael McCallum
Enterprise Engineer
mailto:[EMAIL PROTECTED]

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



Re: Run a single plugin execution

2008-10-13 Thread Wayne Fay
Profiles are probably part of (or the entire) the answer.

Wayne

On Mon, Oct 13, 2008 at 8:39 AM, Blake Martin <[EMAIL PROTECTED]> wrote:
>
> Is it possible to run a single execution of a plugin by passing its id in
> somehow? For example, I'd like to run some SQL scripts as a goal, rather
> than as part of my lifecycle, but there are many executions and I only want
> to run the scripts associated with a particular execution.

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



Re: Assembly Plugin

2008-10-13 Thread David
Hey Michael,

Thanks for replying.  I did think of that but wanted to see if there was
another way.

David

On Mon, Oct 13, 2008 at 1:26 PM, Michael McCallum <[EMAIL PROTECTED]> wrote:

> On Tue, 14 Oct 2008 07:08:27 David wrote:
> > Is it possible to have two different descriptor files where one can be
> > binded to a phase and the other only activated from the command line?
> >
> > Thanks,
> >
> > David
>
> you could probably do that with a profile, just specify the plugin in a
> profile but only with the descriptor configuration and do mvn -P
> other-descriptor-profile assembly:assemble
>
> --
> Michael McCallum
> Enterprise Engineer
> mailto:[EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Congratulations to the Maven team

2008-10-13 Thread Jon Strayer
Ok, so I'm a bit late here, but I just wrote my first Maven 2 plugin and I
can't believe how easy it was.  I know how hard it can be to make something
easy, so thank you and congratulations.



-- 
Esse Quam Videre
To Be, rather than to Seem


Assembly Plugin

2008-10-13 Thread David
Is it possible to have two different descriptor files where one can be
binded to a phase and the other only activated from the command line?

Thanks,

David


Re: Not a v4.0.0 POM

2008-10-13 Thread Wayne Fay
Delete the file at this location (or delete the entire directory under \2.0\):
C:\Users\I056462\.m2\repository\org\apache\maven\plugins\maven-compiler-plugin\2.0\maven-compiler-plugin-2.0.pom

And then run mvn -U gwt:gwt to update things and try the gwt plugin again.

Wayne

On Mon, Oct 13, 2008 at 5:46 AM,  <[EMAIL PROTECTED]> wrote:
> Hello guys,
> when I want to compile my project,
> there is always thrown an exception, that
> the plugin cannot be verified.
>
> I tried to compile the project with mvn -e gwt:gwt.
> The pom looks the following.
>
> 
> http://maven.apache.org/POM/4.0.0";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>  http://maven.apache.org/maven-v4_0_0.xsd";>
>4.0.0
>com.foo.Bar
>foo-bar
>war
>1.0-SNAPSHOT
>foo-bar
>http://joepoe.blogspot.com/
>
>
>gwt-maven
>
> http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
>
>
>
>
>gwt-maven
>
> http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
>
>
>internal
>
> http://build-1.rack.sourcelabs.com/repos/internal/
>
>
>
>
>junit
>junit
>3.8.1
>test
>
>
>com.google.gwt
>gwt-user
>1.5.2
>provided
>
>
>com.google.gwt
>gwt-servlet
>1.5.2
>runtime
>
>
>com.googlecode.gwtx
>GWTx
>20070605
>
>
>
>
>
>gwt-1.5.2-windows
>
>
>windows
>
>
>
>
> ${env.GWT_HOME}/gwt-windows-1.5.2
>
>
>
>
>com.google.gwt
>
> gwt-dev-windows
>1.5.2
>system
>
> ${google.webtoolkit.home}/gwt-dev-windows.jar
>
>
>
>
>
>foo-bar
>
>
>org.apache.maven.plugins
>maven-compiler-plugin
>2.0
>
>1.5
>1.5
>
>
>
>com.totsp.gwt
>
> maven-googlewebtoolkit2-plugin
>
>INFO
>
> com.foo.Bar/Bar.html
>OBF
>true
>8080
>
>
>
>
>
>com.foo.Bar
>
>
>
>
>
>
> 
>
> mergewebxml
>compile
>testGwt
>
>
>
>
>
>org.apache.maven.plugins
>maven-war-plugin
>2.0
>
>target/web.xml
>
>
>   

examples of using build-classpath to create a launcher script

2008-10-13 Thread Beyer,Nathan
Are there any examples of using the dependency:build-classpath [1] to create a 
launcher script or something similar? Or should I be looking to another MOJO?

Say I have a windows bat file, I'd like to insert into it a line, something 
like the following.

set CLASSPATH="%~dp0MyApp-1.0.jar;%~dp0MapApp-Dependency-1.0.jar"



[1] 
http://maven.apache.org/plugins/maven-dependency-plugin/build-classpath-mojo.html



--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.


Re: question about the pluxes components.xml?

2008-10-13 Thread 陈思淼
I am better familiar with spring-framework, is the role-hint the same as the
spring "bean id" which the container to locate the bean when needed, and the
pluxes more specific becourse it group by interface type and use role-hint
to describe eche one?

2008/10/14 Simone Gianni <[EMAIL PROTECTED]>

> Hi 陈思淼,
> in Avalon like IOC containers (like plexus), there are two concepts :
> the role interface and the hint. Basically, you can have a
> my.company.logging.Logger interface, and then in your system load more
> than one class ("actor") implementing that interface (having the Logging
> "role" ... in Avalon terminology) and configure each one with a
> role-hint, for example "file", "console" etc.. Then, e component that
> wants to log, can ask the container to obtain a Logger with role-hint
> "file" if logging to a file is desired.
>
> For LifecycleMapping is the same, you can have more than one "actor"
> having the rolw LifecycleMapping, each with its hint (jar, war, pom
> etc..), when Maven needs to build a project, it uses the content of the
>  element as the hint to obtain the correct LifecycleMapping.
> If you need to add your own lifecycle (packaging), you will define a new
> hint, and then use it in the  element of your POMs.
>
> Hope this helps,
> Simone
>
> 陈思淼 wrote:
> >  
> >   org.apache.maven.lifecycle.mapping.LifecycleMapping
> >   war
> >
> org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
> >
> > what's the role-hint meaning? can anybody give some document ion to
> > describe the components.xml?
> >
> >
>
>
> --
> Simone GianniCEO Semeru s.r.l.   Apache Committer
> MALE human being programming a computer   http://www.simonegianni.it/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to Set local repository for development environment.. what tools needed

2008-10-13 Thread Wendy Smoak
On Mon, Oct 13, 2008 at 8:10 AM, rohan chauhan <[EMAIL PROTECTED]> wrote:

> I m working in maven for long time but till date i'm the only one in my 
> project.
> Now things goes like this:
>We are total for developers. we want that my PC should be server 
> for Maven. So that all others developer check in my repository first and if 
> jar is not available then jar is download to my pc and then developers access 
> it. we all are in our intranet only.
...
> Can any one give me what i need to do?

You can use mirrors in settings.xml to make sure that developers in
your organization only pull artifacts from your internal repositories.
 http://maven.apache.org/guides/mini/guide-mirror-settings.html

It's not clear what "my repository" is above, but be aware that
sharing your personal *local* repository will not work.  You need to
establish an internal "remote" repository.

Take a look at the various repository managers (Archiva, Nexus,
Artifactory).  (But if that looks too complex to start, keep in mind
Maven can deal perfectly well with a file:// url.  If you check the
archives you should find some scripts that can convert local
repository metadata to the remote repo format.)

-- 
Wendy

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



Can the resource-plugin copy the resource out of the project path?

2008-10-13 Thread 陈思淼
for example: my resource file is in /home/admin/key/DAS.key or
c:/key/DSA.key.how can I set it?


Re: Can I override the maven-war-plugin?

2008-10-13 Thread Simone Gianni
Hi 陈思淼,
the second way is the one to go. Implement your own lifecycle.
"overriding" an existing lifecycle mapping is not simple (if even
possible in plexus), and anyway overriding a plugin is not simple
because of doclets pointing to private fields and not being retained in
subclasses.

Simone

陈思淼 wrote:
> I want to modify the war-plugin's source code and generate a new plugin in
> my own groupId and artifactId to do something accouding to my own needs.
> can my own maven-war-plugin to override of the original maven-war-plugin
> when build war project?
> If not, can I define a new packaging type called twar, to bind with my own
> plugin?
>
>   


-- 
Simone GianniCEO Semeru s.r.l.   Apache Committer
MALE human being programming a computer   http://www.simonegianni.it/


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



Re: Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Jason van Zyl
Look at the Jetty plugin, Jan has done most of the work there and I'm  
sure you can lift it all.


On 13-Oct-08, at 8:23 AM, Mark Struberg wrote:


Hi!

I currently face a very similar problem: I'd like to check for a  
resource target/classes/META-INF/persistence.xml from my plugin via  
the plugins classloader (need the JDBC config from there).


I'm currently messing around with Classworlds, but haven't succeed  
so far.


It would be a great if you can point us to a plugin which has  
implemented such a mechanism already. I'd hate to call java via the  
CommandLine for this :(



txs and LieGrue,
strub

--- Brett Porter <[EMAIL PROTECTED]> schrieb am Mo, 13.10.2008:


Von: Brett Porter <[EMAIL PROTECTED]>
Betreff: Re: Accessing an artifacts classpath from a mojo?
An: "Maven Users List" 
Datum: Montag, 13. Oktober 2008, 12:45
How do you need to use it? It can be quite simple to create
a
classloader for this, but it depends on how it'll be
used.

Cheers,
Brett

On 13/10/2008, at 9:40 PM, Mark Derricutt wrote:


Hi all,

I have a maven plugin I'm working on and I want to

include the

classpath
(main, test, others...) of the artifact calling the

plugin - am I

going to
have to spawn/fork a new java process and include them

on the

classpath
somehow, or is their some mojo-magic that takes care

of this?


Mark






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



Thanks,

Jason

--
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
--

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 Maintenance


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



Re: question about the pluxes components.xml?

2008-10-13 Thread Simone Gianni
Hi 陈思淼,
in Avalon like IOC containers (like plexus), there are two concepts :
the role interface and the hint. Basically, you can have a
my.company.logging.Logger interface, and then in your system load more
than one class ("actor") implementing that interface (having the Logging
"role" ... in Avalon terminology) and configure each one with a
role-hint, for example "file", "console" etc.. Then, e component that
wants to log, can ask the container to obtain a Logger with role-hint
"file" if logging to a file is desired.

For LifecycleMapping is the same, you can have more than one "actor"
having the rolw LifecycleMapping, each with its hint (jar, war, pom
etc..), when Maven needs to build a project, it uses the content of the
 element as the hint to obtain the correct LifecycleMapping.
If you need to add your own lifecycle (packaging), you will define a new
hint, and then use it in the  element of your POMs.

Hope this helps,
Simone

陈思淼 wrote:
>  
>   org.apache.maven.lifecycle.mapping.LifecycleMapping
>   war
>   
> org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
>
> what's the role-hint meaning? can anybody give some document ion to
> describe the components.xml?
>
>   


-- 
Simone GianniCEO Semeru s.r.l.   Apache Committer
MALE human being programming a computer   http://www.simonegianni.it/


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



Re: How to Set local repository for development environment.. what tools needed

2008-10-13 Thread 陈思淼
you need to some local repository tool to proxy the maven central
repository.you can have a look at :<
http://www.jfrog.org/sites/artifactory/1.2/>

2008/10/13 rohan chauhan <[EMAIL PROTECTED]>

>
>
>
>
>
>
> Hi all,
>
> I m working in maven for long time but till date i'm the only one in my
> project.
> Now things goes like this:
>We are total for developers. we want that my PC should be server
> for Maven. So that all others developer check in my repository first and if
> jar is not available then jar is download to my pc and then developers
> access it. we all are in our intranet only.
>
>
>
>Developer1
>
>
>Developer2   MyPc
>  Maven Public Repo
>
>
>Developer3
>
> Can any one give me what i need to do?
>
>
>
>
>
> 
> Do not follow where the path may lead. Go instead where there is no path
> and leave a trail ! ! !
>
> 
>
> 
> * Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
> something outside of yourself to make you happy in the future.  Think how
> really precious is the time you have to spend, whether it's at work or with
> your family.  Every minute should be enjoyed and savored
> by forgetting problems. * - My Thought
>
> 
>
>
>  Add more friends to your messenger and enjoy! Go to
> http://messenger.yahoo.com/invite/
>
>
>  Add more friends to your messenger and enjoy! Go to
> http://messenger.yahoo.com/invite/
>


Can I override the maven-war-plugin?

2008-10-13 Thread 陈思淼
I want to modify the war-plugin's source code and generate a new plugin in
my own groupId and artifactId to do something accouding to my own needs.
can my own maven-war-plugin to override of the original maven-war-plugin
when build war project?
If not, can I define a new packaging type called twar, to bind with my own
plugin?


question about the pluxes components.xml?

2008-10-13 Thread 陈思淼
 
  org.apache.maven.lifecycle.mapping.LifecycleMapping
  war
  
org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping

what's the role-hint meaning? can anybody give some document ion to
describe the components.xml?


How to Set local repository for development environment.. what tools needed

2008-10-13 Thread rohan chauhan


 



Hi all,

I m working in maven for long time but till date i'm the only one in my project.
Now things goes like this:
We are total for developers. we want that my PC should be server 
for Maven. So that all others developer check in my repository first and if jar 
is not available then jar is download to my pc and then developers access it. 
we all are in our intranet only.



Developer1


Developer2   MyPc   
 Maven Public Repo


Developer3

Can any one give me what i need to do?






Do not follow where the path may lead. Go instead where there is no path and 
leave a trail ! ! !




* Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
something outside of yourself to make you happy in the future.  Think how
really precious is the time you have to spend, whether it's at work or with
your family.  Every minute should be enjoyed and savored 
by forgetting problems. * - My Thought




  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Using a property from a mojo in subsequent plugin executions

2008-10-13 Thread stug23

Is there a standard way to access a property that was set/established within
a mojo in other, different plugin executions in the same POM?

My use case is one where a mojo determines the value for a property that was
not set/input to the mojo. This property needs to be available to other
plugins for execution within the same lifecycle in later phases. I was able
to stuff the property into System.setProperty("key",value) however I was
wondering if there is a better way to do this?

Or is the only way to make this work via filtering and writing to files?

TIA

-- 
View this message in context: 
http://www.nabble.com/Using-a-property-from-a-mojo-in-subsequent-plugin-executions-tp19957750p19957750.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Run a single plugin execution

2008-10-13 Thread Blake Martin
Is it possible to run a single execution of a plugin by passing its id in
somehow? For example, I'd like to run some SQL scripts as a goal, rather
than as part of my lifecycle, but there are many executions and I only want
to run the scripts associated with a particular execution.


Re: Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Mark Struberg
Hi!

I currently face a very similar problem: I'd like to check for a resource 
target/classes/META-INF/persistence.xml from my plugin via the plugins 
classloader (need the JDBC config from there).

I'm currently messing around with Classworlds, but haven't succeed so far.

It would be a great if you can point us to a plugin which has implemented such 
a mechanism already. I'd hate to call java via the CommandLine for this :(


txs and LieGrue,
strub

--- Brett Porter <[EMAIL PROTECTED]> schrieb am Mo, 13.10.2008:

> Von: Brett Porter <[EMAIL PROTECTED]>
> Betreff: Re: Accessing an artifacts classpath from a mojo?
> An: "Maven Users List" 
> Datum: Montag, 13. Oktober 2008, 12:45
> How do you need to use it? It can be quite simple to create
> a  
> classloader for this, but it depends on how it'll be
> used.
> 
> Cheers,
> Brett
> 
> On 13/10/2008, at 9:40 PM, Mark Derricutt wrote:
> 
> > Hi all,
> >
> > I have a maven plugin I'm working on and I want to
> include the  
> > classpath
> > (main, test, others...) of the artifact calling the
> plugin - am I  
> > going to
> > have to spawn/fork a new java process and include them
> on the  
> > classpath
> > somehow, or is their some mojo-magic that takes care
> of this?
> >
> > Mark





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



Not a v4.0.0 POM

2008-10-13 Thread tonqa
Hello guys,
when I want to compile my project,
there is always thrown an exception, that
the plugin cannot be verified.

I tried to compile the project with mvn -e gwt:gwt.
The pom looks the following.


http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0
com.foo.Bar
foo-bar
war
1.0-SNAPSHOT
foo-bar
http://joepoe.blogspot.com/


gwt-maven

http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/




gwt-maven

http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/


internal

http://build-1.rack.sourcelabs.com/repos/internal/




junit
junit
3.8.1
test


com.google.gwt
gwt-user
1.5.2
provided


com.google.gwt
gwt-servlet
1.5.2
runtime


com.googlecode.gwtx
GWTx
20070605





gwt-1.5.2-windows


windows




${env.GWT_HOME}/gwt-windows-1.5.2




com.google.gwt
gwt-dev-windows
1.5.2
system

${google.webtoolkit.home}/gwt-dev-windows.jar





foo-bar


org.apache.maven.plugins
maven-compiler-plugin
2.0

1.5
1.5



com.totsp.gwt

maven-googlewebtoolkit2-plugin

INFO

com.foo.Bar/Bar.html
OBF
true
8080





com.foo.Bar







mergewebxml
compile
testGwt





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

target/web.xml






Do you know how it will compile?
The tracktraces you can see here:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'gwt'.
[WARNING] Cannot resolve plugin-mapping metadata for groupId: 
org.apache.maven.plugins - IGNORING.
[WARNING] Cannot resolve plugin-mapping metadata for groupId: org.codehaus.mojo 
- IGNORING.
[INFO] 
[ERROR] BU

RE: Issue with netbeans and maven2

2008-10-13 Thread Martin Gainty

NV 5.5. does'nt support maven *..yet..*
which version of maven are you running?
?
Martin
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


> Date: Mon, 13 Oct 2008 14:21:25 +0200
> From: [EMAIL PROTECTED]
> To: users@maven.apache.org
> Subject: Re: Issue with netbeans and maven2
> 
> Milos,
> 
> when trying to reproduce the issue with a basic project, I created a new 
> user account and reinstalled _everything_ from scratch (netbeans, 
> maven-integration, and also I did not start with any value in the 
> "${HOME}/.netbeans*", nor any value in the "${HOME}/.m2/", and ... it 
> worked...
> 
> Considering I can still reproduce the issue by reinstalling everything 
> (NB + maven-integration) but keeping old "${HOME}/.netbeans*" and old 
> "${HOME}/.m2", I assume there is some kind of weird issue related to old 
> settings or a bogus repo. I've looked around a bit, but unfortunately 
> was unable to pinpoint the reason for failure.
> 
> At any rate, it now works.
> Thank you very much for your kind support.
> 
> Best regards,
> 
> --
> Julien
> 
> Milos Kleint wrote:
> > I assume your plugin is not in central repository. I recall there
> > is/was an issue with extensions beling looked for in wrong repository
> > (typically just repo1) instead of the declared ones. But that all
> > shall start working once you've built the project once, so I assume
> > it's not your case.
> > If you can reproduce on a sample project setup, please file it as bug,
> > I'll look into it. There must be something special about your setup as
> > I've been developing the maven support itself using nbm-maven-plugin
> > which defines artifact handler + lifecycle. I had the version declared
> > in the parent pom's pluginManagement section and used in child modules
> > (with additional configuration or without). Which sounds exactly like
> > what you have except that these projects can be opened without
> > problems.
> > 
> > Milos
> > 
> > 
> > On Fri, Oct 10, 2008 at 6:01 PM, Julien Stern
> > <[EMAIL PROTECTED]> wrote:
> >> Milos,
> >>
> >> we use ONLY explicits versions in ALL poms. We want reproducible builds at
> >> all times ;) We do use dependencyManagement and pluginManagement a lot
> >> though.
> >>
> >> Specifically, the simplest project that fails is like this:
> >>
> >> - We have the top-level pom and the actual project pom.
> >>
> >> - The plugin that causes the problem in the project pom has one
> >> configuration section and the true that triggers
> >> the issue (see previous mail below).
> >>
> >> - The parent pom only defines the version of this plugin in its
> >> pluginManagement section
> >>
> >> Note that the plugin defines a new type of artifact (with a new
> >> ArtifactHandler) and a new LifecycleMapping (this is why we need extensions
> >> to be true actually).
> >>
> >> --
> >> Julien
> >>
> >> Milos Kleint wrote:
> >>> do you explicitly declare a version or you stick with RELEASE, LATEST
> >>> or not defined?
> >>> The workaround mentioned in the issues suggests to put explicit versions
> >>> there.
> >>> If your's is different, it's probably not a duplicate but something
> >>> related only.
> >>> It might also be important where the plugin is defined..
> >>> is it in the project's pom, it's parent, it's parent parent? is it
> >>> defined in pluginManagement section in one of the parents?
> >>>
> >>> Milos
> >>>
> >>> On Fri, Oct 10, 2008 at 5:09 PM, Julien Stern
> >>> <[EMAIL PROTECTED]> wrote:
>  Milos,
> 
>  oh well, we just tested with the daily NB snapshot and maven-integration
>  4.0.5. We still have the same issue.
> 
>  The crux of the issue is really the true within
>  a
>  plugin configuration e.g.:
> 
>   
>    
>  
>    our.group.id
>    our.artifact.id
>    
>  our config here...
>    
>    true
>  
>    
>   
> 
>  - if we _remove_ the line true, it's fine
>  - if we put false, it's fine
> 
>  So, it is not a "syntax" error, but really a error condition triggered
>  when
>  the value of extensions is set to true.
> 
>  Regards,
> 
>  --
>  Julien
> 
>  Milos Kleint wrote:
> > what version of maven support in netbeans you have?
> >
> > I suggest you try the 6.5 development builds (we're close to RC1, so
> > the stability is pretty good), and instal the 4.0.x version of maven
> > support from the update center. I recall I've done some fixes in this
> > area, but still usecases still fails. Primarily an issue with the
> > maven embedder being used in netbeans.
> 

CVS command line parameters

2008-10-13 Thread Jon Strayer
How can I pass command line parameters to CVS?  I want to do an update with
-C.

-- 
Esse Quam Videre
To Be, rather than to Seem


RE: Ensuring all dependencies are "nailed down" to a particular version

2008-10-13 Thread Brian E. Fox
Use the maven-enforcer-plugin and the requirePluginVersions rule.

-Original Message-
From: Rusty Wright [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 13, 2008 1:08 AM
To: Maven Users List
Subject: Re: Ensuring all dependencies are "nailed down" to a particular
version

http://www.sonatype.com/book/reference/optimizing.html


Ian Rowlands wrote:
> I was wondering what is the best way to ensure (for build 
> reproduceability) that all plugins and the liked being used in the
builds 
> have a specific version and not just picking up the latest version? Is

> there a plugin that could help with this, a tool that could help, or 
> something else apart from painstakingly going through everything by
hand 
> (which I believe I've already done, but obviously not well enough).
>
> Any ideas?
>
> Thanks,
>
> Ian
>
>
>
>
> Disclaimer: The information transmitted is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this information
by persons or entities other than the intended recipient is prohibited.
If you received this in error, please contact the sender and delete the
material from your computer.
> Privacy: If you are responding to this email or providing personal
information to the SRO for the purposes of one of the Acts it
administers, such information  is used only for the purpose for which it
was collected (administration of SRO legislation ) and is protected by
the Information Privacy Act 2000 and secrecy provisions contained in
legislation administered by SRO. It is not disclosed otherwise than in
accordance with the law. If you would like a copy of the SRO Privacy
Policy please refer to SRO website (www.sro.vic.gov.au) or contact SRO
on 9628 0556 and request a copy.
>   

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


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



Re: Phase property?

2008-10-13 Thread Jon Strayer
I was going to attach a fourth run to pre-site that would set the property
to block the others.

On Sun, Oct 12, 2008 at 7:43 PM, Brett Porter <[EMAIL PROTECTED]>wrote:

> I don't quite understand your use case. Wouldn't it always run in
> validate and block the others?
>
> 2008/10/12 Jon Strayer <[EMAIL PROTECTED]>:
> > I have some executions attached to three phases (validate,
> process-resources
> > & process-classes) that it would like to execute only once per build.
> > What's the best way to achieve that?
> >
> > I tried using the ant-run plugin to set a property but that doesn't seem
> to
> > be working (I haven't figured out why yet).
> >
> > --
> > Esse Quam Videre
> > To Be, rather than to Seem
> >
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Esse Quam Videre
To Be, rather than to Seem


Re: -target 1.6 nor supported on MAC OSX

2008-10-13 Thread Trevor Harmon

On Oct 10, 2008, at 5:47 PM, Stephen Coy wrote:

You need to configure JAVA_HOME to point at /System/Library/ 
Frameworks/JavaVM.framework/Versions/1.6.0/Home and your PATH to / 
System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin.


Or you can run Java Preferences and drag Java SE 6 to the top of the  
list.


Trevor


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



Re: [M2] Manually download artifact?

2008-10-13 Thread Roger Ye
Yep, the project in question is using Ant, I've heard of Ivy but haven't
tried it out.
I think this is a good chance to give it a shot.

Meanwhile I think the idea of putting the dependency plugin into this use
case
is also an nice option, just like Wendy has suggested, I've filed a feature
request
for the dependency plugin at: http://jira.codehaus.org/browse/MDEP-184

Thanks

On Mon, Oct 13, 2008 at 18:20, Daniele De Francesco
<[EMAIL PROTECTED]>wrote:

> Hi,
> which building tool do you use?
> If you use Ant maybe your best choice it would be Apache Ivy
>  , if you need just the dependency manager
> part...waiting for you to mavenize your project of course ;-))
>
>


Re: [ANN] - SCM Changelog Maven Plugin 1.0 Released

2008-10-13 Thread Martin Höller
On 13 Oct 2008, Peter Horlock wrote:

>   Which plugin are you talking about???!
> The changelog plugin's last version was 2.1, the scm plugin's last version
> was 1.1, so no idea what "new 1.0" is supposed to mean...

There is a new plugin, which is kind of a mix of the
maven-changelog-plugin and the maven-changes-plugin.

See http://mojo.codehaus.org/scmchangelog-maven-plugin/ for more details.

hth,
- martin


signature.asc
Description: PGP signature


Re: [ANN] - SCM Changelog Maven Plugin 1.0 Released

2008-10-13 Thread Rémy Sanlaville
Hi,

It's a new plugin (neither maven-changelog-plugin nor maven-changes-plugin).
If you want to understand why a new plugin, just have a look to
http://mojo.codehaus.org/scmchangelog-maven-plugin/faq.html

Thanks,

Rémy


Re: [ANN] - SCM Changelog Maven Plugin 1.0 Released

2008-10-13 Thread Peter Horlock
  Which plugin are you talking about???!
The changelog plugin's last version was 2.1, the scm plugin's last version
was 1.1, so no idea what "new 1.0" is supposed to mean...
   
   
maven-changelog-plugin
2.1



   
maven-scm-plugin
1.1
  

Thanks,

Peter


Re: Issue with netbeans and maven2

2008-10-13 Thread Julien Stern

Milos Kleint wrote:

hmmm.. too bad.
I suppose it's either something with different local metadata in
.m2/repository or the binaries for maven module were not exactly the
same. (or both)


One last piece of info that might give you an hint (or not) :
- We currently have two boxes, one where it works, one where it does not.
- We cannot test sooo much the non-working one as, well... someone is 
using it :)
- We did not manage to reproduce the issue on a fresh box (which is not 
so bad, after all)


What we did on the dev box was:
1. trying to delete the plugin that caused the issue in the ~/.m2/repository
2. trying to manually rebuild the project

It still fails. We just do not understand what the difference can be.
Sorry we were unable to pinpoint the exact cause.

And thanks again.

--
Julien



Milos

On Mon, Oct 13, 2008 at 2:21 PM, Julien Stern
<[EMAIL PROTECTED]> wrote:

Milos,

when trying to reproduce the issue with a basic project, I created a new
user account and reinstalled _everything_ from scratch (netbeans,
maven-integration, and also I did not start with any value in the
"${HOME}/.netbeans*", nor any value in the "${HOME}/.m2/", and ... it
worked...

Considering I can still reproduce the issue by reinstalling everything (NB +
maven-integration) but keeping old "${HOME}/.netbeans*" and old
"${HOME}/.m2", I assume there is some kind of weird issue related to old
settings or a bogus repo. I've looked around a bit, but unfortunately was
unable to pinpoint the reason for failure.

At any rate, it now works.
Thank you very much for your kind support.

Best regards,

--
Julien

Milos Kleint wrote:

I assume your plugin is not in central repository. I recall there
is/was an issue with extensions beling looked for in wrong repository
(typically just repo1) instead of the declared ones. But that all
shall start working once you've built the project once, so I assume
it's not your case.
If you can reproduce on a sample project setup, please file it as bug,
I'll look into it. There must be something special about your setup as
I've been developing the maven support itself using nbm-maven-plugin
which defines artifact handler + lifecycle. I had the version declared
in the parent pom's pluginManagement section and used in child modules
(with additional configuration or without). Which sounds exactly like
what you have except that these projects can be opened without
problems.

Milos


On Fri, Oct 10, 2008 at 6:01 PM, Julien Stern
<[EMAIL PROTECTED]> wrote:

Milos,

we use ONLY explicits versions in ALL poms. We want reproducible builds
at
all times ;) We do use dependencyManagement and pluginManagement a lot
though.

Specifically, the simplest project that fails is like this:

- We have the top-level pom and the actual project pom.

- The plugin that causes the problem in the project pom has one
configuration section and the true that triggers
the issue (see previous mail below).

- The parent pom only defines the version of this plugin in its
pluginManagement section

Note that the plugin defines a new type of artifact (with a new
ArtifactHandler) and a new LifecycleMapping (this is why we need
extensions
to be true actually).

--
Julien

Milos Kleint wrote:

do you explicitly declare a version or you stick with RELEASE, LATEST
or not defined?
The workaround mentioned in the issues suggests to put explicit versions
there.
If your's is different, it's probably not a duplicate but something
related only.
It might also be important where the plugin is defined..
is it in the project's pom, it's parent, it's parent parent? is it
defined in pluginManagement section in one of the parents?

Milos

On Fri, Oct 10, 2008 at 5:09 PM, Julien Stern
<[EMAIL PROTECTED]> wrote:

Milos,

oh well, we just tested with the daily NB snapshot and
maven-integration
4.0.5. We still have the same issue.

The crux of the issue is really the true
within
a
plugin configuration e.g.:

 
 
   
 our.group.id
 our.artifact.id
 
   our config here...
 
 true
   
 
 

- if we _remove_ the line true, it's fine
- if we put false, it's fine

So, it is not a "syntax" error, but really a error condition triggered
when
the value of extensions is set to true.

Regards,

--
Julien

Milos Kleint wrote:

what version of maven support in netbeans you have?

I suggest you try the 6.5 development builds (we're close to RC1, so
the stability is pretty good), and instal the 4.0.x version of maven
support from the update center. I recall I've done some fixes in this
area, but still usecases still fails. Primarily an issue with the
maven embedder being used in netbeans.

http://www.netbeans.org/issues/show_bug.cgi?id=135043
could be relevant.
http://www.netbeans.org/issues/show_bug.cgi?id=143185

If you issue is different, please file it in netbeans.org issuezilla,
preferably with a sample project or at least the relevant plugin
configuration.

Regards

Milos


On Fri, Oct 10, 2008 at 12:46 PM, Julien Stern
<[EMAIL PROTECTED]> wrote

Re: Issue with netbeans and maven2

2008-10-13 Thread Milos Kleint
hmmm.. too bad.
I suppose it's either something with different local metadata in
.m2/repository or the binaries for maven module were not exactly the
same. (or both)

Milos

On Mon, Oct 13, 2008 at 2:21 PM, Julien Stern
<[EMAIL PROTECTED]> wrote:
> Milos,
>
> when trying to reproduce the issue with a basic project, I created a new
> user account and reinstalled _everything_ from scratch (netbeans,
> maven-integration, and also I did not start with any value in the
> "${HOME}/.netbeans*", nor any value in the "${HOME}/.m2/", and ... it
> worked...
>
> Considering I can still reproduce the issue by reinstalling everything (NB +
> maven-integration) but keeping old "${HOME}/.netbeans*" and old
> "${HOME}/.m2", I assume there is some kind of weird issue related to old
> settings or a bogus repo. I've looked around a bit, but unfortunately was
> unable to pinpoint the reason for failure.
>
> At any rate, it now works.
> Thank you very much for your kind support.
>
> Best regards,
>
> --
> Julien
>
> Milos Kleint wrote:
>>
>> I assume your plugin is not in central repository. I recall there
>> is/was an issue with extensions beling looked for in wrong repository
>> (typically just repo1) instead of the declared ones. But that all
>> shall start working once you've built the project once, so I assume
>> it's not your case.
>> If you can reproduce on a sample project setup, please file it as bug,
>> I'll look into it. There must be something special about your setup as
>> I've been developing the maven support itself using nbm-maven-plugin
>> which defines artifact handler + lifecycle. I had the version declared
>> in the parent pom's pluginManagement section and used in child modules
>> (with additional configuration or without). Which sounds exactly like
>> what you have except that these projects can be opened without
>> problems.
>>
>> Milos
>>
>>
>> On Fri, Oct 10, 2008 at 6:01 PM, Julien Stern
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> Milos,
>>>
>>> we use ONLY explicits versions in ALL poms. We want reproducible builds
>>> at
>>> all times ;) We do use dependencyManagement and pluginManagement a lot
>>> though.
>>>
>>> Specifically, the simplest project that fails is like this:
>>>
>>> - We have the top-level pom and the actual project pom.
>>>
>>> - The plugin that causes the problem in the project pom has one
>>> configuration section and the true that triggers
>>> the issue (see previous mail below).
>>>
>>> - The parent pom only defines the version of this plugin in its
>>> pluginManagement section
>>>
>>> Note that the plugin defines a new type of artifact (with a new
>>> ArtifactHandler) and a new LifecycleMapping (this is why we need
>>> extensions
>>> to be true actually).
>>>
>>> --
>>> Julien
>>>
>>> Milos Kleint wrote:

 do you explicitly declare a version or you stick with RELEASE, LATEST
 or not defined?
 The workaround mentioned in the issues suggests to put explicit versions
 there.
 If your's is different, it's probably not a duplicate but something
 related only.
 It might also be important where the plugin is defined..
 is it in the project's pom, it's parent, it's parent parent? is it
 defined in pluginManagement section in one of the parents?

 Milos

 On Fri, Oct 10, 2008 at 5:09 PM, Julien Stern
 <[EMAIL PROTECTED]> wrote:
>
> Milos,
>
> oh well, we just tested with the daily NB snapshot and
> maven-integration
> 4.0.5. We still have the same issue.
>
> The crux of the issue is really the true
> within
> a
> plugin configuration e.g.:
>
>  
>  
>
>  our.group.id
>  our.artifact.id
>  
>our config here...
>  
>  true
>
>  
>  
>
> - if we _remove_ the line true, it's fine
> - if we put false, it's fine
>
> So, it is not a "syntax" error, but really a error condition triggered
> when
> the value of extensions is set to true.
>
> Regards,
>
> --
> Julien
>
> Milos Kleint wrote:
>>
>> what version of maven support in netbeans you have?
>>
>> I suggest you try the 6.5 development builds (we're close to RC1, so
>> the stability is pretty good), and instal the 4.0.x version of maven
>> support from the update center. I recall I've done some fixes in this
>> area, but still usecases still fails. Primarily an issue with the
>> maven embedder being used in netbeans.
>>
>> http://www.netbeans.org/issues/show_bug.cgi?id=135043
>> could be relevant.
>> http://www.netbeans.org/issues/show_bug.cgi?id=143185
>>
>> If you issue is different, please file it in netbeans.org issuezilla,
>> preferably with a sample project or at least the relevant plugin
>> configuration.
>>
>> Regards
>>
>> Milos
>>
>>
>> On Fri, Oct 10, 2008 at 12:46 PM, Julien Stern
>> <[EMAIL PROTECTED

Re: Issue with netbeans and maven2

2008-10-13 Thread Julien Stern

Milos,

when trying to reproduce the issue with a basic project, I created a new 
user account and reinstalled _everything_ from scratch (netbeans, 
maven-integration, and also I did not start with any value in the 
"${HOME}/.netbeans*", nor any value in the "${HOME}/.m2/", and ... it 
worked...


Considering I can still reproduce the issue by reinstalling everything 
(NB + maven-integration) but keeping old "${HOME}/.netbeans*" and old 
"${HOME}/.m2", I assume there is some kind of weird issue related to old 
settings or a bogus repo. I've looked around a bit, but unfortunately 
was unable to pinpoint the reason for failure.


At any rate, it now works.
Thank you very much for your kind support.

Best regards,

--
Julien

Milos Kleint wrote:

I assume your plugin is not in central repository. I recall there
is/was an issue with extensions beling looked for in wrong repository
(typically just repo1) instead of the declared ones. But that all
shall start working once you've built the project once, so I assume
it's not your case.
If you can reproduce on a sample project setup, please file it as bug,
I'll look into it. There must be something special about your setup as
I've been developing the maven support itself using nbm-maven-plugin
which defines artifact handler + lifecycle. I had the version declared
in the parent pom's pluginManagement section and used in child modules
(with additional configuration or without). Which sounds exactly like
what you have except that these projects can be opened without
problems.

Milos


On Fri, Oct 10, 2008 at 6:01 PM, Julien Stern
<[EMAIL PROTECTED]> wrote:

Milos,

we use ONLY explicits versions in ALL poms. We want reproducible builds at
all times ;) We do use dependencyManagement and pluginManagement a lot
though.

Specifically, the simplest project that fails is like this:

- We have the top-level pom and the actual project pom.

- The plugin that causes the problem in the project pom has one
configuration section and the true that triggers
the issue (see previous mail below).

- The parent pom only defines the version of this plugin in its
pluginManagement section

Note that the plugin defines a new type of artifact (with a new
ArtifactHandler) and a new LifecycleMapping (this is why we need extensions
to be true actually).

--
Julien

Milos Kleint wrote:

do you explicitly declare a version or you stick with RELEASE, LATEST
or not defined?
The workaround mentioned in the issues suggests to put explicit versions
there.
If your's is different, it's probably not a duplicate but something
related only.
It might also be important where the plugin is defined..
is it in the project's pom, it's parent, it's parent parent? is it
defined in pluginManagement section in one of the parents?

Milos

On Fri, Oct 10, 2008 at 5:09 PM, Julien Stern
<[EMAIL PROTECTED]> wrote:

Milos,

oh well, we just tested with the daily NB snapshot and maven-integration
4.0.5. We still have the same issue.

The crux of the issue is really the true within
a
plugin configuration e.g.:

 
  

  our.group.id
  our.artifact.id
  
our config here...
  
  true

  
 

- if we _remove_ the line true, it's fine
- if we put false, it's fine

So, it is not a "syntax" error, but really a error condition triggered
when
the value of extensions is set to true.

Regards,

--
Julien

Milos Kleint wrote:

what version of maven support in netbeans you have?

I suggest you try the 6.5 development builds (we're close to RC1, so
the stability is pretty good), and instal the 4.0.x version of maven
support from the update center. I recall I've done some fixes in this
area, but still usecases still fails. Primarily an issue with the
maven embedder being used in netbeans.

http://www.netbeans.org/issues/show_bug.cgi?id=135043
could be relevant.
http://www.netbeans.org/issues/show_bug.cgi?id=143185

If you issue is different, please file it in netbeans.org issuezilla,
preferably with a sample project or at least the relevant plugin
configuration.

Regards

Milos


On Fri, Oct 10, 2008 at 12:46 PM, Julien Stern
<[EMAIL PROTECTED]> wrote:

Hi list,

I hope this is the right place to query about this issue.
We have a Maven2 project that is displayed as 
(unknown).

After a (lot) of trial and errors, we manage to locate the source of
the
problem. We have one plugin (homemade) that uses
true.

If we comment this line, netbeans is happy (but we cannot compile any
more).
If we keep this line, we have the above error.

Would anyone have an idea on what the issue could be?
(And how to solve it?)

Regards,

--
Julien

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



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


--

How to Set local repository for development environment

2008-10-13 Thread rohan chauhan


 Hi all,

I m working in maven for long time but till date i'm the only one in my project.
Now things goes like this:
We are total for developers. we want that my PC should be server 
for Maven. So that all others developer check in my repository first and if jar 
is not available then jar is download to my pc and then developers access it. 
we all are in our intranet only.



Developer1


Developer2   MyPc   
 Maven Public Repo


Developer3

Can any one give me what i need to do?






Do not follow where the path may lead. Go instead where there is no path and 
leave a trail ! ! !




* Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
something outside of yourself to make you happy in the future.  Think how
really precious is the time you have to spend, whether it's at work or with
your family.  Every minute should be enjoyed and savored 
by forgetting problems. * - My Thought




  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: Executing archetype 2.0-alpha-4 fails

2008-10-13 Thread Borut Bolčina
I removed org.apache.maven.archetype "subtree" from artifactory and it works
now. The archetype-common was not in the Artifactory before, only its pom. I
made a typo also: it should be -DarchetypeArtifactId=maven-archetype-webapp

Thanks,
Borut

2008/10/13 Brett Porter <[EMAIL PROTECTED]>

> It seems like you had a failure downloading archetype-common - this
> causes missing dependencies which result in the error you saw. You
> should check why Artifactory is not able to locate the POM.
>
> - Brett
>
> 2008/10/13 Borut Bolčina <[EMAIL PROTECTED]>:
> > Hello,
> >
> > today I tried executing
> >
> > C:\workarea>mvn archetype:create -DgroupId=com.acme
> > -DartifactId=my-web-project -DarchetypeArtifactId=my-webapp
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'archetype'.
> > [INFO] org.apache.maven.plugins: checking for updates from central
> > [INFO] org.apache.maven.plugins: checking for updates from releases
> > [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
> > for updates from central
> > [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
> > for updates from releases
> > Downloading:
> >
> https://artifactory.acme.com/releases/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-al
> > pha-4.pom
> > 4K downloaded
> > Downloading:
> >
> https://artifactory.acme.com/repo1-maven-org/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin
> > -2.0-alpha-4.jar
> > 63K downloaded
> > [INFO]
> > 
> > [INFO] Building Maven Default Project
> > [INFO]task-segment: [archetype:create] (aggregator-style)
> > [INFO]
> > 
> > Downloading:
> >
> https://artifactory.acme.com/repo1-maven-org/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha
> > -4.pom
> > Downloading:
> >
> https://artifactory.acme.com/releases/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha-4.pom
> > Downloading:
> >
> https://artifactory.acme.com/repo1-maven-org/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha
> > -4.pom
> > Downloading:
> >
> https://artifactory.acme.com/releases/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha-4.pom
> > -
> > this realm =
> > app0.child-container[org.apache.maven.plugins:maven-archetype-plugin]
> > urls[0] = file:/C:/Documents and
> >
> Settings/borutb/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugi
> > n-2.0-alpha-4.jar
> > urls[1] = file:/C:/Documents and
> >
> Settings/borutb/.m2/repository/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alph
> > a-4.jar
> > urls[2] = file:/C:/Documents and
> >
> Settings/borutb/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> > urls[3] = file:/C:/Documents and
> >
> Settings/borutb/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.6/maven-invoker-2.0.6.jar
> > urls[4] = file:/C:/Documents and
> >
> Settings/borutb/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
> > Number of imports: 6
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> >
> >
> > this realm = plexus.core
> > urls[0] = file:/C:/apache-maven-2.0.9/bin/../lib/maven-2.0.9-uber.jar
> > Number of imports: 6
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> > import: [EMAIL PROTECTED]
> > -
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] Internal error in the plugin manager executing goal
> > 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:create':
> Unable
> > to find t
> > he mojo
> 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:create'
> > in the plugin 'org.apache.maven.plugins:maven-archetype-plugin'
> > org/dom4j/DocumentException
> > [INFO]
> > 
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > 
> > [INFO] Total time: 6 seconds
> > [INFO] Finished at: Mon Oct 13 13:18:38 CEST 2008
> > [INFO] Final Memory: 5M/11M
> > [INFO]
> > 
> >
> > Is something wrong with maven-archetype-plu

Re: Executing archetype 2.0-alpha-4 fails

2008-10-13 Thread Brett Porter
It seems like you had a failure downloading archetype-common - this
causes missing dependencies which result in the error you saw. You
should check why Artifactory is not able to locate the POM.

- Brett

2008/10/13 Borut Bolčina <[EMAIL PROTECTED]>:
> Hello,
>
> today I tried executing
>
> C:\workarea>mvn archetype:create -DgroupId=com.acme
> -DartifactId=my-web-project -DarchetypeArtifactId=my-webapp
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [INFO] org.apache.maven.plugins: checking for updates from releases
> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
> for updates from central
> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
> for updates from releases
> Downloading:
> https://artifactory.acme.com/releases/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-al
> pha-4.pom
> 4K downloaded
> Downloading:
> https://artifactory.acme.com/repo1-maven-org/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin
> -2.0-alpha-4.jar
> 63K downloaded
> [INFO]
> 
> [INFO] Building Maven Default Project
> [INFO]task-segment: [archetype:create] (aggregator-style)
> [INFO]
> 
> Downloading:
> https://artifactory.acme.com/repo1-maven-org/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha
> -4.pom
> Downloading:
> https://artifactory.acme.com/releases/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha-4.pom
> Downloading:
> https://artifactory.acme.com/repo1-maven-org/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha
> -4.pom
> Downloading:
> https://artifactory.acme.com/releases/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha-4.pom
> -
> this realm =
> app0.child-container[org.apache.maven.plugins:maven-archetype-plugin]
> urls[0] = file:/C:/Documents and
> Settings/borutb/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugi
> n-2.0-alpha-4.jar
> urls[1] = file:/C:/Documents and
> Settings/borutb/.m2/repository/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alph
> a-4.jar
> urls[2] = file:/C:/Documents and
> Settings/borutb/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
> urls[3] = file:/C:/Documents and
> Settings/borutb/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.6/maven-invoker-2.0.6.jar
> urls[4] = file:/C:/Documents and
> Settings/borutb/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
> Number of imports: 6
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
>
>
> this realm = plexus.core
> urls[0] = file:/C:/apache-maven-2.0.9/bin/../lib/maven-2.0.9-uber.jar
> Number of imports: 6
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> import: [EMAIL PROTECTED]
> -
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:create': Unable
> to find t
> he mojo 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:create'
> in the plugin 'org.apache.maven.plugins:maven-archetype-plugin'
> org/dom4j/DocumentException
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 6 seconds
> [INFO] Finished at: Mon Oct 13 13:18:38 CEST 2008
> [INFO] Final Memory: 5M/11M
> [INFO]
> 
>
> Is something wrong with maven-archetype-plugin:2.0-alpha-4?
>
> Regards,
> Borut
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


Executing archetype 2.0-alpha-4 fails

2008-10-13 Thread Borut Bolčina
Hello,

today I tried executing

C:\workarea>mvn archetype:create -DgroupId=com.acme
-DartifactId=my-web-project -DarchetypeArtifactId=my-webapp
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.apache.maven.plugins: checking for updates from releases
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
for updates from releases
Downloading:
https://artifactory.acme.com/releases/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-al
pha-4.pom
4K downloaded
Downloading:
https://artifactory.acme.com/repo1-maven-org/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin
-2.0-alpha-4.jar
63K downloaded
[INFO]

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

Downloading:
https://artifactory.acme.com/repo1-maven-org/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha
-4.pom
Downloading:
https://artifactory.acme.com/releases/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha-4.pom
Downloading:
https://artifactory.acme.com/repo1-maven-org/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha
-4.pom
Downloading:
https://artifactory.acme.com/releases/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha-4.pom
-
this realm =
app0.child-container[org.apache.maven.plugins:maven-archetype-plugin]
urls[0] = file:/C:/Documents and
Settings/borutb/.m2/repository/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugi
n-2.0-alpha-4.jar
urls[1] = file:/C:/Documents and
Settings/borutb/.m2/repository/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alph
a-4.jar
urls[2] = file:/C:/Documents and
Settings/borutb/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
urls[3] = file:/C:/Documents and
Settings/borutb/.m2/repository/org/apache/maven/shared/maven-invoker/2.0.6/maven-invoker-2.0.6.jar
urls[4] = file:/C:/Documents and
Settings/borutb/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
Number of imports: 6
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]


this realm = plexus.core
urls[0] = file:/C:/apache-maven-2.0.9/bin/../lib/maven-2.0.9-uber.jar
Number of imports: 6
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:create': Unable
to find t
he mojo 'org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:create'
in the plugin 'org.apache.maven.plugins:maven-archetype-plugin'
org/dom4j/DocumentException
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 6 seconds
[INFO] Finished at: Mon Oct 13 13:18:38 CEST 2008
[INFO] Final Memory: 5M/11M
[INFO]


Is something wrong with maven-archetype-plugin:2.0-alpha-4?

Regards,
Borut


Re: dynamic properies

2008-10-13 Thread Stephen Connolly
why not use profiles?

i.e.


  
xxx

  ${property.xxx}

  
  
yyy

  ${property.yyy}

  
  
zzz

  ${property.zzz}

  


2008/10/13 ez <[EMAIL PROTECTED]>:
>
> i need to use dynamic properties i maven 2.
> say i pass to maven a property called propName using -DpropName=zzz
> then in the pom.xml i need to define a dynamic property, which loads its
> value from another pre-defined property:
> some xxx val
> some yyy val
> some zzz val
> ${property.}
>
> can that be done?
>
> --
> View this message in context: 
> http://www.nabble.com/dynamic-properies-tp19951753p19951753.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Brett Porter
How do you need to use it? It can be quite simple to create a  
classloader for this, but it depends on how it'll be used.


Cheers,
Brett

On 13/10/2008, at 9:40 PM, Mark Derricutt wrote:


Hi all,

I have a maven plugin I'm working on and I want to include the  
classpath
(main, test, others...) of the artifact calling the plugin - am I  
going to
have to spawn/fork a new java process and include them on the  
classpath

somehow, or is their some mojo-magic that takes care of this?

Mark

--
"It is easier to optimize correct code than to correct optimized  
code." --

Bill Harlan



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



Accessing an artifacts classpath from a mojo?

2008-10-13 Thread Mark Derricutt
Hi all,

I have a maven plugin I'm working on and I want to include the classpath
(main, test, others...) of the artifact calling the plugin - am I going to
have to spawn/fork a new java process and include them on the classpath
somehow, or is their some mojo-magic that takes care of this?

Mark

-- 
"It is easier to optimize correct code than to correct optimized code." --
Bill Harlan


Re: [M2] Manually download artifact?

2008-10-13 Thread Daniele De Francesco
Hi,
which building tool do you use?
If you use Ant maybe your best choice it would be Apache Ivy
 , if you need just the dependency manager
part...waiting for you to mavenize your project of course ;-))

Cheers

--
Daniele De Francesco
Senior Java Architect
Value Team Italia

On Mon, Oct 13, 2008 at 8:09 AM, Roger Ye <[EMAIL PROTECTED]> wrote:

> Hi,
>
> Without a pom, is there any mojo which I can use to download a certain
> artifact from maven repository server, into my local repo?
>
> Maven local repository is excellent at managing only one copy of each
> dependency, unfortunately I have a project which is not using maven, and I
> want to put the dependencies of my project in my local maven repository to
> have the one-copy benefit.
>
> So I wonder if there's a way to download an artifact into my local maven
> repository without creating a pom.xml?
>
> Thanks
> Roger
>


dynamic properies

2008-10-13 Thread ez

i need to use dynamic properties i maven 2.
say i pass to maven a property called propName using -DpropName=zzz
then in the pom.xml i need to define a dynamic property, which loads its
value from another pre-defined property:
some xxx val
some yyy val
some zzz val
${property.}

can that be done?

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


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



Re: mvn2 url resolution for SNAPSHOT sources wrong

2008-10-13 Thread Brett Porter
'.' is not a valid separator for snapshots - it needs to be -SNAPSHOT.  
Drools will need to redeploy it as 5.0.0-SNAPSHOT for it to work.


- Brett

On 13/10/2008, at 8:05 PM, tim tim wrote:


hello there,

i have a problem with downloading the sources from a snapshot  
repository.


when i call

mvn dependency:sources

(or mvn eclipse:eclipse -DdownloadSources=true)

the compiled jar is downloaded correctly, but the sources jar is
searched for in a wrong directory

download for the compiled jar is correct ->
http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/drools-solver-core-5.0.0.20081009.190700-124.jar

wrong, the timestamp is part of the path ->
http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.20081009.190700-124/drools-solver-core-5.0.0.20081009.190700-124-sources.jar


the sources are there, i can browse and download them manually:
http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/


and the snapshot release of a different project (jboss-seam-pdf) from
the same repository is retrieved correctly:

Downloading: 
http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288-sources.jar
Downloading: 
http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288.jar


i asked the owners of the faulty repository, and they don't seem to
have the same problem.

http://www.nabble.com/drools-5.0.0-SNAPSHOT-Maven-repository-broken--ts19881450.html

and comparing the poms of the working jboss-seam-pdf and the
drools-solver repository i can not find any difference. (but i am a
mvn newbie)

my system is:

Maven version: 2.0.8
Java version: 1.6.0_06
OS name: "linux" version: "2.6.24-19-generic" arch: "amd64" Family:  
"unix"




below is a simple pom.xml, that creates the error for me (on two
different computers in different networks):

---

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


testMavenDownloadSources
test
0.1-SNAPSHOT
testMavenDownload


testMavenDownload





org.apache.maven.plugins

maven-eclipse-plugin
2.4


true

true




org.apache.maven.plugins

maven-dependency-plugin








snapshots.jboss.org
http://snapshots.jboss.org/maven2


repository.jboss.org
http://repository.jboss.org/maven2






org.jboss.seam
jboss-seam-pdf
2.1.0-SNAPSHOT   



org.drools.solver
drools-solver-core
5.0.0.SNAPSHOT







---

thank you, tim

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




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



mvn2 url resolution for SNAPSHOT sources wrong

2008-10-13 Thread tim tim
hello there,

i have a problem with downloading the sources from a snapshot repository.

when i call

 mvn dependency:sources

(or mvn eclipse:eclipse -DdownloadSources=true)

the compiled jar is downloaded correctly, but the sources jar is
searched for in a wrong directory

download for the compiled jar is correct ->
http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/drools-solver-core-5.0.0.20081009.190700-124.jar

wrong, the timestamp is part of the path ->
http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.20081009.190700-124/drools-solver-core-5.0.0.20081009.190700-124-sources.jar


the sources are there, i can browse and download them manually:
http://snapshots.jboss.org/maven2/org/drools/solver/drools-solver-core/5.0.0.SNAPSHOT/


and the snapshot release of a different project (jboss-seam-pdf) from
the same repository is retrieved correctly:

Downloading: 
http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288-sources.jar
Downloading: 
http://snapshots.jboss.org/maven2/org/jboss/seam/jboss-seam-pdf/2.1.0-SNAPSHOT/jboss-seam-pdf-2.1.0-20081010.041610-288.jar


i asked the owners of the faulty repository, and they don't seem to
have the same problem.

http://www.nabble.com/drools-5.0.0-SNAPSHOT-Maven-repository-broken--ts19881450.html

and comparing the poms of the working jboss-seam-pdf and the
drools-solver repository i can not find any difference. (but i am a
mvn newbie)

my system is:

Maven version: 2.0.8
Java version: 1.6.0_06
OS name: "linux" version: "2.6.24-19-generic" arch: "amd64" Family: "unix"



below is a simple pom.xml, that creates the error for me (on two
different computers in different networks):

---

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


testMavenDownloadSources
test
0.1-SNAPSHOT
testMavenDownload


testMavenDownload





org.apache.maven.plugins

maven-eclipse-plugin
2.4


true

true




org.apache.maven.plugins

maven-dependency-plugin








snapshots.jboss.org
http://snapshots.jboss.org/maven2


repository.jboss.org
http://repository.jboss.org/maven2






org.jboss.seam
jboss-seam-pdf
2.1.0-SNAPSHOT   



org.drools.solver
drools-solver-core
5.0.0.SNAPSHOT







---

thank you, tim

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



Re: Can I dependen another war project in my war project?

2008-10-13 Thread Olivier Lamy
Hi,
Have a look here :
http://maven.apache.org/plugins/maven-war-plugin/overlays.html

--
Olivier

2008/10/13 陈思淼 <[EMAIL PROTECTED]>:
> I have two web project called web-trade and web-refund. and I have a
> web-bundle project to include the web-trade and web-refund in one and
> assemble their dependence lib in one project.
> but I cant dependence on war project in my pom. Is that Maven function limit
> or Can I write my own mywar-maven-plugin do this kind of thing?
>


Re: Excluding a runtime dependency during testing

2008-10-13 Thread Baptiste MATHUS
Hi Ryan,

I don't think it's possible. Maybe you could manually try removing the
dependency to understand what's the cause of your problem.
If RichFaces is doing something under the cover that causes the test to
fail, it seems to be a bad strategy not to try to tackle it directltly.
Trying to workaround it by excluding it when testing could backfire when in
prod, imo.

Just a thought : couldn't your problem come from a dependency coming from
TestNg or RichFaces that makes running themselves together
problematic/incompatible?

Cheers.

2008/10/13 Ryan Cuprak <[EMAIL PROTECTED]>

> Hello,
>  Does anyone know how to exclude a runtime dependency from the test
> classpath? I am using RichFaces and TestNG. When I run my Seam TestNG tests
> RichFaces tries to perform some operations which causes a test to fail. I
> want RichFaces dependencies in my war file but I don't want them added to
> the classpath when running tests.
>
> Thanks!
> -Ryan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


Can I dependen another war project in my war project?

2008-10-13 Thread 陈思淼
I have two web project called web-trade and web-refund. and I have a
web-bundle project to include the web-trade and web-refund in one and
assemble their dependence lib in one project.
but I cant dependence on war project in my pom. Is that Maven function limit
or Can I write my own mywar-maven-plugin do this kind of thing?


[ANN] - SCM Changelog Maven Plugin 1.0 Released

2008-10-13 Thread Emmanuel Hugonnet
The SCM Changelog Maven Plugin team is pleased to announce the 
scmchangelog-maven-plugin-1.0 release!


This plugin produces a changelog report using the SCM comments. 
Currently only subversion and mercurial are supported.


Changes in this version include:

Fixed Bugs:
o Issue MSCMCHGLOG-2  : entries are ordered in a lifo style.
o Issue MSCMCHGLOG-3  : missing '/' in JIRA url.
o Issue MSCMCHGLOG-4 : Documentation

Have fun!
-SCM Changelog Maven Plugin team

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



Re: why I must to specify the version for che child project?

2008-10-13 Thread 陈思淼
I got it.

2008/10/13 Brett Porter <[EMAIL PROTECTED]>

> It is unnecessary to specify it in the child if you place it in the parent
> - it will be inherited.
>
> If you are just looking to manage the dependency version wherever used, you
> should wrap the parent element in .
>
> Cheers,
> Brett
>
>
> On 13/10/2008, at 5:53 PM, 陈思淼 wrote:
>
>  In my parent Project the pom is:
>> com.mycompany.trademanager
>>  all
>>  pom
>>  1.0-SNAPSHOT
>>  
>>  common
>>
>>  
>>  
>>  
>> junit
>> junit
>> 4.3.1
>> test
>> 
>> 
>> In my child project the pom is:
>>  
>>  com. mycompany.trademanager
>> all
>> 1.0-SNAPSHOT
>> 
>>
>>  com.mycompany.trademanager
>>  common
>>  jar
>>  1.0-SNAPSHOT
>>  
>>  
>>  
>>  
>> junit
>> junit
>> 4.3.1
>> 
>> 
>> 
>> I must specify theversion explicitly,If not ,the Error occur:[0]
>> 'dependencies.dependency.version' is missing for junit:junit
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: why I must to specify the version for che child project?

2008-10-13 Thread Brett Porter
It is unnecessary to specify it in the child if you place it in the  
parent - it will be inherited.


If you are just looking to manage the dependency version wherever  
used, you should wrap the parent element in .


Cheers,
Brett

On 13/10/2008, at 5:53 PM, 陈思淼 wrote:


In my parent Project the pom is:
com.mycompany.trademanager
 all
 pom
 1.0-SNAPSHOT
 
  common

 
 
 
junit
junit
4.3.1
test


In my child project the pom is:
 
  com. mycompany.trademanager
all
1.0-SNAPSHOT


 com.mycompany.trademanager
 common
 jar
 1.0-SNAPSHOT
 
 
 
 
junit
junit
4.3.1



I must specify theversion explicitly,If not ,the Error occur:[0]
'dependencies.dependency.version' is missing for junit:junit



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