composite build w/maven continuum

2005-12-05 Thread Edwin Park
Hi,

This is partly a maven question and partly a continuum one.

I have a multi-project build where one of the components is made up of
several different projects. This is represented in maven2 as a parent
project and several child projects. However, when I distribute this
component I would like to be able to combine all of the subcomponents into a
single jar file. I'm wondering what the best way is to do this?

Continuum introduces a further restriction in that if I can't use relative
paths to refer to subprojects, as continuum flattens everything out into
numbered directories in its working directories.

Worse comes to worse I think I can create a custom maven2 plugin to do what
I need, but I was wondering if there is already some support for this
scenario that I can take advantage of more directly.

Thanks,
Edwin


Re: composite build w/maven continuum

2005-12-05 Thread dan tran
Edwin, how about introduce another project which will uses
maven-assembly-plugin to combine
those components into one single jar, send use a custom plugin to deploy the
big jar.
( I can send you the mojo, which i call deployable-assembly-maven-plugin).
However, there is the problem, the big jar also drags along all its
dependencies in the pom.xml.

maven user, is there a way remove all dependencies  in the pom file at the
deploy/install time?

-D


On 12/5/05, Edwin Park [EMAIL PROTECTED] wrote:

 Hi,

 This is partly a maven question and partly a continuum one.

 I have a multi-project build where one of the components is made up of
 several different projects. This is represented in maven2 as a parent
 project and several child projects. However, when I distribute this
 component I would like to be able to combine all of the subcomponents into
 a
 single jar file. I'm wondering what the best way is to do this?

 Continuum introduces a further restriction in that if I can't use relative
 paths to refer to subprojects, as continuum flattens everything out into
 numbered directories in its working directories.

 Worse comes to worse I think I can create a custom maven2 plugin to do
 what
 I need, but I was wondering if there is already some support for this
 scenario that I can take advantage of more directly.

 Thanks,
 Edwin




Re: Convert eclipse projects into maven?

2005-12-05 Thread Anuerin Diaz
On 12/5/05, li pan [EMAIL PROTECTED] wrote:
 That is, I have to do it manually?

most probably yes. like i said it is going to be a paradigm shift so
you will need to invest some effort. it is the same like migrating
from a make system to an Ant system.

ciao!


 BTW, what does ciao! in your post mean ;) I can't found it in my
 dictionary.


 2005/12/5, Anuerin Diaz [EMAIL PROTECTED]:
 
  On 12/5/05, li pan [EMAIL PROTECTED] wrote:
   Hi, I am tring to convert my eclipse projects into maven
  projects.  These
   projects depend on many opensource jars, and use heavily ant scripts.
   Is it possiable? Thanks.
  
  
 
  short answer, yes. is it going to be easy? the answer is maybe.
 
  our project was heavily dependent on Ant scripting. the move to Maven
  was pretty much a paradigm shift for us but something that we were
  able to accomplish. there are still open issues but we worked around
  them or filed JIRA issues that are currently being resolved. you can
  call Ant scripts in Maven but you should evaluate which parts can be
  delegated to plugins or what could be done using your own plugins. if
  there are critical sections that you cant transform to Maven then use
  the antrun plugin.
 
  as for the open source libraries, you can probably get them in the
  official repositories or add them manually to yours. see the links
  below for more information:
 
 
  http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
  http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
  http://maven.apache.org/guides/mini/guide-ide-eclipse.html
  http://maven.apache.org/guides/index.html
  http://docs.codehaus.org/display/MAVENUSER/Home
 
  ciao!
 
  --
 
  Programming, an artform that fights back
 
  Anuerin G. Diaz
  Registered Linux User #246176
  Friendly Linux Board @ http://mandrivausers.org/index.php
  http://capsule.ramfree17.org , when you absolutely have nothing else
  better to do
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




--

Programming, an artform that fights back

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do

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



Re: Preventing some tests from compiling

2005-12-05 Thread Nik Gonzalez

Hi Benedict,

 plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
   testExcludes
   testExclude 
implementation=java.lang.String**/App*.java/testExclude

   /testExcludes
   /configuration
/plugin
/plugins

Thanks,
-Nik
Benedict Heal wrote:




How do I prevent some of my tests from compiling? (there's a temporary 
problem with a .jar).


Restricting the compiler seems to affect only the application source:
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId

Restricting surefire seems to affect just which compiled tests get run
plugin
   artifactIdmaven-surefire-plugin/artifactId

Presumably I need to restrict the compiler:testCompile in some way?

Many thanks,
Benedict
   
-

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




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



Re: [M2] maven svn

2005-12-05 Thread Emmanuel Venisse



Volker Hartmann a écrit :

Hi,

I've problems using the release plugin.

I'm not very familar with svn so I'm not sure how to create the 
repository and how to

declare it in pom.xml.
I tried to find a complete HowTo but without any success!?

I always got the following error:
*svn*: Cannot *copy path* '.' into its own *child* '..\*tags*\test-*tag*-1'
svn version: 1.1.3


You must define the tagBase directory like this :

mvn -DtagBase=file:///[pathToSVNRepos]/tags/ release:prepare



What I've done:
svnadmin create  [pathToSVNRepos]/myFirstProject

Maven has the following structure.

FirstProject
   pom.xml
   src/
   target/

Inside the pom.xml I declared the scm as follows:
  scm
   
developerConnectionscm:svn:file:///[pathToSVNRepos]/myFirstProject/developerConnection 


 /scm

How has the file structure to look like?
Do I have to create the tags and branches directory
locally or only in the svn repos?


in the svn repo.

Generally, in a svn repo, you have this structure :
SVNRepo
  branches
branch_name
  your branched code
  tags
  trunk
your source code



What's the command for importing data to svn.


http://svnbook.red-bean.com/



svn import  [which path] file:///[pathToSVNRepos]/myFirstProject ?


http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-5-sect-6.2



It shouldn't be that complicated.

Any help appreciated.

Regards,
 Volker





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







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



Re: [m2] Executing the assembly plugin with different configurations

2005-12-05 Thread Yossi Shaul

I run the command mvn deploy (for some reason mvn
install doesn#8217;t activate the plugin, compile and
package cause it to run infinitely).

When I put the configuration node directly under the
plugin node it doesn#8217;t complain but then the
plugin executes only once.

Did you try running it with different configurations?
Can you send me what you tried?

Thanks,
Yossi 


--- Nik Gonzalez [EMAIL PROTECTED] wrote:

 Hi Yossi,
 
 I tried this before and it worked.  You're pom seems
 to be correct.
 
 What mvn command did you run? This will only work if
 you executed mvn 
 install or deploy.
 
 Thanks.
 -Nik
 
 Allan Ramirez wrote:
 
  Hi Yossi,
 
  I tried something like this before and it worked
 for me. :)
 
  regards,
  -allan
 
  Yossi Shaul wrote:
 
  Is it possible to execute the assembly plugin
 multiple
  times with different configurations during
 install
  phase?
 
  For example, I want to assemble bin and source
  archives (with specific files) during the install
  phase. I tried the following:
 
   plugin
 artifactIdmaven-assembly-plugin/artifactId
   executions
 execution
   idasm1/id
   phaseinstall/phase
   goals
 goalassembly/goal
   /goals
   configuration
   
 descriptorsrc/main/assembly/src.xml/descriptor
 finalNameasm-bin/finalName
   
 outputDirectorytarget/src/outputDirectory
   
 workDirectorytarget/temp-src/workDirectory
   /configuration
 /execution
 execution
   idasm2/id
   phaseinstall/phase
   goals
 goalassembly/goal
   /goals
   configuration
   
 descriptorsrc/main/assembly/bin.xml/descriptor
 finalNameasm-bin/finalName
   
 outputDirectorytarget/bin/outputDirectory
   
 workDirectorytarget/temp-bin/workDirectory
   /configuration
 /execution
   /executions
 /plugin
 
 
  But I#8217;m getting an error message saying
  #8220;You must specify descriptor or
  descriptorId#8221;
 
  Thanks,
  Yossi
 
 
 
 
 
  __ Start your day
 with Yahoo! - Make 
  it your home page! http://www.yahoo.com/r/hs
 
 

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


 

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

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




__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


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



[m2] Adding .properties files to the wars that i build

2005-12-05 Thread [EMAIL PROTECTED]
Hi I am trying to add *.properties files that reside in the java package
structure of my project to the war's that I build.

ex.
java spring controller classes   =
com/fundamo/accountUser/web/controller
resources (properties files) = com/fundamo/accountUser/web/resources

I tried the following inside my pom.xml but to no avail.
...
build
resources
resource
directorysrc/main/java/com/fundamo/accountUser/web/resourc
es/directory
targetPathcom/fundamo/accountUser/web/resources/targetPat
h
includes
include*.properties/include
/includes
/resource
/resources
/build
...

Can one of you guys help me in the right direction please?
Koos



mail2web - Check your email from the web at
http://mail2web.com/ .



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



Re: surefire forking

2005-12-05 Thread Jérôme BERNARD
I did using forkMode=once.

On a windows box, it fails because the command-line is too long (there are
too many dependencies..).
On a UNIX box, I do have a different error:
Embedded error: Error while executing forked tests.
-classpath: not found

Regards,
Jérôme.

2005/12/4, Jason van Zyl [EMAIL PROTECTED]:

 Hi,

 If anyone wants to try the new code for surefire forking a snapshot
 plugin is available. Please refer to this guide to get yourself going:


 http://maven.apache.org/guides/development/guide-testing-development-plugins.html

 --

 jvz.

 Jason van Zyl
 jason at maven.org
 http://maven.apache.org

 We all have problems. How we deal with them is a measure of our worth.

   -- Unknown

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




[m2] Deplyoment into different repository ?

2005-12-05 Thread Christian Schulte

Hi,

I want to deploy some aritfacts into our internal development 
repository. Currently I have to edit every POM to point the 
distributionMnagement-Section to the correct repository. Is it possible 
to deploy without changing the pom ? E.g. I need to provide current 
snapshots of maven 2 and some other things I am currently building 
myself to our developers via our internal repository. What is the best 
practice to get this done ?


--
Christian


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



Re: [m2] Avoiding duplicate jar files in a generated ear file ?

2005-12-05 Thread Christian Schulte

Christian Schulte schrieb:


Hi,

when I build an ear file with maven 2 it happens that because of 
transitive dependencies I get e.g. two struts.jar files in the 
generated file. What is the recommended way of managing transitive 
dependencies ? Say I have a dependency which itself has a dependency 
to struts-1.2.7.jar and another dependency which itself has a 
dependency to struts-1.2.8.jar I would like to avoid having both 
struts versions in the generated ear file. What is the recommended way 
of doing this ?



Really noone any hint or best-practice advice ?

--
Christian


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



Re: M2 Kodo Plugin

2005-12-05 Thread stéphane bouchet

Hi, I actually manage this plugin , and it is hosted on sourceforge.

I am not currently working with M2, so feel free to take the m1 code and modify 
it to do a M2 plugin !



Stéphane

Brian E. Fox a écrit :

Anyone have an M2 Kodo plugin? We currently use Ant to do it, but I was
thinking about making a plugin. Didn't want to reinvent the wheel...




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



[m2] howto turn arbitrary files into artifacts and reuse them in other projects

2005-12-05 Thread John Allen

Hi,

Anyone know how I might access arbitrary files maintained by one project in 
another project without having the 'source' project available? Are there any 
ways of providing this kind of arbitrary file/artifact packaging, 
distribution and unpacking functionality? Note the files i wish to access 
would be for use both by the project code (i.e. java.properties files), by 
maven itself (say a custom site maven.vm template) and other build phases 
(e.g. LICENSE.txt files used in assembly).


Example:

projectA - A simple POM project that currently provides default maven 
settings fro entire build system. I would like this project to also be able 
to provide a number of default 'build' files (e.g. site maven.vm, checkstyle 
config file) for other projects can use but want them to be retreived via 
the repository and not from the file system directly (i.e. developer does 
not need projectA checkedout to access these files)


projectB - A simple java project that is a child of projectA. I would like 
projectB to be able to use files maintained by projectA in its build 
process.


Maybe using an archetype is the way to go? At the beginning of a build of 
projectB an archetype is pulled down and unpacked over the top of the 
project?


What would you reommend?

Thanks,
John


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



[m2] Downloading source-code jar files ?

2005-12-05 Thread Christian Schulte

Hi,

how do I make maven fetch e.g. junit-3.8.1-sources.jar so that this file 
gets copied into the local repository ? I tried putting a dependency to 
it in the root pom like this


 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
 typesources.jar/type
 scopeprovided/scope
   /dependency
 /dependencies

but it seems to be incorrect.

--
Christian


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



RE: [m2] Avoiding duplicate jar files in a generated ear file ?

2005-12-05 Thread Jörg Schaible
Christian Schulte wrote on Monday, December 05, 2005 12:13 PM:

 Christian Schulte schrieb:
 
 Hi,
 
 when I build an ear file with maven 2 it happens that because of
 transitive dependencies I get e.g. two struts.jar files in the
 generated file. What is the recommended way of managing transitive
 dependencies ? Say I have a dependency which itself has a dependency
 to struts-1.2.7.jar and another dependency which itself has a
 dependency to struts-1.2.8.jar I would like to avoid having both
 struts versions in the generated ear file. What is the recommended
 way of doing this ? 
 
 Really noone any hint or best-practice advice ?

Use a dependencyManagement section, where you define the version to use and do 
define your dependencies without a version requirement. Note, that there's an 
open JIRA issue, since currently the version is only considered, if you have 
added the artifact as direct dependency. It should/will work for transient 
dependencies in future versions.

- Jörg

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



Re: Preventing some tests from compiling

2005-12-05 Thread Benedict Heal

Brilliant. Thanks so much.
Should I have been able to find this in any documentation?
Benedict

Nik Gonzalez wrote:


Hi Benedict,

 plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
   testExcludes
   testExclude 
implementation=java.lang.String**/App*.java/testExclude

   /testExcludes
   /configuration
/plugin
/plugins

Thanks,
-Nik
Benedict Heal wrote:




How do I prevent some of my tests from compiling? (there's a 
temporary problem with a .jar).


Restricting the compiler seems to affect only the application source:
  plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId

Restricting surefire seems to affect just which compiled tests get run
plugin
   artifactIdmaven-surefire-plugin/artifactId

Presumably I need to restrict the compiler:testCompile in some way?

Many thanks,
Benedict
   
-

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




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







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



New Member - Perhaps an old problem

2005-12-05 Thread Jonathan Brazil

Hello All,

I'm a new member of the list and as such I may be presenting a  
solution to an old problem - please forgive me if so. However, after  
a lot of searching I could not find a solution to my problem and such  
thought it might be interesting to publish my solution.


The problem arose with respect to forking a Maven process from an Ant  
build script running under CruiseControl on a Win32 platform with  
Maven-1.0.2 installed. I could not get my overall build to fail.  
Ordinarilly this would be a good problem :-). The issue was that  
individual projects were failing but the overall build status was  
reporting a success. I discovered that this was because no errorlevel  
codes were being returned from the maven batch file that was shipped  
with the 1.0.2 distribution.


The solution is to edit the maven.bat file and include the following  
line at the very end of the batch file.


exit errorlevel

This causes an explicit return of the exit reason for the process and  
will report back correctly to the forking process (i.e. Ant).  
Otherwise the default exit code for all windows batch files is 0 and  
this does not report any errors with the build. So strangely enough  
now that my builds are failing, I'm happy. ;-) Just thought that I'd  
share this solution in case anyone else has the same problem.


Best Regards,

Jonathan

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



RE: M2 Kodo Plugin

2005-12-05 Thread Brian E. Fox
I took at quick look the other day. Isn't most of the M1 plugin in Jelly? I was 
thinking of looking at the ant plugin to get some java code. 

-Original Message-
From: stéphane bouchet [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 6:15 AM
To: Maven Users List
Subject: Re: M2 Kodo Plugin

Hi, I actually manage this plugin , and it is hosted on sourceforge.

I am not currently working with M2, so feel free to take the m1 code and modify 
it to do a M2 plugin !


Stéphane

Brian E. Fox a écrit :
 Anyone have an M2 Kodo plugin? We currently use Ant to do it, but I was
 thinking about making a plugin. Didn't want to reinvent the wheel...
 


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




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



RE: [m2] howto turn arbitrary files into artifacts and reuse them in other projects

2005-12-05 Thread Brian E. Fox
I have a plugin that can do the copying or exploding. Assuming you can
build and deploy, this might complete the cycle. 

-Original Message-
From: John Allen [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 6:26 AM
To: users@maven.apache.org
Subject: [m2] howto turn arbitrary files into artifacts and reuse them
in other projects

Hi,

Anyone know how I might access arbitrary files maintained by one project
in another project without having the 'source' project available? Are
there any ways of providing this kind of arbitrary file/artifact
packaging, distribution and unpacking functionality? Note the files i
wish to access would be for use both by the project code (i.e.
java.properties files), by maven itself (say a custom site maven.vm
template) and other build phases (e.g. LICENSE.txt files used in
assembly).

Example:

projectA - A simple POM project that currently provides default maven
settings fro entire build system. I would like this project to also be
able to provide a number of default 'build' files (e.g. site maven.vm,
checkstyle config file) for other projects can use but want them to be
retreived via the repository and not from the file system directly (i.e.
developer does not need projectA checkedout to access these files)

projectB - A simple java project that is a child of projectA. I would
like projectB to be able to use files maintained by projectA in its
build process.

Maybe using an archetype is the way to go? At the beginning of a build
of projectB an archetype is pulled down and unpacked over the top of the
project?

What would you reommend?

Thanks,
John


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




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



Re: [m2] Adding .properties files to the wars that i build

2005-12-05 Thread Doug Douglass

Koos,

First, two things:

  1) You say you're trying to add the resources, but never describe 
what the problem is. I presume that the resources you defined are not 
being copied to your webapp/war.


  2) It is a suggested Maven practice to place resources to be bundled 
in your artifact (war file) in src/main/resources. You can create any 
directory/package structure in src/main/resources you wish.



I believe your problem is your includes pattern. Try **/*.properties.

If you are able to move your resources into src/main/resources, as is 
recommended, then you should declare the following in your POM:


resources
   resource
  directory{$basedir}/src/main/resources/directory
   /resource
/resources

HTH,
Doug

[EMAIL PROTECTED] wrote:

Hi I am trying to add *.properties files that reside in the java package
structure of my project to the war's that I build.

ex.
java spring controller classes   =
com/fundamo/accountUser/web/controller
resources (properties files) = com/fundamo/accountUser/web/resources

I tried the following inside my pom.xml but to no avail.
...
build
resources
resource

directorysrc/main/java/com/fundamo/accountUser/web/resourc
es/directory
targetPathcom/fundamo/accountUser/web/resources/targetPat
h
includes
include*.properties/include
/includes
/resource
/resources

/build
...

Can one of you guys help me in the right direction please?
Koos




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



Re: M2 Kodo Plugin

2005-12-05 Thread stéphane bouchet
Yes, the m1 plugin is only written in jelly.But I am not a devlopper of Kodo, so 
i cannot have access to the source code of the ant task... I only use the java 
code to enhance and create the schema.


Look at the solarmatric's docs .

Stéphane

Brian E. Fox a écrit :
I took at quick look the other day. Isn't most of the M1 plugin in Jelly? I was thinking of looking at the ant plugin to get some java code. 


-Original Message-
From: stéphane bouchet [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 6:15 AM

To: Maven Users List
Subject: Re: M2 Kodo Plugin

Hi, I actually manage this plugin , and it is hosted on sourceforge.

I am not currently working with M2, so feel free to take the m1 code and modify 
it to do a M2 plugin !


Stéphane

Brian E. Fox a écrit :


Anyone have an M2 Kodo plugin? We currently use Ant to do it, but I was
thinking about making a plugin. Didn't want to reinvent the wheel...





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




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





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



Including tld's in my jar file

2005-12-05 Thread Jakob Vad Nielsen
Hi,

I try to use maven for building a jar package. When building with ant I
include all the tld-files in the project into META-INF with the ant
target:

 metainf dir=${tlddir}
   include name=*.tld/
 /metainf

Maven only includes the class files from the project.

Is there a way to make maven 1.x include the tld files as well as the
class files into the jar file?


/Jakob

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



Re: [M2] maven svn

2005-12-05 Thread Volker Hartmann

Hi Emmanuel!


You must define the tagBase directory like this :

mvn -DtagBase=file:///[pathToSVNRepos]/tags/ release:prepare


You got it! :-)

Thank you for your help.

Regards,
 Volker





What I've done:
svnadmin create  [pathToSVNRepos]/myFirstProject

Maven has the following structure.

FirstProject
   pom.xml
   src/
   target/

Inside the pom.xml I declared the scm as follows:
  scm
   
developerConnectionscm:svn:file:///[pathToSVNRepos]/myFirstProject/developerConnection 


 /scm

How has the file structure to look like?
Do I have to create the tags and branches directory
locally or only in the svn repos?



in the svn repo.

Generally, in a svn repo, you have this structure :
SVNRepo
  branches
branch_name
  your branched code
  tags
  trunk
your source code



What's the command for importing data to svn.



http://svnbook.red-bean.com/



svn import  [which path] file:///[pathToSVNRepos]/myFirstProject ?



http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-5-sect-6.2



It shouldn't be that complicated.

Any help appreciated.

Regards,
 Volker





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







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




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



M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Matthew Wheaton
Hi all,

In Maven 1.x, I could get a list of the jars in my version control
repository, and dynamically add them to the Maven build path using an ant
task.
What's important to note, is that I have all my dependency jars in a few,
KNOWN directories. I would like to be able to include all those jars,
without having to reference each one of them explicitly in a POM, or a
parent POM. Below is how I do this in Maven 1.x with the ANT task. Note
below, that I can create the ant goal, however, the last line in the goal,
seems to be only an Maven 1.x feature and not possible in Maven 2.x.

In our environment, we may have totally different people developing that the
people doing the build. When a developer adds new JARs to version control,
it will break the build, unless we manually add the reference in all the
associated POMs (or parent POMs). We're trying to avoid this, any ideas ?

Below is my Maven 1.x ANT goal.

goal
name=build:SetClasspath
description=Sets the classpath

echo message=Setting the compile classpath . . . /

ant:path id=all.libs.path

  !-- get all the deployment libs --
  ant:fileset dir=${build.deployLibs}
ant:include name=**/*.* /
  /ant:fileset

  !-- get all the compile only libs --
  ant:fileset dir=${build.compileLibs}
ant:include name=**/*.* /
  /ant:fileset
/ant:path

m:addPath id=maven.dependency.classpath refid=all.libs.path /


  /goal


[m2] site:deploy hangs?

2005-12-05 Thread Mike Perham
I'm seeing behavior where small deploys seem to work fine but larger
ones (1MB+) seem to fail every time.

I'm using an scp: url to a Linux Fedora Core 4 server.  Here's the debug
output.  Is this a known issue in Wagon or jsch?

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-site-plugin:2.0-beta-4:deploy' --
[DEBUG]   (f) inputDirectory =
D:\perforce\depot\modules\cordoba\engine\service\target\site
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [site:deploy]
scp://wsfteam01/var/www/html/cordoba/wsf-engine/wsf-engine-service -
Session: Opened
Executing command: mkdir -p
/var/www/html/cordoba/wsf-engine/wsf-engine-service/.
Executing command: mkdir -p
/var/www/html/cordoba/wsf-engine/wsf-engine-service/.
Executing command: scp -t
/var/www/html/cordoba/wsf-engine/wsf-engine-service/./wagon33398.zip
Uploading: ./wagon33398.zip to
scp://wsfteam01/var/www/html/cordoba/wsf-engine/wsf-engine-service






Transfer finished. 998918 bytes copied in 0.969 seconds
Executing command: cd
/var/www/html/cordoba/wsf-engine/wsf-engine-service/.; unzip -o
wagon33398.zip
; rm -f wagon33398.zip




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



How to turn filtering on with images in the resource folder?

2005-12-05 Thread Jochen Wiedmann


Hi,

I have recently turned on filtering for my resources folder. Worked 
fine, until I started the application: It turned out, that images are 
filtered too, becoming corrupt. (Funnily, this was on Windows only. 
Everything worked fine on Linux.)


Two questions:

- Can anyone explain the difference between Linux and Windows?
  (Curiosity only)
- How can I turn filtering on without trashing my images?


Regards,

Jochen


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



Re: Including tld's in my jar file

2005-12-05 Thread Doug Douglass

Jakob,

Presuming your TLDs are in src/main/tld, you can add the following to 
your POM build section:


resources
  resource
 directorysrc/main/tld/directory
 targetPathMETA-INF/targetPath
  /resource
/resources

See http://maven.apache.org/maven-1.x/using/resources.html for more info 
on resources. Even though it's a Maven 1.x doc, I'm fairly certain it 
applies to m2 as well.


HTH,
Doug

Jakob Vad Nielsen wrote:


Hi,

I try to use maven for building a jar package. When building with ant I
include all the tld-files in the project into META-INF with the ant
target:

metainf dir=${tlddir}
  include name=*.tld/
/metainf

Maven only includes the class files from the project.

Is there a way to make maven 1.x include the tld files as well as the
class files into the jar file?


/Jakob

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

 



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



RE: How to turn filtering on with images in the resource folder?

2005-12-05 Thread Brian E. Fox
I have my projects setup so only filtered (property) resources go in
/resources. Everything else is in webapp/img , etc. I honestly never
even thought about putting everything into resources. 

-Original Message-
From: Jochen Wiedmann [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 10:09 AM
To: users@maven.apache.org
Subject: How to turn filtering on with images in the resource folder?


Hi,

I have recently turned on filtering for my resources folder. Worked
fine, until I started the application: It turned out, that images are
filtered too, becoming corrupt. (Funnily, this was on Windows only. 
Everything worked fine on Linux.)

Two questions:

- Can anyone explain the difference between Linux and Windows?
   (Curiosity only)
- How can I turn filtering on without trashing my images?


Regards,

Jochen


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




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



Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Martin van den Bemt

1) Do what you are doing now.
2) Create on dependencies.xml (project.xml style) with ALL artifacts and 
dependencies.
  (problem is that it will not download anything, in my case it was a solution 
:)
3) Do something like this in a goal : 


 u:available file=${basedir}/dependencies.xml
   maven:pom var=realPom 
projectDescriptor=${basedir}/dependencies.xml/
 /u:available
 j:if test=${realPom == null}
   ant:echodependencies.xml not found, assuming dependencies are in project.xml 
itself!/ant:echo
 /j:if
 j:if test=${realPom != null}
   ${pom.setArtifacts(realPom.artifacts)}
   ${pom.setDependencies(realPom.dependencies)}
 /j:if

5) (probably) download the libraries, if not needed, that will help.
6) Add the found artifacts to your classpath (instead of the one  you found 
with ant)

I used this to seperate between source dependencies (that needed source 
dependencies) and real jar dependencies (like commons-collections).

Don't know if it is usable for your scenario, but you can get a lot done this 
kind of way. The problem with this solution might be a lock in to a certain 
version of maven (in this case I know it works in 1.0.2).

In short : hope it is usefull for you ;)

Mvgr,
Martin

Matthew Wheaton wrote:

Hi all,

In Maven 1.x, I could get a list of the jars in my version control
repository, and dynamically add them to the Maven build path using an ant
task.
What's important to note, is that I have all my dependency jars in a few,
KNOWN directories. I would like to be able to include all those jars,
without having to reference each one of them explicitly in a POM, or a
parent POM. Below is how I do this in Maven 1.x with the ANT task. Note
below, that I can create the ant goal, however, the last line in the goal,
seems to be only an Maven 1.x feature and not possible in Maven 2.x.

In our environment, we may have totally different people developing that the
people doing the build. When a developer adds new JARs to version control,
it will break the build, unless we manually add the reference in all the
associated POMs (or parent POMs). We're trying to avoid this, any ideas ?

Below is my Maven 1.x ANT goal.

goal
name=build:SetClasspath
description=Sets the classpath

echo message=Setting the compile classpath . . . /

ant:path id=all.libs.path

  !-- get all the deployment libs --
  ant:fileset dir=${build.deployLibs}
ant:include name=**/*.* /
  /ant:fileset

  !-- get all the compile only libs --
  ant:fileset dir=${build.compileLibs}
ant:include name=**/*.* /
  /ant:fileset
/ant:path

m:addPath id=maven.dependency.classpath refid=all.libs.path /


  /goal



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



Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Martin van den Bemt

Shit :) Your question was about maven 2...
Sorry for the noice..

Mvgr,
Martin

Martin van den Bemt wrote:

1) Do what you are doing now.
2) Create on dependencies.xml (project.xml style) with ALL artifacts and 
dependencies.
  (problem is that it will not download anything, in my case it was a 
solution :)

3) Do something like this in a goal :
 u:available file=${basedir}/dependencies.xml
   maven:pom var=realPom 
projectDescriptor=${basedir}/dependencies.xml/

 /u:available
 j:if test=${realPom == null}
   ant:echodependencies.xml not found, assuming dependencies are 
in project.xml itself!/ant:echo

 /j:if
 j:if test=${realPom != null}
   ${pom.setArtifacts(realPom.artifacts)}
   ${pom.setDependencies(realPom.dependencies)}
 /j:if

5) (probably) download the libraries, if not needed, that will help.
6) Add the found artifacts to your classpath (instead of the one  you 
found with ant)


I used this to seperate between source dependencies (that needed source 
dependencies) and real jar dependencies (like commons-collections).


Don't know if it is usable for your scenario, but you can get a lot done 
this kind of way. The problem with this solution might be a lock in to a 
certain version of maven (in this case I know it works in 1.0.2).


In short : hope it is usefull for you ;)

Mvgr,
Martin

Matthew Wheaton wrote:


Hi all,

In Maven 1.x, I could get a list of the jars in my version control
repository, and dynamically add them to the Maven build path using an ant
task.
What's important to note, is that I have all my dependency jars in a few,
KNOWN directories. I would like to be able to include all those jars,
without having to reference each one of them explicitly in a POM, or a
parent POM. Below is how I do this in Maven 1.x with the ANT task. Note
below, that I can create the ant goal, however, the last line in the 
goal,

seems to be only an Maven 1.x feature and not possible in Maven 2.x.

In our environment, we may have totally different people developing 
that the
people doing the build. When a developer adds new JARs to version 
control,

it will break the build, unless we manually add the reference in all the
associated POMs (or parent POMs). We're trying to avoid this, any ideas ?

Below is my Maven 1.x ANT goal.

goal
name=build:SetClasspath
description=Sets the classpath

echo message=Setting the compile classpath . . . /

ant:path id=all.libs.path

  !-- get all the deployment libs --
  ant:fileset dir=${build.deployLibs}
ant:include name=**/*.* /
  /ant:fileset

  !-- get all the compile only libs --
  ant:fileset dir=${build.compileLibs}
ant:include name=**/*.* /
  /ant:fileset
/ant:path

m:addPath id=maven.dependency.classpath refid=all.libs.path /


  /goal



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





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



Re: How to turn filtering on with images in the resource folder?

2005-12-05 Thread Doug Douglass

Jochen,

Here's a couple suggestions:

  1) Put you images in a separate resource directory (e.g., 
src/main/image) and add another resource stanza to your POM with 
filteringfalse/filtering


  2) Add an excludes stanza to your existing resource and exclude 
all common image extension, then add another add another resource 
stanza to your POM with the same directory but 
filteringfalse/filtering and an include the image extension you 
excluded in the prior resource.


I prefer #1 as it requires no maintenance of image extensions in your POM.

Another related tactic we use on some projects (mainly web apps) is to 
have have two directories for a type of resource, one that is filtered 
and one not (e.g., src/main/web and src/main/web-filtered)


As far as the difference between Linux and Windows (a discussion that 
will rage on forever ;), in this case, it's a difference in line 
endings: linux/unix use a single line feed character (commonly written 
as \n); windows use a two-character sequence,  carriage-return and a 
line feed (commonly written as \r\n). Filtering treats files as text and 
will thus re-write the platform line ending. Since images are binary, 
this line-ending re-writing produced corrupt images.


HTH,
Doug

Jochen Wiedmann wrote:



Hi,

I have recently turned on filtering for my resources folder. Worked 
fine, until I started the application: It turned out, that images are 
filtered too, becoming corrupt. (Funnily, this was on Windows only. 
Everything worked fine on Linux.)


Two questions:

- Can anyone explain the difference between Linux and Windows?
  (Curiosity only)
- How can I turn filtering on without trashing my images?


Regards,

Jochen


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



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



[m2] xdoclet and xref incompatability

2005-12-05 Thread Mike Perham
I have a project which runs the xdoclet-maven-plugin and the
jxr-maven-plugin report.  The xdoclet plugin is adding a source
directory to the project at runtime which the jxr plugin is reporting
does not exist.  I'm running mvn install site:site and it looks like
the generated-sources directory is getting deleted at some point during
the cleanup of the install phase.  Any idea on how to solve this?


[INFO] Scanning
D:\perforce\depot\modules\cordoba\storage\triplestore-spi\src\main\java
[INFO] Scanning
D:\perforce\depot\modules\cordoba\storage\triplestore-spi\target\generat
ed-sources\xdoclet
[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Error during report generation

Embedded error: Error while generating the HTML source code of the
projet.
basedir
D:\perforce\depot\modules\cordoba\storage\triplestore-spi\target\generat
ed-sources\xdoclet does not exist

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



Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Jeff Jensen
Yes, we do the same thing.  How to solve changed with M2.  Now, use
scopesystem/scope and systemPath.

I think this JIRA discusses what your issue is.  Brett described the
un-recommended workaround.

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

I look forward to reading your comments on this... :-)


Quoting Matthew Wheaton [EMAIL PROTECTED]:

 Hi all,

 In Maven 1.x, I could get a list of the jars in my version control
 repository, and dynamically add them to the Maven build path using an ant
 task.
 What's important to note, is that I have all my dependency jars in a few,
 KNOWN directories. I would like to be able to include all those jars,
 without having to reference each one of them explicitly in a POM, or a
 parent POM. Below is how I do this in Maven 1.x with the ANT task. Note
 below, that I can create the ant goal, however, the last line in the goal,
 seems to be only an Maven 1.x feature and not possible in Maven 2.x.

 In our environment, we may have totally different people developing that the
 people doing the build. When a developer adds new JARs to version control,
 it will break the build, unless we manually add the reference in all the
 associated POMs (or parent POMs). We're trying to avoid this, any ideas ?

 Below is my Maven 1.x ANT goal.

 goal
 name=build:SetClasspath
 description=Sets the classpath

 echo message=Setting the compile classpath . . . /

 ant:path id=all.libs.path

   !-- get all the deployment libs --
   ant:fileset dir=${build.deployLibs}
 ant:include name=**/*.* /
   /ant:fileset

   !-- get all the compile only libs --
   ant:fileset dir=${build.compileLibs}
 ant:include name=**/*.* /
   /ant:fileset
 /ant:path

 m:addPath id=maven.dependency.classpath refid=all.libs.path /


   /goal





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



Re: [m2] Need some direction for my first Maven steps

2005-12-05 Thread Alexandre Poitras
Also, you should take a look at Maven-Proxy. This way the jars will be
downloaded one time for the whole enterprise instead of being downloaded for
every single developpers. I have set Maven Proxy and my corporation central
repository at the same location to avoid having Maven looking on central
Maven repository first for internal jars.

On 12/3/05, Eric Redmond [EMAIL PROTECTED] wrote:

 Yes, you can live with an HTTP server for the central repository.

 I have no answer for your central question.

 The parent pom with your defaults just needs to be available to your
 descendant poms. You can define its location using relativePath if you
 wish.

 src/main/resources/META-INF/ is not figurative. The path is literal. So
 if
 you are in project P, the descriptor should be in
 P/src/main/resources/META-INF.

 I'm sure you've seen it, but http://maven.apache.org/guides is really the
 main repository of knowledge.

 Eric

 On 12/1/05, Stefan Fritz [EMAIL PROTECTED] wrote:
 
  Hi,
 
 
 
  I read the getting started guide on the Maven website and searched
  through the mail archives but I still have no die how to achieve what
  I'm looking for:
 
 
 
  What I'd like to do:
 
 
 
  - Create a central Maven repository in our company.
 
  - Have a Super POM which includes our company wide
  defaults (e.g: force checkstyle, link toour central bug reporting tool)
  all our project POMs should get the defaults from this pom.
 
  - create a custom archtype
 
 
 
  Open questions:
 
  Do I need anything apart from an HTTP/FTP server for the
  central repository?
 
  Will the default repository be overridden if I name our repository
  location central?
 
  Where do I have to place the pom with our defaults?
 
  Can anybody send me a sample for a company wide super pom?
 
  The Guide to creating Archtypes states that the archtype descriptor
  should be places into src/main/resources/META-INF/. Which src
  directory is referred to here?
 
 
 
  I hope some of the gurus out there can give me some hints or a link to a
  detailed tutorial for Maven2.
 
 
 
  Regards
 
  Stefan
 
 
 




--
Alexandre Poitras
Québec, Canada


Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Matthew Wheaton
Jeff,

I added a comment to that issue.
If they take systemPath away, as he says, then that'll break me again, for
sure.
I'm really contemplating NOT using M2.

In any case, my workaround to make it truly dynamic, is my build.bat file
first calls an ANT script that compiles a DependencyBuilder class, which
iterates through the jar files in my lib directory, and creates a string
that has all the dependency entries in it. Then, I have a pom that lives
in my lib project called pom-template.xml, that, while still in ANT, I
copy to the same directory renaming to pom.xml. I filter the file using the
ANT filter mechanism to ADD the string I just created in the
DependencyBuilder class, giving a psuedo-dynamic discovery of dependencies.

Then, I reference the libs project in each of the sub-projects.

A little complicated, but then I don't have to manually add JARs to the
build when the developers add them.

I'll add this commentary to the issue you referenced as well.

mw

On 12/5/05, Jeff Jensen [EMAIL PROTECTED] wrote:

 Yes, we do the same thing.  How to solve changed with M2.  Now, use
 scopesystem/scope and systemPath.

 I think this JIRA discusses what your issue is.  Brett described the
 un-recommended workaround.

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

 I look forward to reading your comments on this... :-)


 Quoting Matthew Wheaton [EMAIL PROTECTED]:

  Hi all,
 
  In Maven 1.x, I could get a list of the jars in my version control
  repository, and dynamically add them to the Maven build path using an
 ant
  task.
  What's important to note, is that I have all my dependency jars in a
 few,
  KNOWN directories. I would like to be able to include all those jars,
  without having to reference each one of them explicitly in a POM, or a
  parent POM. Below is how I do this in Maven 1.x with the ANT task. Note
  below, that I can create the ant goal, however, the last line in the
 goal,
  seems to be only an Maven 1.x feature and not possible in Maven 2.x.
 
  In our environment, we may have totally different people developing that
 the
  people doing the build. When a developer adds new JARs to version
 control,
  it will break the build, unless we manually add the reference in all the
  associated POMs (or parent POMs). We're trying to avoid this, any ideas
 ?
 
  Below is my Maven 1.x ANT goal.
 
  goal
  name=build:SetClasspath
  description=Sets the classpath
 
  echo message=Setting the compile classpath . . . /
 
  ant:path id=all.libs.path
 
!-- get all the deployment libs --
ant:fileset dir=${build.deployLibs}
  ant:include name=**/*.* /
/ant:fileset
 
!-- get all the compile only libs --
ant:fileset dir=${build.compileLibs}
  ant:include name=**/*.* /
/ant:fileset
  /ant:path
 
  m:addPath id=maven.dependency.classpath refid=all.libs.path /
 
 
/goal
 




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




RE: maven2 deploy using wagon-ftp

2005-12-05 Thread Michael Fiedler
Thank you for the suggestion.  I also getting this error while using alpha-5.

Michael

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Friday, December 02, 2005 6:58 PM
To: Maven Users List
Subject: RE: maven2 deploy using wagon-ftp


You want alpha-5, I had crashes before using an earlier version. Not
this exact one, but alpha-5 has been perfect for me. 

-Original Message-
From: Michael Fiedler [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 12:08 PM
To: Maven Users List (E-mail)
Subject: maven2 deploy using wagon-ftp

Hi,

   I am trying to deploy for the first time.  I am using wagon-ftp,
1.0-alpha-4 as an extension for a maven 2 deploy.  The repository
location (on the host) is new and empty.  Besides copying my local
repository to the new location, is there anything else I can do?  Should
I file a bug in jira?

c:\... .../bin/mvn clean:clean install deploy ...
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from M2_repo_ftp
Uploading:
ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-
1.pom
4K uploaded
[INFO] Retrieving previous metadata from M2_repo_ftp [INFO]


[ERROR] FATAL ERROR
[INFO]


[INFO] 0
[INFO]


[INFO] Trace
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.jav
a:326)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(Defa
ultWagonManager.java:367)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadat
a(DefaultWagonManager.java:295)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.deploy(DefaultRepositoryMetadataManager.java:379)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
tArtifactDeployer.java:83)
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:137)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]





Thank you,
Michael 


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



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


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



M2 - control order of inheritence

2005-12-05 Thread Brian E. Fox
I need to filter for all projects in this specific order:
 
default.values
user.default.values
user.[app].values
 
This is because when multiple filters are used, the last one wins. This
will allow developers to override values either on a global basis or per
project (or not at all). Since this needs to be enforced for every
project, I'd like to specify my first 2 filters in the parent pom from
which they all derive. I can't put the third one in the parent because
the [app] part is different depending on which project I'm in. (and I
don't think I can specify a property like this
${user.${pom.artifact}.values} can I?) The problem is that the
inheritence puts those 2 at the end and the filter specified in my child
pom first. Is there a way to have the child filter value be appended to
the parent ones, instead of the other way around?
 
Thanks,
Brian


compile time check

2005-12-05 Thread Michael Fiedler
I have the following structure where JAR2 depends on JAR1.

Parent
|- pom.xml
|
|- JAR1
|   |- pom.xml
|   
|
|- JAR2
|   |- pom.xml


The JAR1 and JAR2 projects are developed concurrently, and pom.xml of JAR2 
lists JAR1 as a dependency. 

The parent pom.xml lists JAR1 and JAR2 as modules.

All of this builds fine the first time when I execute 'm2 install' on the 
Parent pom.xml file. But if I make a change to a class in JAR1 which would 
cause a compile error in JAR2, this compile error is not being caught when I 
run 'm2 install' at the parent pom.xml. The only way I can get this to work is 
to run 'm2 clean install', and then I am able to see the failure in JAR2. But I 
don't want to run 'clean' every time I do a build.

Has anyone else come across this issue? Any workarounds?

Thank you,
Michael Fiedler


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



Re: [M1] preparing release of checkstyle plugin 3.0 with support for java 1.5

2005-12-05 Thread Josh
Works fine for me with Maven 1.1-beta-1 and Maven plugin plugin 1.6. 
Finally no more parse errors for source files with Java generics,
hooray :-)
Evidently the new plugin includes unit tests in its reports... is
there a property to disable this feature?


Soph-Ware Associates, Inc.  Voice: (509) 468-8264
624 W. Hastings, Suite GFax: (509) 468-8432
Spokane, WA 99218  USA   WWW: http://www.Soph-Ware.com
Intelligent XML Content Delivery... Where, When, and How you want it.


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



RE: maven2 deploy using wagon-ftp

2005-12-05 Thread Mordo, Aviran (EXP N-NANNATEK)
Where can I get alpha-5 version? What is the url? 

-Original Message-
From: Michael Fiedler [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 1:37 PM
To: Maven Users List
Subject: RE: maven2 deploy using wagon-ftp

Thank you for the suggestion.  I also getting this error while using
alpha-5.

Michael

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Friday, December 02, 2005 6:58 PM
To: Maven Users List
Subject: RE: maven2 deploy using wagon-ftp


You want alpha-5, I had crashes before using an earlier version. Not
this exact one, but alpha-5 has been perfect for me. 

-Original Message-
From: Michael Fiedler [mailto:[EMAIL PROTECTED]
Sent: Friday, December 02, 2005 12:08 PM
To: Maven Users List (E-mail)
Subject: maven2 deploy using wagon-ftp

Hi,

   I am trying to deploy for the first time.  I am using wagon-ftp,
1.0-alpha-4 as an extension for a maven 2 deploy.  The repository
location (on the host) is new and empty.  Besides copying my local
repository to the new location, is there anything else I can do?  Should
I file a bug in jira?

c:\... .../bin/mvn clean:clean install deploy ...
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from M2_repo_ftp
Uploading:
ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-
1.pom
4K uploaded
[INFO] Retrieving previous metadata from M2_repo_ftp [INFO]


[ERROR] FATAL ERROR
[INFO]


[INFO] 0
[INFO]


[INFO] Trace
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.jav
a:326)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(Defa
ultWagonManager.java:367)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadat
a(DefaultWagonManager.java:295)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.deploy(DefaultRepositoryMetadataManager.java:379)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
tArtifactDeployer.java:83)
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:137)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]





Thank you,
Michael 


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



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


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



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

Is there a way to get Maven to report the number of compile errors found?

2005-12-05 Thread Frank Russo
 


Re: surefire forking

2005-12-05 Thread Miodrag Glumac
I had the same problem.  I got the latest code and uncommented the 
following line in SurefirePlugin.java:


 // surefireBooter.setJvm( jvm );

This appeared to fix the problem.

Stephen Cowx wrote:


Hi

I get the same error on linux.  If I remove the  
forkModeonce/forkMode the build works.
If it helps,  I have excluded all unit tests in my build and the 
behaviour is the same, so... the problem has nothing to do with the 
tests themselves.


Regards

Stephen


Jérôme BERNARD wrote:


I did using forkMode=once.

On a windows box, it fails because the command-line is too long 
(there are

too many dependencies..).
On a UNIX box, I do have a different error:
Embedded error: Error while executing forked tests.
-classpath: not found

Regards,
Jérôme.

2005/12/4, Jason van Zyl [EMAIL PROTECTED]:
 


Hi,

If anyone wants to try the new code for surefire forking a snapshot
plugin is available. Please refer to this guide to get yourself going:


http://maven.apache.org/guides/development/guide-testing-development-plugins.html 



--

jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

We all have problems. How we deal with them is a measure of our worth.

 -- Unknown

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


  



 





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



RE: maven2 deploy using wagon-ftp

2005-12-05 Thread Michael Fiedler
in your pom.xml file:

  build
extensions
  extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-ftp/artifactId
version1.0-alpha-5/version


-Original Message-
From: Mordo, Aviran (EXP N-NANNATEK) [mailto:[EMAIL PROTECTED]
Sent: Monday, December 05, 2005 1:18 PM
To: Maven Users List
Subject: RE: maven2 deploy using wagon-ftp


Where can I get alpha-5 version? What is the url? 

-Original Message-
From: Michael Fiedler [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 1:37 PM
To: Maven Users List
Subject: RE: maven2 deploy using wagon-ftp

Thank you for the suggestion.  I also getting this error while using
alpha-5.

Michael

-Original Message-
From: Brian E. Fox [mailto:[EMAIL PROTECTED]
Sent: Friday, December 02, 2005 6:58 PM
To: Maven Users List
Subject: RE: maven2 deploy using wagon-ftp


You want alpha-5, I had crashes before using an earlier version. Not
this exact one, but alpha-5 has been perfect for me. 

-Original Message-
From: Michael Fiedler [mailto:[EMAIL PROTECTED]
Sent: Friday, December 02, 2005 12:08 PM
To: Maven Users List (E-mail)
Subject: maven2 deploy using wagon-ftp

Hi,

   I am trying to deploy for the first time.  I am using wagon-ftp,
1.0-alpha-4 as an extension for a maven 2 deploy.  The repository
location (on the host) is new and empty.  Besides copying my local
repository to the new location, is there anything else I can do?  Should
I file a bug in jira?

c:\... .../bin/mvn clean:clean install deploy ...
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from M2_repo_ftp
Uploading:
ftp://host/com/company/modules/1.0-SNAPSHOT/modules-1.0-20051202.165702-
1.pom
4K uploaded
[INFO] Retrieving previous metadata from M2_repo_ftp [INFO]


[ERROR] FATAL ERROR
[INFO]


[INFO] 0
[INFO]


[INFO] Trace
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.apache.maven.wagon.providers.ftp.FtpWagon.fillInputData(FtpWagon.jav
a:326)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(Defa
ultWagonManager.java:367)
at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadat
a(DefaultWagonManager.java:295)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.resolveAlways(DefaultRepositoryMetadataManager.java:334)
at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataM
anager.deploy(DefaultRepositoryMetadataManager.java:379)
at
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(Defaul
tArtifactDeployer.java:83)
at
org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:138)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:519)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:469)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:448)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:137)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]





Thank you,
Michael 


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



-
To unsubscribe, e-mail: [EMAIL 

Re: M2 : Dynamically adding system JARs into Maven build classpath.

2005-12-05 Thread Matthew Wheaton
All good points Jeff, I'm going to give M2 a try with my workaround, but if
even one other thing gets in my way, I'll be reverting my build to Maven 1.x

On 12/5/05, Jeff Jensen [EMAIL PROTECTED] wrote:

 Quoting Matthew Wheaton [EMAIL PROTECTED]:

  Jeff,
 
  I added a comment to that issue.
  If they take systemPath away, as he says, then that'll break me again,
 for
  sure.
  I'm really contemplating NOT using M2.

 Agreed.  I am concerned about seemingly narrowly-focused use cases of
 M2.  If
 not buying into repo only references, then a product cannot use
 it.  Well,
 there are plenty of customers I have that it won't work at.  Flexibility
 is
 key, not one mantra.

 The outcome of accessing source-controlled artifacts will play a part in
 our
 decision as well.

 Another reason I have stopped the migration to M2 for us is there are too
 many
 JIRAs that prevent a build from happening (we have a large system under
 development [over 7300 .java files to date across all components excluding
 test
 classes, with another year of development to go on about 70 developers],
 and M2
 can't do it yet, but M1 works fine [has quirks but gets the job done
 nicely]).


  In any case, my workaround to make it truly dynamic, is my build.batfile
  first calls an ANT script that compiles a DependencyBuilder class, which
  iterates through the jar files in my lib directory, and creates a
 string
  that has all the dependency entries in it. Then, I have a pom that
 lives
  in my lib project called pom-template.xml, that, while still in ANT, I
  copy to the same directory renaming to pom.xml. I filter the file using
 the
  ANT filter mechanism to ADD the string I just created in the
  DependencyBuilder class, giving a psuedo-dynamic discovery of
 dependencies.
 
  Then, I reference the libs project in each of the sub-projects.
 
  A little complicated, but then I don't have to manually add JARs to the
  build when the developers add them.

 What a PITA!!  :-|


  I'll add this commentary to the issue you referenced as well.

 Thanks for your comments.  I appreciate understanding your thoughts.


  mw
 
  On 12/5/05, Jeff Jensen [EMAIL PROTECTED] wrote:
  
   Yes, we do the same thing.  How to solve changed with M2.  Now, use
   scopesystem/scope and systemPath.
  
   I think this JIRA discusses what your issue is.  Brett described the
   un-recommended workaround.
  
   http://jira.codehaus.org/browse/MNG-1471
  
   I look forward to reading your comments on this... :-)
  
  
   Quoting Matthew Wheaton [EMAIL PROTECTED]:
  
Hi all,
   
In Maven 1.x, I could get a list of the jars in my version control
repository, and dynamically add them to the Maven build path using
 an
   ant
task.
What's important to note, is that I have all my dependency jars in a
   few,
KNOWN directories. I would like to be able to include all those
 jars,
without having to reference each one of them explicitly in a POM, or
 a
parent POM. Below is how I do this in Maven 1.x with the ANT task.
 Note
below, that I can create the ant goal, however, the last line in the
   goal,
seems to be only an Maven 1.x feature and not possible in Maven 2.x.
   
In our environment, we may have totally different people developing
 that
   the
people doing the build. When a developer adds new JARs to version
   control,
it will break the build, unless we manually add the reference in all
 the
associated POMs (or parent POMs). We're trying to avoid this, any
 ideas
   ?
   
Below is my Maven 1.x ANT goal.
   
goal
name=build:SetClasspath
description=Sets the classpath
   
echo message=Setting the compile classpath . . . /
   
ant:path id=all.libs.path
   
  !-- get all the deployment libs --
  ant:fileset dir=${build.deployLibs}
ant:include name=**/*.* /
  /ant:fileset
   
  !-- get all the compile only libs --
  ant:fileset dir=${build.compileLibs}
ant:include name=**/*.* /
  /ant:fileset
/ant:path
   
m:addPath id=maven.dependency.classpath refid=all.libs.path
 /
   
   
  /goal






RE: [m2] How to install 3rd party libraries to remote repository

2005-12-05 Thread Mordo, Aviran (EXP N-NANNATEK)
Thank you for the fix. But I still have a problem.

I used the deploy-file goal to deploy a third party jar file
(jsr_api.jar) to my internal remote repository and it does that without
problem (deploy the jar file). 

Now when I compile my application which has a dependency on that jar
file, maven tries to download this jar file from my internal repository
and fail with an error message complaining about the pom file. When I
did the deploy I don't have a pom file with is since it is a third party
jar file. Why is maven looking for this pom file? What do I need to do?

Here is the error message.

Downloading:
http://158.xxx.xxx.xxx/repository/jsr/jsr_api/1.0/jsr_api-1.0.pom
[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] Error building POM (may not be this project's POM).


Project ID: jsr:jsr_api

Reason: Error getting POM for 'jsr:jsr_api' from the repository: Error
transferring file
  jsr:jsr_api:1.0:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  dev-repo (http://158.xxx.xxx.xxx/repository)



Thanks for the help

Aviran





-Original Message-
From: dan tran [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 02, 2005 10:36 PM
To: Maven Users List
Subject: Re: [m2] How to install 3rd party libraries to remote
repository

jusst check snapshot at codehaus, dont think the latest snapshot of
maven-deploy-plugin is there yet!!!

-Dan



On 12/2/05, Allan Ramirez [EMAIL PROTECTED] wrote:

 Hi again,

 Good news, deploy:deploy-file is now available in the SVN, 
 http://docs.codehaus.org/display/MAVENUSER/FAQs
 and look for the question How to install artifacts in a remote 
 repository?

 You may also refer to this page

 http://maven.apache.org/guides/development/guide-testing-development-p
 lugins.html to know how to use snapshots version plugins.

 regards,
 -allan

 Mordo, Aviran (EXP N-NANNATEK) wrote:

 
 
 I have set up a corporate remote repository, in which we plan to put 
 our artifacts and 3rd party dependencies.
 
 I could not find how to install 3rd party jar files into the remote 
 repository. The mvn install:install-file goal only installs to the 
 local repository.
 
 Can anyone tell me how to install 3rd party libraries to a remote 
 repository ?
 
 Thanks,
 
 Aviran
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 



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




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



Re: [m2] site:deploy hangs?

2005-12-05 Thread ir. ing. Jan Dockx
Lot's of people seem to have this problem with scp (I do on Mac OS X). Use scpexe instead.


On 5 Dec 2005, at 16:34, Mike Perham wrote:

I'm seeing behavior where small deploys seem to work fine but larger
ones (1MB+) seem to fail every time.

I'm using an scp: url to a Linux Fedora Core 4 server.  Here's the debug
output.  Is this a known issue in Wagon or jsch?

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-site-plugin:2.0-beta-4:deploy' -->
[DEBUG]   (f) inputDirectory =
D:\perforce\depot\modules\cordoba\engine\service\target\site
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [site:deploy]
scp://wsfteam01/var/www/html/cordoba/wsf-engine/wsf-engine-service -
Session: Opened
Executing command: mkdir -p
/var/www/html/cordoba/wsf-engine/wsf-engine-service/.
Executing command: mkdir -p
/var/www/html/cordoba/wsf-engine/wsf-engine-service/.
Executing command: scp -t
/var/www/html/cordoba/wsf-engine/wsf-engine-service/./wagon33398.zip
Uploading: ./wagon33398.zip to
scp://wsfteam01/var/www/html/cordoba/wsf-engine/wsf-engine-service






Transfer finished. 998918 bytes copied in 0.969 seconds
Executing command: cd
/var/www/html/cordoba/wsf-engine/wsf-engine-service/.; unzip -o
wagon33398.zip
; rm -f wagon33398.zip




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


x-tad-smallerMet vriendelijke groeten,

Jan Dockx
/x-tad-smallerx-tad-smaller
PeopleWare NV - Head Office/x-tad-smallerx-tad-smaller
Cdt.Weynsstraat 85 
B-2660 Hoboken 
Tel: +32 3 448.33.38 
Fax: +32 3 448.32.66 /x-tad-smallerx-tad-bigger
/x-tad-biggerx-tad-smaller
PeopleWare NV - Branch Office Geel/x-tad-smallerx-tad-smaller
Kleinhoefstraat 5
B-2440 Geel
Tel: +32 14 57.00.90
Fax: +32 14 58.13.25/x-tad-smallerx-tad-bigger
/x-tad-biggerx-tad-smaller
http://www.peopleware.be/
/x-tad-smallerx-tad-smallerhttp://www.mobileware.be//x-tad-smaller


smime.p7s
Description: S/MIME cryptographic signature


Question about using Maven with ant tasks

2005-12-05 Thread Howard Lander

Hi all

Let me preface what I am saying by admitting that I am a novice with 
Maven.  Please forgive any poorly worded  or redundant content.  
Suggestions about more appropriate mailing lists or forums to get info 
are always appreciated.


I'm trying to use maven for a project I am building that uses an ant 
task.  The particular ant task is one that is supported in ant 1.6 and 
not supported in ant 1.5.  How do I tell maven which version of ant I 
want it to call?  Note that my path and ANT_HOME environment variable 
are set to my ant 1.6 installation and I have moved my /etc/ant.conf to 
/etc/ant.conf.sav.  I should also note this is a Linux 2.4 system.


Thanks in advance

Howard

--
Howard Lander mailto:[EMAIL PROTECTED]
Research Programmer
Renaissance Computing Institute http://www.renci.org
The University of North Carolina at Chapel Hill
Duke University
North Carolina State University
Campus Box 7583
Chapel Hill, NC 27599-7583
919-843-8942

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



Re: [m2] Avoiding duplicate jar files in a generated ear file ?

2005-12-05 Thread Christian Schulte

Jörg Schaible schrieb:


Christian Schulte wrote on Monday, December 05, 2005 12:13 PM:



Christian Schulte schrieb:



Hi,

when I build an ear file with maven 2 it happens that because of
transitive dependencies I get e.g. two struts.jar files in the
generated file. What is the recommended way of managing transitive
dependencies ? Say I have a dependency which itself has a dependency
to struts-1.2.7.jar and another dependency which itself has a
dependency to struts-1.2.8.jar I would like to avoid having both
struts versions in the generated ear file. What is the recommended
way of doing this ? 



Really noone any hint or best-practice advice ?



Use a dependencyManagement section, where you define the version to use and do 
define your dependencies without a version requirement.


Thanks for the answer. The problem is the transitive dependencies. What 
I am currently doing is run maven with -X and grep for a message where 
it says that an earlier version overrides a current version in the 
dependency graph. If somehow the later version in the graph is higher 
than the earlier one I try to find out which dependency introduces the 
lower version and add an exclusion to this artifact. So there is really 
no way to get that done automatically ? No way to automatically resolve 
such conflicting versions ? When I specify the version to use in the 
dependencyManagement section it is ignored for transitive dependencies. 
Is that the Jira issue you were talking about ?


--
Christian


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



[m2] surefire-report-maven-plugin SNAPSHOT

2005-12-05 Thread Kristian Andersen
Hi,

Is there a repository containing snapshots of the surefire report plugin?
I cant find it on http://snapshots.maven.codehaus.org/maven2

Regards,
Kristian Andersen

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



[ANN] Maven Eclipse Plugin v2.0 for m2 released

2005-12-05 Thread Fabrizio Giustina
Hi,

Several issues found in the precent version of the eclipse plugin have
now been fixed and new features added. We are happy to announce the
first production quality release of the plugin!

The 2.0 release fixes some critical bugs related to multiproject
handling and WTP (j2ee projects) support. Other fixed issues are:
- MNG-793 eclipse:eclipse writes timestamp to .settings file
- MNG-1196 Eclipse add-maven-repo goal uses MAVEN_REPO instead of M2_REPO
- MNG-578 dependencies otherthan of type jar are added to the .classpath
- MNG-1076 incorrect classpath entry is generated when dependency has
system scope and systemPath is absolute
- MNG-937 Incorrect JRE classpath entry in eclipse .classpath file
- MNG-1332 Dependent-Modules not showing up in .wtpmodules
- MNG-1344 AddMavenRepoMojo adds an X to the end of the specified workspace
- MNG-1433 eclipse:add-maven-repo not setting
classpathVariable.M2_REPO correctly on windows
- MNG-1506 Eclipse loses Sysdeo Is Tomcat Project setting after mvn
eclipse:eclipse
- MNG-1430 Allow eclipse source to be specified at the dependency level
- MNG-1693 .wtpmodules does not use same output directory as compiler
- MNG-1324 System dependencies path non correctly added to eclipse buildpath

To obtain the latest release, include the version in your POM:
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-eclipse-plugin/artifactId
  version2.0/version
/plugin

- The Maven Plugins Team

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



Re: [m2] Downloading source-code jar files ?

2005-12-05 Thread Henry Isidro

Christian Schulte wrote:


Hi,

how do I make maven fetch e.g. junit-3.8.1-sources.jar so that this 
file gets copied into the local repository ? I tried putting a 
dependency to it in the root pom like this


 dependencies
   dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version3.8.1/version
 typesources.jar/type
 scopeprovided/scope
   /dependency
 /dependencies

but it seems to be incorrect.


Hi Christian,

Try this:

dependencies
  dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1-sources/version
typejar/type
scopeprovided/scope
  /dependency
/dependencies

HTH,

Henry

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



Re: need latest maven-deploy-plugin snapshot

2005-12-05 Thread Allan Ramirez

Hi Dan,

It is now deployed. Thanks to John Casey :)

regards,
-allan

dan tran wrote:


Hi Allan,

Since you committed deploy:deploy-file, could you deploy a snaphost as
well.  This way
my team here does not have to build it from source on our build machines


-Dan

 




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.11/191 - Release Date: 12/2/2005
 



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

Re: [m2] surefire-report-maven-plugin SNAPSHOT

2005-12-05 Thread Allan Ramirez

Hi Kristian,

None. I think :)
try to check it out from SVN and build it from source.

regards,
-allan

Kristian Andersen wrote:


Hi,

Is there a repository containing snapshots of the surefire report plugin?
I cant find it on http://snapshots.maven.codehaus.org/maven2

Regards,
Kristian Andersen

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



 



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

[m2] How to change maven.war.src in pom.xml

2005-12-05 Thread Keisuke Matsubara
Hi,
I want to configure maven.war.src for fitting my directories.
Would someone tell me method ?

I could work by default ,but I want to fit pom.xml to my directories.
So I configured pom.xml like following ,but it did not work my way.

project
:
  build
finalName${pom.artifactId}/finalName
sourceDirectorysrc/sourceDirectory
resources
  resource
directoryresources/directory
  /resource
/resources
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0-beta-2/version
configuration
maven.war.src${project.dir}/resources/maven.war.src
/configuration
  /plugin
/plugins
  /build
/project


My directories are following.
~/WEBAPP_NAME/
src/
  JAVA_CODES
resources/
webapp/
   WEB-INF/
   OTHER_FILES(html,jsp ..)

I can create war file when I change directories like following.
~/WEBAPP_NAME/
src/
  JAVA_CODES
  main/
   webapp/
 WEB-INF/
 OTHER_FILES(html,jsp ..)
resources/

Thanks in advance,
Keisuke



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



Re: M2 Kodo Plugin

2005-12-05 Thread clark . rao

Dear ,
We can re-build it for mave 2, isn't right?







thanks.
Tel: (020)36315358-328 Fax: (020)36315170



   
  stéphane bouchet  
   
  Stephane.BouchetTo:   Maven Users List 
users@maven.apache.org 
  @emn.fr cc:  
   
   Subject:  Re: M2 Kodo Plugin 
   
  05/12/2005 19:14  
   
  Please respond to 
   
  Maven Users  
   
  List 
   

   

   




Hi, I actually manage this plugin , and it is hosted on sourceforge.

I am not currently working with M2, so feel free to take the m1 code and
modify
it to do a M2 plugin !


Stéphane

Brian E. Fox a écrit :
 Anyone have an M2 Kodo plugin? We currently use Ant to do it, but I was
 thinking about making a plugin. Didn't want to reinvent the wheel...



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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__



Hactl..Moving forward with you.

Best Air Cargo Terminal - Asia 2005
Air Cargo Terminal of the Year 2002, 2003  2004

Web: http://www.hactl.com

DISCLAIMER :-
The information contained in this message, including any attachment, is
confidential and may also be privileged. The information is intended only
for the person or entity to which it is addressed. Any review,
re-transmission, copying, storage, distribution or other use or disclosure
of this information by persons or entities other than the intended
recipient is prohibited. If you are not the intended recipient, please
contact the sender immediately by return email and delete this message from
your system. Thank you.




__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

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



Re: [m2] How to change maven.war.src in pom.xml

2005-12-05 Thread Allan Ramirez
Hi Keisuke,

See http://docs.codehaus.org/display/MAVENUSER/FAQs
and look for the question How can I configure the equivalent of
maven.war.src of war plugin in m2?

Hope this helps

regards,
-allan

Keisuke Matsubara wrote:

Hi,
I want to configure maven.war.src for fitting my directories.
Would someone tell me method ?

I could work by default ,but I want to fit pom.xml to my directories.
So I configured pom.xml like following ,but it did not work my way.

project
:
  build
finalName${pom.artifactId}/finalName
sourceDirectorysrc/sourceDirectory
resources
  resource
directoryresources/directory
  /resource
/resources
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0-beta-2/version
configuration
maven.war.src${project.dir}/resources/maven.war.src
/configuration
  /plugin
/plugins
  /build
/project


My directories are following.
~/WEBAPP_NAME/
src/
  JAVA_CODES
resources/
webapp/
   WEB-INF/
   OTHER_FILES(html,jsp ..)

I can create war file when I change directories like following.
~/WEBAPP_NAME/
src/
  JAVA_CODES
  main/
   webapp/
 WEB-INF/
 OTHER_FILES(html,jsp ..)
resources/

Thanks in advance,
Keisuke



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


  


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

Re: [m2] Downloading source-code jar files ?

2005-12-05 Thread Jochen Wiedmann

Henry Isidro wrote:


Try this:

dependencies
  dependency
groupIdjunit/groupId
artifactIdjunit/artifactId
version3.8.1-sources/version
typejar/type
scopeprovided/scope
  /dependency
/dependencies


If you are using the Eclipse plugin, then a more simple trick is addding 
the following to the pom's plugins section. It doesn't depend on a 
certain jar file.


  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
configuration
  downloadSourcestrue/downloadSources
/configuration
  /plugin


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



Re: [m2] Executing the assembly plugin with different configurations

2005-12-05 Thread Allan Ramirez

Hi Yossi,

See http://docs.codehaus.org/display/MAVENUSER/FAQs
and look for the question How to execute the assembly plugin with 
different configurations?


let me know if it works :)

regards,
-allan

Yossi Shaul wrote:


I run the command mvn deploy (for some reason mvn
install doesn#8217;t activate the plugin, compile and
package cause it to run infinitely).

When I put the configuration node directly under the
plugin node it doesn#8217;t complain but then the
plugin executes only once.

Did you try running it with different configurations?
Can you send me what you tried?

Thanks,
Yossi 



--- Nik Gonzalez [EMAIL PROTECTED] wrote:

 


Hi Yossi,

I tried this before and it worked.  You're pom seems
to be correct.

What mvn command did you run? This will only work if
you executed mvn 
install or deploy.


Thanks.
-Nik

Allan Ramirez wrote:

   


Hi Yossi,

I tried something like this before and it worked
 


for me. :)
   


regards,
-allan

Yossi Shaul wrote:

 


Is it possible to execute the assembly plugin
   


multiple
   


times with different configurations during
   


install
   


phase?

For example, I want to assemble bin and source
archives (with specific files) during the install
phase. I tried the following:

plugin
  artifactIdmaven-assembly-plugin/artifactId
executions
  execution
idasm1/id
phaseinstall/phase
goals
  goalassembly/goal
/goals
configuration

   


descriptorsrc/main/assembly/src.xml/descriptor
   


  finalNameasm-bin/finalName

   


outputDirectorytarget/src/outputDirectory
   


   


workDirectorytarget/temp-src/workDirectory
   


/configuration
  /execution
  execution
idasm2/id
phaseinstall/phase
goals
  goalassembly/goal
/goals
configuration

   


descriptorsrc/main/assembly/bin.xml/descriptor
   


  finalNameasm-bin/finalName

   


outputDirectorytarget/bin/outputDirectory
   


   


workDirectorytarget/temp-bin/workDirectory
   


/configuration
  /execution
/executions
  /plugin


But I#8217;m getting an error message saying
#8220;You must specify descriptor or
descriptorId#8221;

Thanks,
Yossi




  
__ Start your day
   

with Yahoo! - Make 
   


it your home page! http://www.yahoo.com/r/hs


   


-
 


To unsubscribe, e-mail:
   


[EMAIL PROTECTED]
   


For additional commands, e-mail:
   


[EMAIL PROTECTED]
   




   



   


-
   


To unsubscribe, e-mail:
 


[EMAIL PROTECTED]
   


For additional commands, e-mail:
 


[EMAIL PROTECTED]
   



   


-
 


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


   






__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



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


 



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

Do I need to separate between src/java and src/resources? (Was: How to turn filtering on with images in the resource folder?)

2005-12-05 Thread Jochen Wiedmann

Doug Douglass wrote:

  1) Put you images in a separate resource directory (e.g., 
src/main/image) and add another resource stanza to your POM with 
filteringfalse/filtering


That brings me up to another question: I understand that your suggestion 
is easier for maintaining the POM. OTOH, I do believe that it is more 
complex for the programmer, because he has to know which folder to choose.


Quite similar, I always wonder whether I do need to have separate 
src/main/java and src/main/resources folders? Quite typically, the 
resource files are being used from Java classes in the same package. 
Within a single source folder, I am always forced to search them in a 
completely different directory structure, although my natural feeling 
asks for putting them into the same directory.


Jochen

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