Re: versions:analyze

2009-04-06 Thread Stephen Connolly
3. when the same plugin is specified in multiple projects in the  
reactor, using different versions (severe warning fir 2.x minor for 3.x)


4. when reporting plugins specify a different version from build plugins

Sent from my [rhymes with myPod] ;-)

On 4 Apr 2009, at 22:30, Stephen Connolly stephen.alan.conno...@gmail.com 
 wrote:



Hi,

ok so I'm working on a new goal for the versions plugin, analyze  
(and an associated report analysis-report)


I would like this goal to highlight potential issues with respect to  
versions


first problem I see is:

1.  Referencing a reactor project as a plugin or plugin dependency  
consumed later in the reactor (since plugins must be class-loaded  
prior to starting the build life cycle, and the artifacts will not  
be available until after the package phase at least


Anyone any other suggestions for possible problems (which are to do  
with versions and the reactor)


2. Using a dependency which is produced by the reactor, but not  
using the version from the reactor (this is more of a warning than a  
problem as I can see times when you might want to do this)


Oh, and by the way, these will not fail the build, that's the job of  
the enforcer plugin... I want this report to help steer people  
towards best practice


-Stephen


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



Re: [RESOLVED] Maven Archetype Plugin is Hosed --- and nobody cares

2009-04-06 Thread Raphaël Piéroni
One could have found the specification :
http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-metadata.html

Please consider the error raised by the archetype plugin will be ugly
as it will be the exception of the XPP3Parser.

Regards,

Raphaël

2009/4/6 Howard Lewis Ship hls...@gmail.com:
 Thanks to Raphaël Piéroni the error was found: there was an extra
 directory element in my archetype-metadata.xml.  This was not
 reported at all by Maven.

 You should convert:

        fileSet filtered=true packaged=false
            directorysrc/test/resources/directory
            directorysrc/test/conf/directory
        /fileSet

 to:

        fileSet filtered=true packaged=false
            directorysrc/test/resources/directory
        /fileSet

        fileSet filtered=true packaged=false
            directorysrc/test/conf/directory
        /fileSet

 Future versions of the archetype plugin will report the first error,
 rather than ignore it leading to the second incomprhensible error (I
 received).


 On Sat, Apr 4, 2009 at 6:22 PM, Barrie Treloar baerr...@gmail.com wrote:
 On Sat, Apr 4, 2009 at 10:09 PM, Brian E. Fox bri...@reply.infinity.nu 
 wrote:
 Howard, You have an interesting way of motivation and over generalization:
 Once again, Maven is screwed up beyond belief and the developer community 
 response is pitifully absent http://twitter.com/hlship;

 First of all, one plugin does not represent the entire Maven project. 
 Second, the assumption that we are all here to jump at your beck and call 
 is offensive. Perhaps your approach is what earns you pitifully absent 
 response.

 Third, it's open source and patches are welcome.

 I agree with Brian.

 If you are having problems then invest some time into making them better.
 And write up the your learnings so others dont face the same problems
 are you are complaining of.

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





 --
 Howard M. Lewis Ship

 Creator Apache Tapestry and Apache HiveMind

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



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



RE: Additional dependecy scope

2009-04-06 Thread Uldis Karlovs-Karlovskis
Hello again. Is anybody going to anser me? :(

Regards,
Uldis, C. T. Co
uldis.karlovs-karlovs...@ctco.lv
 

-Original Message-
From: Uldis Karlovs-Karlovskis [mailto:uldis.karlovs-karlovs...@ctco.lv] 
Sent: piektdiena, 2009. gada 3. aprīlī 12:43
To: users@maven.apache.org
Subject: Additional dependecy scope

Hello!

 

From documentation I see there are scopes for managing dependency artifacts.
However, I need more of them. These are only to manage packaging and control
one tests package, but I have different tests per project (unit,
integration, selenium etc) and every of them should have some different jars
in classpath. Also I`m deploying the same project to tomcat, jboss and
websphere (there may be even different versions of them) so the EAR or WAR
package libraries may differ for any of them. From documentation I found
that Maven offers only a way to specify different libraries for WAR and EAR.

 

What are recommendations? I don`t want to split everything into smaller
projects just to get this functionality.

 

Uldis Karlovs - Karlovskis

Lead SCM Engineer

System Configuration Management

C.T.Co

Mobile: +371 29 345 210

 



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



Maven en Poitou Charentes

2009-04-06 Thread nicolas de loof
This message is for French Maven users : it announces a JUG session in
France (Poitier). For this reason, following is in French
Salut à tous,

J'ai l'honneur d'être invité pour l'inauguration d'un nouveau Java User
Group basé à Poitier, le PoitouCharentesJughttp://www.poitoucharentesjug.org/
 . http://www.poitoucharentesjug.org/
A cette occasion, je ferais une présentation de Maven et j'essaierais de
répondre à toutes vos questions.

Si vous êtes dans le coin vendredi 10 avril, joignez-vous à nous ! Toutes
les infos sur http://www.poitoucharentesjug.org/

Nicolas


Maven Clean Plugin exclude target folder

2009-04-06 Thread Bogdan Minciu

Hello,

As I read from 
http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html, 
The Maven Clean Plugin will delete the target directory by default.


But I was wondering, is there any possibility to exclude some folders 
under the /target folder from the deleted directories? For example I 
would like to delete anything under /target besides the /target/src 
folder. I tried using the excludes with no success. I have some useful 
.java files in there. I know this isn't the best architecture, but I am 
using some code generators that could not be configured otherwise.



Many thanks in advance,

--
Bogdan MINCIU
Développeur
Tél Fr : +33 (0)177 35 35 23
Tél Ro : +40 (0)268 54 77 75
17, rue M. Kogalniceanu
500090 Brasov, ROMANIA
http://www.pentalog.ro


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



Re: Additional dependecy scope

2009-04-06 Thread Stuart McCulloch
2009/4/6 Uldis Karlovs-Karlovskis uldis.karlovs-karlovs...@ctco.lv

 Hello again. Is anybody going to anser me? :(


a quick search on google suggests:


http://maven.apache.org/guides/mini/guide-building-for-different-environments.html
   http://maven.apache.org/guides/introduction/introduction-to-profiles.html

might be what you're looking for

also check out the Maven book:
http://www.sonatype.com/books/maven-book/reference/

Regards,
 Uldis, C. T. Co
 uldis.karlovs-karlovs...@ctco.lv


 -Original Message-
 From: Uldis Karlovs-Karlovskis [mailto:uldis.karlovs-karlovs...@ctco.lv]
 Sent: piektdiena, 2009. gada 3. aprīlī 12:43
 To: users@maven.apache.org
 Subject: Additional dependecy scope

 Hello!



 From documentation I see there are scopes for managing dependency
 artifacts.
 However, I need more of them. These are only to manage packaging and
 control
 one tests package, but I have different tests per project (unit,
 integration, selenium etc) and every of them should have some different
 jars
 in classpath. Also I`m deploying the same project to tomcat, jboss and
 websphere (there may be even different versions of them) so the EAR or WAR
 package libraries may differ for any of them. From documentation I found
 that Maven offers only a way to specify different libraries for WAR and
 EAR.



 What are recommendations? I don`t want to split everything into smaller
 projects just to get this functionality.



 Uldis Karlovs - Karlovskis

 Lead SCM Engineer

 System Configuration Management

 C.T.Co

 Mobile: +371 29 345 210


-- 
Cheers, Stuart


Re: Maven Clean Plugin exclude target folder

2009-04-06 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Not sure what you are generating the sources from, but for generated
SOAP client code, we usually build this as a separate module (jar) and
have our code depend on it - saves us generating code all the time.

For other generated code (from the source tree for example) we have
taken the approach that a clean command should remove them *all* to
ensure consistency in the final artifact.  If some code lived through a
clean cycle, we argued that it could potentially cause unwanted
side-effects.

Just my two cents,

Cheers,

Johan

Bogdan Minciu wrote:
 Hello,
 
 As I read from
 http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html,
 The Maven Clean Plugin will delete the target directory by default.
 
 But I was wondering, is there any possibility to exclude some folders
 under the /target folder from the deleted directories? For example I
 would like to delete anything under /target besides the /target/src
 folder. I tried using the excludes with no success. I have some useful
 .java files in there. I know this isn't the best architecture, but I am
 using some code generators that could not be configured otherwise.
 
 
 Many thanks in advance,
 

- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ2bPMpHYnED7evioRAqH7AJ92CT5bNRLLtSsV9UBTA+v3QadJxgCeOeNE
BS1twPO7tXYZIVQlQkU8xr4=
=B+KC
-END PGP SIGNATURE-

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



deploy multipe file to one directory

2009-04-06 Thread ranicki

HI,

i have several files in one directory of my snapshots-repository. The main
artifact, e.g.

artifact-name-1.0-SNAPSHOT.jar

and corresponding files like

artifact-name-1.0-SNAPSHOT-tests.jar
artifact-name-1.0-SNAPSHOT-test-sources.jar
artifact-name-1.0-SNAPSHOT-sources.jar

Now i want to copy these artifacts into a second repository by using
mvn-deploy-cmd, e.g:

mvn deploy:deploy-file -DrepositoryId=... -DuniqueVersion=false
-Durl=file://... -DgroupId=... -DartifactId=... -Dversion=new Version
-Dpackaging=jar -Dfile=/.../artifact-name-1.0-SNAPSHOT.jar

But this cmd only copies the main artifact! How can i deploy the
corresponding files as well?

Thanks for your help.
-- 
View this message in context: 
http://www.nabble.com/deploy-multipe-file-to-one-directory-tp22903918p22903918.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



deploy multipe file to one directory

2009-04-06 Thread ranicki

HI,

i have several files in one directory of my snapshots-repository. The main
artifact, e.g.

artifact-name-1.0-SNAPSHOT.jar

and corresponding files like

artifact-name-1.0-SNAPSHOT-tests.jar
artifact-name-1.0-SNAPSHOT-test-sources.jar
artifact-name-1.0-SNAPSHOT-sources.jar

Now i want to copy these artifacts into a second repository by using
mvn-deploy-cmd, e.g:

mvn deploy:deploy-file -DrepositoryId=... -DuniqueVersion=false
-Durl=file://... -DgroupId=... -DartifactId=... -Dversion=new Version
-Dpackaging=jar -Dfile=/.../artifact-name-1.0-SNAPSHOT.jar

But this cmd only copies the main artifact! How can i deploy the
corresponding files as well?

Thanks for your help.
-- 
View this message in context: 
http://www.nabble.com/deploy-multipe-file-to-one-directory-tp22903919p22903919.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: deploy multipe file to one directory

2009-04-06 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

The deploy plugin accepts a classifier parameter (-Dclassifier=) - use
this with the values 'tests', 'test-sources' and 'sources' and it should
work.  See also [1].

Cheers,

Johan

[1]
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html

ranicki wrote:
 HI,
 
 i have several files in one directory of my snapshots-repository. The main
 artifact, e.g.
 
 artifact-name-1.0-SNAPSHOT.jar
 
 and corresponding files like
 
 artifact-name-1.0-SNAPSHOT-tests.jar
 artifact-name-1.0-SNAPSHOT-test-sources.jar
 artifact-name-1.0-SNAPSHOT-sources.jar
 
 Now i want to copy these artifacts into a second repository by using
 mvn-deploy-cmd, e.g:
 
 mvn deploy:deploy-file -DrepositoryId=... -DuniqueVersion=false
 -Durl=file://... -DgroupId=... -DartifactId=... -Dversion=new Version
 -Dpackaging=jar -Dfile=/.../artifact-name-1.0-SNAPSHOT.jar
 
 But this cmd only copies the main artifact! How can i deploy the
 corresponding files as well?
 
 Thanks for your help.

- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ2bjIpHYnED7evioRAratAJ9xYAg3Mr+zLvNCN0kDKL2jVyr7rgCdH5iE
0jS/kpPEvEoYotli0/b1JtM=
=SQZk
-END PGP SIGNATURE-

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



Re: deploy multipe file to one directory

2009-04-06 Thread ranicki

Thanks for your quick response.

I already tried the -Dclassifier parameter but maybe i did it wrong...
When just appending the -Dclassifier=tests parameter to the command it still
just deploys one file.
So is it right that i have to deloy the classifier with a second deploy-cmd
after deploying the artifact-file?




Johan Lindquist wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 
 The deploy plugin accepts a classifier parameter (-Dclassifier=) - use
 this with the values 'tests', 'test-sources' and 'sources' and it should
 work.  See also [1].
 
 Cheers,
 
 Johan
 
 [1]
 http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
 
 ranicki wrote:
 HI,
 
 i have several files in one directory of my snapshots-repository. The
 main
 artifact, e.g.
 
 artifact-name-1.0-SNAPSHOT.jar
 
 and corresponding files like
 
 artifact-name-1.0-SNAPSHOT-tests.jar
 artifact-name-1.0-SNAPSHOT-test-sources.jar
 artifact-name-1.0-SNAPSHOT-sources.jar
 
 Now i want to copy these artifacts into a second repository by using
 mvn-deploy-cmd, e.g:
 
 mvn deploy:deploy-file -DrepositoryId=... -DuniqueVersion=false
 -Durl=file://... -DgroupId=... -DartifactId=... -Dversion=new Version
 -Dpackaging=jar -Dfile=/.../artifact-name-1.0-SNAPSHOT.jar
 
 But this cmd only copies the main artifact! How can i deploy the
 corresponding files as well?
 
 Thanks for your help.
 
 - --
 you too?
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFJ2bjIpHYnED7evioRAratAJ9xYAg3Mr+zLvNCN0kDKL2jVyr7rgCdH5iE
 0jS/kpPEvEoYotli0/b1JtM=
 =SQZk
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/deploy-multipe-file-to-one-directory-tp22903919p22904359.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



include current direcory path into jar classpath in manifest.mf file

2009-04-06 Thread Reddem, Polireddy
Hi,
I am getting FileNotFoundException while reading resource  files in
current directory .

Can u please help me to include current directory path apart from
library jar files path in manifest.mf file of  a jar.

Thanks  Regards
Polireddy Reddem
VOIP: 6917
Access Identity Management Team
ITS - NCG -Security Services
Bank of America -Hyderabad



The information contained in this transmission may contain privileged and 
confidential information and is intended only for the use of the person(s) 
named above. If you are not the intended recipient, any review, dissemination, 
distribution or duplication of this communication is strictly prohibited. If 
you received this email in error, please contact the sender immediately by 
reply e-mail and destroy all copies of the original message. This email is not 
intended as an offer or solicitation for the purchase or sale of any financial 
instruments.


Maven - POM repository, Freemind, Confluence

2009-04-06 Thread sigi9009

Hi forum,

Does somebody know the link to the maven.apache.org/POM/4.0.0 repository,
the preset link in the pom.xml file doesn't work. here are the relevant
lines in the pom.xml file. The software which i want to install is a
plugin(freemind) for Confluence. Confluence is running on in a apache Tomcat
server.

project
xmlns=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;
...

thanks in advance
-- 
View this message in context: 
http://www.nabble.com/Maven---POM-repository%2C-Freemind%2C-Confluence-tp22906474p22906474.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Eclipse plugin 2.6 and package explorer order

2009-04-06 Thread Paul Nyheim
I think this is intentional to be aligned with the classpath order
that maven sets up when running tests.
See http://jira.codehaus.org/browse/MECLIPSE-318

On Mon, Apr 6, 2009 at 11:07 AM, Martin Gilday martin.li...@imap.cc wrote:
 I am running Maven 2.1.0 and 2.6 of the eclipse plugin.  For some reason
 after running an eclipse:eclipse on both new and existing projects I am
 now getting src/test/java and resources appearing above src/main/java
 and resources.  This is happening for all developers using our corporate
 POM and the version is the only thing I remember changing.  It is
 slightly frustrating as everyone is used to the original order.  Is this
 a change to the plugin or something wrong with my POM?

 When I look in .classpath I can see that src/test/java is the first
 entry, and in older .classpath it is the 3rd entry.

 Thanks,
 Martin.

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



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



maven eclipse plugin

2009-04-06 Thread Roman Kournjaev
HI All

Any idea how do i add additional line to the generated .classpath.

The line is an additional source directory  , classpathentry kind=src
path=src/main/java-gen/

I have looked a little in the plugin page and didnt find anything that fits
my needs.

Thanks in advance.

Roman


Maven: The Definitive Guide in French

2009-04-06 Thread Emmanuel Hugonnet
Hi,
I was wondering if there is a French translation or some work in progress,
as the French community is
expanding. If none is available I would like to volunteer to produce it.
Emmanuel


Re: versions:analyze

2009-04-06 Thread Stephen Connolly
5. When locked snapshots are in use ( i.e. 1.0-20090406.102308-2 and not
1.0-SNAPSHOT ) (minor warning)

2009/4/6 Stephen Connolly stephen.alan.conno...@gmail.com

 3. when the same plugin is specified in multiple projects in the reactor,
 using different versions (severe warning fir 2.x minor for 3.x)

 4. when reporting plugins specify a different version from build plugins

 Sent from my [rhymes with myPod] ;-)


 On 4 Apr 2009, at 22:30, Stephen Connolly stephen.alan.conno...@gmail.com
 wrote:

  Hi,

 ok so I'm working on a new goal for the versions plugin, analyze (and an
 associated report analysis-report)

 I would like this goal to highlight potential issues with respect to
 versions

 first problem I see is:

 1.  Referencing a reactor project as a plugin or plugin dependency
 consumed later in the reactor (since plugins must be class-loaded prior to
 starting the build life cycle, and the artifacts will not be available until
 after the package phase at least

 Anyone any other suggestions for possible problems (which are to do with
 versions and the reactor)

 2. Using a dependency which is produced by the reactor, but not using the
 version from the reactor (this is more of a warning than a problem as I can
 see times when you might want to do this)

 Oh, and by the way, these will not fail the build, that's the job of the
 enforcer plugin... I want this report to help steer people towards best
 practice

 -Stephen




Eclipse plugin 2.6 and package explorer order

2009-04-06 Thread Martin Gilday
I am running Maven 2.1.0 and 2.6 of the eclipse plugin.  For some reason
after running an eclipse:eclipse on both new and existing projects I am
now getting src/test/java and resources appearing above src/main/java
and resources.  This is happening for all developers using our corporate
POM and the version is the only thing I remember changing.  It is
slightly frustrating as everyone is used to the original order.  Is this
a change to the plugin or something wrong with my POM?

When I look in .classpath I can see that src/test/java is the first
entry, and in older .classpath it is the 3rd entry.

Thanks,
Martin.

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



How to override project version during the build?

2009-04-06 Thread Sergey Shcherbakov
Hi all,

 

We are building our maven project using Luntbuild CI system 

(I find it by the way worth mentioning here 

http://maven.apache.org/continuous-integration.html )

 

Each build gets it's own version number even if it is a snapshot build
(we need to distinguish them too).

So in the pom.xml I have:

 

version${MAJOR.VERSION}.${MINOR.VERSION}.${BUILD.VERSION}${SNAPSHOT}/
version

 

properties

MAJOR.VERSION0/MAJOR.VERSION

MINOR.VERSION00/MINOR.VERSION

BUILD.VERSION000/BUILD.VERSION--

SNAPSHOT/SNAPSHOT

/properties

 

In order to have a harmless default version and be able to pass correct
build version through the command line parameters.

Overriding from the command line works fine, but the pom.xml gets
deployed unchanged to the repository, i.e. with default zeros as
property values and thus project version, although during the build
those values were overridden.

 

This is not a problem if you have no transitive dependencies made in
this way.

Assuming you have three projects that depend on each other: A - B - C;
and C has been built using project version shown above then the A build
fails because maven cannot find dependent C artifact of the version
0.00.000, although it finds artifact B of the appropriate version fine
(even if A and B are made in the same way as C).

 

How can I solve this problem and what is the right way to automatically
update maven project's version?

 

Thank you!

 

Best Regards,

Sergey Shcherbakov.

 



maven-compiler-plugin resources not in classpath

2009-04-06 Thread David Goodenough
I am trying to use maven to compile a java annotation processor.  

When you build a jar which contains an annotation processor you can put 
a file (META-INF/services/javax.annotation.processing.Processor) which
contains one line per annotation processor.  With this file in place you 
then only have to include the jar in the javac classpath to get it to
process annotations, you do not have to mention it on the command line.

Unforunately if you build your pom.xml to include this file under the
resources tag, it gets included in the classpath, and then the compiler
complains that the annotation processor it is compiling (the one mentioned
in the file) does not exist, so it can not run it as an annotation processor 
so the compilation fails.  So what I need is a means to add the file to the 
jar without adding it to the compiler classpath.

Anyone got any suggestions.

David

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



Re: Maven: The Definitive Guide in French

2009-04-06 Thread Emmanuel Hugonnet
Great news, I heard some rumors about it but didn't know how far this
project was.
Translating is an easier job ;o) and it may be complementary :o)
Emmanuel

On Mon, Apr 6, 2009 at 11:29 AM, nicolas de loof
nicolas.del...@gmail.comwrote:

 For your information there is a french book in progress (Arnaud Heritier 
 myself)A translation of the definitive guide would be nice anyway ;)

 On 6 avril 2009 11:26, Emmanuel Hugonnet ehsavoi...@gmail.com wrote:

  Hi,
  I was wondering if there is a French translation or some work in
 progress,
  as the French community is
  expanding. If none is available I would like to volunteer to produce it.
  Emmanuel
 



RE: versions:analyze

2009-04-06 Thread HUYNH GIANG SON
Thanks

-Original Message-
From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] 
Sent: Monday, April 06, 2009 4:20 PM
To: Stephen Connolly
Cc: Maven Users List; u...@mojo.codehaus.org; Maven Developers List;
d...@mojo.codehaus.org
Subject: Re: versions:analyze

5. When locked snapshots are in use ( i.e. 1.0-20090406.102308-2 and not
1.0-SNAPSHOT ) (minor warning)

2009/4/6 Stephen Connolly stephen.alan.conno...@gmail.com

 3. when the same plugin is specified in multiple projects in the reactor,
 using different versions (severe warning fir 2.x minor for 3.x)

 4. when reporting plugins specify a different version from build plugins

 Sent from my [rhymes with myPod] ;-)


 On 4 Apr 2009, at 22:30, Stephen Connolly
stephen.alan.conno...@gmail.com
 wrote:

  Hi,

 ok so I'm working on a new goal for the versions plugin, analyze (and an
 associated report analysis-report)

 I would like this goal to highlight potential issues with respect to
 versions

 first problem I see is:

 1.  Referencing a reactor project as a plugin or plugin dependency
 consumed later in the reactor (since plugins must be class-loaded prior
to
 starting the build life cycle, and the artifacts will not be available
until
 after the package phase at least

 Anyone any other suggestions for possible problems (which are to do with
 versions and the reactor)

 2. Using a dependency which is produced by the reactor, but not using the
 version from the reactor (this is more of a warning than a problem as I
can
 see times when you might want to do this)

 Oh, and by the way, these will not fail the build, that's the job of the
 enforcer plugin... I want this report to help steer people towards best
 practice

 -Stephen




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



Re: How to use maven-dependency-plugin to unpack-dependencies for 2 artifacts?

2009-04-06 Thread Stephen Connolly
replace the ...'s as necessary

?xml version=1.0 encoding=UTF-8?
project xmlns=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;
modelVersion4.0.0/modelVersion
parent
artifactId.../artifactId
groupId.../groupId
version...-SNAPSHOT/version
/parent

groupId.../groupId
artifactId.../artifactId

dependencies
dependency
groupId.../groupId
artifactIdweb-app1/artifactId
typewar/type
/dependency
dependency
groupId.../groupId
artifactIdweb-app2/artifactId
typewar/type
/dependency
dependency
groupId.../groupId
artifactIdweb-app3/artifactId
typewar/type
/dependency
dependency
groupId.../groupId
artifactIdcli-app/artifactId
/dependency
/dependencies
build
plugins
plugin
artifactIdmaven-dependency-plugin/artifactId
configuration
stripVersiontrue/stripVersion
excludeTransitivetrue/excludeTransitive
overWriteReleasestrue/overWriteReleases
overWriteSnapshotstrue/overWriteSnapshots
/configuration
executions
execution
idunpack-web-app1/id
phasegenerate-resources/phase
goals
goalunpack-dependencies/goal
/goals
configuration
includeGroupIds.../includeGroupIds

includeArtifactIdsweb-app1/includeArtifactIds
includeTypeswar/includeTypes

outputDirectory${project.build.directory}/web-app1/outputDirectory
/configuration
/execution
execution
idunpack-web-app2/id
phasegenerate-resources/phase
goals
goalunpack-dependencies/goal
/goals
configuration
includeGroupIds.../includeGroupIds

includeArtifactIdsweb-app2/includeArtifactIds
includeTypeswar/includeTypes

outputDirectory${project.build.directory}/web-app2/outputDirectory
/configuration
/execution
execution
idunpack-web-app3/id
phasegenerate-resources/phase
goals
goalunpack-dependencies/goal
/goals
configuration
includeGroupIds.../includeGroupIds

includeArtifactIdsweb-app3/includeArtifactIds
includeTypeswar/includeTypes

outputDirectory${project.build.directory}/web-app3/outputDirectory
/configuration
/execution
execution
idcopy-cli-app/id
phasegenerate-resources/phase
goals
goalcopy-dependencies/goal
/goals
configuration
includeGroupIds.../includeGroupIds
includeArtifactIdscli-app/includeArtifactIds
includeTypesjar/includeTypes

outputDirectory${project.build.directory}/bin/outputDirectory
/configuration
/execution
/executions
/plugin


2009/4/3 David Hoffer dhoff...@gmail.com

 Please send sample when you get back.

 Dave Hoffer
 - sent via G1

 On Apr 3, 2009 12:51 AM, Stephen Connolly 
 stephen.alan.conno...@gmail.com
 wrote:

 I have this working no problem but I am on vacation til monday, so do
 not have access to a sample pom

 2009/4/2 David Hoffer dhoff...@gmail.com

  I did use excludeTransitive but did not help so I just can't fall back 
 to unpack-dependencies. ...



Re: Maven: The Definitive Guide in French

2009-04-06 Thread nicolas de loof
For your information there is a french book in progress (Arnaud Heritier 
myself)A translation of the definitive guide would be nice anyway ;)

On 6 avril 2009 11:26, Emmanuel Hugonnet ehsavoi...@gmail.com wrote:

 Hi,
 I was wondering if there is a French translation or some work in progress,
 as the French community is
 expanding. If none is available I would like to volunteer to produce it.
 Emmanuel



Re: deploy multipe file to one directory

2009-04-06 Thread Johan Lindquist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

The deploy-file command will only do a single artifact at a time (and
the classifier would allow you to specify which one).

The deploy command however, takes (and someone correct me if I am wrong
here) all attached artifacts and deploys them in their correct place.

So, the following command line would build the artifacts you intend (and
although I use install, I would hope that deploy behaves similarly).

mvn clean jar:test-jar source:jar source:test-jar package install

Cheers,

Johan

ranicki wrote:
 Thanks for your quick response.
 
 I already tried the -Dclassifier parameter but maybe i did it wrong...
 When just appending the -Dclassifier=tests parameter to the command it still
 just deploys one file.
 So is it right that i have to deloy the classifier with a second deploy-cmd
 after deploying the artifact-file?
 
 
 
 
 Johan Lindquist wrote:
 Hi,
 
 The deploy plugin accepts a classifier parameter (-Dclassifier=) - use
 this with the values 'tests', 'test-sources' and 'sources' and it should
 work.  See also [1].
 
 Cheers,
 
 Johan
 
 [1]
 http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.html
 
 ranicki wrote:
 HI,

 i have several files in one directory of my snapshots-repository. The
 main
 artifact, e.g.

 artifact-name-1.0-SNAPSHOT.jar

 and corresponding files like

 artifact-name-1.0-SNAPSHOT-tests.jar
 artifact-name-1.0-SNAPSHOT-test-sources.jar
 artifact-name-1.0-SNAPSHOT-sources.jar

 Now i want to copy these artifacts into a second repository by using
 mvn-deploy-cmd, e.g:

 mvn deploy:deploy-file -DrepositoryId=... -DuniqueVersion=false
 -Durl=file://... -DgroupId=... -DartifactId=... -Dversion=new Version
 -Dpackaging=jar -Dfile=/.../artifact-name-1.0-SNAPSHOT.jar

 But this cmd only copies the main artifact! How can i deploy the
 corresponding files as well?

 Thanks for your help.

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




- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ2cC3pHYnED7evioRAokDAJ4pR3LcA7dSNy5m8xUTkucKugKuqgCeJj+n
xCtdl8A06plWcH4sS3V/xbA=
=as7W
-END PGP SIGNATURE-

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



Re: Eclipse plugin 2.6 and package explorer order

2009-04-06 Thread Arnaud HERITIER
yes it was intentional. It is annoying but you'll be sure to have the same
behavior in eclipse and in maven.
cheers

arnaud

On Mon, Apr 6, 2009 at 1:02 PM, Paul Nyheim hurrag...@gmail.com wrote:

 I think this is intentional to be aligned with the classpath order
 that maven sets up when running tests.
 See http://jira.codehaus.org/browse/MECLIPSE-318

 On Mon, Apr 6, 2009 at 11:07 AM, Martin Gilday martin.li...@imap.cc
 wrote:
  I am running Maven 2.1.0 and 2.6 of the eclipse plugin.  For some reason
  after running an eclipse:eclipse on both new and existing projects I am
  now getting src/test/java and resources appearing above src/main/java
  and resources.  This is happening for all developers using our corporate
  POM and the version is the only thing I remember changing.  It is
  slightly frustrating as everyone is used to the original order.  Is this
  a change to the plugin or something wrong with my POM?
 
  When I look in .classpath I can see that src/test/java is the first
  entry, and in older .classpath it is the 3rd entry.
 
  Thanks,
  Martin.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 

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




-- 
Arnaud


RE: Maven: The Definitive Guide in French

2009-04-06 Thread Martin Gainty

Demandant un cours d'instruction qui explique l'architecture de Maven?

Martin 
__ 
Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






 Date: Mon, 6 Apr 2009 12:15:47 +0200
 Subject: Re: Maven: The Definitive Guide in French
 From: ehsavoi...@gmail.com
 To: users@maven.apache.org
 
 Great news, I heard some rumors about it but didn't know how far this
 project was.
 Translating is an easier job ;o) and it may be complementary :o)
 Emmanuel
 
 On Mon, Apr 6, 2009 at 11:29 AM, nicolas de loof
 nicolas.del...@gmail.comwrote:
 
  For your information there is a french book in progress (Arnaud Heritier 
  myself)A translation of the definitive guide would be nice anyway ;)
 
  On 6 avril 2009 11:26, Emmanuel Hugonnet ehsavoi...@gmail.com wrote:
 
   Hi,
   I was wondering if there is a French translation or some work in
  progress,
   as the French community is
   expanding. If none is available I would like to volunteer to produce it.
   Emmanuel
  
 

_
Rediscover Hotmail®: Now available on your iPhone or BlackBerry
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Mobile1_042009

RE: Maven - POM repository, Freemind, Confluence

2009-04-06 Thread Edelson, Justin
http://maven.apache.org/POM/4.0.0 is a namespace URI, not a link.



From: sigi9009 [mailto:sigi9...@web.de]
Sent: Mon 4/6/2009 6:58 AM
To: users@maven.apache.org
Subject: Maven - POM repository, Freemind, Confluence




Hi forum,

Does somebody know the link to the maven.apache.org/POM/4.0.0 repository,
the preset link in the pom.xml file doesn't work. here are the relevant
lines in the pom.xml file. The software which i want to install is a
plugin(freemind) for Confluence. Confluence is running on in a apache Tomcat
server.

project
xmlns=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;
...

thanks in advance
--
View this message in context: 
http://www.nabble.com/Maven---POM-repository%2C-Freemind%2C-Confluence-tp22906474p22906474.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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





Dependencie of war-developemant

2009-04-06 Thread Robert Einsle
Hy List,

i'm developing an war-Application, sending Mail with commons-email. So i
add commons-email as dependencie of my pom.xml

--- cut ---
dependency
  groupIdorg.apache.commons/groupId
  artifactIdcommons-email/artifactId
  version1.1/version
/dependency
--- cut ---

but commons-email dependy on mail.jar, and activation.jar. So ist adds
mail.jar and activation.jar on my Projectdependency.

My Developemen-Environment is Eclipse with WTP. Here when i start my
Application-Server, i recieved the Message:

--- cut ---
2009-04-06 11:13:53,296 ERROR  [main] ContextLoader
M[initWebApplicationContext] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '/index.html' defined in ServletContext resource
[/WEB-INF/spring-servlet.xml]: Initialization of bean failed; nested
exception is org.springframework.beans.TypeMismatchException: Failed to
convert property value of type [javax.mail.Session] to required type
[javax.mail.Session] for property 'mailSession'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of type
[javax.mail.Session] to required type [javax.mail.Session] for property
'mailSession': no matching editors or conversion strategy found
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at
org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:81)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.TypeMismatchException: Failed to
convert property value of type [javax.mail.Session] to required type
[javax.mail.Session] for property 'mailSession'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of type
[javax.mail.Session] to required type [javax.mail.Session] for property
'mailSession': no matching editors or conversion strategy found
at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
at

Re: maven eclipse plugin

2009-04-06 Thread Barrie Treloar
On Mon, Apr 6, 2009 at 9:17 PM, Roman Kournjaev kournj...@gmail.com wrote:
 HI All

 Any idea how do i add additional line to the generated .classpath.

 The line is an additional source directory  , classpathentry kind=src
 path=src/main/java-gen/

 I have looked a little in the plugin page and didnt find anything that fits
 my needs.

 Thanks in advance.

 Roman


I dont think you can.
You generally rely on the plugins to add to the list of source directories.

Is src/main/java-gen used by another plugin? If so, then it should
already be adding to the src directory list.

You could try 
http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html
But I dont know whether that would work either.

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



Re: maven-compiler-plugin resources not in classpath

2009-04-06 Thread jieryn
Hi David,

If I understand the problem correctly, it will be solved by excluding
META-INF/services/javax.annotation.processing.Processor file from your
module resources (thereby preventing it from being put into the
classpath). Please read http://maven.apache.org/pom.html#Resources for
more information on how to do that.

Good luck,
-jesse

On Mon, Apr 6, 2009 at 5:47 AM, David Goodenough
david.goodeno...@btconnect.com wrote:
 I am trying to use maven to compile a java annotation processor.

 When you build a jar which contains an annotation processor you can put
 a file (META-INF/services/javax.annotation.processing.Processor) which
 contains one line per annotation processor.  With this file in place you
 then only have to include the jar in the javac classpath to get it to
 process annotations, you do not have to mention it on the command line.

 Unforunately if you build your pom.xml to include this file under the
 resources tag, it gets included in the classpath, and then the compiler
 complains that the annotation processor it is compiling (the one mentioned
 in the file) does not exist, so it can not run it as an annotation processor
 so the compilation fails.  So what I need is a means to add the file to the
 jar without adding it to the compiler classpath.

 Anyone got any suggestions.

 David

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

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



Re: maven-compiler-plugin resources not in classpath

2009-04-06 Thread David Goodenough
On Monday 06 April 2009, jie...@gmail.com wrote:
 Hi David,

 If I understand the problem correctly, it will be solved by excluding
 META-INF/services/javax.annotation.processing.Processor file from your
 module resources (thereby preventing it from being put into the
 classpath). Please read http://maven.apache.org/pom.html#Resources for
 more information on how to do that.
But will that not exclude it from the jar as well?  I tried it and it seems
to have that effect.  I want it excluded from the compilation but included
in the jar.

David

 Good luck,
 -jesse

 On Mon, Apr 6, 2009 at 5:47 AM, David Goodenough

 david.goodeno...@btconnect.com wrote:
  I am trying to use maven to compile a java annotation processor.
 
  When you build a jar which contains an annotation processor you can put
  a file (META-INF/services/javax.annotation.processing.Processor) which
  contains one line per annotation processor.  With this file in place you
  then only have to include the jar in the javac classpath to get it to
  process annotations, you do not have to mention it on the command line.
 
  Unforunately if you build your pom.xml to include this file under the
  resources tag, it gets included in the classpath, and then the compiler
  complains that the annotation processor it is compiling (the one
  mentioned in the file) does not exist, so it can not run it as an
  annotation processor so the compilation fails.  So what I need is a means
  to add the file to the jar without adding it to the compiler classpath.
 
  Anyone got any suggestions.
 
  David



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



RE: Additional dependecy scope

2009-04-06 Thread Brian E. Fox
You want to potentially use profiles to manage your dependencies. There isn't 
the ability to add new scopes.

-Original Message-
From: Uldis Karlovs-Karlovskis [mailto:uldis.karlovs-karlovs...@ctco.lv] 
Sent: Monday, April 06, 2009 2:53 AM
To: 'Maven Users List'
Subject: RE: Additional dependecy scope

Hello again. Is anybody going to anser me? :(

Regards,
Uldis, C. T. Co
uldis.karlovs-karlovs...@ctco.lv
 

-Original Message-
From: Uldis Karlovs-Karlovskis [mailto:uldis.karlovs-karlovs...@ctco.lv] 
Sent: piektdiena, 2009. gada 3. aprīlī 12:43
To: users@maven.apache.org
Subject: Additional dependecy scope

Hello!

 

From documentation I see there are scopes for managing dependency artifacts.
However, I need more of them. These are only to manage packaging and control
one tests package, but I have different tests per project (unit,
integration, selenium etc) and every of them should have some different jars
in classpath. Also I`m deploying the same project to tomcat, jboss and
websphere (there may be even different versions of them) so the EAR or WAR
package libraries may differ for any of them. From documentation I found
that Maven offers only a way to specify different libraries for WAR and EAR.

 

What are recommendations? I don`t want to split everything into smaller
projects just to get this functionality.

 

Uldis Karlovs - Karlovskis

Lead SCM Engineer

System Configuration Management

C.T.Co

Mobile: +371 29 345 210

 



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


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



RE: Maven Clean Plugin exclude target folder

2009-04-06 Thread Brian E. Fox
Agree. Everything in the target folder should be considered temporal and
wiped on a clean build. 

-Original Message-
From: Johan Lindquist [mailto:jo...@kawoo.co.uk] 
Sent: Monday, April 06, 2009 3:48 AM
To: Maven Users List
Subject: Re: Maven Clean Plugin exclude target folder

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Not sure what you are generating the sources from, but for generated
SOAP client code, we usually build this as a separate module (jar) and
have our code depend on it - saves us generating code all the time.

For other generated code (from the source tree for example) we have
taken the approach that a clean command should remove them *all* to
ensure consistency in the final artifact.  If some code lived through a
clean cycle, we argued that it could potentially cause unwanted
side-effects.

Just my two cents,

Cheers,

Johan

Bogdan Minciu wrote:
 Hello,
 
 As I read from

http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_addit
ional_files.html,
 The Maven Clean Plugin will delete the target directory by default.
 
 But I was wondering, is there any possibility to exclude some folders
 under the /target folder from the deleted directories? For example I
 would like to delete anything under /target besides the /target/src
 folder. I tried using the excludes with no success. I have some
useful
 .java files in there. I know this isn't the best architecture, but I
am
 using some code generators that could not be configured otherwise.
 
 
 Many thanks in advance,
 

- --
you too?
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ2bPMpHYnED7evioRAqH7AJ92CT5bNRLLtSsV9UBTA+v3QadJxgCeOeNE
BS1twPO7tXYZIVQlQkU8xr4=
=B+KC
-END PGP SIGNATURE-

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


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



RE: Maven: The Definitive Guide in French

2009-04-06 Thread Brian E. Fox
We have had a couple of volunteers requests for the French version. Ping Tim @ 
b...@sonatype.com for details.

-Original Message-
From: Emmanuel Hugonnet [mailto:ehsavoi...@gmail.com] 
Sent: Monday, April 06, 2009 5:27 AM
To: Maven Users List
Subject: Maven: The Definitive Guide in French

Hi,
I was wondering if there is a French translation or some work in progress,
as the French community is
expanding. If none is available I would like to volunteer to produce it.
Emmanuel


IBM WSEJBDeploy

2009-04-06 Thread Yanko, Curtis

 As we embark on this little endeavor I wanted to see if anyone had some
input or experience in this area. We use Artifactory as an internal repo
and are trying to support WAS 5.1  6 apps.

I found the Peter Pilgrim article (
http://www.jroller.com/peter_pilgrim/entry/battling_with_maven_2_integra
ting ) but the 2006 date makes me wonder if someone hasn't improved on
this since then. I can't say that I've seen a EJB plugin with WAS
support in it so is the Peter Pilgrim approach still the way to go? 


==
Curtis Yanko
Application  Developer Infrastructure Services
Source-Build-Deploy



This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.


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



Re: Maven: The Definitive Guide in French

2009-04-06 Thread Jason van Zyl
I've asked Tim to respond to you, but that would be great if you  
translated the guide. We can set you up with all the tools that we  
use. We could probably also set up a repository so that anyone who  
wanted to contribute the translation could help. There are also Nexus  
and m2eclipse books to translate ;-)


On 6-Apr-09, at 2:26 AM, Emmanuel Hugonnet wrote:


Hi,
I was wondering if there is a French translation or some work in  
progress,

as the French community is
expanding. If none is available I would like to volunteer to produce  
it.

Emmanuel


Thanks,

Jason

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

Simplex sigillum veri. (Simplicity is the seal of truth.)


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



Why I get ClassNotFoundException ?

2009-04-06 Thread HHB

Hey,
I have an application that is built upon Wicket 1.3, Spring 2.5 and
Hibernate 3
When I run the command:
mvn jetty:run
I got the following exception:

WARN  - DriverManagerDataSource- Could not load driverClass
com.jdbc.mysql.Driver
java.lang.ClassNotFoundException: com.jdbc.mysql.Driver

I have this dependency in the pom.xml file:

dependency
groupIdmysql/groupId
artifactIdmysql-connector-java/artifactId
version5.1.6/version
/dependency

Any ideas what is going wrong?

-- 
View this message in context: 
http://www.nabble.com/Why-I-get-ClassNotFoundException---tp22910240p22910240.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



scm:changelog command does not include author with spaces

2009-04-06 Thread Todd Thiessen
I have justed raised 2 jiras to track this issue:

http://jira.codehaus.org/browse/SCM-455
http://jira.codehaus.org/browse/MCHANGELOG-94

If you have an author with any spaces in the name of the author, the
changelog report does not include these changes in the report. The
problem resides in the SCM project but of course affects the change log
plugin. Thus I raised a jira for both.

Please comment/vote etc...

Thanks.

---
Todd Thiessen

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



Inheriting profiles activation

2009-04-06 Thread Paul
Hi,

Using maven-2.1.0 and having a multimodules project with the following layout 
:

parent-project
  foo
foo-api
foo-flavourA
foo-flavourB
  bar
bar-api
bar-flavourA
bar-flavourB

I'm trying to add profiles that allows to skip flavourA and flavourB build.

So I added two profiles with activation nodes in the parent project and tried 
to use theses profiles in modules foo and bar to include/exclude flavour 
modules.

Using mvn help:active-profiles on the parent-project show actives profiles as 
expected but the modules declarations in modules are ignored.

I've read that the following issue is fixed in 2.1.0 but I'm not sure it 
covers the very same use case : http://jira.codehaus.org/browse/MNG-3228


Is this expected ? Am I doing something wrong ?

/Paul


See pom snippets showing profiles declarations below :


parent-project pom :


profiles
profile
idflavourA/id
activation
property
name!flavourA.skip/name
/property
/activation
/profile
profile
idflavourB/id
activation
property
name!flavourB.skip/name
/property
/activation
/profile
/profiles


foo pom :
=

profiles
profile
idflavourA/id
modules
modulefoo-flavourA/module
/modules
/profile
profile
idflavourB/id
modules
modulefoo-flavourB/module
/modules
/profile
/profiles


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



RE: Dependencie of war-developemant

2009-04-06 Thread Bryan Loofbourrow

From
http://maven.apache.org/guides/introduction/introduction-to-dependency-m
echanism.html:

 Excluded dependencies - If project X depends on project Y, and
project Y depends on project Z, the owner of project X can explicitly
exclude project Z as a dependency, using the exclusion element. 

This sounds like what you want, to exclude a transitive dependency. If
it were nontransitive, but you needed it for compilation, you would use
the provided scope instead, which is described on the same page.

-- Bryan

-Original Message-
From: Robert Einsle [mailto:rob...@einsle.de] 
Sent: Monday, April 06, 2009 5:40 AM
To: Maven Users List
Subject: Dependencie of war-developemant

Hy List,

i'm developing an war-Application, sending Mail with commons-email. So i
add commons-email as dependencie of my pom.xml

--- cut ---
dependency
  groupIdorg.apache.commons/groupId
  artifactIdcommons-email/artifactId
  version1.1/version
/dependency
--- cut ---

but commons-email dependy on mail.jar, and activation.jar. So ist adds
mail.jar and activation.jar on my Projectdependency.

My Developemen-Environment is Eclipse with WTP. Here when i start my
Application-Server, i recieved the Message:

--- cut ---
2009-04-06 11:13:53,296 ERROR  [main] ContextLoader
M[initWebApplicationContext] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '/index.html' defined in ServletContext resource
[/WEB-INF/spring-servlet.xml]: Initialization of bean failed; nested
exception is org.springframework.beans.TypeMismatchException: Failed to
convert property value of type [javax.mail.Session] to required type
[javax.mail.Session] for property 'mailSession'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of type
[javax.mail.Session] to required type [javax.mail.Session] for property
'mailSession': no matching editors or conversion strategy found
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(
AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBea
nFactoryInitialization(AbstractApplicationContext.java:728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:380)
at
org.springframework.web.context.ContextLoader.createWebApplicationContex
t(ContextLoader.java:255)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(
ContextLoader.java:199)
at
org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderS
ervlet.java:81)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1172)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:4058)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4371
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 

Re: Why I get ClassNotFoundException ?

2009-04-06 Thread Heinrich Nirschl
On Mon, Apr 6, 2009 at 4:46 PM, HHB hubaghd...@yahoo.ca wrote:
 WARN  - DriverManagerDataSource    - Could not load driverClass
 com.jdbc.mysql.Driver
 java.lang.ClassNotFoundException: com.jdbc.mysql.Driver

The package name is wrong. Try with com.mysql.jdbc.Driver.

- Henry

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



Re: Maven: The Definitive Guide in French

2009-04-06 Thread Emmanuel Hugonnet
Thanks :o)
I was looking for such a repository to get the sources of the book ;o)
I am not an Eclipse fan (who says Netbeans ;o) ) but I would love to work on
Nexus' book translation.
Emmanuel


On Mon, Apr 6, 2009 at 4:43 PM, Jason van Zyl jvan...@sonatype.com wrote:

 I've asked Tim to respond to you, but that would be great if you translated
 the guide. We can set you up with all the tools that we use. We could
 probably also set up a repository so that anyone who wanted to contribute
 the translation could help. There are also Nexus and m2eclipse books to
 translate ;-)


 On 6-Apr-09, at 2:26 AM, Emmanuel Hugonnet wrote:

  Hi,
 I was wondering if there is a French translation or some work in progress,
 as the French community is
 expanding. If none is available I would like to volunteer to produce it.
 Emmanuel


 Thanks,

 Jason

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

 Simplex sigillum veri. (Simplicity is the seal of truth.)


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




maven release plugin issue

2009-04-06 Thread huser

Hi,

I setup the maven release plugin as 
plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-release-plugin/artifactId
version2.0-beta-9-SNAPSHOT/version
configuration

remoteTaggingtrue/remoteTagging

useReleaseProfilefalse/useReleaseProfile
goalsdeploy/goals
arguments-Prelease/arguments
/configuration

When I run mvn release:plugin it is not able to tag SVN. 

Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: '/abc_repos/sip/tags' path not found

This is because I am running the plugin inside a module, which exists under
a SVN repo. The path listed above does not exist. The correct path should be
be /abc_repos/tags. How can I run this ?

thanks,
-- 
View this message in context: 
http://www.nabble.com/maven-release-plugin-issue-tp22911245p22911245.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Maven: The Definitive Guide in French

2009-04-06 Thread Henri Gomez
If you need some support :)

2009/4/6 Emmanuel Hugonnet ehsavoi...@gmail.com:
 Thanks :o)
 I was looking for such a repository to get the sources of the book ;o)
 I am not an Eclipse fan (who says Netbeans ;o) ) but I would love to work on
 Nexus' book translation.
 Emmanuel


 On Mon, Apr 6, 2009 at 4:43 PM, Jason van Zyl jvan...@sonatype.com wrote:

 I've asked Tim to respond to you, but that would be great if you translated
 the guide. We can set you up with all the tools that we use. We could
 probably also set up a repository so that anyone who wanted to contribute
 the translation could help. There are also Nexus and m2eclipse books to
 translate ;-)


 On 6-Apr-09, at 2:26 AM, Emmanuel Hugonnet wrote:

  Hi,
 I was wondering if there is a French translation or some work in progress,
 as the French community is
 expanding. If none is available I would like to volunteer to produce it.
 Emmanuel


 Thanks,

 Jason

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

 Simplex sigillum veri. (Simplicity is the seal of truth.)


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




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



Re: Maven: The Definitive Guide in French

2009-04-06 Thread Baptiste MATHUS
Hi Jason,

I recently sent an email about this at b...@sonatype.com (two weeks ago or
so).
I was asking if there was currently any work about this french translation
for the definitive guide. If so, I think I'd like to contribute. If not,
then I guess we could at least try to start it up. Just show the direction
:-).

Cheers.

2009/4/6 Jason van Zyl jvan...@sonatype.com

 I've asked Tim to respond to you, but that would be great if you translated
 the guide. We can set you up with all the tools that we use. We could
 probably also set up a repository so that anyone who wanted to contribute
 the translation could help. There are also Nexus and m2eclipse books to
 translate ;-)


 On 6-Apr-09, at 2:26 AM, Emmanuel Hugonnet wrote:

  Hi,
 I was wondering if there is a French translation or some work in progress,
 as the French community is
 expanding. If none is available I would like to volunteer to produce it.
 Emmanuel


 Thanks,

 Jason

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

 Simplex sigillum veri. (Simplicity is the seal of truth.)


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




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


MECLIPSE-544 a.k.a. AJDT support breaks classpath

2009-04-06 Thread Robert Hanson
Alan, can you reconsider the status of this issue, where AspectJ jars
are not included in the Eclipse .classpath file by default:

http://jira.codehaus.org/browse/MECLIPSE-544

You provided a workaround, but to me this still feels like a bug,
especially since it breaks pre-existing POMs and provides no warnings
at all in the debug output.  I can’t think of any reason why the AJDT
version would default to “1.5”.  Wouldn’t it make more sense for
“none” to be the default so that it is backwards compatable?

Thanks.

Rob

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



LATEST and RELEASE release version management

2009-04-06 Thread Hayes, Peter
We use Maven in an enterprise environment and internally we are required
to execute release builds whenever we want to install to our testing
environment.  We have found that executing many release builds can be
tedious when we have in-development snapshot dependencies that also have
to be released.  We don't mind doing the releases, but the manual
version update -- release -- revert version cycle is a chore.

I was hoping that Maven could simplify this by allowing a project to
declare a dependency on LATEST or 1.0-LATEST and have the maven release
plugin resolve this to the actual latest released version available in
the repository.  The subsequent fully resolved pom would then be
uploaded to the internal repository and the pom left in source control
still references LATEST.  

Does maven already support something like this or would others find this
useful?

Peter Hayes
Architecture  Shared Technology Services | Fidelity Investments
Management Technology 




Plugin does not exist or no valid version could be found

2009-04-06 Thread Jeudy, Guillaume
Hi,
 
I'm using maven 2.0.9 with a working setup that was fine last week. Now all of 
a sudden I get the below error, it can't find a plugin setup in my remote 
plugin repository:
 
The plugin repository is an alternate one setup in pluginRepositories section 
of my pom. I tried deleting my local repo completely but the issue does not go 
away...
 
The plugin repository URL does have the files: 
http://ctpjava.googlecode.com/svn/trunk/repository/ 

My local installation does not download the files, it only creates an empty 
metadata/ tag in metadata file
 
under org/apache/maven/plugins/maven-hotdeploy-plugin directory. Any hints on 
what could be wrong?
 
Thanks,
-Guillaume
 
[INFO] Reactor build order:
[INFO]   RDM - POM Aggregator
[INFO]   RDM - Datasource - JAAS Login Config
[INFO]   RDM - Hibernate Mapping
[INFO]   RDM - TestUtils
[INFO]   RDM - Common
[INFO]   RDM - Service
[INFO]   RDMSD - Deployer
[INFO]   RDM - Enterprise Archive
[INFO]   RDM - Web
[INFO] Searching repository for plugin with prefix: 'hotdeploy'.
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-hotdeploy-plugin' does not exi
st or no valid version could be found
[INFO] 
[INFO] For more information, run Maven with the -e switch
[INFO] 
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Apr 06 11:56:33 EDT 2009
[INFO] Final Memory: 29M/64M
[INFO] 



This electronic mail (including any attachments) may contain information that 
is privileged, confidential, and/or otherwise protected from disclosure to 
anyone other than its intended recipient(s). Any dissemination or use of this 
electronic email or its contents (including any attachments) by persons other 
than the intended recipient(s) is strictly prohibited. If you have received 
this message in error, please notify us immediately by reply email so that we 
may correct our internal records. Please then delete the original message 
(including any attachments) in its entirety. Thank you.


Re: LATEST and RELEASE release version management

2009-04-06 Thread Graham Leggett
Hayes, Peter wrote:

 We use Maven in an enterprise environment and internally we are required
 to execute release builds whenever we want to install to our testing
 environment.  We have found that executing many release builds can be
 tedious when we have in-development snapshot dependencies that also have
 to be released.  We don't mind doing the releases, but the manual
 version update -- release -- revert version cycle is a chore.
 
 I was hoping that Maven could simplify this by allowing a project to
 declare a dependency on LATEST or 1.0-LATEST and have the maven release
 plugin resolve this to the actual latest released version available in
 the repository.  The subsequent fully resolved pom would then be
 uploaded to the internal repository and the pom left in source control
 still references LATEST.  
 
 Does maven already support something like this or would others find this
 useful?

Having a LATEST concept would be very useful for something like
continuous integration builds, where the desire is for a project to
depend on the latest version of another project (release or snapshot),
rather than a specific version of another project, so that you can see
what errors have been introduced or that should be allowed for.

Having said that, it makes no sense to have the release plugin care
about LATEST, because by definition, building against LATEST isn't
repeatable, and in order for there to be a release, you need the build
to be repeatable.

Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


RE: LATEST and RELEASE release version management

2009-04-06 Thread Hayes, Peter


rtf1uqccPrltQ.rtf
Description: RTF file


smime.p7s
Description: S/MIME cryptographic signature


RE: SCM requires that command line svn be used?

2009-04-06 Thread Nord, James
Hi Oliver,

Is there any documentation on how to configure this.

Looking at the source I have tried adding the library as dependencies to
the scm plug-in and running

mvn -Dmaven.scm.provider.svn.implementation=javasvn scm:status 

However this fails to use stored local credentials and fails with
[INFO] [scm:status]
[INFO] SVN status directory: D:\workspaces\simpleProject\
[ERROR] Provider message:
[ERROR] SVN status failed.
[ERROR] Command output:
[ERROR] svn: Authentication required for 'https://svnrepo.myco.com:443
Welcome to My CO.s Subversion Repository'

If I just run mvn scm:status it works fine - but uses svn.exe instead.

Authentication is configured in usual svn location for windows
%APPDATA%\Subversion and is in wincrypt form.

I have authentication present for multiple servers -however I tried
removing all but the one in question and it still fails.

/James

 -Original Message-
 From: oliver.l...@gmail.com [mailto:oliver.l...@gmail.com] On 
 Behalf Of Olivier Lamy
 Sent: 26 March 2009 22:15
 To: Maven Users List
 Subject: Re: SCM requires that command line svn be used?
 
 Hi,
 It's possible with the javasvn implementation. This has been 
 moved recently from the asf repository due to license issue.
 Now it's here : http://code.google.com/p/maven-scm-provider-svnjava/
 It will be released after the maven-scm release.
 
 HTH,
 --
 Olivier
 
 2009/3/26 Chris she...@yahoo.com:
  I'm trying to configure my pom to use an scm. We use Subversion. 
  When I run it, I get the error 'svn' is not recognized as 
 an internal 
  or external command, operable program or batch file.. I 
 take it this 
  means that svn.exe needs to be on the path, and the plugin 
 is shelling out to access it.
 
  This is obviously flaky and error prone. In Ant, I can use 
 SvnAnt to 
  access svn directly, using java alone.
 
  Is it possible to configure Maven to use one of the 
 svn-java libraries 
  instead of the command line client?
 
 
  
 -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 

**
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only. Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited. If you have received this message in error, please immediately 
notify the postmas...@nds.com and destroy the original message. Messages sent 
to and from NDS may be monitored. NDS cannot guarantee any message delivery 
method is secure or error-free. Information could be intercepted, corrupted, 
lost, destroyed, arrive late or incomplete, or contain viruses. We do not 
accept responsibility for any errors or omissions in this message and/or 
attachment that arise as a result of transmission. You should carry out your 
own virus checks before opening any attachment. Any views or opinions presented 
are solely those of the author and do not necessarily represent those of NDS.

To protect the environment please do not print this e-mail unless necessary.

NDS Limited Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales Registered no. 
3080780 VAT no. GB 603 8808 40-00
**

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



Re: LATEST and RELEASE release version management

2009-04-06 Thread Stephen Connolly
If you are prepared to run maven multiple times as part of your CI build you
could achieve some of what you are looking for with the
versions-maven-plugin.

step 1. use versions-maven-plugin to update the pom to the latest releases
of all dependencies
step 2. use maven-scm-plugin to commit the modified poms back to scm
step 3. use maven-release-plugin to release the ci build
(the following 2 steps are optional)
step 4. use versions-maven-plugin to update the pom to the next snapshots of
all dependencies
step 5 . use maven-scm-plugin to commit the modified poms back to scm

ok, so you're ci build will auto-generate tags... but if you root ci
generated tags in a special ci-tags directory and only do these 3/5 step
builds nightlly it should be less of an SCM churn

-Stephen

2009/4/6 Hayes, Peter peter.ha...@fmr.com

  Graham Leggett wrote:

 Having said that, it makes no sense to have the release plugin care
 about LATEST, because by definition, building against LATEST isn't
 repeatable, and in order for there to be a release, you need the build
 to be repeatable.

 I think this does impact the release plugin as it could offer the ability
 to resolve the LATEST version at release time.  These builds would be
 reproducible because the release plugin tags the poms during the release
 process.

 I think what you're saying is that the build prior to the release build is
 not guaranteed to have the same dependent artifacts as the release build.  I
 care about the release build being reproducible.

 Pete



Re: maven-compiler-plugin resources not in classpath

2009-04-06 Thread jieryn
Hello David,

Please review the maven-jar-plugin, specifically the includes
parameter to the jar goal.

http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#includes

-jesse

On Mon, Apr 6, 2009 at 9:47 AM, David Goodenough
david.goodeno...@btconnect.com wrote:
 But will that not exclude it from the jar as well?  I tried it and it seems
 to have that effect.  I want it excluded from the compilation but included
 in the jar.


-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

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



Re: Maven: The Definitive Guide in French

2009-04-06 Thread Jason van Zyl
Sure, Tim is pretty busy this week but we'll put the content somewhere  
so that folks can translate the parts of the books they want to.


We'll see if we can get something setup this week.

On 6-Apr-09, at 8:40 AM, Baptiste MATHUS wrote:


Hi Jason,

I recently sent an email about this at b...@sonatype.com (two weeks  
ago or

so).
I was asking if there was currently any work about this french  
translation
for the definitive guide. If so, I think I'd like to contribute. If  
not,
then I guess we could at least try to start it up. Just show the  
direction

:-).

Cheers.

2009/4/6 Jason van Zyl jvan...@sonatype.com

I've asked Tim to respond to you, but that would be great if you  
translated

the guide. We can set you up with all the tools that we use. We could
probably also set up a repository so that anyone who wanted to  
contribute
the translation could help. There are also Nexus and m2eclipse  
books to

translate ;-)


On 6-Apr-09, at 2:26 AM, Emmanuel Hugonnet wrote:

Hi,
I was wondering if there is a French translation or some work in  
progress,

as the French community is
expanding. If none is available I would like to volunteer to  
produce it.

Emmanuel



Thanks,

Jason

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

Simplex sigillum veri. (Simplicity is the seal of truth.)


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





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


Thanks,

Jason

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

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

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


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



RE: SCM requires that command line svn be used?

2009-04-06 Thread Nord, James
Needed to also add should this be a dependency of the javadvn
implementation instead?

dependency
groupIdcom.sun.jna/groupId
artifactIdjna/artifactId
version3.0.5/version
/dependency 
/James

 -Original Message-
 From: Nord, James [mailto:jn...@nds.com] 
 Sent: 06 April 2009 17:28
 To: Maven Users List
 Subject: RE: SCM requires that command line svn be used?
 
 Hi Oliver,
 
 Is there any documentation on how to configure this.
 
 Looking at the source I have tried adding the library as 
 dependencies to the scm plug-in and running
 
 mvn -Dmaven.scm.provider.svn.implementation=javasvn scm:status 
 
 However this fails to use stored local credentials and fails 
 with [INFO] [scm:status] [INFO] SVN status directory: 
 D:\workspaces\simpleProject\ [ERROR] Provider message:
 [ERROR] SVN status failed.
 [ERROR] Command output:
 [ERROR] svn: Authentication required for 
 'https://svnrepo.myco.com:443 Welcome to My CO.s Subversion 
 Repository'
 
 If I just run mvn scm:status it works fine - but uses svn.exe instead.
 
 Authentication is configured in usual svn location for 
 windows %APPDATA%\Subversion and is in wincrypt form.
 
 I have authentication present for multiple servers -however I 
 tried removing all but the one in question and it still fails.
 
 /James
 
  -Original Message-
  From: oliver.l...@gmail.com [mailto:oliver.l...@gmail.com] 
 On Behalf 
  Of Olivier Lamy
  Sent: 26 March 2009 22:15
  To: Maven Users List
  Subject: Re: SCM requires that command line svn be used?
  
  Hi,
  It's possible with the javasvn implementation. This has been moved 
  recently from the asf repository due to license issue.
  Now it's here : http://code.google.com/p/maven-scm-provider-svnjava/
  It will be released after the maven-scm release.
  
  HTH,
  --
  Olivier
  
  2009/3/26 Chris she...@yahoo.com:
   I'm trying to configure my pom to use an scm. We use 
 Subversion. 
   When I run it, I get the error 'svn' is not recognized as
  an internal
   or external command, operable program or batch file.. I
  take it this
   means that svn.exe needs to be on the path, and the plugin
  is shelling out to access it.
  
   This is obviously flaky and error prone. In Ant, I can use
  SvnAnt to
   access svn directly, using java alone.
  
   Is it possible to configure Maven to use one of the
  svn-java libraries
   instead of the command line client?
  
  
   
  
 -
   To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
   For additional commands, e-mail: users-h...@maven.apache.org
  
  
  
  
 -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
  
  
 
 **
 
 This e-mail is confidential, the property of NDS Ltd and 
 intended for the addressee only. Any dissemination, copying 
 or distribution of this message or any attachments by anyone 
 other than the intended recipient is strictly prohibited. If 
 you have received this message in error, please immediately 
 notify the postmas...@nds.com and destroy the original 
 message. Messages sent to and from NDS may be monitored. NDS 
 cannot guarantee any message delivery method is secure or 
 error-free. Information could be intercepted, corrupted, 
 lost, destroyed, arrive late or incomplete, or contain 
 viruses. We do not accept responsibility for any errors or 
 omissions in this message and/or attachment that arise as a 
 result of transmission. You should carry out your own virus 
 checks before opening any attachment. Any views or opinions 
 presented are solely those of the author and do not 
 necessarily represent those of NDS.
 
 To protect the environment please do not print this e-mail 
 unless necessary.
 
 NDS Limited Registered Office: One London Road, Staines, 
 Middlesex, TW18 4EX, United Kingdom. A company registered in 
 England and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00
 **
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 

**
This e-mail is confidential, the property of NDS Ltd and intended for the 
addressee only. Any dissemination, copying or distribution of this message or 
any attachments by anyone other than the intended recipient is strictly 
prohibited. If you have received this message in error, please immediately 
notify the postmas...@nds.com and destroy the original message. Messages sent 
to and from NDS may be monitored. NDS cannot 

Re: Plugin does not exist or no valid version could be found

2009-04-06 Thread Wayne Fay
 [INFO] Searching repository for plugin with prefix: 'hotdeploy'.
 [INFO] The plugin 'org.apache.maven.plugins:maven-hotdeploy-plugin' does not 
 exi
 st or no valid version could be found

The plugin groupId Maven is looking for is org.apache.maven.plugins.
The groupId of your plugin must be something different.

I bet you're doing mvn hotdeploy and hoping it will just work. Try
mvn (groupId):maven-hotdeploy-plugin:(version):hotdeploy, assuming
hotdeploy is the name of your Mojo. Also, you should not use the
artifactId maven-*-plugin since that is reserved for official Maven
plugins.

Wayne

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



Re: maven-compiler-plugin resources not in classpath

2009-04-06 Thread David Goodenough
On Monday 06 April 2009, jie...@gmail.com wrote:
 Hello David,

 Please review the maven-jar-plugin, specifically the includes
 parameter to the jar goal.

 http://maven.apache.org/plugins/maven-jar-plugin/jar-mojo.html#includes

 -jesse

 On Mon, Apr 6, 2009 at 9:47 AM, David Goodenough

 david.goodeno...@btconnect.com wrote:
  But will that not exclude it from the jar as well?  I tried it and it
  seems to have that effect.  I want it excluded from the compilation but
  included in the jar.

(newbie alert - sorry, should have flagged this before).

OK, I added:-

plugin
artifactIdmaven-jar-plugin/artifactId
configuration
includes

includetarget/classes/*/include
includeresources/*/include
/includes
/configuration
/plugin

and it only puts the META-INF/maven bits into the jar.   The classes
are under target/classes, and there is a META-INF under resources.

What should I have done?

David

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



Re: SCM requires that command line svn be used?

2009-04-06 Thread Olivier Lamy
Hi,
I have tested only with username/password in the cli : -Dusername= -Dpassword=

2009/4/6 Nord, James jn...@nds.com:
 Hi Oliver,

 Is there any documentation on how to configure this.

 Looking at the source I have tried adding the library as dependencies to
 the scm plug-in and running

 mvn -Dmaven.scm.provider.svn.implementation=javasvn scm:status

 However this fails to use stored local credentials and fails with
 [INFO] [scm:status]
 [INFO] SVN status directory: D:\workspaces\simpleProject\
 [ERROR] Provider message:
 [ERROR] SVN status failed.
 [ERROR] Command output:
 [ERROR] svn: Authentication required for 'https://svnrepo.myco.com:443
 Welcome to My CO.s Subversion Repository'

 If I just run mvn scm:status it works fine - but uses svn.exe instead.

 Authentication is configured in usual svn location for windows
 %APPDATA%\Subversion and is in wincrypt form.

 I have authentication present for multiple servers -however I tried
 removing all but the one in question and it still fails.

 /James

 -Original Message-
 From: oliver.l...@gmail.com [mailto:oliver.l...@gmail.com] On
 Behalf Of Olivier Lamy
 Sent: 26 March 2009 22:15
 To: Maven Users List
 Subject: Re: SCM requires that command line svn be used?

 Hi,
 It's possible with the javasvn implementation. This has been
 moved recently from the asf repository due to license issue.
 Now it's here : http://code.google.com/p/maven-scm-provider-svnjava/
 It will be released after the maven-scm release.

 HTH,
 --
 Olivier

 2009/3/26 Chris she...@yahoo.com:
  I'm trying to configure my pom to use an scm. We use Subversion.
  When I run it, I get the error 'svn' is not recognized as
 an internal
  or external command, operable program or batch file.. I
 take it this
  means that svn.exe needs to be on the path, and the plugin
 is shelling out to access it.
 
  This is obviously flaky and error prone. In Ant, I can use
 SvnAnt to
  access svn directly, using java alone.
 
  Is it possible to configure Maven to use one of the
 svn-java libraries
  instead of the command line client?
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
  For additional commands, e-mail: users-h...@maven.apache.org
 
 

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



 **
 This e-mail is confidential, the property of NDS Ltd and intended for the 
 addressee only. Any dissemination, copying or distribution of this message or 
 any attachments by anyone other than the intended recipient is strictly 
 prohibited. If you have received this message in error, please immediately 
 notify the postmas...@nds.com and destroy the original message. Messages sent 
 to and from NDS may be monitored. NDS cannot guarantee any message delivery 
 method is secure or error-free. Information could be intercepted, corrupted, 
 lost, destroyed, arrive late or incomplete, or contain viruses. We do not 
 accept responsibility for any errors or omissions in this message and/or 
 attachment that arise as a result of transmission. You should carry out your 
 own virus checks before opening any attachment. Any views or opinions 
 presented are solely those of the author and do not necessarily represent 
 those of NDS.

 To protect the environment please do not print this e-mail unless necessary.

 NDS Limited Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
 United Kingdom. A company registered in England and Wales Registered no. 
 3080780 VAT no. GB 603 8808 40-00
 **

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



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



Re: include current direcory path into jar classpath in manifest.mf file

2009-04-06 Thread Wayne Fay
 I am getting FileNotFoundException while reading resource  files in
 current directory .
 Can u please help me to include current directory path apart from
 library jar files path in manifest.mf file of  a jar.

Why don't you provide a few lines of code that aren't working and/or a
few lines out of your pom file so that people can help in more
concrete terms rather than speaking about things so generally?
Ultimately, what are you trying to achieve, what have you tried so
far, and what is or is not working?

Wayne

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



Re: Reporting Plugin's and OutOfMemoryException's

2009-04-06 Thread Stephen Connolly

don't use aggregate with the reporting as it messes up your build...

try setting inherited to false for the reporting plugin config... it  
might just reduce your issues


Sent from my [rhymes with myPod] ;-)

On 6 Apr 2009, at 06:51, Andrew Hughes ahhug...@gmail.com wrote:

Hi Wayne, thanks again.. as you rightfully point out I have some  
incorrect

argLine usage that I had copy/pasted from another plugin where it was
applicable.
One problem seems to be with the javadoc plugin... there's a few weird
things going on.
+ The argline was wrong and this is how it's done...
http://maven.apache.org/plugins/maven-javadoc-plugin/faq.html#How_to_increase_Javadoc_heap_size
+ Each Module is called MANY times by the plugin (over and over  
and

site:site takes about 15/20 mins to build - frustration).
+ Even with 1g of mem I still get OutOfMemoryError, indicates memory  
size is

not the problems source.

Each module site:site, seems to trigger a site:site of all OTHER  
modules
(order n^2). I suspected that this has something to do with  
aggregate but I
have tried both truefalse and it just keeps on calling the modules  
over and
over and again. I've also fixed the version to 2.5 so that  
others take a

look at the same plugin as me

This is my javadoc plugin if someone wants to take it for a quick  
spin...


project
 reporting
...
 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   version2.5/version
   configuration
 minmemory128m/minmemory
 maxmemory1g/maxmemory
 source1.6/source
 aggregatetrue/aggregate
 docletgr.spinellis.umlgraph.doclet.UmlGraphDoc/doclet
 docletArtifact
   groupIdgr.spinellis/groupId
   artifactIdUmlGraph/artifactId
   version4.6/version
 /docletArtifact
 additionalparam
   -inferrel -inferdep -quiet -hide java.*
   -collpackages java.util.* -qualify
   -postfixpackage -nodefontsize 9
   -nodefontpackagesize 7
 /additionalparam
 links
   linkhttp://java.sun.com/j2se/1.4.2/docs/api/link
   linkhttp://java.sun.com/j2ee/1.4/docs/api/link
   linkhttp://java.sun.com/j2se/1.5.0/docs/api/link
   linkhttp://java.sun.com/javase/6/docs/api/link
   linkhttp://java.sun.com/j2se/1.5.0/docs/api/link
   linkhttp://commons.apache.org/logging/apidocs//link
   linkhttp://junit.sourceforge.net/javadoc//link
   linkhttp://logging.apache.org/log4j/1.2/apidocs//link
 /links
   /configuration
 /plugin
   .

CHEERS :)


On Fri, Apr 3, 2009 at 2:54 PM, Wayne Fay wayne...@gmail.com wrote:

Checkstyle + Other reporting plugin's are not to blame here :)  
I've no

doubt

they need the extra memory. However, it's not being given to them. I
have set MAVEN_OPTS=-Xms256m -Xmx1024m -XX:MaxPermSize=256 in  
mvn.bat,
this does not fix the problem (not even on my machine). Plus I'd  
like a

more

portable solution if possible.


First off, the argLine node under m-checkstyle-p is not supported.
You can see this for yourself in the plugin docs. So I'm not  
surprised

its not being given to that plugin.

Second, MaxPermSize=256 is going to literally set MaxPermSize to 256
bytes. I doubt this is what you want. If you copied and pasted this
out of your file, then I am not surprised that it does not fix the
problem. ;-)

As for portability, I think the most pragmatic thing would be to  
solve

your problem on one machine, then worry about making it work other
places.

Wayne

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




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



Re: maven release plugin issue

2009-04-06 Thread Olivier Lamy
Hi,
First use a released version of the plugin : 2.0-beta-9.
Then two options :
- remoteTagging to false
- add a scm element in your pom.

--
Olivier

2009/4/6 huser mpinj...@atxg.com:

 Hi,

 I setup the maven release plugin as
 plugin
                                        
 groupIdorg.apache.maven.plugins/groupId
                                        
 artifactIdmaven-release-plugin/artifactId
                                        version2.0-beta-9-SNAPSHOT/version
                                        configuration
                                                
 remoteTaggingtrue/remoteTagging
                                                
 useReleaseProfilefalse/useReleaseProfile
                                                goalsdeploy/goals
                                                
 arguments-Prelease/arguments
                                        /configuration

 When I run mvn release:plugin it is not able to tag SVN.

 Provider message:
 The svn tag command failed.
 Command output:
 svn: Commit failed (details follow):
 svn: '/abc_repos/sip/tags' path not found

 This is because I am running the plugin inside a module, which exists under
 a SVN repo. The path listed above does not exist. The correct path should be
 be /abc_repos/tags. How can I run this ?

 thanks,
 --
 View this message in context: 
 http://www.nabble.com/maven-release-plugin-issue-tp22911245p22911245.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



RE: Plugin does not exist or no valid version could be found

2009-04-06 Thread Jeudy, Guillaume
Wayne,
 
You are right I use  mvn hotdeploy:exploded as recommended by the MOJO 
creator at: http://code.google.com/p/ctpjava/wiki/MavenSeamHotdeployPluginUsage 
 
I tried your approach with mvn 
(groupId):maven-hotdeploy-plugin:(version):exploded it goes further into the 
execution but it fails complaining the configuration is not being passed to the 
plugin.
 
I looked deeper in the plugin sourcecode and I see a custom lifecycle being 
used. I'm quite confused by now. How can I invoke the plugin custom lifecycle? 
Maybe that why the parameters are not being passed to the plugin ?
 
lifecycles
lifecycle
idhotdeploy/id
phases
phase
idcompile/id
executions
execution
goals
goalcompile/goal
goalexploded/goal
/goals
/execution
/executions
/phase
/phases
/lifecycle
/lifecycles
 
Guillaume



From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: Mon 4/6/2009 12:57 PM
To: Maven Users List
Subject: Re: Plugin does not exist or no valid version could be found



 [INFO] Searching repository for plugin with prefix: 'hotdeploy'.
 [INFO] The plugin 'org.apache.maven.plugins:maven-hotdeploy-plugin' does not 
 exi
 st or no valid version could be found

The plugin groupId Maven is looking for is org.apache.maven.plugins.
The groupId of your plugin must be something different.

I bet you're doing mvn hotdeploy and hoping it will just work. Try
mvn (groupId):maven-hotdeploy-plugin:(version):hotdeploy, assuming
hotdeploy is the name of your Mojo. Also, you should not use the
artifactId maven-*-plugin since that is reserved for official Maven
plugins.

Wayne

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







This electronic mail (including any attachments) may contain information that 
is privileged, confidential, and/or otherwise protected from disclosure to 
anyone other than its intended recipient(s). Any dissemination or use of this 
electronic email or its contents (including any attachments) by persons other 
than the intended recipient(s) is strictly prohibited. If you have received 
this message in error, please notify us immediately by reply email so that we 
may correct our internal records. Please then delete the original message 
(including any attachments) in its entirety. Thank you.


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

Re: maven release plugin issue

2009-04-06 Thread huser

Here is what i did:

- Changed the version to 2.0-beta-9
- Set remoteTagging to false
- scm element is listed as

The release plugin commits the POM's even if tagging fails. And tagging does
fail, because of incorrect location. Why is SVN trying to tag
/abc_repos/sip/tags instead of /abc_repos/tags ?

[INFO] Executing: svn --non-interactive copy --file
C:\DOCUME~1\huser\LOCALS~
1\Temp\maven-scm-1466134858.commit .
https://domain1.na.abcglobal.com/abc_repos
/sip/tags/REL_1.0-TEST
[INFO] Working directory: C:\ws17\sip
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: '/abc_repos/sip/tags' path not found

POM now looks like:


scm

connectionscm:svn:https://domain1.na.abcglobal.com/abc_repos/connection

developerConnectionscm:svn:https://domain1.na.abcglobal.com/abc_repos/developerConnection
urlhttps://domain1.na.abcglobal.com/abc_repos/url

/scm

  plugin
   
groupIdorg.apache.maven.plugins/group
Id
   
artifactIdmaven-release-plugin/artifactId
version2.0-beta-9/version
configuration
   
remoteTaggingfalse/remoteTagg
ing
   
useReleaseProfilefalse/useReleaseProfile
goalsdeploy/goals
   
arguments-Prelease/arguments
/configuration
/plugin



Olivier Lamy wrote:
 
 Hi,
 First use a released version of the plugin : 2.0-beta-9.
 Then two options :
 - remoteTagging to false
 - add a scm element in your pom.
 
 --
 Olivier
 
 2009/4/6 huser mpinj...@atxg.com:

 Hi,

 I setup the maven release plugin as
 plugin
                                      
  groupIdorg.apache.maven.plugins/groupId
                                      
  artifactIdmaven-release-plugin/artifactId
                                      
  version2.0-beta-9-SNAPSHOT/version
                                        configuration
                                              
  remoteTaggingtrue/remoteTagging
                                              
  useReleaseProfilefalse/useReleaseProfile
                                                goalsdeploy/goals
                                              
  arguments-Prelease/arguments
                                        /configuration

 When I run mvn release:plugin it is not able to tag SVN.

 Provider message:
 The svn tag command failed.
 Command output:
 svn: Commit failed (details follow):
 svn: '/abc_repos/sip/tags' path not found

 This is because I am running the plugin inside a module, which exists
 under
 a SVN repo. The path listed above does not exist. The correct path should
 be
 be /abc_repos/tags. How can I run this ?

 thanks,
 --
 View this message in context:
 http://www.nabble.com/maven-release-plugin-issue-tp22911245p22911245.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/maven-release-plugin-issue-tp22911245p22914943.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven release plugin issue

2009-04-06 Thread Olivier Lamy
Have a look at :
http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagBase

HTH,
--
Olivier

2009/4/6 huser mpinj...@atxg.com:

 Here is what i did:

 - Changed the version to 2.0-beta-9
 - Set remoteTagging to false
 - scm element is listed as

 The release plugin commits the POM's even if tagging fails. And tagging does
 fail, because of incorrect location. Why is SVN trying to tag
 /abc_repos/sip/tags instead of /abc_repos/tags ?

 [INFO] Executing: svn --non-interactive copy --file
 C:\DOCUME~1\huser\LOCALS~
 1\Temp\maven-scm-1466134858.commit .
 https://domain1.na.abcglobal.com/abc_repos
 /sip/tags/REL_1.0-TEST
 [INFO] Working directory: C:\ws17\sip
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Unable to tag SCM
 Provider message:
 The svn tag command failed.
 Command output:
 svn: Commit failed (details follow):
 svn: '/abc_repos/sip/tags' path not found

 POM now looks like:


        scm

 connectionscm:svn:https://domain1.na.abcglobal.com/abc_repos/connection

 developerConnectionscm:svn:https://domain1.na.abcglobal.com/abc_repos/developerConnection
                urlhttps://domain1.na.abcglobal.com/abc_repos/url

 /scm

                              plugin

 groupIdorg.apache.maven.plugins/group
 Id

 artifactIdmaven-release-plugin/artifactId
                                        version2.0-beta-9/version
                                        configuration

 remoteTaggingfalse/remoteTagg
 ing

 useReleaseProfilefalse/useReleaseProfile
                                                goalsdeploy/goals

 arguments-Prelease/arguments
                                        /configuration
                                /plugin



 Olivier Lamy wrote:

 Hi,
 First use a released version of the plugin : 2.0-beta-9.
 Then two options :
 - remoteTagging to false
 - add a scm element in your pom.

 --
 Olivier

 2009/4/6 huser mpinj...@atxg.com:

 Hi,

 I setup the maven release plugin as
 plugin

  groupIdorg.apache.maven.plugins/groupId

  artifactIdmaven-release-plugin/artifactId

  version2.0-beta-9-SNAPSHOT/version
                                        configuration

  remoteTaggingtrue/remoteTagging

  useReleaseProfilefalse/useReleaseProfile
                                                goalsdeploy/goals

  arguments-Prelease/arguments
                                        /configuration

 When I run mvn release:plugin it is not able to tag SVN.

 Provider message:
 The svn tag command failed.
 Command output:
 svn: Commit failed (details follow):
 svn: '/abc_repos/sip/tags' path not found

 This is because I am running the plugin inside a module, which exists
 under
 a SVN repo. The path listed above does not exist. The correct path should
 be
 be /abc_repos/tags. How can I run this ?

 thanks,
 --
 View this message in context:
 http://www.nabble.com/maven-release-plugin-issue-tp22911245p22911245.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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




 --
 View this message in context: 
 http://www.nabble.com/maven-release-plugin-issue-tp22911245p22914943.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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



Re: Plugin does not exist or no valid version could be found

2009-04-06 Thread Wayne Fay
 You are right I use  mvn hotdeploy:exploded as recommended by the MOJO 
 creator at: 
 http://code.google.com/p/ctpjava/wiki/MavenSeamHotdeployPluginUsage

 I tried your approach with mvn 
 (groupId):maven-hotdeploy-plugin:(version):exploded it goes further into the 
 execution but it fails complaining the configuration is not being passed to 
 the plugin.

I suggest you contact the original author (or the Users/Dev list
equivalent) of this plugin for additional assistance. I've never seen
this plugin in my life and don't have any ability to provide specific
help with it.

Wayne

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



weird behavior using maven-eclipse-plugin 2.6

2009-04-06 Thread Ali Nakoulima
Hi all,

I have a maven EAR application within RAD in which I used the
Maven-eclipse-plugin version 2.5.1 to integrate with the IDE and run on WAS
6.1 .
I recently upgraded the plugin from 2.5.1 to 2.6 and after issuing an
eclipse:eclipse command on the project, the project's facets disappear,
some errors are generated stating the following:
*
Project facet EAR 1.4 is not supported by target runtime WebSphere
Application Server v5.1 Express stub.
Project facet WebSphere Web (Co-existence) 6.1 is not supported by target
runtime WebSphere Application Server v5.1 Express stub.
Project facet WebSphere Web (Extended) 6.1 is not supported by target
runtime WebSphere Application Server v5.1 Express stub.

*Please* *see  below the output of the before and after execution of the
eclipse-eclipse command on the newer version 2.6 followed by the trial with
the older version 2.5.1

* *The execution of the eclipse:eclipse command produces this output in
the console:

Working Directory: C:\WS\DEMO\app-ear
 mvn eclipse:eclipse -DdownloadSources=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]

[INFO] Building version2.5.1/version-ear
[INFO]task-segment: [eclipse:eclipse]
[INFO]

[INFO] Preparing eclipse:eclipse
[INFO] [ear:generate-application-xml]
[INFO] Generating application.xml
[INFO] [eclipse:eclipse]
[INFO] Adding support for WTP version 1.5.
[INFO] Using Eclipse Workspace: C:\WS\DEMO
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\jdk
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\runtimes\base_v51_stub\java\jre
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\runtimes\base_v51_stub\java\jre
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\runtimes\base_v6_stub\java\jre
[WARNING] Workspace defines a VM that does not contain a valid
jre/lib/rt.jar: C:\IBM\SDP70\runtimes\base_v61\java\jre
[INFO] no substring wtp server match.
[INFO] Using as WTP server : WebSphere Application Server v5.1 Express stub
[INFO] Adding default classpath container:
org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Not writing settings - defaults suffice
[INFO] File C:\WS\DEMO\app-ear\.project already exists.
   Additional settings will be preserved, run mvn eclipse:clean if you
want old settings to be removed.
[INFO] Wrote Eclipse project for app-ear to C:\WS\DEMO\app-ear.
[INFO]
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Apr 06 15:15:46 CDT 2009
[INFO] Final Memory: 10M/19M
[INFO]



When running the command with the 2.5.1. specified, here is the output:

Working Directory: C:\WS\DEMO\app-ear
 mvn eclipse:eclipse -DdownloadSources=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]

[INFO] Building app-ear
[INFO]task-segment: [eclipse:eclipse]
[INFO]

[INFO] Preparing eclipse:eclipse
[INFO] [ear:generate-application-xml]
[INFO] Generating application.xml
[INFO] [eclipse:eclipse]
[INFO] Adding support for WTP version 1.5.
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner:
org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Using source status cache:
C:\WS\DEMO\app-ear\target\mvn-eclipse-cache.properties
[INFO] Not writing settings - defaults suffice
[INFO] File C:\WS\DEMO\app-ear\.project already exists.
   Additional settings will be preserved, run mvn eclipse:clean if you
want old settings to be removed.
[INFO] Wrote Eclipse project for app-ear to C:\WS\DEMO\app-ear.
[INFO]
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Apr 06 15:16:23 CDT 2009
[INFO] Final Memory: 8M/16M
[INFO]



Is this is a known issue or am I doing something wrong ? This is what I have
to in my pom to fix the issue:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.5.1/version!-- REMOVING THIS breaks
eclipse --
configuration
 wtpversion1.5/wtpversion
 /configuration
 /plugin


Thanks much


A maven-war-plugin question

2009-04-06 Thread Alexander Semenov
Hi all.

How can I add a 'jar' module as a dependency to a 'war' module so:
 * 'jar' module is included in the WEB-INF/lib
 * but 'war' module sources should not see 'jar' module classes (e.g.
autocompletion feature in an IDE doesn't work)?

Thank you for your time.
-- 
Alexander Semenov bohtva...@gmail.com


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



Re: A maven-war-plugin question

2009-04-06 Thread Alexander Semenov
Sorry, I meant 'runtime' of course.

On Mon, 2009-04-06 at 23:50 +0300, Alexander Semenov wrote:
 Oh, it looks like adding scopeimport/scope to the dependency is what
 I need.
 
 On Mon, 2009-04-06 at 23:38 +0300, Alexander Semenov wrote:
  Hi all.
  
  How can I add a 'jar' module as a dependency to a 'war' module so:
   * 'jar' module is included in the WEB-INF/lib
   * but 'war' module sources should not see 'jar' module classes (e.g.
  autocompletion feature in an IDE doesn't work)?
  
  Thank you for your time.
-- 
Alexander Semenov bohtva...@gmail.com


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



Re: maven release plugin issue

2009-04-06 Thread huser

I am using tagBase and still the same result

[INFO] Tagging release with the label REL1.0-TEST...
[INFO] Executing: svn --non-interactive copy --file
C:\DOCUME~1\huser\LOCALS~
1\Temp\maven-scm-1923501528.commit .
https://domain1.na.abcglobal.com/abc_repos
/sip/tags/REL1.0-TEST
[INFO] Working directory: C:\ws17\sip
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to tag SCM
Provider message:
The svn tag command failed.
Command output:
svn: Commit failed (details follow):
svn: '/abc_repos/sip/tags' path not found

The tagging needs to be done under /abc_repos/projectA/tags. sip is a
module under projectA, which is where I am running the maven release plugin
from.


POM.xml

plugin

groupIdorg.apache.maven.plugins/groupId

artifactIdmaven-release-plugin/artifactId
version2.0-beta-9/version
configuration

tagBasehttps://domain1.na.abcglobal.com/abc_repos/projectA/tags/tagBase 

remoteTaggingfalse/remoteTagging

useReleaseProfilefalse/useReleaseProfile
goalsdeploy/goals
arguments-Prelease/arguments
/configuration
/plugin



Olivier Lamy wrote:
 
 Have a look at :
 http://maven.apache.org/plugins/maven-release-plugin/prepare-mojo.html#tagBase
 
 HTH,
 --
 Olivier
 
 2009/4/6 huser mpinj...@atxg.com:

 Here is what i did:

 - Changed the version to 2.0-beta-9
 - Set remoteTagging to false
 - scm element is listed as

 The release plugin commits the POM's even if tagging fails. And tagging
 does
 fail, because of incorrect location. Why is SVN trying to tag
 /abc_repos/sip/tags instead of /abc_repos/tags ?

 [INFO] Executing: svn --non-interactive copy --file
 C:\DOCUME~1\huser\LOCALS~
 1\Temp\maven-scm-1466134858.commit .
 https://domain1.na.abcglobal.com/abc_repos
 /sip/tags/REL_1.0-TEST
 [INFO] Working directory: C:\ws17\sip
 [INFO]
 
 [ERROR] BUILD FAILURE
 [INFO]
 
 [INFO] Unable to tag SCM
 Provider message:
 The svn tag command failed.
 Command output:
 svn: Commit failed (details follow):
 svn: '/abc_repos/sip/tags' path not found

 POM now looks like:


        scm

 connectionscm:svn:https://domain1.na.abcglobal.com/abc_repos/connection

 developerConnectionscm:svn:https://domain1.na.abcglobal.com/abc_repos/developerConnection
                urlhttps://domain1.na.abcglobal.com/abc_repos/url

 /scm

                              plugin

 groupIdorg.apache.maven.plugins/group
 Id

 artifactIdmaven-release-plugin/artifactId
                                        version2.0-beta-9/version
                                        configuration

 remoteTaggingfalse/remoteTagg
 ing

 useReleaseProfilefalse/useReleaseProfile
                                                goalsdeploy/goals

 arguments-Prelease/arguments
                                        /configuration
                                /plugin



 Olivier Lamy wrote:

 Hi,
 First use a released version of the plugin : 2.0-beta-9.
 Then two options :
 - remoteTagging to false
 - add a scm element in your pom.

 --
 Olivier

 2009/4/6 huser mpinj...@atxg.com:

 Hi,

 I setup the maven release plugin as
 plugin

  groupIdorg.apache.maven.plugins/groupId

  artifactIdmaven-release-plugin/artifactId

  version2.0-beta-9-SNAPSHOT/version
                                        configuration

  remoteTaggingtrue/remoteTagging

  useReleaseProfilefalse/useReleaseProfile
                                                goalsdeploy/goals

  arguments-Prelease/arguments
                                        /configuration

 When I run mvn release:plugin it is not able to tag SVN.

 Provider message:
 The svn tag command failed.
 Command output:
 svn: Commit failed (details follow):
 svn: '/abc_repos/sip/tags' path not found

 This is because I am running the plugin inside a module, which exists
 under
 a SVN repo. The path listed above does not exist. The correct path
 should
 be
 be /abc_repos/tags. How can I run this ?

 thanks,
 --
 View this message in context:
 http://www.nabble.com/maven-release-plugin-issue-tp22911245p22911245.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



 

archetype-metadata optional filesets?

2009-04-06 Thread Lachlan Deck

Hi there,

Just a quick question: say I've got a fileset in the archetype  
descriptor like so:


?xml version=1.0 encoding=UTF-8?
archetype-descriptor name=woapplication-archetype
requiredProperties
...
/requiredProperties
fileSets
fileSet filtered=true packaged=true encoding=UTF-8
directorysrc/main/java/directory
includes
include**/*.java/include
/includes
/fileSet
...
/fileSets
/archetype-descriptor

Is it possible to define either an include/exlude or an optional  
fileset that's driven by the properties?
Otherwise, how do other people optionally include/exclude files during  
arhcetype:generate?


Thanks.

with regards,
--

Lachlan Deck


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



RE: LATEST and RELEASE release version management

2009-04-06 Thread Brian E. Fox
Having the release plugin translate these values at release time
_before_ the validation build and tag is the only sane way to use them.
I currently have never use them because they aren't repeatable.

 

From: Hayes, Peter [mailto:peter.ha...@fmr.com] 
Sent: Monday, April 06, 2009 12:12 PM
To: Maven Users List
Subject: RE: LATEST and RELEASE release version management

 

Graham Leggett wrote:

Having said that, it makes no sense to have the release plugin care
about LATEST, because by definition, building against LATEST isn't
repeatable, and in order for there to be a release, you need the build
to be repeatable.

I think this does impact the release plugin as it could offer the
ability to resolve the LATEST version at release time.  These builds
would be reproducible because the release plugin tags the poms during
the release process. 

I think what you're saying is that the build prior to the release build
is not guaranteed to have the same dependent artifacts as the release
build.  I care about the release build being reproducible.

Pete



Re: A maven-war-plugin question

2009-04-06 Thread Alexander Semenov
Oh, it looks like adding scopeimport/scope to the dependency is what
I need.

On Mon, 2009-04-06 at 23:38 +0300, Alexander Semenov wrote:
 Hi all.
 
 How can I add a 'jar' module as a dependency to a 'war' module so:
  * 'jar' module is included in the WEB-INF/lib
  * but 'war' module sources should not see 'jar' module classes (e.g.
 autocompletion feature in an IDE doesn't work)?
 
 Thank you for your time.
-- 
Kind regards, 

Alexander Semenov

Java Developer

AT Software

phone: +375-212-359063

cell: +375-29-2959257
e-mail: aseme...@at-software.com
skype: artezio_asemenov_1

AT Software is the result of merge of Artezio and Lanit-Tercom
companies.


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



[ANN] IDLJ Maven Plugin 1.1 Released

2009-04-06 Thread Arnaud HERITIER
  The Mojo team is pleased to announce the release of the IDLJ Maven
Plugin, version 1.1
  This plugin will process all corba *.idl files in the
sourceDirectory into a common generated sources output directory. This
will occur during the generate-sources phase and the sources directory
will be added to the project for the compile phase. The plugin
supports also to generate test sources from idl files.
http://mojo.codehaus.org/idlj-maven-plugin/

  You could run 'mvn -up' to get the latest version of this plugin, or
specify the version in your project's plugin configuration:


project
  ...
  build
!-- To define the plugin version in your parent POM --
pluginManagement
  plugins
plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdidlj-maven-plugin/artifactId
  version1.1/version
/plugin
...
  /plugins
/pluginManagement
!-- To use the plugin goals in your POM or parent POM --
plugins
  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdidlj-maven-plugin/artifactId
version1.1/version
  /plugin
  ...
/plugins
  /build
  ...
/project

This new version only fixes new issues and doesn't add new features but we
prefered to bump the minor version because we changed many lines of code.

Issues fixed are :

* [MIDLJ-1] - IBM JVM not recognised
* [MIDLJ-6] - Plugin doesn't fail if parsing of IDL fails
* [MIDLJ-7] - IDLs in sub-directories are always recompiled
* [MIDLJ-8] - Generated java files not found by java compiler
* [MIDLJ-9] - IDLJ fails on unix with absolute path if you don't
have the right to write in a parent directory. Replace absolute paths
in the command line by relative paths


Enjoy,

-The Mojo team


-- 
Arnaud