RE: No files changed shown although we changed some files

2007-05-26 Thread Jeffery, Mark
Hello

I have a patch that I did for this error.

Was the previous build state failure ?

Anyway, would you like the patched plugin ?

Jeff

-Original Message-
From: Ionut S [mailto:[EMAIL PROTECTED] 
Sent: 25 May 2007 16:38
To: continuum-users@maven.apache.org
Subject: No files changed shown although we changed some files

Hi,
Sometimes, when our build is failing, we get No files changed although
we know for sure some files were changed.. We use Continuum 1.0.3.

Any ideas ?

Thank you,
Ionut

   
-
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.
To read FirstRand Bank's Disclaimer for this email click on the following 
address or copy into your Internet browser: 
https://www.fnb.co.za/disclaimer.html 

If you are unable to access the Disclaimer, send a blank e-mail to
[EMAIL PROTECTED] and we will send you a copy of the Disclaimer.


Re: maven-changes-plugin

2007-05-26 Thread Jeff Mutonho

On 5/25/07, Dennis Lundberg [EMAIL PROTECTED] wrote:

Dimitris Kapanidis wrote:
 Codehaus has an implemented version of changes plugin.

The Codehaus version is older than the Apache version and should
therefor not be used.



True that.Thats the reason I'm using the Apache maven-changes-plugin ,
but I can't get it to work , hence my post.
Surely someone out there is using the newer maven-changes-plugin and
could give some pointers...


Thanks




Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



How to Get Dependencies

2007-05-26 Thread flaubert g

Hi,

How do I retrieve all transitive dependencies, which includes
sub-dependencies from a maven api?

Thanks.

Cheers,
flaubertg


Re: How to Get Dependencies

2007-05-26 Thread Jo Vandermeeren

Maven API?

If you are talking about a Maven project, just build it to install all of
its dependencies in your local repository.
Maven2 resolves transitive dependencies automatically.

Cheers
Jo

On 5/26/07, flaubert g [EMAIL PROTECTED] wrote:


Hi,

How do I retrieve all transitive dependencies, which includes
sub-dependencies from a maven api?

Thanks.

Cheers,
flaubertg



Re: How to Get Dependencies

2007-05-26 Thread flaubert g

Hi Jo,

Thanks for replying.

I'm writing a simple mojo plugin. I want to retrieve all project
dependencies and subdependencies and display this list on my console. I
used:

@parameter expression=${project.dependencies}
List dependencies;

which gives me a collection of org.apache.maven.model.Dependency objects.
I can't find any getter methods to retrieve subdependencies. Should I use
some artifact resolver?

Cheers,
flaubertg


On 5/26/07, Jo Vandermeeren [EMAIL PROTECTED] wrote:


Maven API?

If you are talking about a Maven project, just build it to install all of
its dependencies in your local repository.
Maven2 resolves transitive dependencies automatically.

Cheers
Jo

On 5/26/07, flaubert g [EMAIL PROTECTED] wrote:

 Hi,

 How do I retrieve all transitive dependencies, which includes
 sub-dependencies from a maven api?

 Thanks.

 Cheers,
 flaubertg




Re: Overriding the plugin depencies

2007-05-26 Thread Alexandre Gomes

Hi,

I tried, but it seems not to work. As Johan said, Maven is still getting the
old dep version. Why? The dep resolution is a mystery for me as well :-)

thanks
Alexandre


On 5/26/07, Wendy Smoak [EMAIL PROTECTED] wrote:


On 5/25/07, Alexandre Gomes [EMAIL PROTECTED] wrote:

 I'm using a plugin [1] that depends of some library [2].

 My question is if it's possible to change the plugin dependency without
 having to update the local repository. Maybe, there is some pom tag tag
I
 could use to change the plugin dependecy. Actually, I'd like to change
the
 antenna version to 0.9.15 and I didn't like to make it locally, because
 other developers would not get the changes.

Try plugindependenciesdependency as Johan suggests.

http://maven.apache.org/ref/2.0.6/maven-model/maven.html

--
Wendy

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




Re: WSDL2Java execution failed

2007-05-26 Thread Thorsten Heit

Hi,


I tried to build chapter4 daytrader example by manually adding
javax.mail and javax.activation jar to the local repository as
[..]\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
and
[..]\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
However, it still said unable to find required classes.


How did you add those files to your repository? By manual copying or  
via mvn install:install-file / mvn deploy:deploy-file?


Have you read http://maven.apache.org/guides/mini/guide-coping-with- 
sun-jars.html?



HTH

Thorsten


PGP.sig
Description: Signierter Teil der Nachricht


Re: [M2] Site upload

2007-05-26 Thread Mac Systems

Hello,

thank you. I will give it a try after the Weekend :)


- Jens

Jens,

Are you complaining about the fact that wagon-ftp currently is not
implemented to support directory copy?
That can be fixed easily, it just needs to be implemented.

I can send you a compiled jar with directory copy enabled if that's 
what you

want..

Cheers
Jo



On 5/24/07, Jens Hohl [EMAIL PROTECTED] wrote:


Hello,



i stumbled http://www.dict.cc/englisch-deutsch/stumbled.html  about
some FTP problems with maven 2.

Can someone tell me what works with maven2 when site-deploy is invoked ?



Regards,

Jens









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



Re: Overriding the plugin depencies

2007-05-26 Thread Brad Szabo

Plugin dependencies cannot be overridden at the present time. There is
an issue in JIRA http://jira.codehaus.org/browse/MNG-2163 (which is
duplicated by a couple others).

Currently, I think the best way to work around this for a group of
developers is to deploy the plugin with a modified pom.xml to a shared
remote repository. Have your project depend on that version, instead of
just modifying the plugin POM in your local repository.

-Brad


On Sat, 2007-05-26 at 09:12 -0300, Alexandre Gomes wrote:
 Hi,
 
 I tried, but it seems not to work. As Johan said, Maven is still getting the
 old dep version. Why? The dep resolution is a mystery for me as well :-)
 
 thanks
 Alexandre
 
 
 On 5/26/07, Wendy Smoak [EMAIL PROTECTED] wrote:
 
  On 5/25/07, Alexandre Gomes [EMAIL PROTECTED] wrote:
 
   I'm using a plugin [1] that depends of some library [2].
  
   My question is if it's possible to change the plugin dependency without
   having to update the local repository. Maybe, there is some pom tag tag
  I
   could use to change the plugin dependecy. Actually, I'd like to change
  the
   antenna version to 0.9.15 and I didn't like to make it locally, because
   other developers would not get the changes.
 
  Try plugindependenciesdependency as Johan suggests.
 
  http://maven.apache.org/ref/2.0.6/maven-model/maven.html
 
  --
  Wendy
 
  -
  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: How to Get Dependencies

2007-05-26 Thread Jo Vandermeeren

On 5/26/07, flaubert g [EMAIL PROTECTED] wrote:


Hi Jo,

Thanks for replying.

I'm writing a simple mojo plugin. I want to retrieve all project
dependencies and subdependencies and display this list on my console. I
used:

@parameter expression=${project.dependencies}
List dependencies;

which gives me a collection of org.apache.maven.model.Dependency
objects.
I can't find any getter methods to retrieve subdependencies. Should I use
some artifact resolver?



Indeed, you need use the ArtifactResolver to resolve them transitively..
You might find this recent article on Jan Bartel's blog interesting:
http://blogs.webtide.com/janb/2006/03/24/114323400.html


Re: Overriding the plugin depencies

2007-05-26 Thread Wendy Smoak

On 5/26/07, Brad Szabo [EMAIL PROTECTED] wrote:


Plugin dependencies cannot be overridden at the present time. There is
an issue in JIRA http://jira.codehaus.org/browse/MNG-2163 (which is
duplicated by a couple others).


That one is about exclusions.  This one is about overrideing dependencies:

 http://jira.codehaus.org/browse/MNG-2972

Strange, because I really thought I had done it before and it worked.

--
Wendy

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



Re: Overriding the plugin depencies

2007-05-26 Thread Brad Szabo
Hey Wendy,

Thanks for clarifying that... I was thinking about using exclusions to
enable the override :) The issue you noted is more appropriate for this
thread.

After digging up some old notes on this issue however, I think you are
justified in your confused feeling that you have been able to override
plugin dependencies successfully, because you probably have. In my post
about a related issue on the list back in March
http://www.nabble.com/-Maven2--xmlbeans-maven-plugin-IssueStAX-transitive-dependencies-tf3359711.html#a9345543
I noted that I was able to get the override to work if I actually added
a few more arbitrary dependencies to my project. Totally weird.

-Brad


On Sat, 2007-05-26 at 08:02 -0700, Wendy Smoak wrote:
 On 5/26/07, Brad Szabo [EMAIL PROTECTED] wrote:
 
  Plugin dependencies cannot be overridden at the present time. There is
  an issue in JIRA http://jira.codehaus.org/browse/MNG-2163 (which is
  duplicated by a couple others).
 
 That one is about exclusions.  This one is about overrideing dependencies:
 
   http://jira.codehaus.org/browse/MNG-2972
 
 Strange, because I really thought I had done it before and it worked.
 


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



Re: Jar mojo. Adding a classes folder to the produced jar file

2007-05-26 Thread Marcel Schutte
Hi,

I would say this is more a task for the assembly plugin. A jar file should only 
contain folders that correspond to packages.

Regards,
Marcel

- Original Message 
From: David J. M. Karlsen [EMAIL PROTECTED]
To: Maven Users List users@maven.apache.org
Sent: Friday, May 25, 2007 9:54:23 PM
Subject: Re: Jar mojo. Adding a classes folder to the produced jar file

Tommy Holm - TELMORE wrote:
 Hi.
 I need to create a classes folder in the root of the produced jar file
 and to move all class files into the classes folder, is that possible by
 configuration or do I need to write my own plugin ?
 Thx
 Cheers

 Kind Regards

 Tommy Holm, Senior Developer
 TELMORE A/S
 Carl Gustavsgade 3, 2630 Taastrup
 Telefon +45 43327032, Mobil +45 22582344
 www.telmore.dk 
   
Hmm, seems like the jar-plugin can only point to one given directory: 
http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html
You wil probably have to hack around with the ant-plugin and some jar-tasks.
Please open a JIRA feature request to be able to add several directories.

Build-helper-plugin might help you if it applies for your use-case: 
http://mojo.codehaus.org/build-helper-maven-plugin/howto.html

-- 
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com


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






   
Looking
 for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

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



Re: How to Get Dependencies

2007-05-26 Thread flaubert g

Yes, I think this is what I'm looking for. I've modified a bit from that
article. The only thing is that the dependencies I get are somehow
associated from test and compile phase. I need runtime dependencies only
and I can't seem to find how to do this.

// code snippet
   List listeners = new ArrayList();

   Set dependencyArtifacts = mavenProject.getDependencyArtifacts();
   ArtifactResolutionResult result =
   artifactResolver.resolveTransitively(dependencyArtifacts,
   mavenProject.getArtifact(), Collections.EMPTY_LIST,
   localRepository, metadataSource);
   Set artifacts = result.getArtifacts();
   for (Iterator iter = artifacts.iterator(); iter.hasNext();) {
   Artifact artifact = (Artifact)iter.next();
   getLog().info(   + artifact.getArtifactId() + - +
   artifact.getVersion() + . + artifact.getType() +
 + artifact.getScope());
   }

// result in console
junit-3.8.1.jar test
avalon-framework-4.1.3.jar compile
commons-logging-1.1.jar compile
servlet-api-2.3.jar compile
bcel-5.1.jar compile

Am I missing something?

Cheers,
flaubertg




On 5/27/07, Jo Vandermeeren [EMAIL PROTECTED] wrote:


On 5/26/07, flaubert g [EMAIL PROTECTED] wrote:

 Hi Jo,

 Thanks for replying.

 I'm writing a simple mojo plugin. I want to retrieve all project
 dependencies and subdependencies and display this list on my console.
I
 used:

 @parameter expression=${project.dependencies}
 List dependencies;

 which gives me a collection of org.apache.maven.model.Dependency
 objects.
 I can't find any getter methods to retrieve subdependencies. Should I
use
 some artifact resolver?


Indeed, you need use the ArtifactResolver to resolve them transitively..
You might find this recent article on Jan Bartel's blog interesting:
http://blogs.webtide.com/janb/2006/03/24/114323400.html



Re: tests layout

2007-05-26 Thread Arnaud Bailly
Harry Larsen [EMAIL PROTECTED] writes:

 Hello,

 Thanks for this info. I now understand better, what should I need. 
 I configured my pom.xml accordingly.

 BUT maven still doesn't see the directory systest.

 I made this structure:
 src/main/java
 src/test/java
 src/systest/java

Hello,
Surefire can handle only one source directory. You can set this to be
different from src/test/java using the testSourceDirectory
configuration. In the example provided in my previous post, the
systest directory is *within* src/test/java, not outside it. 

If you want different root sourcse, you could try something like: 
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
executions
execution
idsurefire-it/id
phaseintegration-test/phase
goals
goaltest/goal
/goals
configuration

testSourceDirectorysrc/systest/java/testSourceDirectory
/configuration
/execution
/executions
/plugin
/plugins
/build

HTH
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: Including jtds package as project dependency.

2007-05-26 Thread Maria Odea Ching

Hi,

Could you provide the build stack trace?

Thanks,
Deng

imran aziz wrote:
Hello All, 


I want to use database calls from within my project and in
order to do that I have included jtds in my project, added the
following lines in POM 




dependency
groupIdnet.sourceforge.jtds/groupId
artifactIdjtds/artifactId
version1.2/version  
 /dependency




and installed jtds jar into maven repository by using 




mvn install:install-file -DgroupId=net.sourceforge.jtds -DartifactId=jtds 
-Dversion=1.2 -Dpackaging=jar -Dfile=jtds-1.2.jar



as specified in maven documentation, but I am still getting the following error 
on build



 package net.sourceforge.jtds does not exist



I am new to maven2 so not sure what I am missing, any clues please.

Regards,

Imran.




   
Choose the right car based on your needs.  Check out Yahoo! Autos new Car Finder tool.

http://autos.yahoo.com/carfinder/
  



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



How to resolve dependency from remote repositories only?

2007-05-26 Thread Olivier Dehon

Hi,

I am trying to to use ArtifactResolver.resolve method on my project 
artifact, which can be a snapshot version,
but I would like to get to the latest deployed version of the 
artifact, even if the installed version is more recent.


The reason behind this is I need to calculate the HTTP URL of the latest 
deployed snapshot version, which would be

something like
http://repo.my-repo-host.com/archiva/repo-snapshots/com/foo/bar/project/1.0-SNAPSHOT/project-1.0-20070526.145203-5.jar

I can get the initial part of the URL through 
deploymentRepository.getUrl(), and the path to the artifact through

deploymentRepository.pathOf( artifact )

The problem is that if the artifact resolves to a version installed in 
the local repository, deploymentRepository.pathOf( artifact ) yields:
com/foo/bar/project/1.0-SNAPSHOT/project-1.0-SNAPSHOT.jar, instead of 
the expected

com/foo/bar/project/1.0-SNAPSHOT/project-1.0-20070526.145203-5.jar

Thanks for sharing your experience with this.

-Olivier

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



Re: How to resolve dependency from remote repositories only?

2007-05-26 Thread John Casey
You could use the local repository instance to construct a  
java.io.File pointing to any locally installed version of the  
artifact, then delete them...that should force maven to re-resolve  
them. If you don't want to delete them, you could always rename them.


That's probably the simplest way I can think to do it.

-john


On May 26, 2007, at 2:56 PM, Olivier Dehon wrote:


Hi,

I am trying to to use ArtifactResolver.resolve method on my project  
artifact, which can be a snapshot version,
but I would like to get to the latest deployed version of the  
artifact, even if the installed version is more recent.


The reason behind this is I need to calculate the HTTP URL of the  
latest deployed snapshot version, which would be

something like
http://repo.my-repo-host.com/archiva/repo-snapshots/com/foo/bar/ 
project/1.0-SNAPSHOT/project-1.0-20070526.145203-5.jar


I can get the initial part of the URL through  
deploymentRepository.getUrl(), and the path to the artifact through

deploymentRepository.pathOf( artifact )

The problem is that if the artifact resolves to a version installed  
in the local repository, deploymentRepository.pathOf( artifact )  
yields:
com/foo/bar/project/1.0-SNAPSHOT/project-1.0-SNAPSHOT.jar, instead  
of the expected

com/foo/bar/project/1.0-SNAPSHOT/project-1.0-20070526.145203-5.jar

Thanks for sharing your experience with this.

-Olivier

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



---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john




Re: tests layout

2007-05-26 Thread Napoleon Esmundo Ramirez

Hello Harry,

For another example, you can check the integration/web ui tests of archiva
located at:
http://svn.apache.org/repos/asf/maven/archiva/trunk/archiva-web/archiva-webapp-test/pom.xml

Cheers!
Nap

On 5/27/07, Arnaud Bailly [EMAIL PROTECTED] wrote:


Harry Larsen [EMAIL PROTECTED] writes:

 Hello,

 Thanks for this info. I now understand better, what should I need.
 I configured my pom.xml accordingly.

 BUT maven still doesn't see the directory systest.

 I made this structure:
 src/main/java
 src/test/java
 src/systest/java

Hello,
Surefire can handle only one source directory. You can set this to be
different from src/test/java using the testSourceDirectory
configuration. In the example provided in my previous post, the
systest directory is *within* src/test/java, not outside it.

If you want different root sourcse, you could try something like:
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
executions
execution
idsurefire-it/id
phaseintegration-test/phase
goals
goaltest/goal
/goals
configuration


testSourceDirectorysrc/systest/java/testSourceDirectory
/configuration
/execution
/executions
/plugin
/plugins
/build

HTH
--
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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




Re: Deploying with Maven (Engineering a design)

2007-05-26 Thread Napoleon Esmundo Ramirez

Hello Vince,

Nice way of doing it!  Though I think it would be better to do an
installer-creator-mojo instead of a script for the next step.

Cheers!
Nap

On 5/26/07, vcordaro [EMAIL PROTECTED] wrote:


Hi,


   I have picked up an interesting project at work.  My end goal is to
deploy our latest code in SVN to our servers nightly.  Now we have a custom
installer built
in izpack.  So ideally I would like to build the pieces that the installer
needs, then build the installer, then deploy the installer.  Anyone ever
done this?

So as I see it the first step is to get the nightly builds in a consistent
and usable location.  We are using Continuum for our
nightly builds, but it's output is to some randomly number directory in
the working-directory.  So my idea was to just use maven tags to scp
the packaged to a http web server located on teh same machine.  So I
started by using the distributionManagement tag and this worked, however I
need
the output in a consistent format, including filename, so the installer
can reference it.  The output from the distributionManagement was from
snapshots
and the final file had the date and time appended onto it.  So I
abandonded this method and moved to using the assembly tag.  This seems to
be packaging and
scp'ing to a location, along with consistently naming the output.   I took
this assembly tag, wrapped it in a profile,  and moved it into a parent pom
and the children, or pieces for the installer, reference it. So now
continuum calls clean package deploy -P nightly.  Is this a good way of
doing this?  Is there a better way?  Anyone have any ideas?

My next step will be a maven script that builds the installer referencing
the assembled pieces from the http server.

Then once I have the installer built, i will most likely use ruby on rails
and capistrano to deploy the installer to a remote server through ssh.

Any advice would be greatly appreciated...

Thanks in advance,

Vince


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