Re: StatSVN plugin

2007-11-06 Thread olivier lamy
Hi,
Yes I do.
But only in a profile because this can be long.

  stats-scm
  

  
net.sf
stat-scm
  

  

Note : if your machine has some internet access restrictions, you have to
take care because the pom [1] declare some not central repositories. (
http://stat-scm.sourceforge.net/maven2)

But it's not an apache mojo, the best is to ask the guys who works on this
[2]

--
Olivier

[1] http://repo1.maven.org/maven2/net/sf/stat-scm/1.0.0/stat-scm-1.0.0.pom
[2] http://stat-scm.sourceforge.net/

2007/11/7, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]>:
>
> Hello.  Has anyone been able to make StatSVN functional in their
> POM.xml?  I have done a search for any successful notes for this
> plug-in, but I was not able to find any.  Please let me know, thank you.
>
>
> This message (including any attachments) contains confidential information
> intended for a specific individual and purpose, and is protected by law.  If
> you are not the intended recipient, you should delete this message.
>
>
> Any disclosure, copying, or distribution of this message, or the taking of
> any action based on it, is strictly prohibited. [v.E.1]
>


Re: Migrate project to maven

2007-11-06 Thread Vanja Petreski
1) Manually

2) You can play with super pom to override default settings, so that Maven
"knows" for your custom project structure.

V

On Nov 7, 2007 6:02 AM, Riaz uddin <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I am trying to add a build process to my current project using maven. How
> do I do this? The documentation shows creating a maven project from scratch
> but how do i proceed when I already have code?
>
> Thanks
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


Re: How to checkout a CVS file as part of a goal in a POM

2007-11-06 Thread Dan Tran
bind scm:checkout to a phase before package phase, then you are all set

On 11/6/07, Lyle Harris <[EMAIL PROTECTED]> wrote:
> Greetings,
>
> I'm trying to use SCM to checkout an XML Schema as
> part
> of a Maven2 project.  The Schema file is in CVS and
> I'd
> like to type "mvn package" and have the file checked
> out
> and compiled and placed in the resulting jar file.
>
> I've seen references to "mvn scm:checkout" but would
> not
> like to have to have developers have to remember to
> run that command manually before running the "mvn
> package"
>  command.
>
> Any examples of programmatically checking out a file
> via
> a POM configuration would be greatly appreciated.
>
> Cheers,
>
> Lyle
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.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]



Migrate project to maven

2007-11-06 Thread Riaz uddin
Hi,

I am trying to add a build process to my current project using maven. How do I 
do this? The documentation shows creating a maven project from scratch but how 
do i proceed when I already have code?

Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Dependency resolution for multi-module projects

2007-11-06 Thread Plotnicki, Grzegorz
Hi,

I'm writing a custom plug-in with its own packaging. Everything works
great until I have a multi-module project with some of the subprojects
being interdependent; then maven starts complaining that it cannot find
dependencies in a repository. I don't want to do install first. 

Does any one know how to access the maven framework from, let's say,
initialize phase and perhaps inject there already resolved dependencies
(pointing to the aggregated sub-projects), so that maven doesn't try
looking for them in a repository?

thanQ

Grzeg~
=)


...{-_-}...
In a real dark night of the soul 
it is always three o'clock in the morning, day after day.
-- F. Scott Fitzgerald



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



How to checkout a CVS file as part of a goal in a POM

2007-11-06 Thread Lyle Harris
Greetings,

I'm trying to use SCM to checkout an XML Schema as
part
of a Maven2 project.  The Schema file is in CVS and
I'd
like to type "mvn package" and have the file checked
out
and compiled and placed in the resulting jar file.

I've seen references to "mvn scm:checkout" but would
not
like to have to have developers have to remember to
run that command manually before running the "mvn
package"
 command.

Any examples of programmatically checking out a file
via
a POM configuration would be greatly appreciated.

Cheers,

Lyle


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Integration testing seam 2 components through Maven

2007-11-06 Thread Trent Rosenbaum
Hi there,

I was wondering if anyone has explored running Seam 2 integration
tests through Maven?  I have been able to setup a Maven2+Seam2 project
and have executed it without any problems, but after playing around
with the the Seam2 integration test examples I have not been able to
execute any test with success.  I have been using the
maven-surefire-plugin 2.4-SNAPSHOT to execute the testng integration
test.  Can anyone confirm if this is the best version to use to
execute testng annotated classes?

Trent

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



StatSVN plugin

2007-11-06 Thread Morgovsky, Alexander (US - Glen Mills)
Hello.  Has anyone been able to make StatSVN functional in their
POM.xml?  I have done a search for any successful notes for this
plug-in, but I was not able to find any.  Please let me know, thank you. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: [ANN] buildnumber-maven-plugin-1.0-beta-1

2007-11-06 Thread Kalle Korhonen
.. and already synched up to repo1 (
http://repo1.maven.org/maven2/org/codehaus/mojo/buildnumber-maven-plugin/1.0-beta-1/
)

Super, thanks Dan!

Kalle


On 11/6/07, Dan Tran <[EMAIL PROTECTED]> wrote:
>
> Hi
> The mojo team are happy to announce that version 2.0-beta-1 of the
> buildnumber-maven plugin has been released.  The plugin site is at
>
>   http://mojo.codehaus.org/buildnumber-maven-plugin/
>
>
> This is the same plugin with the one residing at
>
>
> http://commons.ucalgary.ca/pub/m2/org/codehaus/mojo/maven-buildnumber-plugin/0.9.6/
>
> which is now deprecated.
>
>
>
> -Dan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Maven 2 Site Plugins Out-of-Memory Errors

2007-11-06 Thread Mark Struberg
You have to set 
> MAVEN_OPTS="-Xmx512m"
or higher in your environment (set in win, export in *nix)

This will increase the memory for all maven processes.
(very similar to ANT_OPTS)

LieGrü,
strub

--- "Morgovsky, Alexander (US - Glen Mills)" <[EMAIL PROTECTED]> schrieb:

> What is the best practice for solving the Out-of-Memory errors which
> result from running Site Plugins like PMD?  Thank you. 
> 
> 
> This message (including any attachments) contains confidential information 
> intended for a
> specific individual and purpose, and is protected by law.  If you are not the 
> intended
> recipient, you should delete this message. 
> 
> 
> Any disclosure, copying, or distribution of this message, or the taking of 
> any action based on
> it, is strictly prohibited. [v.E.1]
> 



  Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s 
mit dem neuen Yahoo! Mail. www.yahoo.de/mail

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



shared library in executable jar file

2007-11-06 Thread Ed
Where do I configure to have a shared library file included correctly in an
executable assembly file?
I've been looking in the assembly plugin area with no luck.

When I try to run the executable jar file I get an
UnsatisfiedLinkError:Expecting an absolute path of the library:

I'm assembling an executable jar file and I need a shared library to be
assembled in the file and effectively in the LD_LIBRARY_PATH.

When I run
mvn package assembly:assembly

I'd like the libmylib.so file to be in the executable assembly and in the
load path.

In eclipse, I simply put the file in the
mylib/src/main/java/resources/org/mylib/socket directory and maven places
the file in the
mylib/target/classes/org/mylib/socket/ directory when I run
mvn compile

I can the execute the file.

When I try to run the executable jar file I get an
UnsatisfiedLinkError:Expecting an absolute path of the library:

Thanks in advance,

-- 
Ed


RE: distributing multiple versions of sites to URLs containing the version number

2007-11-06 Thread William Ferguson
I have the same requirement - versioning of sites.

In order to have a parent POM that safely defines inheritable site URLs
(which is what you are asking for) requires resolution of 

http://jira.codehaus.org/browse/MNG-3244
 
Which *was* done for maven-2.0.8 but was then rolled back as changed
existing behaviour.
We need a solution that can be configured such that it just resolves the
inherited site URL and a default behaviuour (to support existing
projects) where it automagically appaends the child artifactId to the
inherited site URL.

Vote for it and arc up on the dev list proposing a backwards compatible
solution.

William

> -Original Message-
> From: jthomp [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 7 November 2007 6:37 AM
> To: users@maven.apache.org
> Subject: Re: distributing multiple versions of sites to URLs 
> containing the version number
> 
> 
> I'm trying to do the exact same thing that Jerome was asking 
> about and ran into the same problem.  His post received no 
> replies, so does that mean something like this is not 
> possible or is there some other way to do this that I overlooked?
> 
> As a workaround, I'm thinking about dropping the extra 
> ${project.artifactId} and leaving just the ${project.version} 
> which is not ideal since it doesn't work w/ projects that 
> have sub-modules at different version numbers and it will 
> make ad-hoc browsing trickier since you have to know in 
> advance the version of a particular project.
> 
> I'm surprised others haven't run into this before.
> 
> Thoughts?
> 
> -JT
> 
> 
> 
> Jerome Lacoste-2 wrote:
> > 
> > I am trying to deploy each version of a site to a different 
> URL, and 
> > use a single configuration in a parent pom. Given a project:
> > 
> > P1
> > - M1
> > - M2
> > 
> > where P1 inherits its config from a P0 master pom.
> > 
> > My intent is to obtain something like:
> > 
> > P1 be: http://my.domaine.com/projects/P1/${project.version}/
> > M1 be: http://my.domaine.com/projects/P1/${project.version}/M1
> > 
> > It works if I specify  for the pom and 
> distributionManagement in 
> > each project, but I am trying to get it to work in a single pom.
> > 
> > 
> > I tried various things, including
> > 
> >   
> > 
> >   ...
> > 
> > 
> http://my.domaine.com/projects/${project.artifactId}/${project.ve
> > rsion}/
> > 
> > in P0
> > 
> > P1 gets http://my.domaine.com/projects/P1/${project.version}/P1
> > and
> > M1 gets http://my.domaine.com/projects/M1/${project.version}/P1/M1
> > 
> > I could live with the superfluous P1 for the moment, but the P1 
> > replaced by M1 obviously breaks browsing...
> > 
> > Any comment?
> > 
> > Anyone else dealing with versionned sites ?
> > 
> > Jerome
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> --
> View this message in context: 
> http://www.nabble.com/distributing-multiple-versions-of-sites-
> to-URLs-containing-the-version-number-tf1883686s177.html#a13615353
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: Properties files exclude from jar artifact

2007-11-06 Thread Wayne Fay
No such "all" classifier exists. You must specify each dependency.

Wayne

On 11/6/07, Saloucious <[EMAIL PROTECTED]> wrote:
>
> Ok, but is it possible to get jar artifact and properties artifact in one
> dependency decalaration:
>
> For example, I deploy module1 with jar artifact and properties artifact
>
> and in a module2, i declare a dependency  with module1
> Is Maven able to retrieve 2 artifacts (for example with a
> ALL
> 
> mygroup
> module1
> 
>
> Otherwise i must declare 2 dependencies by module, one for binaries files
> and one for properties files...
>
>
> Wayne Fay wrote:
> >
> > You could make another artifact (jar) that consists only of properties
> > files that are jar'ed together and deploy it into your repo.
> >
> > Wayne
> >
> > On 10/26/07, Saloucious <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> Acutally, i'm working on a migration from Ant to Maven.
> >> The old Ant script creates for each project a  jar and  copy properties
> >> files in a deploy dir.
> >> So these properties file are not embeded in jar.
> >>
> >> Now i'm on Maven,
> >> If I excludes files from jar, they will not be in repository
> >> I don't find the way to be able to not embed properties file from jar and
> >> install them in repo.
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13429857
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13616078
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: distributing multiple versions of sites to URLs containing the version number

2007-11-06 Thread Dennis Lundberg
There is currently no built-in support for versioned sites in 
maven-site-plugin. Discussions about this has appeared from time to time 
on this list though.


jthomp wrote:

I'm trying to do the exact same thing that Jerome was asking about and ran
into the same problem.  His post received no replies, so does that mean
something like this is not possible or is there some other way to do this
that I overlooked?

As a workaround, I'm thinking about dropping the extra ${project.artifactId}
and leaving just the ${project.version} which is not ideal since it doesn't
work w/ projects that have sub-modules at different version numbers and it
will make ad-hoc browsing trickier since you have to know in advance the
version of a particular project.

I'm surprised others haven't run into this before.

Thoughts?

-JT



Jerome Lacoste-2 wrote:

I am trying to deploy each version of a site to a different URL, and
use a single configuration in a parent pom. Given a project:

P1
- M1
- M2

where P1 inherits its config from a P0 master pom.

My intent is to obtain something like:

P1 be: http://my.domaine.com/projects/P1/${project.version}/
M1 be: http://my.domaine.com/projects/P1/${project.version}/M1

It works if I specify  for the pom and distributionManagement in
each project, but I am trying to get it to work in a single pom.


I tried various things, including

  

  ...

http://my.domaine.com/projects/${project.artifactId}/${project.version}/


in P0

P1 gets http://my.domaine.com/projects/P1/${project.version}/P1
and
M1 gets http://my.domaine.com/projects/M1/${project.version}/P1/M1

I could live with the superfluous P1 for the moment, but the P1
replaced by M1 obviously breaks browsing...

Any comment?

Anyone else dealing with versionned sites ?

Jerome

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








--
Dennis Lundberg

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



Re: Properties files exclude from jar artifact

2007-11-06 Thread Saloucious

Ok, but is it possible to get jar artifact and properties artifact in one
dependency decalaration:

For example, I deploy module1 with jar artifact and properties artifact

and in a module2, i declare a dependency  with module1
Is Maven able to retrieve 2 artifacts (for example with a
ALL
mygroup
module1


Otherwise i must declare 2 dependencies by module, one for binaries files
and one for properties files...


Wayne Fay wrote:
> 
> You could make another artifact (jar) that consists only of properties
> files that are jar'ed together and deploy it into your repo.
> 
> Wayne
> 
> On 10/26/07, Saloucious <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> Acutally, i'm working on a migration from Ant to Maven.
>> The old Ant script creates for each project a  jar and  copy properties
>> files in a deploy dir.
>> So these properties file are not embeded in jar.
>>
>> Now i'm on Maven,
>> If I excludes files from jar, they will not be in repository
>> I don't find the way to be able to not embed properties file from jar and
>> install them in repo.
>> --
>> View this message in context:
>> http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13429857
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Properties-files-exclude-from-jar-artifact-tf4698085s177.html#a13616078
Sent from the Maven - Users mailing list archive at Nabble.com.


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



scm:checkout and modules problem

2007-11-06 Thread Doug Knesek

Hi,

I have a project that defines a number of modules.  Each module's pom
references a different scm location.

When I run "mvn scm:checkout install" against the aggregating pom (the one
defining the modules), the "scm:checkout" doesn't propagate to the modules,
so when the "install" is executed on the modules, maven cannot find any
source files to compile.

What am I doing wrong?

Thanks.



-- 
View this message in context: 
http://www.nabble.com/scm%3Acheckout-and-modules-problem-tf4761089s177.html#a13616044
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[ANN] buildnumber-maven-plugin-1.0-beta-1

2007-11-06 Thread Dan Tran
Hi
The mojo team are happy to announce that version 2.0-beta-1 of the
buildnumber-maven plugin has been released.  The plugin site is at

  http://mojo.codehaus.org/buildnumber-maven-plugin/


This is the same plugin with the one residing at

http://commons.ucalgary.ca/pub/m2/org/codehaus/mojo/maven-buildnumber-plugin/0.9.6/

which is now deprecated.



-Dan

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



Re: distributing multiple versions of sites to URLs containing the version number

2007-11-06 Thread jthomp

I'm trying to do the exact same thing that Jerome was asking about and ran
into the same problem.  His post received no replies, so does that mean
something like this is not possible or is there some other way to do this
that I overlooked?

As a workaround, I'm thinking about dropping the extra ${project.artifactId}
and leaving just the ${project.version} which is not ideal since it doesn't
work w/ projects that have sub-modules at different version numbers and it
will make ad-hoc browsing trickier since you have to know in advance the
version of a particular project.

I'm surprised others haven't run into this before.

Thoughts?

-JT



Jerome Lacoste-2 wrote:
> 
> I am trying to deploy each version of a site to a different URL, and
> use a single configuration in a parent pom. Given a project:
> 
> P1
> - M1
> - M2
> 
> where P1 inherits its config from a P0 master pom.
> 
> My intent is to obtain something like:
> 
> P1 be: http://my.domaine.com/projects/P1/${project.version}/
> M1 be: http://my.domaine.com/projects/P1/${project.version}/M1
> 
> It works if I specify  for the pom and distributionManagement in
> each project, but I am trying to get it to work in a single pom.
> 
> 
> I tried various things, including
> 
>   
> 
>   ...
> 
> http://my.domaine.com/projects/${project.artifactId}/${project.version}/
> 
> in P0
> 
> P1 gets http://my.domaine.com/projects/P1/${project.version}/P1
> and
> M1 gets http://my.domaine.com/projects/M1/${project.version}/P1/M1
> 
> I could live with the superfluous P1 for the moment, but the P1
> replaced by M1 obviously breaks browsing...
> 
> Any comment?
> 
> Anyone else dealing with versionned sites ?
> 
> Jerome
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/distributing-multiple-versions-of-sites-to-URLs-containing-the-version-number-tf1883686s177.html#a13615353
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Maven 2 Site Plugins Out-of-Memory Errors

2007-11-06 Thread Morgovsky, Alexander (US - Glen Mills)
What is the best practice for solving the Out-of-Memory errors which
result from running Site Plugins like PMD?  Thank you. 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]


Re: Alpha plugin

2007-11-06 Thread olivier lamy
Hi,
Yes you can lock the plugin version in your poms.
Use  xml element.

--
Olivier

2007/11/6, Jean-Yves LEBLEU <[EMAIL PROTECTED]>:
>
> Hello all,
>
> Is there any way to avoid using alpha version of plugins with maven.
>
> I have some builds which used to run fine and as the plugin is updated
> to alpha version they are not running properly anymore
> (war plugin alpha 2.1 does not filter ressources correctly), had the
> same pb with the assembly plugin 
>
> Thanks for any answer.
>
> Jean-Yves
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


how to replace config files during packaging the war

2007-11-06 Thread Thomas Fischer

We develop a web application and test it on our development machines. The
application has a bunch of configuration files.
When we package the web application, we want to replace the dev
configuration files, including the web.xml, with production config files.
So we have our production configuration files in
src/main/config/${configDir}, where ${configDir} is set by the profile (to
care for for different production environments). The war plugin is
configured as follows:


  maven-war-plugin
  2.0.2
  

  
src/main/config/${configDir}
WEB-INF
  

  



Then we issue "mvn cIean package". However, this does not always replace
the files in src/main webapp with the files in
src/main/config/${configDir}, but depends on the file modification dates.
If the file in src/main/config/${configDir}is newer than the file in
src/main/webapp, the war plugin uses the file in
src/main/config/${configDir}; otherwise it uses the file in
src/main/webapp. The reason is probably that the war plugin tries to
replace only changed files when "clean" is not issued. This is at least
very confusing, if not a bug.

To prevent this, we tried using the  setting of the war
plugin. For example,

**/someConfigFile.properties

However, if someConfigFiles.properties is newer in the src/main/webapp
directory than the file in in src/main/config/${configDir},  the file is
missing in the jar (but not in the "exploded" war directory).(note :
web.xml seems to be an exception, I could not create a case where web.xml
is incorrect or missing with this configuration)

So my questions are:
- Is the current behaviour of the war plugin considered correct or is it a
bug ?
- Is there a better way of managing different configurations ? Or, to put
it differently, is there a good workaround to avoid these problems ? It
seems that putting the web content in a non-standard directory and then
assembling the war content manually using webResources would work, but I'd
rather avoud this, as it does not play cleanly e.g. with the maven eclipe
plugin's wpt option.

This is using current versions of maven (2.0.7) and the maven war plugin
(2.0.2)

   Thanks in advance for any hints,

  Thomas


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



Shell builds in maven projects

2007-11-06 Thread Raúl Arabaolaza Barquín

Hi:

I,ve got  a shell project wich must be executed the last of my project group 
build queue.

When using continuum (1.1-beta4) you can add a build definition of type shell 
in a maven 2 project, but it dosen´t execute as a shell build but as a maven 
build. Is this the intended behaviour?

Alternativaly if you add a shell project you can´t specify dependencies so you 
can´t control the build order 

Is there a way to control the order in wich a shell project is executed into a 
m2 project group?

Thanks 

--
This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail
in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the sender does
not warrant that this transmission is virus-free and will not be liable for
any damages resulting from any virus transmitted.

Este mensaje y los ficheros adjuntos pueden contener informacion
confidencial destinada solamente a la(s) persona(s) mencionadas
anteriormente. Pueden estar protegidos por secreto profesional Si usted
recibe este correo electronico por error, gracias de informar inmediatamente
al remitente y destruir el mensaje.
Al no estar asegurada la integridad de este mensaje sobre la red, Atos
Origin no se hace responsable por su contenido. Su contenido no constituye
ningun compromiso para el grupo Atos Origin, salvo ratificacion escrita por
ambas partes.
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
no puede garantizar nada al respecto y no sera responsable de cualesquiera
danos que puedan resultar de una transmision de virus
--


Re: War packaging and how to change dependencies directory

2007-11-06 Thread Saloucious

Thanks

But i've just realized (I had a look into war plugin sources) that now war
plugin handle AAR dependencies (instead of skipping) and package them into
WEB-INF/services

Nevertheless maven-dependency-plugin + war plugin trick will help me great
for ohter modules.


Dave Feltenberger wrote:
> 
> Configure the dependencies plugin to copy your two dependencies to a
> temporary directory.
> 
>   
>   org.apache.maven.plugins
>   maven-dependency-plugin
>   
>   
>   process-classes
>   
>   
> copy-dependencies
>   
>   
>   
>   
> ${dependencyTemp}/services
>   
>   
>   
> yourTwo,artifactIds
>   
>   
>   
>   
>   
> 
> In the war plugin configuration, add something like this:
> 
>   
>   maven-war-plugin
>   
>   
>   yourTwo*,artifactIds*
>   
>...
>   
>   
>   
>   
> ${dependencyTemp}
>   
> ...
>   
>   
>  
> 
> 
> 
> 
> 
> On Nov 6, 2007 5:04 AM, Saloucious <[EMAIL PROTECTED]> wrote:
>>
>> Ok thanks,
>>
>> unfortunately, this trick not allows me to manage my 2 dependencies as
>> maven
>> dependencies.
>>
>>
>>
>>
>> Saritha SV wrote:
>> >
>> > Hi
>> >
>> > Sorry for the wrong info .I just plainly forgot that.
>> >  Another  work around  which can be done with war plugin is to include
>> the
>> > dependency as a web resource entry like :
>> >
>> > 
>> >   org.apache.maven.plugins
>> > maven-war-plugin
>> >   
>> > resource2  
>> >
>> >
>> > And manually include  the jar file in your project . create a resource2
>> > directory . create services directory . Include the dependency inside
>> that
>> > after creating the dir  structure for artifact id .
>> > Try including the jar files in the foll: structure :
>> >
>> > -pom.xml
>> > -resource2
>> >  - services
>> >  -create directories full group id  of the dependency (
>> like
>> > ant/ ant/1.4 etc )
>> > - finally place the jar file
>> >
>> > And the directory resource2 is pointed out as a webresource in pom.xml
>> > and
>> > thus the generated  war file will have the structure  :
>> >
>> > -WEB-INF
>> >
>> > -services
>> > -full directory for the dependency as you have created in services
>> > folder in project.
>> > - jar file
>> >
>> >
>> > Thanks
>> > Saritha SV
>> >
>> >
>> > On 11/5/07, Dimitris Kapanidis <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Saritha SV wrote:
>> >> > Hi
>> >> >
>> >> > Inorder  to  exclude dependencies you can specify scope as provided
>> for
>> >> the
>> >> > dependencies .
>> >> > And to  include these  dependencies in a different  folder please
>> try :
>> >> >
>> >> >
>> >> >   grupid of dependency
>> >> >   artifact id of
>> >> > dependency
>> >> >   /service(try giving the path where
>> you
>> >> need
>> >> > the dependency)
>> >> >
>> >> >
>> >> > Include this in the   tag in maven-war-plugin.
>> >> >
>> >> >
>> >> The  parameter exists only on mave-ear-plugin as far as I
>> know.
>> >>
>> >> > Thanks
>> >> > Saritha
>> >> >
>> >> > On 11/5/07, Saloucious <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> >> Hi,
>> >> >>
>> >> >> I'm packaging a war and all dependencies go into WEB-INF/lib, but i
>> >> would
>> >> >> like to exclude 2 of them and but them into a services dir.
>> >> >>
>> >> >> The target layout I'm after is:
>> >> >>
>> >> >> WAR root
>> >> >> |
>> >> >> |---WEB-INF
>> >> >> |  |---lib (with dependencies)
>> >> >> |
>> >> >> |---services (with my 2 excluded dependencies)
>> >> >>
>> >> >> Is it possible t

Re: Deploy to production from a production Maven repository

2007-11-06 Thread Kalle Korhonen
Wendy mentioned a "pull" model, and that's what we are doing. Ant with Maven
tasks is great for this. Our Ant script itself is in Maven repository. We
get that with a simple wget from a target server and then run the Ant script
that gets all the other dependencies, installs the container, asks input for
configuration items etc. As a bonus, we can automate testing of deployment
this way.

Kalle


On 11/6/07, Simon Taylor <[EMAIL PROTECTED]> wrote:
>
> Great thanks for that - will look at SCM tools
>
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> Sent: 06 November 2007 03:33
> To: Maven Users List
> Subject: Re: Deploy to production from a production Maven repository
>
> On 11/5/07, Simon Taylor <[EMAIL PROTECTED]> wrote:
>
> > I've recently seen the light of using Maven to build projects.
>
> A convert! :)
>
> > I understand that once complete artifacts are deployed to a
> "production"
> > Maven repository so they can be consumed as ready.
> > Whats not clear to me is whether Maven is the tool to then consume
> > that production ready artifact and deploy it to the producton server
> > ready to be run up as a production app.
> > Can someone clarify for me how they consume a Maven production
> > artifact on their production server.
>
> You can take a look at the Cargo project or the various plugins that
> deploy to appservers, but usually there is a configuration management
> group in charge of deployment and you will have to follow their
> procedures in order to get anything deployed into production.
>
> Where I am now we're looking at improving the automation of deployment,
> but probably more in a "pull" model.  The Maven repo has a nice standard
> structure so it's easy to construct urls if you know the groupId, the
> artifactId and the version number.  So rather than try to have Maven
> deploy things, it's more likely that we'll "notify" another system or
> group of people, maybe provide a url, and have them pull what they need.
>
> --
> Wendy
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: builds not ordered by date

2007-11-06 Thread Ionut S
Opened http://jira.codehaus.org/browse/CONTINUUM-1551

Emmanuel Venisse <[EMAIL PROTECTED]> wrote: Hmm, it isn't normal.
Please file an issue.

Emmanuel

Ionut S a écrit :
> Sometimes I see that the build in progress is not the last one.. instead is 
> somewhere below, after the builds that are already finished. 
> 
> Any idea why ?
> 
>  __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Alpha plugin

2007-11-06 Thread Wayne Fay
Actually, I lock down all versions of all plugins and all
dependencies. Unless I need a new feature in a new release of a
plugin, or I run into a bug that's been fixed in a newer version, the
"old" version works just fine for me.

The "Maven should not use alpha/beta automatically" issue has been
discussed on dev@ but I'm not sure what if any changes will come in
2.1.

Wayne

On 11/6/07, Jean-Yves LEBLEU <[EMAIL PROTECTED]> wrote:
> It is what I do when I detect the problem but it is a bit "heavy" to
> lock the version for every plugin you use don't you think so ?
> This is one of the advantage of maven that everything is working with
> a minimal pom. IMO the alpha / beta versions of plugins should not be
> updated automatically
>
> Jean-Yves
>
>
> On Nov 6, 2007 4:22 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > You can/should lock down your version numbers in the pom.
> >
> > Wayne
> >
> >
> > On 11/6/07, Jean-Yves LEBLEU <[EMAIL PROTECTED]> wrote:
> > > Hello all,
> > >
> > > Is there any way to avoid using alpha version of plugins with maven.
> > >
> > > I have some builds which used to run fine and as the plugin is updated
> > > to alpha version they are not running properly anymore
> > > (war plugin alpha 2.1 does not filter ressources correctly), had the
> > > same pb with the assembly plugin 
> > >
> > > Thanks for any answer.
> > >
> > > Jean-Yves
> > >
> > > -
> > > 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 PROTECTED]



RE: Question about native library path

2007-11-06 Thread Sean Hennessy
Maven has promise for being a worthwhile tool and we all share the
expectation that it will get better.  I get from this thread that Wayne
is frustrated with the available resources to target more feature
development.  Dave appears to be equially frustrated.

Perhaps the Maven team would consider adding a vote your feature with
donation component to the site.  That way companies and individuals may
participate in a positive way toward Maven even though they may not be
able to manage the time at the contributor level?

Best Regards,
Sean

-Original Message-
From: Dave Feltenberger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 06, 2007 7:28 AM
To: Maven Users List
Subject: Re: Question about native library path


The reason the *user's* list exists is to discuss using Maven, not to
lecture people about adding features that may or may not exist.  If a
person wants to find out if features exist, or has a question about
usage, they should not be lectured about adding the features themselves.
A simple, "I don't think this feature exists" suffices. I am -- and I'm
sure the vast majority of others are -- quite aware that this is an open
source project and I can contribute, but during the normal course of a
work day my employer pays me to make software for them, not drain
resources to modify open source projects that are designed to support
our infrastructure.  When I ask questions on OS project lists, I try to
contribute by answering a question or two that I'm able to answer, as
adding features to the projects is simply not something I'm able to
rationalize to my employers.

On Nov 2, 2007 4:22 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Any time, Dave! Some people simply need a little nudge in the right 
> direction.
>
> It seems like a lot of people on this list either don't realize or 
> forget that Maven is Open Source Software. You're a developer, right??

> If you want a feature and it isn't obviously available, go write some 
> code!! Maven plugins are (generally) trivial to modify or even create 
> from scratch to deal with a particular issue.
>
> The only way that Maven gets any better is by the contributions of 
> people (like yourself) -- some in the core dev team and others who are

> simply motivated users who want to get their work done.
>
> In the (short) amount of time we've spent discussing this issue, you 
> could have already written and tested your addition to the Eclipse 
> plugin, and you'd be on dealing with the next issue in your project.
>
>
> Wayne
>
> On 11/2/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
> > Thank you for pointing out that if a feature doesn't exist I'm free 
> > to add the necessary features myself, Wayne.
> >
> > On Nov 2, 2007 2:16 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > > Its possible this functionality is not currently available. Take a

> > > look at the source code, add in your needed features, and 
> > > contribute it back for future inclusion in the next release of the

> > > Eclipse plugin.
> > >
> > > Wayne
> > >
> > >
> > > On 11/2/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
> > > > All,
> > > >
> > > > Does anybody know if it's possible (and if so, how) to add the 
> > > > native library location to a classpath entry?  Specifically the 
> > > > Eclipse .project classpath attribute 
> > > > "org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY".  
> > > > I'd like to have some dlls in my library path without having to 
> > > > add additional JVM arguments everytime I create a launcher (and 
> > > > without having to specify it JVM-wide or something).  The 
> > > > closest thing I could find in the project documentation was 
> > > > "classpathContainers", but that's not exactly it.  Here's an 
> > > > example of what I'd want the end result to be:
> > > >
> > > > > > > path="M2_REPO/org/ecliplse/swt/swt/3.323/swt.jar">
> > > >
> > > > > > >
name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY"
> > > > value="MySwtProject/target/swt-native-libs"/>
> > > >
> > > >
> > > >
> > > > And I can't figure out how to add the additional attributes 
> > > > without doing it manually in Eclipse everytime.
> > > >
> > > > Thanks.
> > > >
> > > > Dave
> > > >
> > > > 
> > > > -
> > > > 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: [EMA

Re: War packaging and how to change dependencies directory

2007-11-06 Thread Dave Feltenberger
Configure the dependencies plugin to copy your two dependencies to a
temporary directory.


org.apache.maven.plugins
maven-dependency-plugin


process-classes


copy-dependencies




${dependencyTemp}/services



yourTwo,artifactIds






In the war plugin configuration, add something like this:


maven-war-plugin


yourTwo*,artifactIds*

   ...




${dependencyTemp}

...


 





On Nov 6, 2007 5:04 AM, Saloucious <[EMAIL PROTECTED]> wrote:
>
> Ok thanks,
>
> unfortunately, this trick not allows me to manage my 2 dependencies as maven
> dependencies.
>
>
>
>
> Saritha SV wrote:
> >
> > Hi
> >
> > Sorry for the wrong info .I just plainly forgot that.
> >  Another  work around  which can be done with war plugin is to include the
> > dependency as a web resource entry like :
> >
> > 
> >   org.apache.maven.plugins
> > maven-war-plugin
> >   
> > resource2  
> >
> >
> > And manually include  the jar file in your project . create a resource2
> > directory . create services directory . Include the dependency inside that
> > after creating the dir  structure for artifact id .
> > Try including the jar files in the foll: structure :
> >
> > -pom.xml
> > -resource2
> >  - services
> >  -create directories full group id  of the dependency ( like
> > ant/ ant/1.4 etc )
> > - finally place the jar file
> >
> > And the directory resource2 is pointed out as a webresource in pom.xml
> > and
> > thus the generated  war file will have the structure  :
> >
> > -WEB-INF
> >
> > -services
> > -full directory for the dependency as you have created in services
> > folder in project.
> > - jar file
> >
> >
> > Thanks
> > Saritha SV
> >
> >
> > On 11/5/07, Dimitris Kapanidis <[EMAIL PROTECTED]> wrote:
> >>
> >> Saritha SV wrote:
> >> > Hi
> >> >
> >> > Inorder  to  exclude dependencies you can specify scope as provided for
> >> the
> >> > dependencies .
> >> > And to  include these  dependencies in a different  folder please try :
> >> >
> >> >
> >> >   grupid of dependency
> >> >   artifact id of
> >> > dependency
> >> >   /service(try giving the path where you
> >> need
> >> > the dependency)
> >> >
> >> >
> >> > Include this in the   tag in maven-war-plugin.
> >> >
> >> >
> >> The  parameter exists only on mave-ear-plugin as far as I know.
> >>
> >> > Thanks
> >> > Saritha
> >> >
> >> > On 11/5/07, Saloucious <[EMAIL PROTECTED]> wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> I'm packaging a war and all dependencies go into WEB-INF/lib, but i
> >> would
> >> >> like to exclude 2 of them and but them into a services dir.
> >> >>
> >> >> The target layout I'm after is:
> >> >>
> >> >> WAR root
> >> >> |
> >> >> |---WEB-INF
> >> >> |  |---lib (with dependencies)
> >> >> |
> >> >> |---services (with my 2 excluded dependencies)
> >> >>
> >> >> Is it possible to do that ?
> >> >>
> >> >> Thanks
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/War-packaging-and-how-to-change-dependencies-directory-tf4752596s177.html#a13589848
> >> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >> -
> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> >> For additional commands, e-mail: 

Re: Maven/Subversion/Eclipse/Subclipse Configuration

2007-11-06 Thread Dave Feltenberger
I agree with you, Vanja.  And if the developers on the project are
definitely using Eclipse, you can create a "Maven Builder" for Eclipse
that hooks into the Eclipse build lifecycle.  See the
additionalBuildCommands tag here:
http://maven.apache.org/plugins/maven-eclipse-plugin/eclipse-mojo.html.
 You'd then check in the Builder/External Launcher configuration file
to SVN, and when a developer checks the project out and runs mvn
eclipse:eclipse on the project, the .project file will reflect the new
builder.  Then you can build (or filter resources) on incremental
builds or full clean/builds in Eclipse without having to invoke Maven
directly.

On Nov 6, 2007 9:08 AM, Vanja Petreski <[EMAIL PROTECTED]> wrote:
> Check config file for the subversion. There you can find global-ignores
> option, where you can set filtering for target and other non-maven files
> (like IDE specific files).
>
> I am following the procedure:
>
> 1) Create Maven project structure
> 2) Import to the Subversion (with mentioned global-ignores)
> 3) Now everybody can checkout
> 4) Every developer now can choose IDE (for example mvn eclipse:eclipse)
>
> I don't use Eclipse plugins for Maven at all, because no one is good enough
> for me.
>
> I am using Subclipse as the SVN client, but import and checkout I am doing
> manually (using svn command).
>
> Regards,
> Vanja
>
>
>
> On Nov 6, 2007 2:13 PM, Simon Taylor <[EMAIL PROTECTED]> wrote:
>
> > Were configuring our first Maven project and wondering if we have the
> > right approach.
> >
> > Were using Maven2, Subversion accessible via WebDAV, Eclipse with both
> > Subclipse and Maven2Eclipse plugin.
> >
> > We created a new Maven2 project in Eclipse.
> > We have an existing project structure that we want to convert to Maven 2
> > and check in to the repository so we can then check it out and work on
> > it in Eclipse.
> > In eclipse it seems you can only check out from the repository "As a new
> > project" - if we do this then we don't get the Maven2 structure.
> > One alternative is to create the Maven2 project structure import the src
> > code from the filesystem and then commit the whole project to Subversion
> > - but ths also commits the target dir and all the compiled classes which
> > to my mind shouldn't live in the repository.
> >
> > Whats the right way to use Maven2, Subversion and Eclipse.
> >
> > Thanks
> >
> > Simon
> >
> >
> >
> > Simon Taylor
> > Service Tools Solutions (STS) Engineer
> > Nortel
> > Email [EMAIL PROTECTED]
> > Office +44.1279 402291 (ESN 6 742 2291)
> > Mobile +44.7740.533743 (ESN 748 3743)
> >
> >
> >
> >
>

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



Re: Alpha plugin

2007-11-06 Thread Jean-Yves LEBLEU
It is what I do when I detect the problem but it is a bit "heavy" to
lock the version for every plugin you use don't you think so ?
This is one of the advantage of maven that everything is working with
a minimal pom. IMO the alpha / beta versions of plugins should not be
updated automatically

Jean-Yves


On Nov 6, 2007 4:22 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> You can/should lock down your version numbers in the pom.
>
> Wayne
>
>
> On 11/6/07, Jean-Yves LEBLEU <[EMAIL PROTECTED]> wrote:
> > Hello all,
> >
> > Is there any way to avoid using alpha version of plugins with maven.
> >
> > I have some builds which used to run fine and as the plugin is updated
> > to alpha version they are not running properly anymore
> > (war plugin alpha 2.1 does not filter ressources correctly), had the
> > same pb with the assembly plugin 
> >
> > Thanks for any answer.
> >
> > Jean-Yves
> >
> > -
> > 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: Question about native library path

2007-11-06 Thread Dave Feltenberger
The reason the *user's* list exists is to discuss using Maven, not to
lecture people about adding features that may or may not exist.  If a
person wants to find out if features exist, or has a question about
usage, they should not be lectured about adding the features
themselves.  A simple, "I don't think this feature exists" suffices.
I am -- and I'm sure the vast majority of others are -- quite aware
that this is an open source project and I can contribute, but during
the normal course of a work day my employer pays me to make software
for them, not drain resources to modify open source projects that are
designed to support our infrastructure.  When I ask questions on OS
project lists, I try to contribute by answering a question or two that
I'm able to answer, as adding features to the projects is simply not
something I'm able to rationalize to my employers.

On Nov 2, 2007 4:22 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Any time, Dave! Some people simply need a little nudge in the right direction.
>
> It seems like a lot of people on this list either don't realize or
> forget that Maven is Open Source Software. You're a developer, right??
> If you want a feature and it isn't obviously available, go write some
> code!! Maven plugins are (generally) trivial to modify or even create
> from scratch to deal with a particular issue.
>
> The only way that Maven gets any better is by the contributions of
> people (like yourself) -- some in the core dev team and others who are
> simply motivated users who want to get their work done.
>
> In the (short) amount of time we've spent discussing this issue, you
> could have already written and tested your addition to the Eclipse
> plugin, and you'd be on dealing with the next issue in your project.
>
>
> Wayne
>
> On 11/2/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
> > Thank you for pointing out that if a feature doesn't exist I'm free to
> > add the necessary features myself, Wayne.
> >
> > On Nov 2, 2007 2:16 PM, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > > Its possible this functionality is not currently available. Take a
> > > look at the source code, add in your needed features, and contribute
> > > it back for future inclusion in the next release of the Eclipse
> > > plugin.
> > >
> > > Wayne
> > >
> > >
> > > On 11/2/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
> > > > All,
> > > >
> > > > Does anybody know if it's possible (and if so, how) to add the native
> > > > library location to a classpath entry?  Specifically the Eclipse
> > > > .project classpath attribute
> > > > "org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY".  I'd
> > > > like to have some dlls in my library path without having to add
> > > > additional JVM arguments everytime I create a launcher (and without
> > > > having to specify it JVM-wide or something).  The closest thing I
> > > > could find in the project documentation was "classpathContainers", but
> > > > that's not exactly it.  Here's an example of what I'd want the end
> > > > result to be:
> > > >
> > > > > > > path="M2_REPO/org/ecliplse/swt/swt/3.323/swt.jar">
> > > >
> > > > > > > name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY"
> > > > value="MySwtProject/target/swt-native-libs"/>
> > > >
> > > >
> > > >
> > > > And I can't figure out how to add the additional attributes without
> > > > doing it manually in Eclipse everytime.
> > > >
> > > > Thanks.
> > > >
> > > > Dave
> > > >
> > > > -
> > > > 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 PROTECTED]
>
>

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



Re: Alpha plugin

2007-11-06 Thread Wayne Fay
You can/should lock down your version numbers in the pom.

Wayne

On 11/6/07, Jean-Yves LEBLEU <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> Is there any way to avoid using alpha version of plugins with maven.
>
> I have some builds which used to run fine and as the plugin is updated
> to alpha version they are not running properly anymore
> (war plugin alpha 2.1 does not filter ressources correctly), had the
> same pb with the assembly plugin 
>
> Thanks for any answer.
>
> Jean-Yves
>
> -
> 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]



Alpha plugin

2007-11-06 Thread Jean-Yves LEBLEU
Hello all,

Is there any way to avoid using alpha version of plugins with maven.

I have some builds which used to run fine and as the plugin is updated
to alpha version they are not running properly anymore
(war plugin alpha 2.1 does not filter ressources correctly), had the
same pb with the assembly plugin 

Thanks for any answer.

Jean-Yves

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



RE: Maven/Subversion/Eclipse/Subclipse Configuration

2007-11-06 Thread Holt, Jack C.
This is straying off topic into Subversion but dare I mention it?...  If
you are developing on Windows there is an excellent open source
graphical client for Subversion called TortoiseSVN for checking things
in and out of subversion and managing the SVN repo.  You can get it at
http://tortoisesvn.tigris.org  



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



Version range dependencies causing problem

2007-11-06 Thread plas

Hi,

I've got a problem with the dependencies of some artifacts taken from global
repository.
My dependencies looks like follow:

commons-digester -> commons-validator -> my-artifact-1
commons-digester -> jasperreports -> my-artifact-2 -> my-artifact-1

The first dependency version (in commons-validator) is 1.6, the second (in
jasperreports) is [1.7,).
When I try to compile my project using Maven 2.0.5 i get the following
error:

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

Missing:
--
1) commons-digester:commons-digester:jar:RELEASE

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=commons-digester
-DartifactId=commons-digester \
  -Dversion=RELEASE -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) my-artifact-1
2) commons-validator:commons-validator:jar:1.2.0
3) commons-digester:commons-digester:jar:RELEASE


Has anyone of you ever encountered such case?

Thanks for any help,
Marcin Lewandowski
-- 
View this message in context: 
http://www.nabble.com/Version-range-dependencies-causing-problem-tf4758416s177.html#a13607721
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Maven/Subversion/Eclipse/Subclipse Configuration

2007-11-06 Thread Vanja Petreski
Check config file for the subversion. There you can find global-ignores
option, where you can set filtering for target and other non-maven files
(like IDE specific files).

I am following the procedure:

1) Create Maven project structure
2) Import to the Subversion (with mentioned global-ignores)
3) Now everybody can checkout
4) Every developer now can choose IDE (for example mvn eclipse:eclipse)

I don't use Eclipse plugins for Maven at all, because no one is good enough
for me.

I am using Subclipse as the SVN client, but import and checkout I am doing
manually (using svn command).

Regards,
Vanja


On Nov 6, 2007 2:13 PM, Simon Taylor <[EMAIL PROTECTED]> wrote:

> Were configuring our first Maven project and wondering if we have the
> right approach.
>
> Were using Maven2, Subversion accessible via WebDAV, Eclipse with both
> Subclipse and Maven2Eclipse plugin.
>
> We created a new Maven2 project in Eclipse.
> We have an existing project structure that we want to convert to Maven 2
> and check in to the repository so we can then check it out and work on
> it in Eclipse.
> In eclipse it seems you can only check out from the repository "As a new
> project" - if we do this then we don't get the Maven2 structure.
> One alternative is to create the Maven2 project structure import the src
> code from the filesystem and then commit the whole project to Subversion
> - but ths also commits the target dir and all the compiled classes which
> to my mind shouldn't live in the repository.
>
> Whats the right way to use Maven2, Subversion and Eclipse.
>
> Thanks
>
> Simon
>
>
>
> Simon Taylor
> Service Tools Solutions (STS) Engineer
> Nortel
> Email [EMAIL PROTECTED]
> Office +44.1279 402291 (ESN 6 742 2291)
> Mobile +44.7740.533743 (ESN 748 3743)
>
>
>
>


Re: Generate projects which have a JDBC connector

2007-11-06 Thread Guillaume Lederrey
Did you change the dependency scope from "runtime" (default) to "provided" ?

It is quite usual not to package JDBC jars into the WAR file, but to
have them deployed in the application server. For example, in Tomcat,
you'll have them in "$CATALINA_HOME/common/lib".

Good luck

  Guillaume

On 06/11/2007, Roses Roses <[EMAIL PROTECTED]> wrote:
> I've worked one month in a project which acces to a MySQL Database, and it 
> was working to yesterday. Now, when I generate the WAR file and execute it in 
> Tomcat, I have the sequent error:
>
> java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

-- 
Jabber : [EMAIL PROTECTED]
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/
* http://rwandatech.wordpress.com/

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



Generate projects which have a JDBC connector

2007-11-06 Thread Roses Roses

Hi,

I've worked one month in a project which acces to a MySQL Database, and it was 
working to yesterday. Now, when I generate the WAR file and execute it in 
Tomcat, I have the sequent error:

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

I believe that Maven has a problem because if I use an old WAR file, it works! 
Somebody can help me? Thank you!!

_
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Maven/Subversion/Eclipse/Subclipse Configuration

2007-11-06 Thread Simon Taylor
Were configuring our first Maven project and wondering if we have the
right approach.

Were using Maven2, Subversion accessible via WebDAV, Eclipse with both
Subclipse and Maven2Eclipse plugin.

We created a new Maven2 project in Eclipse.
We have an existing project structure that we want to convert to Maven 2
and check in to the repository so we can then check it out and work on
it in Eclipse.
In eclipse it seems you can only check out from the repository "As a new
project" - if we do this then we don't get the Maven2 structure.
One alternative is to create the Maven2 project structure import the src
code from the filesystem and then commit the whole project to Subversion
- but ths also commits the target dir and all the compiled classes which
to my mind shouldn't live in the repository.

Whats the right way to use Maven2, Subversion and Eclipse.

Thanks

Simon

 

Simon Taylor
Service Tools Solutions (STS) Engineer
Nortel
Email [EMAIL PROTECTED]
Office +44.1279 402291 (ESN 6 742 2291)
Mobile +44.7740.533743 (ESN 748 3743)





RE: Deploy to production from a production Maven repository

2007-11-06 Thread Simon Taylor
Great thanks for that - will look at SCM tools 

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: 06 November 2007 03:33
To: Maven Users List
Subject: Re: Deploy to production from a production Maven repository

On 11/5/07, Simon Taylor <[EMAIL PROTECTED]> wrote:

> I've recently seen the light of using Maven to build projects.

A convert! :)

> I understand that once complete artifacts are deployed to a
"production"
> Maven repository so they can be consumed as ready.
> Whats not clear to me is whether Maven is the tool to then consume 
> that production ready artifact and deploy it to the producton server 
> ready to be run up as a production app.
> Can someone clarify for me how they consume a Maven production 
> artifact on their production server.

You can take a look at the Cargo project or the various plugins that
deploy to appservers, but usually there is a configuration management
group in charge of deployment and you will have to follow their
procedures in order to get anything deployed into production.

Where I am now we're looking at improving the automation of deployment,
but probably more in a "pull" model.  The Maven repo has a nice standard
structure so it's easy to construct urls if you know the groupId, the
artifactId and the version number.  So rather than try to have Maven
deploy things, it's more likely that we'll "notify" another system or
group of people, maybe provide a url, and have them pull what they need.

--
Wendy

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


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



Re: maven 2.0.7 assembly plugin

2007-11-06 Thread Tomasz Pik
On 11/6/07, John Coleman <[EMAIL PROTECTED]> wrote:
> I have used the assembly plugin, but not like this.
>
> I don't think such a JAR (i.e. a JAR of JARS) will work unless you are
> loading the classes up by your own JAR exploration mechanism. Class
> files must be locatable from the JARs root to appear on the classpath.

There's  such a thing in maven1 - please, take a look here:
http://maven.apache.org/maven-1.x/plugins/uberjar/
Perhaps it may be ported as a layout in maven-assembly-plugin.
But - I was using this with maven1 with project containing big
jars (i.e. oracle jdbc driver) and it's very slow so I do not think
it's a right way to go.

> Perhaps you need to consider unpacking the various JARS into a common
> target and repcaking that into a single JAR. This could be a trivial
> Maven project.

This may be achieved using maven-assembly-plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies

HTH,
Tomek

>
> Perhaps this isn't really a JAR application, and would be better as a
> ZIP?
>
> John
>
> -Original Message-
> From: Brandon Enochs [mailto:[EMAIL PROTECTED]
> Sent: 06 November 2007 00:26
> To: Maven Users List
> Subject: maven 2.0.7 assembly plugin
>
> I'm trying to assemble a multi-module project with a single jar file for
>
> all of the modules in my project and a lib directory with all of jar
> files for my dependencies.  Does anyone know how to do this with the
> assembly plugin?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
> exercise control over the content of information in E-Mails. Any views and 
> opinions expressed may be personal to the sender and are not necessarily 
> those of Eurobase. Eurobase will not enter into any contractual obligations 
> in respect of any part of its business in any E-mail.
>
> Privileged / confidential information may be contained in this message and 
> /or any attachments. This E-mail is intended for the use of the addressee(s) 
> only and may contain confidential information. If you are not the / an 
> intended recipient, you are hereby notified that any use or dissemination of 
> this communication is strictly prohibited.  If you receive this transmission 
> in error, please notify us immediately, and then delete this E-mail.
>
> Neither the sender nor Eurobase accepts any liability whatsoever for any 
> defects of any kind either in or arising from this E-mail transmission. 
> E-Mail transmission cannot be guaranteed to be secure or error-free, as 
> messages can be intercepted, lost, corrupted, destroyed, contain viruses, or 
> arrive late or incomplete. Eurobase does not accept any responsibility for 
> viruses and it is your responsibility to scan any attachments.
>
> Eurobase Systems Limited is the main trading company in the Eurobase 
> International Group; registered in England and Wales as company number 
> 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
> CM2 0RE, UK.
>
>
> -
> 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: continuum being visible to all users

2007-11-06 Thread Emmanuel Venisse

It isn't possible to set "Project Developer" role without the delete action.

Emmanuel

Ionut S a écrit :

Guys,
If anybody knows how this can be solved, it would really help us ...

Ionut S <[EMAIL PROTECTED]> wrote: Just want to be sure I'm clear enough:


I want to give my users the right to force a build (without being logged in). 
Is there a way to do that ?



Ionut S  wrote: The lowest right I can give (Project User) will let everybody see the project; however one can't start a build. When I move up to the "Project Developer" role, everyone can delete things in Continuum !! 


Is there a way to let everybody see the projects and the build results and 
start a new build ? In 1.0.3 we had this possibility..




Emmanuel Venisse  wrote: You need to add some rights to the guest users, at 
least Project group reader.

Emmanuel

Ionut S a écrit :

Hi,
In the 1.0.3 version the continuum project page was visible to everyone.. Now only registered users have access to it. How can I configure it so that, by default, everybody can see most of the pages ? 


I didn't find a link for this kind of instructions, so excuse me if I missed it 
..

Thank you !

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




RE: maven 2.0.7 assembly plugin

2007-11-06 Thread John Coleman
I have used the assembly plugin, but not like this.

I don't think such a JAR (i.e. a JAR of JARS) will work unless you are
loading the classes up by your own JAR exploration mechanism. Class
files must be locatable from the JARs root to appear on the classpath.

Perhaps you need to consider unpacking the various JARS into a common
target and repcaking that into a single JAR. This could be a trivial
Maven project.

Perhaps this isn't really a JAR application, and would be better as a
ZIP?

John

-Original Message-
From: Brandon Enochs [mailto:[EMAIL PROTECTED] 
Sent: 06 November 2007 00:26
To: Maven Users List
Subject: maven 2.0.7 assembly plugin

I'm trying to assemble a multi-module project with a single jar file for

all of the modules in my project and a lib directory with all of jar 
files for my dependencies.  Does anyone know how to do this with the 
assembly plugin?

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


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.


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



Re: continuum being visible to all users

2007-11-06 Thread Ionut S
Guys,
If anybody knows how this can be solved, it would really help us ...

Ionut S <[EMAIL PROTECTED]> wrote: Just want to be sure I'm clear enough:


I want to give my users the right to force a build (without being logged in). 
Is there a way to do that ?



Ionut S  wrote: The lowest right I can give (Project User) will let everybody 
see the project; however one can't start a build. When I move up to the 
"Project Developer" role, everyone can delete things in Continuum !! 

Is there a way to let everybody see the projects and the build results and 
start a new build ? In 1.0.3 we had this possibility..




Emmanuel Venisse  wrote: You need to add some rights to the guest users, at 
least Project group reader.

Emmanuel

Ionut S a écrit :
> Hi,
> In the 1.0.3 version the continuum project page was visible to everyone.. Now 
> only registered users have access to it. How can I configure it so that, by 
> default, everybody can see most of the pages ? 
> 
> I didn't find a link for this kind of instructions, so excuse me if I missed 
> it ..
> 
> Thank you !
> 
>  __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [ANNOUNCE] Archiva 1.0 Beta 3 Released

2007-11-06 Thread Julien CARSIQUE
Sorry for the mistake : wanted to send the mail to 
[EMAIL PROTECTED]

Thanks for the answers

Brett Porter a écrit :

On 06/11/2007, Julien CARSIQUE <[EMAIL PROTECTED]> wrote:
  

Hi,

Trying to upgrade from beta-1 to beta-2, I have had some configuration
issues; more than simply change the  tag to
 and .



Archiva should have done this for you automatically - if you are
planning to upgrade from beta-1 to beta-3 and have problems, let us
know. BTW, Archiva has it's own list for these types of issues now if
you'd like to subscribe.

  

What do you think I have to do for upgrading from beta-1 to beta-3 ?



I posted a little bit to this list about it yesterday in another
thread - but it should just work.

  

Which changes are expected in conf/archiva.xml ? Is there some
deprecated tags ?
And in other configuration files ?



No other changes.

  

Do you still not have a schema to validate it ?



I can generate one for you to try - but it's not used by the
application to validate it.

  

I also had another issue with beta-1 : we have snapshots from trunk and
branch and wanted old snapshots to be automatically deleted but branch's
snapshots were systematically deleted during deployment because of
trunk's snapshots which were considered by archiva as more recent. What
do you think about this ?



This is a known issue: MRM-576.

Good luck!

Thanks,
Brett

  



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



Repository browsing does not work

2007-11-06 Thread Ulrich Metzger
Hi list,
i've installed the Beta3 version of archiva, and changed the path of the
default "internal" repository to point to  an existing  m2 repository.
After scanning, the report shows the number of found files, but when i tryed
the "Browse"  function, there is allways an empty  page. All other
functions under the menu "Find" did not find anything.
How do I get the Browse funktion to work?
Is there something like an enduser documentation?

Uli


Re: Maven's current working directory and changing resources location ...

2007-11-06 Thread Dimitris Kapanidis

Dimitris Kapanidis wrote:

KedarMhaswade wrote:

Thank you. I somehow misread "directory" as an attribute of .

Regards,
Kedar

Saritha SV wrote:
 

Hi

For changing Resources  location you can give the following :



  
src/main/java

  

  




This in my case cannot work, as the dependency is a module of the same 
project (it is an applet that needs to be put inside a war)


I tried it with maven-dependency-plugin injecting the dependency in 
the correct directory. All went well until the time of the release. 
During the release it was giving me a dependency not found error, 
since it was not installed yet (it is included in the same release). 
So I rejected that solution and went to maven-assembly-plugin. (hooked 
assembly in package and set "pom" packaging type).


Here is a more detailed description of my solution, maybe it can work in 
your case too:

...
   pom
...
   
   maven-assembly-plugin
   
   false
  
  
src/main/config/assemble/webapp.xml

  
   
   
   
   make-assembly
   package

   
   single  
   
   
   
   
...

and webapp.xml is:


   webapp
   
   war
   


 
   
   artifactName 
   
   provided
   filename
   


You have to define the dependency in the pom.xml also. Hope it helps, 
although I don't consider it a clean solution.


Somewhere I read if I remember correclty that in the release plugin 
you should put install in the preparationGoals in special cases like 
this, but never tried it. Anyone had any similar problems?




and place the properties file in  the directory src/main/java .

Then the properties file   will be  incuded in your generated jar 
file .


Thanks
Saritha SV



On 11/5/07, KedarMhaswade <[EMAIL PROTECTED]> wrote:
   

I have two questions, answers to which were not obvious.

1- What is the current working directory (i.e.
System.getProperty("user.dir"))? Can this be printed
   when one does "mvn -X ..."?
2- In our company we have resources (properties files for resource
bundles)
along side the Java sources
   because we have an ongoing strategy for Localized Strings where the
developers prefer to keep the
   strings used by com.example.Foo at the same location in a file 
named

"LocalStrings.properties".
   I added:

   
 
   


  for my resources to get copied into target folder upon "mvn 
package".

But
I get:
  Project ID: org.bykedar:learnmvn
POM Location: /Users/kedar/Personal/bnevins/projects/learnmvn/pom.xml
Validation Messages:

   [0]  'build.resources.resource.directory' is missing.


Reason: Failed to validate POM for project org.bykedar:learnmvn at
/Users/kedar/Personal/bnevins/projects/learnmvn/pom.xml

  Is there  an example somewhere of how to do this?

Thanks,

Kedar
--
View this message in context:
http://www.nabble.com/Maven%27s-current-working-directory-and-changing-resources-location-...-tf4752607s177.html#a13589892 


Sent from the Maven - Users mailing list archive at Nabble.com.


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


  



  



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





--
Dimitris Kapanidis
Software Q.A. Manager

Scytl Secure Electronic Voting
Tuset 20 - 08006 Barcelona
Phone: + 34 934 230 324
Fax:   + 34 933 251 028
http://www.scytl.com

NOTICE: The information in this e-mail and in any of its attachments is 
confidential and intended solely for the attention and use of the named 
addressee(s). If you are not the intended recipient, any disclosure, copying, 
distribution or retaining of this message or any part of it, without the prior 
written consent of Scytl Secure Electronic Voting, SA is prohibited and may be 
unlawful. If you have received this in error, please contact the sender and 
delete the material from any computer.


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



Re: Maven's current working directory and changing resources location ...

2007-11-06 Thread Dimitris Kapanidis

KedarMhaswade wrote:

Thank you. I somehow misread "directory" as an attribute of .

Regards,
Kedar

Saritha SV wrote:
  

Hi

For changing Resources  location you can give the following :



  
src/main/java

  

  




This in my case cannot work, as the dependency is a module of the same 
project (it is an applet that needs to be put inside a war)


I tried it with maven-dependency-plugin injecting the dependency in the 
correct directory. All went well until the time of the release. During 
the release it was giving me a dependency not found error, since it was 
not installed yet (it is included in the same release). So I rejected 
that solution and went to maven-assembly-plugin. (hooked assembly in 
package and set "pom" packaging type).


Somewhere I read if I remember correclty that in the release plugin you 
should put install in the preparationGoals in special cases like this, 
but never tried it. Anyone had any similar problems?




and place the properties file in  the directory src/main/java .

Then the properties file   will be  incuded in your generated jar file .

Thanks
Saritha SV



On 11/5/07, KedarMhaswade <[EMAIL PROTECTED]> wrote:


I have two questions, answers to which were not obvious.

1- What is the current working directory (i.e.
System.getProperty("user.dir"))? Can this be printed
   when one does "mvn -X ..."?
2- In our company we have resources (properties files for resource
bundles)
along side the Java sources
   because we have an ongoing strategy for Localized Strings where the
developers prefer to keep the
   strings used by com.example.Foo at the same location in a file named
"LocalStrings.properties".
   I added:

   
 
   


  for my resources to get copied into target folder upon "mvn package".
But
I get:
  Project ID: org.bykedar:learnmvn
POM Location: /Users/kedar/Personal/bnevins/projects/learnmvn/pom.xml
Validation Messages:

   [0]  'build.resources.resource.directory' is missing.


Reason: Failed to validate POM for project org.bykedar:learnmvn at
/Users/kedar/Personal/bnevins/projects/learnmvn/pom.xml

  Is there  an example somewhere of how to do this?

Thanks,

Kedar
--
View this message in context:
http://www.nabble.com/Maven%27s-current-working-directory-and-changing-resources-location-...-tf4752607s177.html#a13589892
Sent from the Maven - Users mailing list archive at Nabble.com.


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


  



  



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



Re: War packaging and how to change dependencies directory

2007-11-06 Thread Saloucious

Ok thanks,

unfortunately, this trick not allows me to manage my 2 dependencies as maven
dependencies.



Saritha SV wrote:
> 
> Hi
> 
> Sorry for the wrong info .I just plainly forgot that.
>  Another  work around  which can be done with war plugin is to include the
> dependency as a web resource entry like :
> 
> 
>   org.apache.maven.plugins
> maven-war-plugin
>   
> resource2  
>
> 
> And manually include  the jar file in your project . create a resource2
> directory . create services directory . Include the dependency inside that
> after creating the dir  structure for artifact id .
> Try including the jar files in the foll: structure :
> 
> -pom.xml
> -resource2
>  - services
>  -create directories full group id  of the dependency ( like
> ant/ ant/1.4 etc )
> - finally place the jar file
> 
> And the directory resource2 is pointed out as a webresource in pom.xml  
> and
> thus the generated  war file will have the structure  :
> 
> -WEB-INF
> 
> -services
> -full directory for the dependency as you have created in services
> folder in project.
> - jar file
> 
> 
> Thanks
> Saritha SV
> 
> 
> On 11/5/07, Dimitris Kapanidis <[EMAIL PROTECTED]> wrote:
>>
>> Saritha SV wrote:
>> > Hi
>> >
>> > Inorder  to  exclude dependencies you can specify scope as provided for
>> the
>> > dependencies .
>> > And to  include these  dependencies in a different  folder please try :
>> >
>> >
>> >   grupid of dependency
>> >   artifact id of
>> > dependency
>> >   /service(try giving the path where you
>> need
>> > the dependency)
>> >
>> >
>> > Include this in the   tag in maven-war-plugin.
>> >
>> >
>> The  parameter exists only on mave-ear-plugin as far as I know.
>>
>> > Thanks
>> > Saritha
>> >
>> > On 11/5/07, Saloucious <[EMAIL PROTECTED]> wrote:
>> >
>> >> Hi,
>> >>
>> >> I'm packaging a war and all dependencies go into WEB-INF/lib, but i
>> would
>> >> like to exclude 2 of them and but them into a services dir.
>> >>
>> >> The target layout I'm after is:
>> >>
>> >> WAR root
>> >> |
>> >> |---WEB-INF
>> >> |  |---lib (with dependencies)
>> >> |
>> >> |---services (with my 2 excluded dependencies)
>> >>
>> >> Is it possible to do that ?
>> >>
>> >> Thanks
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/War-packaging-and-how-to-change-dependencies-directory-tf4752596s177.html#a13589848
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/War-packaging-and-how-to-change-dependencies-directory-tf4752596s177.html#a13603742
Sent from the Maven - Users mailing list archive at Nabble.com.


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