Re: [MOJO] What s the dependency including MavenProject class ?

2007-06-14 Thread Napoleon Esmundo C. Ramirez

Hello Alexandre,

To help you fiddle with it, MavenProject is located in
org.apache.maven:maven-project.  Just check out the latest release. :)

Cheers!
Nap

On 6/14/07, Maria Odea Ching [EMAIL PROTECTED] wrote:


That's already included in Maven core.. you can find it inside the uber
jar in your $M2_HOME/lib.

-Deng

Alexandre Touret wrote:
 Hello,
 I m currently programming a mojo plugin.
 I d like to use the MavenProject class as described in the book
 Better builds with maven. I created the project with a simple plugin
 archetype generation.
 However, the class MavenProject is not present in the dependencies and
 I didn t figure out where is the package including this class.

 Could you give me the corresponding library ?

 Thanks in advance

 Regards,
 Alexandre



 -
 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 assembly plugin question

2007-06-14 Thread Kannan Ekanath

Hi,
Thanks, I seem to get it. While doing a mvn assembly:assembly it is showing
me a myapp.zip however, when I do a

mvn install i assumed this file will be stored in the .m2\repo it is still
showing as package-0.3-SNAPSHOT.zip and not myapp.zip(myapp.zip gets copied
into the m2\repo as package-0.3-SNAPSHOT.zip).

Can I install it as myapp.zip? (We have scripts picking up the zip for daily
deployment)

Thanks,
Kannan

On 6/14/07, Wendy Smoak [EMAIL PROTECTED] wrote:


On 6/13/07, Kannan Ekanath [EMAIL PROTECTED] wrote:

 mvn -Dproject.build.finalName=my-installer-0.3-SNAPSHOT clean
 assembly:assembly but it still creates the zip file with the name 
 package-0.3-SNAPSHOT. Can someone tell me if there is something i am
 missing?

Try setting buildfinalName in pom.xml, not on the command line.

--
Wendy

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





--
Regards,
Kannan Ekanath


Re: Maven assembly plugin question

2007-06-14 Thread Wendy Smoak

On 6/13/07, Kannan Ekanath [EMAIL PROTECTED] wrote:


Thanks, I seem to get it. While doing a mvn assembly:assembly it is showing
me a myapp.zip however, when I do a

mvn install i assumed this file will be stored in the .m2\repo it is still
showing as package-0.3-SNAPSHOT.zip and not myapp.zip(myapp.zip gets copied
into the m2\repo as package-0.3-SNAPSHOT.zip).

Can I install it as myapp.zip? (We have scripts picking up the zip for daily
deployment)


The finalName element only affects the file in the target directory.
The repository has a specific structure, files will always be deployed
as artifactId-version-classifier.

If you have a script picking up the file out of the repository, then
have the script do the rename as well.  Or you could bind another
plugin to the deploy phase to transfer the file to where it needs to
go.

--
Wendy

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



RE: Overriding properties in a dependency's pom.xml

2007-06-14 Thread Jörg Schaible
Hi Dan,

mojavelinux wrote on Thursday, June 14, 2007 2:11 AM:

 Damn, I just bumped in to this problem only to find that there is
 still no solution.  I am trying to do a very similar thing.  When one
 of my libraries depends on hibernate, for example, I am using
 properties in the deployed pom file to specify which version should
 be used by default if a person where to use my jar file in their
 project.  However, if they don't want that version of hibernate, they
 theoretically would set the same property in their own pom.xml file. 
 Only, just as Matt has pointed out, the dependency pom is taking
 precedence over the user's pom.xml.  This behavior makes absolutely
 no sense, especially since it is possible to achieve this override
 from the commandline.  The perfectly logical order would be:
 dependency pom - user pom - commandline flag. 
 
 Here is some XML to demonstrate what I am doing:
 
 some-cool-library.pom
 
 dependency
 groupIdorg.hibernate/groupId
 artifactIdhibernate/artifactId
 version${hibernate.version}/version
 /dependency
 properties
 hibernate.version3.2.1.ga/hibernate.version
 /properties
 
 user's pom.xml
 
 properties
 hibernate.version3.2.4.sp1/hibernate.version
 /properties
 
 result: no dice.

Don't use a property! Your users can overwrite the Hibernate version with an 
own dependencyManagement section easily.

- Jörg

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



Re: How do I use release:perform to deploy artifacts other than jar files?

2007-06-14 Thread Antonio Petrelli

2007/6/13, Danny MacMillan [EMAIL PROTECTED]:


Now I want to create a release.  I was able to successfully run
release:prepare and release:perform, but it deployed into the repository
just the jar file, when what I want to deploy is the zip file.  Is that
possible?




Sure, see:
http://maven.apache.org/plugins/maven-assembly-plugin/usage.html
and go to the paragraph Building an Assembly as Part of the Build
Lifecycle.
See also this working example (Tiles):
http://svn.apache.org/repos/asf/tiles/framework/trunk/assembly/pom.xml

HTH
Antonio


Re: [MOJO] What s the dependency including MavenProject class ?

2007-06-14 Thread Alexandre Touret

Thanks

Alexandre


Napoleon Esmundo C. Ramirez a écrit :

Hello Alexandre,

To help you fiddle with it, MavenProject is located in
org.apache.maven:maven-project.  Just check out the latest release. :)

Cheers!
Nap

On 6/14/07, Maria Odea Ching [EMAIL PROTECTED] wrote:


That's already included in Maven core.. you can find it inside the uber
jar in your $M2_HOME/lib.

-Deng

Alexandre Touret wrote:
 Hello,
 I m currently programming a mojo plugin.
 I d like to use the MavenProject class as described in the book
 Better builds with maven. I created the project with a simple plugin
 archetype generation.
 However, the class MavenProject is not present in the dependencies and
 I didn t figure out where is the package including this class.

 Could you give me the corresponding library ?

 Thanks in advance

 Regards,
 Alexandre



 -
 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]



maven, i18n and xliff

2007-06-14 Thread mljv
Hi folks,

does anybody know of a maven plugin which supports translation process of 
properties files and jsp?

I did some research on this topic:

The best open source tool around for translating seems to be OpenLanguageTool, 
it has nice filters transforming source to xliff, has a translation memory 
(tmx) and can backconvert to the original file. But it is has a rather 
strange gui instead of cool command line. Another tool is omegaT+

I guess many maven projects need translation and a workflow to translate new 
stuff. it would be nice to have a plugin which does transformation of jsp and 
properties to XLIFF, translate XLIFF with existing TMX to generate translated 
jsp/properties in target directory.

Does anybody know of a tag library with a tag like spring:message which offers 
the user to translate the token if it is not already translated? This would 
be a nice feature in a web2.0 world, when the user just can click the tokens 
and tranlate the app into his favourite language rather than waiting for the 
developers. It would be handy if such a tag saves the translation advice to 
database, let someone optionally approve the translation, and let maven 
access this databse for the translation memory to generate the new files on 
next deployment.

Is something like this available? If not, how do you manage your translation 
process with maven? 

kind regards,
janning


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



Re: maven-scm-plugin verbose

2007-06-14 Thread Jeff Mutonho

On 6/13/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:

you can use the mvn -X parameter.



Well , I'm using  Continuum to launch the maven builds



Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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




Maven versioning

2007-06-14 Thread Wim Deblauwe

Hi,

I was looking for information about the version numbers that maven
understands and came across this document:
http://docs.codehaus.org/display/MAVEN/Versioning
Is this the current state? If not, where can I find it?

I want to release something with a version number that has no official
release yet. How should I give it it's version number so that the final
release will be considered later?

For instance, currently they are at 1.0-SNAPSHOT, final version will be 1.0.
What version can I use (with preferably the time stamp in the version)?

regards,

Wim

--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester


Re: Ant task executing twice

2007-06-14 Thread Jeff Mutonho

Thanx . Would definitely like to get a patch for this.

On 6/13/07, Siegfried Goeschl [EMAIL PROTECTED] wrote:

Hi Jeff,

this is/was a bug we encountered in 2.0.4 and my colleague just fixed
over the evening by patching the Maven libs ... :-(

If this is still an issue I will remind him to sent a patch next week

Cheers,

Siegfried Goeschl

Jeff Mutonho wrote:
 I have an ant task that is suppose to run in the process-resources
 phase.The configuration is :

 plugin
   artifactIdmaven-antrun-plugin/artifactId
executions
execution
phaseprocess-resources/phase
 configuration
  tasks
  copy todir=target/checkout  overwrite=true
  fileset dir=../portal-ear/target
   include name=portal.ear/
 /fileset
  /copy
  /tasks
  /configuration
  goals
   goalrun/goal
  /goals
 /execution
/executions
   /plugin

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





--

Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: What ** means ?

2007-06-14 Thread Lukas Theussl


It's the same as ant patterns:
http://ant.apache.org/manual/dirtasks.html#patterns

HTH,
-Lukas


Johan Iskandar wrote:

maven.multiproject.includes=**/project.xml


I think it means all project.xml files in all directories that has
project.xml that's relative to base directory.



maven.multiproject.excludes=**/*-root/**/project.xml,**/target/**


I think it means all project.xml files in all directories relative to
base directory that has directories with -root postfix.


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



Re: Using profiles in a webapp

2007-06-14 Thread aemm

it works Thanks a lot.

another question: I want to exclude de /lib directory containing all the
jar's when I create de .war file to deploy in the server, because the
instance where I deploy my application already have a classpath containing
all the libraries requiered.

any idea? any solution?

Thanks.



Arnaud Bailly-3 wrote:
 
 aemm [EMAIL PROTECTED] writes:
 
 Hi! I'm a newbie in the utilization of Maven. 

 I'm developing a webapp (with Spring) and I want to include profiles in
 my
 app. This profiles will change de jdbc connection settings depending on
 which profile I select.

 Let's explain my problem.

 I have jdbc.properties in ${project.root}\src\main\webapp\WEB-INF,
 and looks
 
 You need to configure the maven-war-plugin to do filtering and files
 in src/main/webapp are not filtered. 
 
 http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
 
 BTW, this is not profile-specfic.
 HTH
 -- 
 OQube  software engineering \ génie logiciel 
 Arnaud Bailly, Dr.
 \web http://www.oqube.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Using-profiles-in-a-webapp-tf3913491s177.html#a6169
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Exclude libs in a webapp deployment

2007-06-14 Thread aemm

hi people!

I have a problem and I want some help, please.

I want to exclude de /WEB-INF/lib directory (that was generated
automatically by Maven) when I compile-package my application and contains
all the jar's when I create de .war file to deploy in the server.

I want to exclude it from the war file because the instance where I deploy
my application already have a classpath containing all the libraries
requiered.

any idea? any solution?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Exclude-libs-in-a-webapp-deployment-tf3920422s177.html#a6171
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 versioning

2007-06-14 Thread Napoleon Esmundo C. Ramirez

Hello Wim,

The page you posted contains the implemented versioning scheme of maven.
You can refer to that for releases.  As for distinguishing your snapshot
builds, you can check on
uniqueVersiontrue/uniqueVersion in distribution management.

Cheers!
Nap

On 6/14/07, Wim Deblauwe [EMAIL PROTECTED] wrote:


Hi,

I was looking for information about the version numbers that maven
understands and came across this document:
http://docs.codehaus.org/display/MAVEN/Versioning
Is this the current state? If not, where can I find it?

I want to release something with a version number that has no official
release yet. How should I give it it's version number so that the final
release will be considered later?

For instance, currently they are at 1.0-SNAPSHOT, final version will be
1.0.
What version can I use (with preferably the time stamp in the version)?

regards,

Wim

--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester



RE: [POLL] maven-enforcer-plugin rules

2007-06-14 Thread ehsavoie

1/I don't know if you want to add a new Method to your interface or maybe add
the possibility to specify the helper.
2/As for the script you can evaluate a reader instead of just a line, so we
could get a path to a file as a property. Currently we need to have a
boolean return value since enforcer is 'conditionnal', I think that it
should be possible to move existing rules to scripts.
Emmanuel


ehsavoie wrote:
 
 Hi Brain,
 I have some documentation from my old Mojo so I may be able to extract
 some of it and then translate it in english. I'll try to send a page about
 it today. 
 I am not a beanshell expert either ;o), this was my first and only use.
 Emmanuel
 
 
 
 
 Brian E. Fox wrote:
 
 Hi Emmanuel,
 I added this to the rules and deployed a snapshot and updated site,
 thanks for sending that along. 
 
 I managed to do some interesting stuff in the expression. I'd like to
 figure out and add to the site docs:
 1. how to call the helper and get things from there to evaluate.
 2. possibly how to include a beanshell script and execute it.
 
 Since I'm new to beanshell, I'll have to tinker with it some more but I
 can see lots of potential here.
 
 --Brian
 
 -Original Message-
 From: ehsavoie [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 13, 2007 11:34 AM
 To: users@maven.apache.org
 Subject: RE: [POLL] maven-enforcer-plugin rules
 
 
 Brian,
 I have sent you by mail the beanshell-rule with a simple test.
 If you have any question or problem feel free to ask bu i am in European
 Time ;o).
 Emmanuel
 
 
 Brian E. Fox wrote:
 
 Yes of course, can't you read my mind? ;-)
 
 -Original Message-
 From: Jerome Lacoste [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 13, 2007 3:44 AM
 To: Maven Users List
 Subject: Re: [POLL] maven-enforcer-plugin rules
 
 On 6/12/07, Brian E. Fox [EMAIL PROTECTED] wrote:
 I don't see why it could be rolled into a new rule. Call it the
 beanshell rule or something.
 
 you meant I don't see why it couldn't be rolled into a new rule,
 right
 ?
 
 :)
 
 J
 
 -
 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/-POLL--maven-enforcer-plugin-rules-tf3905191s177.h
 tml#a11102188
 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/-POLL--maven-enforcer-plugin-rules-tf3905191s177.html#a6175
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Profiles and inheritance

2007-06-14 Thread Torsten Marek
Hi all,

I have a problem wrt profile reusability and inheritance and currently I'm not 
sure if what I want to do is even possible. 

- in a large projects with ~40 sub-projects, we want to add a special builder 
to the Eclipse project configuration for selected projects and also write a 
configuration file. So far, making that a profile and activating it via a 
property is easy and the profile works as expected.

profile
activation.../activation
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.3/version
configuration
additionalBuildcommands
...
/additionalBuildcommands
additionalProjectnatures
...
/additionalProjectnatures
/configuration
/plugin
/plugins
/build
/profile

Since this should also contain a configuration file, I don't want to put this 
into more than one place, but I failed to put the profile into the super POM 
and have it activated in the child POM. I suspect that putting it into the 
local settings would work, but we'd prefer to have the settings in the 
repository under source control.

What we would optimally want to have:
- add the profile in the super POM in the main projects
- activate the profile in the subprojects based on the existence of a tag file  
and the flag property

Is that possible?

Thanks in advance  best regards,

Torsten

PS: Please CC me, as I'm not subscribed to the list.
-- 
Torsten Marek

Software Engineer

Fast Search  Transfer Deutschland GmbH
Rablstraße 36
D-81669 München

URL:http://www.fastsearch.com/

Firmensitz: München
Geschäftsführer: Dr. Jürgen Oesterle
Handelsregister B München 126219

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



Re: Maven versioning

2007-06-14 Thread Jo Vandermeeren

On 6/14/07, Wim Deblauwe [EMAIL PROTECTED] wrote:


I want to release something with a version number that has no official
release yet. How should I give it it's version number so that the final
release will be considered later?

For instance, currently they are at 1.0-SNAPSHOT, final version will be
1.0.
What version can I use (with preferably the time stamp in the version)?



Hi Wim,

You could add a classifier.
Something along the lines of rc1 or something..

You can configure the maven-jar-plugin to do this for you..

Cheers
Jo


[Maven Properties] : Using a filter property directly in my pom.xml

2007-06-14 Thread Bernier David
Hi all,
I'm a new user on Maven since few weeks and i'd like to know how can i
use a property defined in a filter properties file directly in my
pom.xml ?
Here is an example :
* the file filter.properties contains this property :
my_prop=a_value
 
* in my pom.xml i have :
   project
build
filters
 
filter[path_to_filter_dir]/filter.properties/filter
/filters
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-war-plugin/artifactId
version2.0.2/version
configuration
!-- I want to use my_prop here but i can't
(the ${my_prop} isn't replaced by the value)--
 
webappDirectory${my_prop}/webappDirectory
webResources
resource
!-- my_prop is used too in some
files under [path_to_resource_dir] --
 
directory[path_to_resource_dir]/directory
 
target[path_to_target_dir]/target
filteringtrue/filtering
/resource
/webResources
/configuration
/plugin
/plugins
/build
/project
 
Alternatively, in the POM reference there is this sentence : x: Set
within a properties / element or an external files, the value may be
used as ${someVar}.
How can i use an external file containg my property used in the pom.xml
in an another ways than defining this property in the user's
settings.xml file ?
 
Please help me.

/David BERNIER
 



Packaging an EAR application for glassfish

2007-06-14 Thread A. Alonso Domínguez
Hi there, I'm developing an enterprise application that should be 
deployed on Glassfish. I'm using the last version of the 
maven-ear-plugin but I found a problem with the packaging of the 
application.


My application needs an additional file sun-application.xml, this file 
is placed at src/main/resources/META-INF/sun-application.xml, when I 
run mvn package everithing is alright except that this file is not 
being copied to the META-INF directory inside the EAR. This is a problem 
becuase without this file, Glassfish doesn't recognize the roles defined 
inside my

application.

I'm currently packaging the application by hand, which it's a very 
repetitive work.


Any help would be appreciated.
Alonso

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



Re: New User

2007-06-14 Thread Sean Qiu

It is wonderful and helpful.
Thanks.

2007/6/13, Vanja Petreski [EMAIL PROTECTED]:

Hi,

http://maven.apache.org/
http://www.mergere.com/m2book_download.jsp
http://www.sonatype.com/book/index.html
http://en.wikipedia.org/wiki/XML
http://www.google.com

Vanja


On 6/13/07, Choudhary, Jay [EMAIL PROTECTED] wrote:

 Dear All

 I am new user of Maven and CruiseControl, I would appreciate if any one
 could help me in understanding how Maven works and is configured. I don
 not have very good knowledge of xml scripting

 Regards
 -Jay

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






--
Sean Qiu

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



Re: Using profiles in a webapp

2007-06-14 Thread Kristian Nordal

Hi,

Use the the provided scope on your dependencies.

--
Cheers,
Kristian

On 6/14/07, aemm [EMAIL PROTECTED] wrote:


it works Thanks a lot.

another question: I want to exclude de /lib directory containing all the
jar's when I create de .war file to deploy in the server, because the
instance where I deploy my application already have a classpath containing
all the libraries requiered.

any idea? any solution?

Thanks.



Arnaud Bailly-3 wrote:

 aemm [EMAIL PROTECTED] writes:

 Hi! I'm a newbie in the utilization of Maven.

 I'm developing a webapp (with Spring) and I want to include profiles in
 my
 app. This profiles will change de jdbc connection settings depending on
 which profile I select.

 Let's explain my problem.

 I have jdbc.properties in ${project.root}\src\main\webapp\WEB-INF,
 and looks

 You need to configure the maven-war-plugin to do filtering and files
 in src/main/webapp are not filtered.

 
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html

 BTW, this is not profile-specfic.
 HTH
 --
 OQube  software engineering \ génie logiciel 
 Arnaud Bailly, Dr.
 \web http://www.oqube.com


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




--
View this message in context: 
http://www.nabble.com/Using-profiles-in-a-webapp-tf3913491s177.html#a6169
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: Exclude libs in a webapp deployment

2007-06-14 Thread Napoleon Esmundo C. Ramirez

Hello,

Just specify scopeprovided/scope to whatever dependencies you expect in
the container, and it'll do fine.

Cheers!
Nap

On 6/14/07, aemm [EMAIL PROTECTED] wrote:



hi people!

I have a problem and I want some help, please.

I want to exclude de /WEB-INF/lib directory (that was generated
automatically by Maven) when I compile-package my application and contains
all the jar's when I create de .war file to deploy in the server.

I want to exclude it from the war file because the instance where I deploy
my application already have a classpath containing all the libraries
requiered.

any idea? any solution?

Thanks.
--
View this message in context:
http://www.nabble.com/Exclude-libs-in-a-webapp-deployment-tf3920422s177.html#a6171
Sent from the Maven - Users mailing list archive at Nabble.com.


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




Changelog fails ...

2007-06-14 Thread Jens Hohl
I execute Changelog Plugin 2.3 which fails, anyone can tell me why ?

 

It seems like passed SVN  parameter are wrong ?

 

 

[INFO] [site:stage]

[INFO] Skipped Maven Surefire Report report, file Testergebnisse
JUnit.html already exists for the German version.

[INFO] Generate Change Log report.

[INFO] Generating changed sets xml to: Q:\ anproject
\target\changelog.xml

[INFO] Executing: svn --non-interactive log -v -r {2007-05-15 09:55:10
+}:{2007-06-15 09:55:10 +}
https://project.ip/path/trunk/anproject

[INFO] Working directory: Q:\ anproject \src\main\java

[ERROR] Provider message:

[ERROR] The svn command failed.

 

 



Re: best location of parent pom in multi-module builds / subversion

2007-06-14 Thread ossi petz

Hallo

thanks for the input!

so if i use relative paths for the parent pom the maven release plugin 
will fail?


so you need to create a subversion repository for every parent-pom?

i tried to 'steal' some ideas from the apache subversion repository. but 
that pom structure is beyond what i can understand right now.


so when i want to work with releases and maintainance releases from 
branches i need to keept the parent pom / subdis layout and cannot use 
relatvive paths?



well. i think i need to get back to the experiments part :)


thanks for the feedback. anything still welcome

regards

ossi




Olivier Dehon schrieb:


I later had to change that layout and take the diskspace hit of moving
to the 1st layout you describe, because the release plugin will not
work otherwise.



the modules are stored in a subversion repository:
http://repos/trunk/module-1
http://repos/trunk/module-2
http://repos/trunk/module-3

currently the parent pom is at
http://repos/trunk/pom.xml




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



Re: Profiles and inheritance

2007-06-14 Thread ossi petz

Hallo

from what i've read in this list somewhere:
profiles are not inherited to sub-modules. so the profile will not 
appear as activated. but nontheless the effects of a parent-pom profile 
are inherited to the child-modules.


so es you should be able to define a profile in the parent pom and use 
it in the child modules. i use such a setup for filtering and it seem to 
work.


regards

ossi



Torsten Marek schrieb:

Hi all,

I have a problem wrt profile reusability and inheritance and currently I'm not 
sure if what I want to do is even possible. 

- in a large projects with ~40 sub-projects, we want to add a special builder 
to the Eclipse project configuration for selected projects and also write a 
configuration file. So far, making that a profile and activating it via a 
property is easy and the profile works as expected.


profile
activation.../activation
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-eclipse-plugin/artifactId
version2.3/version
configuration
additionalBuildcommands
...
/additionalBuildcommands
additionalProjectnatures
...
/additionalProjectnatures
/configuration
/plugin
/plugins
/build
/profile

Since this should also contain a configuration file, I don't want to put this 
into more than one place, but I failed to put the profile into the super POM 
and have it activated in the child POM. I suspect that putting it into the 
local settings would work, but we'd prefer to have the settings in the 
repository under source control.


What we would optimally want to have:
- add the profile in the super POM in the main projects
- activate the profile in the subprojects based on the existence of a tag file  
and the flag property


Is that possible?

Thanks in advance  best regards,

Torsten

PS: Please CC me, as I'm not subscribed to the list.



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



Don't understand generating webstart application

2007-06-14 Thread Jansen Werner
Hi *,

I'm trying to generate a webapp that contains my application and a jnlp
to start it, but I don't understand what's written on
http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plu
gin/howto.html Perhaps, I'm not deep enough into maven to do this.

What I have: A maven project that is a Java standalone application. All
libraries are listed as dependencies.

What I want: A WAR or ZIP that contains this application as well as a
jnlp file (and perhaps a basic, static index.html that links to the jnlp
file). As far as I understand the document linked above, maven can do
all this including signing jars and generating jnlp by evaulating
dependencies. But how?

Thanks in advance!

Regards, 

Werner

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



Re: Packaging an EAR application for glassfish

2007-06-14 Thread Stephane Nicoll

Hi,

Read the plugin's doc[1]. Extra files to be added in the EAR are
placed in src/main/application (earSourrceDirectory)

Cheers,
Stéphane

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



On 6/14/07, A. Alonso Domínguez [EMAIL PROTECTED] wrote:

Hi there, I'm developing an enterprise application that should be
deployed on Glassfish. I'm using the last version of the
maven-ear-plugin but I found a problem with the packaging of the
application.

My application needs an additional file sun-application.xml, this file
is placed at src/main/resources/META-INF/sun-application.xml, when I
run mvn package everithing is alright except that this file is not
being copied to the META-INF directory inside the EAR. This is a problem
becuase without this file, Glassfish doesn't recognize the roles defined
inside my
application.

I'm currently packaging the application by hand, which it's a very
repetitive work.

Any help would be appreciated.
Alonso

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




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



How to parse pom.version

2007-06-14 Thread Libor Kramoliš

Hello.

I would like to get to single version numbers of whole artifact version, i.e.
I would like to parse ${pom.version} and store each number in different
property, e.g. ${version.major}, ${version.middle}, ${version.minor} or more
generally: ${pom.versions[0], ${pom.versions[1], etc.

Reason? I handle with version numbers in other parts of pom.xml but I do not
want to use whole ${pom.version} string but just parts - first two numbers
or version without -SNAPSHOT suffix or both. See pom.xml example for more
info:

project
   modelVersion4.0.0/modelVersion
   groupIdtests/groupId
   artifactIdtest-a/artifactId
   packagingwar/packaging
   version1.2.3-SNAPSHOT/version
   urlhttp://localhost/projects/${prj.url.relative}//url !-- !!! --
   !-- url would be: http://localhost/projects/tests/test-a/1.2/; --

   distributionManagement
   site
   idwebsite.localhost/id
   urlscp://localhost/maven-sites/${prj.url.relative}//url !--
!!! --
   !-- url would be:
scp://localhost/maven-sites/tests/test-a/1.2/ --
   /site
   /distributionManagement

   properties
   prj.url.relative${pom.groupId}/${pom.artifactId}/${version.major
}.${version.middle}/prj.url.relative
   prj.webapp.context${pom.artifactId}/${version.major}/${
version.middle}/prj.webapp.context
   !-- context would be test-a/1/2 and could be for example used in
ear plugin --
   /properties
/project

Did someone already solve this situation? Is it possible to make some
properties hook to enhance set of properties after pom reading and before
starting of first goal execution of any lifecycle/phase?

Thanks for your advice.

Best regards,
Libor


Re: Maven versioning

2007-06-14 Thread Wim Deblauwe

Do you mean that:

1.0  1.0-rc1
1.0.1  1.0

what about 1.0.rc1, is that bigger then 1.0?

regards,

Wim


2007/6/14, Jo Vandermeeren [EMAIL PROTECTED]:


On 6/14/07, Wim Deblauwe [EMAIL PROTECTED] wrote:

 I want to release something with a version number that has no official
 release yet. How should I give it it's version number so that the final
 release will be considered later?

 For instance, currently they are at 1.0-SNAPSHOT, final version will be
 1.0.
 What version can I use (with preferably the time stamp in the version)?


Hi Wim,

You could add a classifier.
Something along the lines of rc1 or something..

You can configure the maven-jar-plugin to do this for you..

Cheers
Jo





--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester


Re: Changelog fails ...

2007-06-14 Thread Jeff Mutonho


[INFO] Working directory: Q:\ anproject \src\main\java

[ERROR] Provider message:

[ERROR] The svn command failed.



Have you tried getting the debug output?


--

Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: filtering issues in assembly plugin

2007-06-14 Thread Jim Crossley
I see this, too, though I don't know why.  The previous version used
to work.

I guess I second the nudge.  :-)

Jim

Karan Malhi [EMAIL PROTECTED] writes:

 **--nudge--**
 
 On 6/8/07, Karan Malhi [EMAIL PROTECTED] wrote:
  I have a module named assembly. I am using the assembly plugin 2.1 .
  if i run maven from the parent project, then resources are not
  filtered. if i run maven from the assembly module itself, resources
  are filtered properly.
  Any ideas why this would be happening?
 
  --
  Karan Malhi
 
 
 
 -- 
 Karan Malhi
 
 -
 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]



[INFO] The packaging for this project did not assign a file to the build artifact

2007-06-14 Thread kelvin goodson

Can someone help me figure out what's need to fix this error please? (see
subject of email and dump of command execution below)
I'm sure this build operation worked a month ago.  I have upgraded to maven
2.0.6 in that time if that's of any interest.
I've looked at the deploy:deploy parameters, and taken a look at the source
for the mojo to see if the error is obvious,
but no joy.

If it's not obvious from the error message itself, here are the pom files

1) the one reporting the error ---
https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/lib/pom.xml
2) the reactor pom that includes the module showing the error --- the
https://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/pom.xml
3) the parent pom ---
https://svn.apache.org/repos/asf/incubator/tuscany/java/pom/parent/pom.xml


Regards, Kelvin.

C:\Development\JiraDev\cleanmvn deploy:deploy
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   Apache Tuscany SDO Implementation Project
[INFO]   Tuscany SDO Library
[INFO]   Tuscany SDO Implementation
[INFO]   Tuscany SDO Tools
[INFO]   Tuscany SDO Maven Plugin
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO]


[INFO] Building Apache Tuscany SDO Implementation Project
[INFO]task-segment: [deploy:deploy]
[INFO]

[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from apache.snapshots
Password:: 
Password:: 
Uploading:
scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository/org/apache/tuscany/sdo/tuscany-sdo/1.0-i

ncubating-SNAPSHOT/tuscany-sdo-1.0-incubating-20070614.123540-5.pom
6K uploaded
[INFO] Retrieving previous metadata from apache.snapshots
Password:: 
[INFO] Uploading repository metadata for: 'snapshot
org.apache.tuscany.sdo:tuscany-sdo:1.0-incubating-SNAPSHOT'
Password:: 
[INFO] Retrieving previous metadata from apache.snapshots
Password:: 
[INFO] Uploading repository metadata for: 'artifact
org.apache.tuscany.sdo:tuscany-sdo'
Password:: 
[INFO]

[INFO] Building Tuscany SDO Library
[INFO]task-segment: [deploy:deploy]
[INFO]

[INFO] [deploy:deploy]
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The packaging for this project did not assign a file to the build
artifact
[INFO]

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

[INFO] Total time: 2 minutes 19 seconds
[INFO] Finished at: Thu Jun 14 13:37:58 BST 2007
[INFO] Final Memory: 5M/21M
[INFO]


C:\Development\JiraDev\clean


XML-RPC interface not working in 1.1-alpha?

2007-06-14 Thread Jan Lisse

Hi,

i'm using continuum 1.1-alpha and want to access its XML-RPC interface.
When i start the server on a Linux (Open Suse 10.2) or on a Mac OS X system
it is accessable via Webinterface but the XML-RPC interface on Port 8000 
is not accessable.
There is no process listening on port 8000 at all. Using version 1.0.3 
everything works fine.

Is the XML-RPC interface removed in 1.1-alpha?

Thanks for any clues in advance!
-jan



Enterprise M2 repository stored in subversion

2007-06-14 Thread Raphaël Piéroni

Hi,

i have googled for an answer on the question whether
it is possible to store an entreprise Maven repository
in subversion and build a freshly checkouted project
in a computer with an empty local repository.

obviously the project's pom will contain the url
to the svn repository. but what such an URL would be ?

Thanks in advance for any help

Regards,

Raphaël


Re: XML-RPC interface not working in 1.1-alpha?

2007-06-14 Thread Wendy Smoak

On 6/14/07, Jan Lisse [EMAIL PROTECTED] wrote:


i'm using continuum 1.1-alpha and want to access its XML-RPC interface.
When i start the server on a Linux (Open Suse 10.2) or on a Mac OS X system
it is accessable via Webinterface but the XML-RPC interface on Port 8000
is not accessable.
There is no process listening on port 8000 at all. Using version 1.0.3
everything works fine.
Is the XML-RPC interface removed in 1.1-alpha?


Are you using 1.1-alpha-2?

If so, this might be it:
http://jira.codehaus.org/browse/CONTINUUM-1269 (XMLRPC server must be
a servlet on the same port used by the webapp instead of a specific
port).

--
Wendy


Re: Enterprise M2 repository stored in subversion

2007-06-14 Thread Wendy Smoak

On 6/14/07, Raphaël Piéroni [EMAIL PROTECTED] wrote:


i have googled for an answer on the question whether
it is possible to store an entreprise Maven repository
in subversion and build a freshly checkouted project
in a computer with an empty local repository.

obviously the project's pom will contain the url
to the svn repository. but what such an URL would be ?


After it's checked out, it's just files on disk as far as Maven is
concerned.  Try using a file:// url for it.

--
Wendy

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



Compile dont work

2007-06-14 Thread MPF

Hi!
I get following error if i try to compile my project:
C:\work\projects\GATHER~1mvn clean compile
[INFO] Scanning for projects...
[INFO]
-
---
[INFO] Building A custom project using myfaces
[INFO]task-segment: [clean, compile]
[INFO]
-
---
[INFO] [clean:clean]
[INFO] Deleting directory C:\work\projects\GATHER~1\target
[INFO] Deleting directory C:\work\projects\GATHER~1\target\classes
[INFO] Deleting directory C:\work\projects\GATHER~1\target\test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 29 source files to C:\work\projects\GATHER~1\target\classes
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\DataList.java:[26,21] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public class DataListT implements Serializable {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\DataContext.java:[26,15] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
private MapString, HashMapLong, Object data = new HashMapString,
HashMa
pLong, Object();

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\MappedDataList.java:[24,36] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public abstract class MappedDataListT, F extends DataListT {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\MappedDataList.java:[88,24] for-each loops are not supported in
-source 1.
3
(try -source 1.5 to enable for-each loops)
for (T item : items) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\DataPage.java:[24,25] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public interface DataPageT {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\PlaceD
etailController.java:[48,20] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
private ListSelectItem dropDownPossibles;

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\PlaceD
etailController.java:[135,36] for-each loops are not supported in -source
1.3
(try -source 1.5 to enable for-each loops)
for (String element : tmpList) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\persistence\db\E3
0151DB.java:[45,31] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public static ArrayListE30151Model readAllData() {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\persistence\db\VS
tandortPortalDB.java:[54,31] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public static ArrayListVStandortPortalModel loadLocation(final
String
dbk) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\persistence\db\VS
tandortPortalDB.java:[97,50] for-each loops are not supported in -source 1.3
(try -source 1.5 to enable for-each loops)
for (VStandortPortalModel element : values) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\SortedDataList.java:[16,36] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public abstract class SortedDataListT extends DataListT {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\helper
\ComponentSupport.java:[117,24] variable-arity methods are not supported in
-sou
rce 1.3
(try -source 1.5 to enable variable-arity methods)
final String... values) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\helper
\ComponentSupport.java:[123,30] for-each loops are not supported in -source
1.3
(try -source 1.5 to enable for-each loops)
for (String value : values) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\model\
PlaceDetailModel.java:[42,24] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
private DataListCaseData caseData;

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\model\
PlaceDetailModel.java:[87,39] for-each loops are not supported in -source
1.3
(try -source 1.5 to enable for-each loops)
for (E30151Model model : data) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Google
MapController.java:[72,25] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
private ArrayListMapData points;


Re: Enterprise M2 repository stored in subversion

2007-06-14 Thread Raphaël Piéroni

Wendy, Many thanks for the answer.

What is the way to transform a local repository in such a 'remote'
repository
i think the metadatas will be a bit corrupted (or at least wrongly named).


Raphaël

2007/6/14, Wendy Smoak [EMAIL PROTECTED]:


On 6/14/07, Raphaël Piéroni [EMAIL PROTECTED] wrote:

 i have googled for an answer on the question whether
 it is possible to store an entreprise Maven repository
 in subversion and build a freshly checkouted project
 in a computer with an empty local repository.

 obviously the project's pom will contain the url
 to the svn repository. but what such an URL would be ?

After it's checked out, it's just files on disk as far as Maven is
concerned.  Try using a file:// url for it.

--
Wendy

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




Re: Compile dont work

2007-06-14 Thread Wendy Smoak

On 6/14/07, MPF [EMAIL PROTECTED] wrote:


I get following error if i try to compile my project:
C:\work\projects\GATHER~1mvn clean compile

...

[INFO] Compilation failure

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\DataList.java:[26,21] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public class DataListT implements Serializable {

...

someone know why?
on eclipse i show that me project i see on properties-java compiler --
compiler compliance level: 5.0


http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html

--
Wendy

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



Excluding target folder in Eclipse

2007-06-14 Thread Nunn, Gerald
I am using Eclipse 3.2 and was wondering if there was any way to exclude the 
target folder that is generated with a Maven build from the Eclipse project. 
The problem with the target folder is that some projects will generate an 
artifact that one of the Eclipse validators will consider an error, at that 
point I'm stuck with cleaning the project to keep working.

Thanks,

Gerald

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



How to add file to war META-INF dir

2007-06-14 Thread Farrukh S. Najmi
Dear colleagues,

My maven2 war project produces a file under the target tree as part of
the generate-source phase:

target/somedirectory/META-INF/somefile

How can I include this file under the META-INF directory of the packaged
war as follows:

META-INF/somefile

Thanks for your help.

-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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



Unwanted classes appearing in package

2007-06-14 Thread Martin Gilday
I am writing a collection of JMock 2 matchers.  These are placed in
src/test/java.  In my POM I have jmock-junit3 as an optional
dependency, as only some of the projects that will use this project will
want to use the matchers in it.  Now when I perform a package the
classes from hamcrest-api (one of JMocks dependencies that I extend
from) are appearing inside the produced JAR.  How can I stop this?  As
the projects that depend on this will already have a dependency on JMock
there is no point to them being packaged there.

Thanks,
Martin.

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



Re: Exclude libs in a webapp deployment

2007-06-14 Thread aemm

Thanks a lot! 

It perfectly works for me :)


Napoleon Esmundo Ramirez wrote:
 
 Hello,
 
 Just specify scopeprovided/scope to whatever dependencies you expect
 in
 the container, and it'll do fine.
 
 Cheers!
 Nap
 
 On 6/14/07, aemm [EMAIL PROTECTED] wrote:


 hi people!

 I have a problem and I want some help, please.

 I want to exclude de /WEB-INF/lib directory (that was generated
 automatically by Maven) when I compile-package my application and
 contains
 all the jar's when I create de .war file to deploy in the server.

 I want to exclude it from the war file because the instance where I
 deploy
 my application already have a classpath containing all the libraries
 requiered.

 any idea? any solution?

 Thanks.
 --
 View this message in context:
 http://www.nabble.com/Exclude-libs-in-a-webapp-deployment-tf3920422s177.html#a6171
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/Exclude-libs-in-a-webapp-deployment-tf3920422s177.html#a11121514
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: Using profiles in a webapp

2007-06-14 Thread aemm

Thanks!!

Perfect :computer-user:



Kristian Nordal wrote:
 
 Hi,
 
 Use the the provided scope on your dependencies.
 
 --
 Cheers,
 Kristian
 
 On 6/14/07, aemm [EMAIL PROTECTED] wrote:

 it works Thanks a lot.

 another question: I want to exclude de /lib directory containing all the
 jar's when I create de .war file to deploy in the server, because the
 instance where I deploy my application already have a classpath
 containing
 all the libraries requiered.

 any idea? any solution?

 Thanks.



 Arnaud Bailly-3 wrote:
 
  aemm [EMAIL PROTECTED] writes:
 
  Hi! I'm a newbie in the utilization of Maven.
 
  I'm developing a webapp (with Spring) and I want to include profiles
 in
  my
  app. This profiles will change de jdbc connection settings depending
 on
  which profile I select.
 
  Let's explain my problem.
 
  I have jdbc.properties in ${project.root}\src\main\webapp\WEB-INF,
  and looks
 
  You need to configure the maven-war-plugin to do filtering and files
  in src/main/webapp are not filtered.
 
 
 http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
 
  BTW, this is not profile-specfic.
  HTH
  --
  OQube  software engineering \ génie logiciel 
  Arnaud Bailly, Dr.
  \web http://www.oqube.com
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Using-profiles-in-a-webapp-tf3913491s177.html#a6169
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Using-profiles-in-a-webapp-tf3913491s177.html#a11121519
Sent from the Maven - Users mailing list archive at Nabble.com.


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



NullPointerException in ArtifactUtils.copyArtifact when generating site

2007-06-14 Thread Ole-Martin Mørk

Using maven 2.0.6 I get an error when running 'mvn site'

The error is:
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for
project: null:maven-idea-plugin:maven-plugin:2.1-SNAPSHOT from the
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] maven-surefire-plugin: resolved to version
2.3-20070114.205105-10from repository maven-proxy
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.3-SNAPSHOT for project:
org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3-20070114.205105-10from
the repository.
[DEBUG] surefire: resolved to version 2.3-20070124.041233-4 from repository
maven-proxy
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5-SNAPSHOT for
project: org.apache.maven.surefire:surefire:pom:2.3-SNAPSHOT from the
repository.
[DEBUG] maven-parent: resolved to version 5-20070127.114244-3 from
repository maven-proxy
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5-SNAPSHOT from the repository.
[DEBUG] maven-surefire-plugin: resolved to version
2.3-20070114.205105-10from repository maven-proxy
[DEBUG] maven-site-plugin: resolved to version 2.0-20070528.202755-15 from
repository maven-proxy
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for
project: null:maven-checkstyle-plugin:maven-plugin:2.2-SNAPSHOT from the
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for
project: null:maven-javadoc-plugin:maven-plugin:2.3-SNAPSHOT from the
repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] Retrieving parent-POM:
org.apache.maven.surefire:surefire::2.4-SNAPSHOT for project:
org.apache.maven.plugins:maven-surefire-report-plugin:maven-plugin:null from
the repository.
[DEBUG] surefire: resolved to version 2.4-20070607.104639-16 from repository
maven-proxy
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.surefire:surefire:pom:2.4-SNAPSHOT from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for
project: null:maven-project-info-reports-plugin:maven-plugin:2.1-SNAPSHOTfrom
the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project:
org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project:
org.apache.maven:maven-parent:pom:5 from the repository.
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[DEBUG] Trace
java.lang.NullPointerException
   at org.apache.maven.artifact.ArtifactUtils.copyArtifact(
ArtifactUtils.java:109)
   at org.apache.maven.project.MavenProject.init(MavenProject.java
:251)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(
DefaultLifecycleExecutor.java:886)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle
(DefaultLifecycleExecutor.java:729)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:525)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:488)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:458)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 

webstart plugin status?

2007-06-14 Thread Wim Deblauwe

What is the current status of the webstart plugin? I am working with
1.0-alpha-2-SNAPSHOT for some time now and it works for me. What is the
timeframe for the next release?

regards,

Wim

--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester


Re: How to add file to war META-INF dir

2007-06-14 Thread Alexandre Touret

Hello,
probably, you could add the directory META-INF in your resource 
directory like


src/main/resources/META-INF
It should work

Alexandre

Farrukh S. Najmi a écrit :

Dear colleagues,

My maven2 war project produces a file under the target tree as part of
the generate-source phase:

target/somedirectory/META-INF/somefile

How can I include this file under the META-INF directory of the packaged
war as follows:

META-INF/somefile

Thanks for your help.

  



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



Re: How to add file to war META-INF dir

2007-06-14 Thread Farrukh S. Najmi
Thanks Alexandre, but I do not have the option to change the directory
where my file is produced (it is under target tree).
This must be a common need to include META-INF files from target tree?
Any other suggestions?

Alexandre Touret wrote:
 Hello,
 probably, you could add the directory META-INF in your resource
 directory like

 src/main/resources/META-INF
 It should work

 Alexandre

 Farrukh S. Najmi a écrit :
 Dear colleagues,

 My maven2 war project produces a file under the target tree as part of
 the generate-source phase:

 target/somedirectory/META-INF/somefile

 How can I include this file under the META-INF directory of the packaged
 war as follows:

 META-INF/somefile

 Thanks for your help.

   


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



-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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



Re: How to add file to war META-INF dir

2007-06-14 Thread Alexander Sack

Can you give an example?  Also, why can't you change where the target is
produced?

-aps

On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:


Thanks Alexandre, but I do not have the option to change the directory
where my file is produced (it is under target tree).
This must be a common need to include META-INF files from target tree?
Any other suggestions?

Alexandre Touret wrote:
 Hello,
 probably, you could add the directory META-INF in your resource
 directory like

 src/main/resources/META-INF
 It should work

 Alexandre

 Farrukh S. Najmi a écrit :
 Dear colleagues,

 My maven2 war project produces a file under the target tree as part of
 the generate-source phase:

 target/somedirectory/META-INF/somefile

 How can I include this file under the META-INF directory of the
packaged
 war as follows:

 META-INF/somefile

 Thanks for your help.




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



--
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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





--
What lies behind us and what lies in front of us is of little concern to
what lies within us. -Ralph Waldo Emerson


Re: [Maven Properties] : Using a filter property directly in my pom.xml

2007-06-14 Thread Steven Rowe
Hi David,

Bernier David wrote:
 I'm a new user on Maven since few weeks and i'd like to know how can i
 use a property defined in a filter properties file directly in my
 pom.xml ?
[snip]
 How can i use an external file containg my property used in the pom.xml
 in an another ways than defining this property in the user's
 settings.xml file ?

properties-maven-plugin might do the trick for you:

  http://arsenalist.com/2007/02/07/maven-properties-plugin-download/

Steve


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



Re: How to add file to war META-INF dir

2007-06-14 Thread Farrukh S. Najmi
Alexander Sack wrote:
 Can you give an example?  Also, why can't you change where the target is
 produced?

Hi Alexander,

There is a complex dependency on various plugin and underlying libraries
that does not offer much flexibility in where the file is produced.

The example is the one I gave earlier. The generate-sources phase produces:

target/jaxws/wsimport/java/META-INF/somefile

I need the resulting war to have:

META-INF/somefile

Thanks for any suggestions.


 -aps

 On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:

 Thanks Alexandre, but I do not have the option to change the directory
 where my file is produced (it is under target tree).
 This must be a common need to include META-INF files from target tree?
 Any other suggestions?

 Alexandre Touret wrote:
  Hello,
  probably, you could add the directory META-INF in your resource
  directory like
 
  src/main/resources/META-INF
  It should work
 
  Alexandre
 
  Farrukh S. Najmi a écrit :
  Dear colleagues,
 
  My maven2 war project produces a file under the target tree as
 part of
  the generate-source phase:
 
  target/somedirectory/META-INF/somefile
 
  How can I include this file under the META-INF directory of the
 packaged
  war as follows:
 
  META-INF/somefile


-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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



Re: modifying pom.xml for public release

2007-06-14 Thread Eric Redmond

Try the release plugin:

http://maven.apache.org/plugins/maven-release-plugin/

Eric

On 6/3/07, Nathan Coast [EMAIL PROTECTED] wrote:


Hi,

Is it possible to modify pom files during release / deployment?  E.g.
remove build-time dependencies and plugins configurations?  I'd prefer
the released .pom files to contain only minimum required to make
transitive dependencies work.

cheers,
Nathan


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





--
Eric Redmond
http://www.sonatype.com


Re: How to add file to war META-INF dir

2007-06-14 Thread Wayne Fay

If you can't control where it is being created, perhaps you should use
the antrun plugin to copy the file to where you need it after it has
been generated.

Wayne

On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:

Alexander Sack wrote:
 Can you give an example?  Also, why can't you change where the target is
 produced?

Hi Alexander,

There is a complex dependency on various plugin and underlying libraries
that does not offer much flexibility in where the file is produced.

The example is the one I gave earlier. The generate-sources phase produces:

target/jaxws/wsimport/java/META-INF/somefile

I need the resulting war to have:

META-INF/somefile

Thanks for any suggestions.


 -aps

 On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:

 Thanks Alexandre, but I do not have the option to change the directory
 where my file is produced (it is under target tree).
 This must be a common need to include META-INF files from target tree?
 Any other suggestions?

 Alexandre Touret wrote:
  Hello,
  probably, you could add the directory META-INF in your resource
  directory like
 
  src/main/resources/META-INF
  It should work
 
  Alexandre
 
  Farrukh S. Najmi a écrit :
  Dear colleagues,
 
  My maven2 war project produces a file under the target tree as
 part of
  the generate-source phase:
 
  target/somedirectory/META-INF/somefile
 
  How can I include this file under the META-INF directory of the
 packaged
  war as follows:
 
  META-INF/somefile


--
Regards,
Farrukh

Web: http://www.wellfleetsoftware.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: How to add file to war META-INF dir

2007-06-14 Thread Alexandre Touret
I guess that the easier way to resolve this issue is to create a ant 
script which might be started after this build under the maven-ant-plugin .


Alexandre

Farrukh S. Najmi a écrit :

Alexander Sack wrote:
  

Can you give an example?  Also, why can't you change where the target is
produced?



Hi Alexander,

There is a complex dependency on various plugin and underlying libraries
that does not offer much flexibility in where the file is produced.

The example is the one I gave earlier. The generate-sources phase produces:

target/jaxws/wsimport/java/META-INF/somefile

I need the resulting war to have:

META-INF/somefile

Thanks for any suggestions.

  

-aps

On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:


Thanks Alexandre, but I do not have the option to change the directory
where my file is produced (it is under target tree).
This must be a common need to include META-INF files from target tree?
Any other suggestions?

Alexandre Touret wrote:
  

Hello,
probably, you could add the directory META-INF in your resource
directory like

src/main/resources/META-INF
It should work

Alexandre

Farrukh S. Najmi a écrit :


Dear colleagues,

My maven2 war project produces a file under the target tree as
  

part of
  

the generate-source phase:

target/somedirectory/META-INF/somefile

How can I include this file under the META-INF directory of the
  

packaged
  

war as follows:

META-INF/somefile
  



  



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



Re: How to parse pom.version

2007-06-14 Thread Steven Rowe
Hi Libor,

Libor Kramoliš wrote:
 Is it possible to make some properties hook to enhance set of
 properties after pom reading and before starting of first goal
 execution of any lifecycle/phase?

You could take a look at the source for the properties-maven-plugin,
which injects properties read from files:

  http://arsenalist.com/2007/02/07/maven-properties-plugin-download/

If you bind this (or rahter your version of it) to an early phase, say,
initialize, it should achieve the desired effect.

As far as version string parsing, this has to be implemented somewhere
in the Maven source code, since Maven has to do version comparisons all
the time.

Anybody know in what source module Maven does this kind of decomposition?

Steve

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



copy file in maven

2007-06-14 Thread acec acec
hi,
What's the easiest way to copy file in maven?
Should I use ant plugin to do that?
Thanks.



  Ask a question on any topic and get answers from real people. Go to 
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com

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



Re: Adjust source-repository.html?

2007-06-14 Thread Dennis Lundberg

Wim Deblauwe wrote:

Hi,

Is there a way to adjust the source-repository.html page that gets 
generated

by maven-site-plugin? I would like to add a link to the fisheye instance on
that page. Is this possible?


You could set the scmurl element in your pom.xml to point to fisheye.



regards,

Wim




--
Dennis Lundberg

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



Re: How to add file to war META-INF dir

2007-06-14 Thread Farrukh S. Najmi

Thanks. I guess that is what I will have to do.

I have filed the following issue requesting this RFE:

http://jira.codehaus.org/browse/MWAR-105

Thanks very much for all your help.

Wayne Fay wrote:
 If you can't control where it is being created, perhaps you should use
 the antrun plugin to copy the file to where you need it after it has
 been generated.

 Wayne

 On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:
 Alexander Sack wrote:
  Can you give an example?  Also, why can't you change where the
 target is
  produced?

 Hi Alexander,

 There is a complex dependency on various plugin and underlying libraries
 that does not offer much flexibility in where the file is produced.

 The example is the one I gave earlier. The generate-sources phase
 produces:

 target/jaxws/wsimport/java/META-INF/somefile

 I need the resulting war to have:

 META-INF/somefile

 Thanks for any suggestions.

 
  -aps
 
  On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:
 
  Thanks Alexandre, but I do not have the option to change the
 directory
  where my file is produced (it is under target tree).
  This must be a common need to include META-INF files from target
 tree?
  Any other suggestions?
 
  Alexandre Touret wrote:
   Hello,
   probably, you could add the directory META-INF in your resource
   directory like
  
   src/main/resources/META-INF
   It should work
  
   Alexandre
  
   Farrukh S. Najmi a écrit :
   Dear colleagues,
  
   My maven2 war project produces a file under the target tree as
  part of
   the generate-source phase:
  
   target/somedirectory/META-INF/somefile
  
   How can I include this file under the META-INF directory of the
  packaged
   war as follows:
  
   META-INF/somefile




-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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



Re: How to parse pom.version

2007-06-14 Thread Eric Redmond

On 6/14/07, Steven Rowe [EMAIL PROTECTED] wrote:


Hi Libor,

Libor Kramoliš wrote:
 Is it possible to make some properties hook to enhance set of
 properties after pom reading and before starting of first goal
 execution of any lifecycle/phase?

You could take a look at the source for the properties-maven-plugin,
which injects properties read from files:

  http://arsenalist.com/2007/02/07/maven-properties-plugin-download/

If you bind this (or rahter your version of it) to an early phase, say,
initialize, it should achieve the desired effect.

As far as version string parsing, this has to be implemented somewhere
in the Maven source code, since Maven has to do version comparisons all
the time.

Anybody know in what source module Maven does this kind of decomposition?



org.apache.maven.artifact.versioning.DefaultArtifactVersion (within
project org.apache.maven:maven-artifact) constructor takes a string and
parses into major, minor, incremental, build number and qualifier.

Eric

Steve


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





--
Eric Redmond
http://www.sonatype.com


Re: Changelog fails ...

2007-06-14 Thread Dennis Lundberg

Jens Hohl wrote:

I execute Changelog Plugin 2.3 which fails, anyone can tell me why ?

 


It seems like passed SVN  parameter are wrong ?


The first thing to try is to run the svn command, mentioned below, on 
the command line.




 

 


[INFO] [site:stage]

[INFO] Skipped Maven Surefire Report report, file Testergebnisse
JUnit.html already exists for the German version.

[INFO] Generate Change Log report.

[INFO] Generating changed sets xml to: Q:\ anproject
\target\changelog.xml

[INFO] Executing: svn --non-interactive log -v -r {2007-05-15 09:55:10
+}:{2007-06-15 09:55:10 +}
https://project.ip/path/trunk/anproject

[INFO] Working directory: Q:\ anproject \src\main\java

[ERROR] Provider message:

[ERROR] The svn command failed.

 

 






--
Dennis Lundberg

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



Re: [ot] JDeveloper genInterface verse Axis wsdl2java

2007-06-14 Thread Wayne Fay

Mick, have you tried creating output from genInterface and Axis and
compared the two? If not, could I ask you do this? I'm curious about
this issue...

I actually got interested in this a bit and used JAD to decompile the
Oracle classes to see what exactly is going on. Here's my analysis:

wsa.jar - GenInterface.class, nothing useful
wsa.jar - WSATask.class, nothing useful
wsa.jar - Processor.class, calls Util.class to do the genInterface work:
   if(modeName.equals(genInterface))
   {
   URL wsdlLocation = getWSDLLocation(baseDir, options);
   (new Util()).createInterface(wsdlLocation,
getArgumentWithNameCheck(options, serviceName), null,
getFile(options, mappingFileName, true), getDir(options, output),
getCustomTypeMappings(options), getArgument(options, classpath),
null, getPackageName(options), getArgument(options,
valueTypePackagePrefix), getGenInterfaceConfig(options));
   } else ...

wsa.jar - Util.class, calls SEIG to do the real work:
   public File createInterface(String implClass, String classPath,
File outputDir, boolean writeToPackageDirectory)
   throws IllegalArgumentException, ClassNotFoundException
   {
   ServiceEndpointInterfaceGenerator generator = new
ServiceEndpointInterfaceGenerator(outputDir);
   generator.setLogger(WSACore.getLogger());
   return generator.generateSEI(implClass, _Interface,
classPath, writeToPackageDirectory);
   }

wsclient.jar - ServiceEndpointInterfaceGenerator.class, does all the
work of the genInterface task

So arguably, you could probably install/deploy the wsa.jar and
wsclient.jar and create a small Maven2 plugin that would set up the
parameters etc, and call the SEIG.generateSEI() method directly.

Looking at the decompiled code, it seems relatively straight-forward.
But if the output is identical or similar to that produced by Axis, I
don't think its worth the effort.

Wayne

On 6/12/07, Mick Knutson [EMAIL PROTECTED] wrote:

Does anyone know the difference between the 2 wsdl - java code generators?
JDeveloper (IDE) wants to use genInterface, yet there seems to be no
plugin's for it in Maven. Now Axis does have a plugin that works well in
Maven. Wondering if I can just use Axis instead of genInterface?

--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---



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



Re: Maven versioning

2007-06-14 Thread Eric Redmond

On 6/14/07, Napoleon Esmundo C. Ramirez 
[EMAIL PROTECTED] wrote:


Hello Wim,

The page you posted contains the implemented versioning scheme of maven.



That is a discussion of the versioning scheme to be released in 2.1. Not
available in 2.0.x

You can refer to that for releases.  As for distinguishing your snapshot

builds, you can check on
uniqueVersiontrue/uniqueVersion in distribution management.

Cheers!
Nap

On 6/14/07, Wim Deblauwe [EMAIL PROTECTED] wrote:

 Hi,

 I was looking for information about the version numbers that maven
 understands and came across this document:
 http://docs.codehaus.org/display/MAVEN/Versioning
 Is this the current state? If not, where can I find it?

 I want to release something with a version number that has no official
 release yet. How should I give it it's version number so that the final
 release will be considered later?

 For instance, currently they are at 1.0-SNAPSHOT, final version will be
 1.0.
 What version can I use (with preferably the time stamp in the version)?

 regards,

 Wim

 --
 Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
 Blog: http://www.jroller.com/page/Fester






--
Eric Redmond
http://www.sonatype.com


Re: How to add file to war META-INF dir

2007-06-14 Thread Eric Redmond

I'm confused... why can't you use the archive configuration of the
war:war goal?

http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

Eric

On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:



Thanks. I guess that is what I will have to do.

I have filed the following issue requesting this RFE:

http://jira.codehaus.org/browse/MWAR-105

Thanks very much for all your help.

Wayne Fay wrote:
 If you can't control where it is being created, perhaps you should use
 the antrun plugin to copy the file to where you need it after it has
 been generated.

 Wayne

 On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:
 Alexander Sack wrote:
  Can you give an example?  Also, why can't you change where the
 target is
  produced?

 Hi Alexander,

 There is a complex dependency on various plugin and underlying
libraries
 that does not offer much flexibility in where the file is produced.

 The example is the one I gave earlier. The generate-sources phase
 produces:

 target/jaxws/wsimport/java/META-INF/somefile

 I need the resulting war to have:

 META-INF/somefile

 Thanks for any suggestions.

 
  -aps
 
  On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:
 
  Thanks Alexandre, but I do not have the option to change the
 directory
  where my file is produced (it is under target tree).
  This must be a common need to include META-INF files from target
 tree?
  Any other suggestions?
 
  Alexandre Touret wrote:
   Hello,
   probably, you could add the directory META-INF in your resource
   directory like
  
   src/main/resources/META-INF
   It should work
  
   Alexandre
  
   Farrukh S. Najmi a écrit :
   Dear colleagues,
  
   My maven2 war project produces a file under the target tree as
  part of
   the generate-source phase:
  
   target/somedirectory/META-INF/somefile
  
   How can I include this file under the META-INF directory of the
  packaged
   war as follows:
  
   META-INF/somefile




--
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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





--
Eric Redmond
http://www.sonatype.com


Re: copy file in maven

2007-06-14 Thread Eric Redmond

Yeah, ant is the easiest way.

Eric

On 6/14/07, acec acec [EMAIL PROTECTED] wrote:


hi,
What's the easiest way to copy file in maven?
Should I use ant plugin to do that?
Thanks.



  Ask a question on any topic and get answers from real people. Go to
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com

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





--
Eric Redmond
http://www.sonatype.com


Re: How to add file to war META-INF dir

2007-06-14 Thread Farrukh S. Najmi

Hi Eric,

The docs are not obvious to me. Do I need to write code for this?
If not, can you give an example please. Thanks.

Eric Redmond wrote:
 I'm confused... why can't you use the archive configuration of the
 war:war goal?

 http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

 Eric

 On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:


 Thanks. I guess that is what I will have to do.

 I have filed the following issue requesting this RFE:

 http://jira.codehaus.org/browse/MWAR-105

 Thanks very much for all your help.

 Wayne Fay wrote:
  If you can't control where it is being created, perhaps you should use
  the antrun plugin to copy the file to where you need it after it has
  been generated.
 
  Wayne
 
  On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:
  Alexander Sack wrote:
   Can you give an example?  Also, why can't you change where the
  target is
   produced?
 
  Hi Alexander,
 
  There is a complex dependency on various plugin and underlying
 libraries
  that does not offer much flexibility in where the file is produced.
 
  The example is the one I gave earlier. The generate-sources phase
  produces:
 
  target/jaxws/wsimport/java/META-INF/somefile
 
  I need the resulting war to have:
 
  META-INF/somefile
 
  Thanks for any suggestions.


-- 
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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



Re: copy file in maven

2007-06-14 Thread Jeff Mutonho

On 6/14/07, Eric Redmond [EMAIL PROTECTED] wrote:

Yeah, ant is the easiest way.

Eric



Or you can try this :

http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html





Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: redirection error

2007-06-14 Thread Maria Odea Ching
You need to have an archiva.xml file in your local repo, just under .m2 
dir. This is where the managed repositories info are stored by Archiva. 
Usually when you restart Archiva, the error would go away because the 
archiva.xml file is already created in your local repo.


-Deng

kpn wrote:

Hello,

I installed archiva-1.0-alpha-1 on SuSE 10.1 (2.6.16.27-0.9-default).
I run Archiva Standalone like this
archiva-1.0-alpha-1/bin/linux-x86-32 ./run.sh console

and use Firefox 2.0.0.2

I can create Admin user. But after pressing the Create Admin Button
attached error occures.

http://www.nabble.com/file/p11097491/redirection_error.jpg 


The URL is: http://localhost:8080/archiva/admin/addRepository!input.action

It is german and means something like: 
Error: redirection error

website redirects request in this way, that it can never resolved

Console output is:
jvm 1| 6425571 [SocketListener0-1] INFO
com.opensymphony.xwork.interceptor.Interceptor:configurationInterceptor - No
repositories exist - forwarding to repository configuration page
jvm 1| 6425583 [SocketListener0-0] INFO
com.opensymphony.xwork.interceptor.Interceptor:configurationInterceptor - No
repositories exist - forwarding to repository configuration page



If i try with IE  7, no error occures, but the browser tries to load the
requested page endless.

Thanks


  




Re: Enterprise M2 repository stored in subversion

2007-06-14 Thread Kalle Korhonen

Can't make a local repository a remote repository. Either rsync iBiblio if
you need everything or use maven assembly to create a remote repository of
artifacts used in your project:
http://maven.apache.org/plugins/maven-assembly-plugin/howto.html.

Kalle

On 6/14/07, Raphaël Piéroni [EMAIL PROTECTED] wrote:


Wendy, Many thanks for the answer.

What is the way to transform a local repository in such a 'remote'
repository
i think the metadatas will be a bit corrupted (or at least wrongly named).


Raphaël

2007/6/14, Wendy Smoak [EMAIL PROTECTED]:

 On 6/14/07, Raphaël Piéroni [EMAIL PROTECTED] wrote:

  i have googled for an answer on the question whether
  it is possible to store an entreprise Maven repository
  in subversion and build a freshly checkouted project
  in a computer with an empty local repository.
 
  obviously the project's pom will contain the url
  to the svn repository. but what such an URL would be ?

 After it's checked out, it's just files on disk as far as Maven is
 concerned.  Try using a file:// url for it.

 --
 Wendy

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





Re: Enterprise M2 repository stored in subversion

2007-06-14 Thread Wendy Smoak

On 6/14/07, Raphaël Piéroni [EMAIL PROTECTED] wrote:


What is the way to transform a local repository in such a 'remote'
repository
i think the metadatas will be a bit corrupted (or at least wrongly named).


You're correct that local and remote repository metadata is different.
I can't find it right now, but I think someone wrote a tool to
convert a local repo into a remote repo.  It's probably in the list
archives, or maybe someone else remembers it.

--
Wendy

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



Re: copy file in maven

2007-06-14 Thread Nathan Maves

First what is the reason for your need to copy a file?

The first thing that triggers in my mind is that you have a resource file
that you need copied to your artifact.  If this is not the case then you may
need to define your problem a little better.

Nathan

On 6/14/07, Jeff Mutonho [EMAIL PROTECTED] wrote:


On 6/14/07, Eric Redmond [EMAIL PROTECTED] wrote:
 Yeah, ant is the easiest way.

 Eric


Or you can try this :


http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html





Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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




Re: How to add file to war META-INF dir

2007-06-14 Thread Eric Redmond

http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html

Eric

On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:



Hi Eric,

The docs are not obvious to me. Do I need to write code for this?
If not, can you give an example please. Thanks.

Eric Redmond wrote:
 I'm confused... why can't you use the archive configuration of the
 war:war goal?

 http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html

 Eric

 On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:


 Thanks. I guess that is what I will have to do.

 I have filed the following issue requesting this RFE:

 http://jira.codehaus.org/browse/MWAR-105

 Thanks very much for all your help.

 Wayne Fay wrote:
  If you can't control where it is being created, perhaps you should
use
  the antrun plugin to copy the file to where you need it after it has
  been generated.
 
  Wayne
 
  On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:
  Alexander Sack wrote:
   Can you give an example?  Also, why can't you change where the
  target is
   produced?
 
  Hi Alexander,
 
  There is a complex dependency on various plugin and underlying
 libraries
  that does not offer much flexibility in where the file is produced.
 
  The example is the one I gave earlier. The generate-sources phase
  produces:
 
  target/jaxws/wsimport/java/META-INF/somefile
 
  I need the resulting war to have:
 
  META-INF/somefile
 
  Thanks for any suggestions.


--
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



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





--
Eric Redmond
http://www.sonatype.com


Javadoc Plugin Not Processing package.html Correctly

2007-06-14 Thread Danny Hurlburt

Hello,

I am having a problem with the javadoc plugin converting my package.html to
package-summary.html. When it finds a package.html, the plugin simply put
the word and in for the package description.

Has anyone else had the same problem and was able to fix this?

Can anyone offer any incite to this problem?

Any help is much appreciated.

Thanks - Dan


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



Re: copy file in maven

2007-06-14 Thread acec acec
Hi,
We have an old project, which uses ant and could 
generate a customized tomcat folder.

My new project using maven, I need copy some files
into old customized tomcat folder.

Thanks.
Arden

--- Nathan Maves [EMAIL PROTECTED] wrote:

 First what is the reason for your need to copy a
 file?
 
 The first thing that triggers in my mind is that you
 have a resource file
 that you need copied to your artifact.  If this is
 not the case then you may
 need to define your problem a little better.
 
 Nathan
 
 On 6/14/07, Jeff Mutonho [EMAIL PROTECTED]
 wrote:
 
  On 6/14/07, Eric Redmond [EMAIL PROTECTED]
 wrote:
   Yeah, ant is the easiest way.
  
   Eric
  
 
  Or you can try this :
 
 
 

http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html
 
 
 
 
 
  Don't take the name of root in vain.
 
  Jeff  Mutonho
  Cape Town
  South Africa
 
  GoogleTalk : ejbengine
  Skype: ejbengine
  Registered Linux user number 366042
 
 

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



  Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca


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



Deploying to two servers

2007-06-14 Thread Jon Strayer

Most of the time when I want to deploy a project I want the jar file copied
to the remote repository.

But some of the time I want a tarball copied to the production server.  How
can I do this?

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


Re: How to add file to war META-INF dir

2007-06-14 Thread Alexander Sack

I think he is looking to place file in META-INF not MANIFEST customization -
I could be wrong and that link maybe helpful none the less.

Some suggestions, maybe not the best solution but:

- Use the antrun pluging to copy stuff over before the package phase (I'm
will assume this artifact is generated during compilation) (already
suggested)

- Treat it as an external web resource and then use
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
to overlay the META-INF directory directly (ugly as sin)

That second one is off the top of my head and I have not tried it...

-aps

On 6/14/07, Eric Redmond [EMAIL PROTECTED] wrote:



http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.html

Eric

On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:


 Hi Eric,

 The docs are not obvious to me. Do I need to write code for this?
 If not, can you give an example please. Thanks.

 Eric Redmond wrote:
  I'm confused... why can't you use the archive configuration of the
  war:war goal?
 
  http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html
 
  Eric
 
  On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:
 
 
  Thanks. I guess that is what I will have to do.
 
  I have filed the following issue requesting this RFE:
 
  http://jira.codehaus.org/browse/MWAR-105
 
  Thanks very much for all your help.
 
  Wayne Fay wrote:
   If you can't control where it is being created, perhaps you should
 use
   the antrun plugin to copy the file to where you need it after it
has
   been generated.
  
   Wayne
  
   On 6/14/07, Farrukh S. Najmi [EMAIL PROTECTED] wrote:
   Alexander Sack wrote:
Can you give an example?  Also, why can't you change where the
   target is
produced?
  
   Hi Alexander,
  
   There is a complex dependency on various plugin and underlying
  libraries
   that does not offer much flexibility in where the file is
produced.
  
   The example is the one I gave earlier. The generate-sources phase
   produces:
  
   target/jaxws/wsimport/java/META-INF/somefile
  
   I need the resulting war to have:
  
   META-INF/somefile
  
   Thanks for any suggestions.


 --
 Regards,
 Farrukh

 Web: http://www.wellfleetsoftware.com



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




--
Eric Redmond
http://www.sonatype.com





--
What lies behind us and what lies in front of us is of little concern to
what lies within us. -Ralph Waldo Emerson


Re: copy file in maven

2007-06-14 Thread Ralf Quebbemann

Hi,

maybe it's not the best way to use the recommended copy-maven-plugin. Although 
it does its job (and yes I wrote it) there are plugins out there which have 
better capabilities.


You might want to check out the wagon-maven-plugin from the MyFaces project:

   groupIdorg.apache.myfaces.maven/groupId
   artifactIdwagon-maven-plugin/artifactId
   version1.0.5/version

This plugin uses wagon. So copying to remote destinations (scp, webdav, etc..) 
should be no problem.


The only drawback is, that it's not very convenient. Currently it's not possible 
to copy more than one file. Wildcards are not supported either.


Source code is available and I am sure patches are welcome. So give it a try.

However, the copy-maven-plugin works on local filesystems but is not maintained 
anymore.


Ralf

Jeff Mutonho wrote:

On 6/14/07, Eric Redmond [EMAIL PROTECTED] wrote:

Yeah, ant is the easiest way.

Eric



Or you can try this :

http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html 







Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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


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



RE: copy file in maven

2007-06-14 Thread Brian E. Fox
If the file is in the repository, you can use the
maven-dependency-plugin:copy goal. 

-Original Message-
From: acec acec [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 14, 2007 12:01 PM
To: users@maven.apache.org
Subject: copy file in maven

hi,
What's the easiest way to copy file in maven?
Should I use ant plugin to do that?
Thanks.



  Ask a question on any topic and get answers from real people. Go
to Yahoo! Answers and share what you know at http://ca.answers.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]



Re: copy file in maven

2007-06-14 Thread Jon Strayer

Is there any documentation on the wagon plugin?

On 6/14/07, Ralf Quebbemann [EMAIL PROTECTED] wrote:


Hi,

maybe it's not the best way to use the recommended copy-maven-plugin.
Although
it does its job (and yes I wrote it) there are plugins out there which
have
better capabilities.

You might want to check out the wagon-maven-plugin from the MyFaces
project:

groupIdorg.apache.myfaces.maven/groupId
artifactIdwagon-maven-plugin/artifactId
version1.0.5/version

This plugin uses wagon. So copying to remote destinations (scp, webdav,
etc..)
should be no problem.

The only drawback is, that it's not very convenient. Currently it's not
possible
to copy more than one file. Wildcards are not supported either.

Source code is available and I am sure patches are welcome. So give it a
try.

However, the copy-maven-plugin works on local filesystems but is not
maintained
anymore.

Ralf

Jeff Mutonho wrote:
 On 6/14/07, Eric Redmond [EMAIL PROTECTED] wrote:
 Yeah, ant is the easiest way.

 Eric


 Or you can try this :


http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html






 Don't take the name of root in vain.

 Jeff  Mutonho
 Cape Town
 South Africa

 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042

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

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





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


Re: filtering resources in maven-war-plugin

2007-06-14 Thread capira

I have same problem here.

Any ideas?

Regards,

Raul Casado


David Birch wrote:
 
 Hi,
i seem to be getting some strange behaviour with the war plugin
 (versions
 2.0.2  2.0.3-SNAPSHOT), if i do a build with the goal install, the
 resources are filtered properly, if i only go so far as war:exploded or
 war:war, they don't get filtered. I have debugged, and it looks like there
 are 3 steps of calling the plugin in a normal install (trace is below),
 during the first call on the plugin code,  the resources are copied but
 not
 filtered (webResources property is null), but on the subsequent invokes
 the
 resources are filted. When i execute standalone calls to war:exploded or
 war:war, the resources are not filtered - webResources is null  thus the
 filtering code is never invoked.
 FYI - i have tested with both maven 2.0.4  2.0.6
 
 If anyone has any ideas so i can avoid the full install process would be
 great - the wars i have inherited are a little on the large side so all
 the
 construction  copying is a bit of a slowdown.
 
 thanks
 David
 
 the build section of my pom is like so:
 build
 
 filters
 filterbuild.properties/filter
 /filters
 
 resources
 !-- filter the xml  properties resources --
 resource
 filteringtrue/filtering
 directorysrc/main/resources/directory
 includes
 include**/*.xml/include
 include**/*.properties/include
 include**/*.vm/include
 include**/*.txt/include
 /includes
 /resource
 /resources
 
 plugins
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 executions
 execution
 goals
 !-- goalcompile/goal
 goalinstall/goal --
 goalwar/goal
 goalexploded/goal
 goalinplace/goal
 /goals
 configuration
 
 warSourceDirectorysrc/main/webapp/warSourceDirectory
 webResources
 resource
 directorysrc/main/webapp/directory
 filteringtrue/filtering
 includes
 include**/*.jsp/include
 include**/*.xml/include
 include**/*.properties/include
 /includes
 /resource
 /webResources
  /configuration
 /execution
 /executions
/plugin
 /plugins
 
 /build
 
 the trace of a std build using the install goal is:
 
 [INFO] [war:war]
 [INFO] Exploding webapp...
 [INFO] Assembling webapp WARTest in
 C:\Java\workspace\TestWARPlugin\target\WARTe
 st-1.0
 [INFO] Copy webapp webResources to
 C:\Java\workspace\TestWARPlugin\target\WARTes
 t-1.0
 [INFO] Generating war
 C:\Java\workspace\TestWARPlugin\target\WARTest-1.0.war
 [INFO] Building war:
 C:\Java\workspace\TestWARPlugin\target\WARTest-1.0.war
 [INFO] [war:war {execution: default}]
 [INFO] Exploding webapp...
 [INFO] Assembling webapp WARTest in
 C:\Java\workspace\TestWARPlugin\target\WARTe
 st-1.0
 [INFO] Copy webapp webResources to
 C:\Java\workspace\TestWARPlugin\target\WARTes
 t-1.0
 [INFO] Copy webapp webResources to
 C:\Java\workspace\TestWARPlugin\target\WARTes
 t-1.0
 [INFO] Generating war
 C:\Java\workspace\TestWARPlugin\target\WARTest-1.0.war
 [INFO] Building war:
 C:\Java\workspace\TestWARPlugin\target\WARTest-1.0.war
 [INFO] [war:exploded {execution: default}]
 WarExplodedMojo by DB
 [INFO] Exploding webapp...
 [INFO] Assembling webapp WARTest in
 C:\Java\workspace\TestWARPlugin\target\WARTe
 st-1.0
 [INFO] Copy webapp webResources to
 C:\Java\workspace\TestWARPlugin\target\WARTes
 t-1.0
 [INFO] Copy webapp webResources to
 C:\Java\workspace\TestWARPlugin\target\WARTes
 t-1.0
 [INFO] [install:install]
 
 

-- 
View this message in context: 
http://www.nabble.com/filtering-resources-in-maven-war-plugin-tf3902334s177.html#a11126738
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: Enterprise M2 repository stored in subversion

2007-06-14 Thread Steve Ebersole
Sure.  The JBoss repo (http://repository.jboss.com/maven2/) does exactly 
this.  If the SVN repo is enabled for http access, then its no different 
from accessing any other Maven repository.


Raphaël Piéroni wrote:

Hi,

i have googled for an answer on the question whether
it is possible to store an entreprise Maven repository
in subversion and build a freshly checkouted project
in a computer with an empty local repository.

obviously the project's pom will contain the url
to the svn repository. but what such an URL would be ?

Thanks in advance for any help

Regards,

Raphaël


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



Re: maven-scm-plugin verbose

2007-06-14 Thread Jo Vandermeeren

On 6/14/07, Jeff Mutonho [EMAIL PROTECTED] wrote:


On 6/13/07, Emmanuel Venisse [EMAIL PROTECTED] wrote:
 you can use the mvn -X parameter.


Well , I'm using  Continuum to launch the maven builds



Hi Jeff,

So? Add the -X switch to the arguments list of your continuum build
definition.

Cheers
Jo


How do multiple plugin executions work?

2007-06-14 Thread Kevin Stembridge
Hi all,
I need to use the dependency plugin for two separate tasks in a project.
I don't understand how to define multiple executions of a plugin. The 
relevant portion of my pom.xml and the error message are below.

Also, what is the purpose of the id element in an execution? Can I use 
it from the command line to invoke a specific execution?


Thanks for any help.
Kevin

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
 
execution
idcopy-dependencies/id
phaseprocess-resources/phase
goals
goalcopy-dependencies/goal
/goals
configuration
outputDirectory
${project.build.directory}/dependencies/outputDirectory
overWriteReleasesfalse/overWriteReleases
overWriteSnapshotsfalse/overWriteSnapshots
overWriteIfNewertrue/overWriteIfNewer
stripVersiontrue/stripVersion
/configuration
/execution
 
execution
idupdate-server/id
goals
goalcopy/goal
/goals
configuration
artifactItems
artifactItem
groupIdcom.db.abfo/groupId
artifactIdabfo-webstart-web/
artifactId
version${project.version}/version
overWritetrue/overWrite
outputDirectory
${jboss.server.abfo.deploy.dir}/outputDirectory
/artifactItem
/artifactItems
/configuration
/execution
 
/executions
/plugin



$ mvn dependency:copy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] 

[INFO] Building WebStart Web Application
[INFO]task-segment: [dependency:copy]
[INFO] 

[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] One or more required plugin parameters are invalid/missing for 
'dependency:copy'

[0] inside the definition for plugin: 'maven-dependency-plugin'specify the 
following:

configuration
  ...
  artifactItemsVALUE/artifactItems
/configuration.

[INFO] 

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

[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jun 14 10:12:16 BST 2007
[INFO] Final Memory: 5M/11M
[INFO] 





---

This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.

RE: How do multiple plugin executions work?

2007-06-14 Thread Brian E. Fox
Your executions look correct, except that dependency:copy isn't meant to
be used from the command line. It is possible but not for multiple
executions, see here:
http://maven.apache.org/plugins/maven-dependency-plugin/faq.html#missing


-Original Message-
From: Kevin Stembridge [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 14, 2007 5:36 AM
To: users@maven.apache.org
Subject: How do multiple plugin executions work?

Hi all,
I need to use the dependency plugin for two separate tasks in a project.
I don't understand how to define multiple executions of a plugin. The
relevant portion of my pom.xml and the error message are below.

Also, what is the purpose of the id element in an execution? Can I use
it from the command line to invoke a specific execution?


Thanks for any help.
Kevin

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
 
execution
idcopy-dependencies/id
phaseprocess-resources/phase
goals
goalcopy-dependencies/goal
/goals
configuration
outputDirectory
${project.build.directory}/dependencies/outputDirectory
overWriteReleasesfalse/overWriteReleases
 
overWriteSnapshotsfalse/overWriteSnapshots
overWriteIfNewertrue/overWriteIfNewer
stripVersiontrue/stripVersion
/configuration
/execution
 
execution
idupdate-server/id
goals
goalcopy/goal
/goals
configuration
artifactItems
artifactItem
groupIdcom.db.abfo/groupId
artifactIdabfo-webstart-web/
artifactId
 
version${project.version}/version
overWritetrue/overWrite
outputDirectory
${jboss.server.abfo.deploy.dir}/outputDirectory
/artifactItem
/artifactItems
/configuration
/execution
 
/executions
/plugin



$ mvn dependency:copy
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] 


[INFO] Building WebStart Web Application
[INFO]task-segment: [dependency:copy]
[INFO] 


[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] One or more required plugin parameters are invalid/missing for 
'dependency:copy'

[0] inside the definition for plugin: 'maven-dependency-plugin'specify
the 
following:

configuration
  ...
  artifactItemsVALUE/artifactItems
/configuration.

[INFO] 

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

[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jun 14 10:12:16 BST 2007
[INFO] Final Memory: 5M/11M
[INFO] 





---

This e-mail may contain confidential and/or privileged information. If
you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this

e-mail is strictly forbidden.

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



Re: How do multiple plugin executions work?

2007-06-14 Thread Heinrich Nirschl
On Thu, 2007-06-14 at 10:35 +0100, Kevin Stembridge wrote:
 Hi all,
 I need to use the dependency plugin for two separate tasks in a project.
 I don't understand how to define multiple executions of a plugin. The 
 relevant portion of my pom.xml and the error message are below.
 
 Also, what is the purpose of the id element in an execution? Can I use 
 it from the command line to invoke a specific execution?
 
 
 Thanks for any help.
 Kevin
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 executions
  
 execution
 idcopy-dependencies/id
 phaseprocess-resources/phase
 goals
 goalcopy-dependencies/goal
 /goals
 configuration
 outputDirectory
 ${project.build.directory}/dependencies/outputDirectory
 overWriteReleasesfalse/overWriteReleases
 overWriteSnapshotsfalse/overWriteSnapshots
 overWriteIfNewertrue/overWriteIfNewer
 stripVersiontrue/stripVersion
 /configuration
 /execution
  
 execution
 idupdate-server/id
 goals
 goalcopy/goal
 /goals
 configuration
 artifactItems
 artifactItem
 groupIdcom.db.abfo/groupId
 artifactIdabfo-webstart-web/
 artifactId
 version${project.version}/version
 overWritetrue/overWrite
 outputDirectory
 ${jboss.server.abfo.deploy.dir}/outputDirectory

Don't know if this helps, but according to the docu, the
outputDirectory should be directly below configuration, at the same
level as artifactItems. It's worth a try.

 /artifactItem
 /artifactItems

*** put outputDirectory here

 /configuration
 /execution
  
 /executions
 /plugin
 
 


- Henry




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



RE: How do multiple plugin executions work?

2007-06-14 Thread Brian E. Fox
 Don't know if this helps, but according to the docu, the
outputDirectory should be directly below configuration, at the same
level as artifactItems. It's worth a try.

Actually both are valid. It lets you specify a single common directory
or one for each artifact.

-Original Message-
From: Heinrich Nirschl [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 14, 2007 4:05 PM
To: Maven Users List
Subject: Re: How do multiple plugin executions work?

On Thu, 2007-06-14 at 10:35 +0100, Kevin Stembridge wrote:
 Hi all,
 I need to use the dependency plugin for two separate tasks in a
project.
 I don't understand how to define multiple executions of a plugin. The 
 relevant portion of my pom.xml and the error message are below.
 
 Also, what is the purpose of the id element in an execution? Can I 
 use it from the command line to invoke a specific execution?
 
 
 Thanks for any help.
 Kevin
 
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 executions
  
 execution
 idcopy-dependencies/id
 phaseprocess-resources/phase
 goals
 goalcopy-dependencies/goal
 /goals
 configuration
 outputDirectory 
 ${project.build.directory}/dependencies/outputDirectory

overWriteReleasesfalse/overWriteReleases

overWriteSnapshotsfalse/overWriteSnapshots
 overWriteIfNewertrue/overWriteIfNewer
 stripVersiontrue/stripVersion
 /configuration
 /execution
  
 execution
 idupdate-server/id
 goals
 goalcopy/goal
 /goals
 configuration
 artifactItems
 artifactItem
 groupIdcom.db.abfo/groupId
 artifactIdabfo-webstart-web/
 artifactId

version${project.version}/version
 overWritetrue/overWrite
 outputDirectory 
 ${jboss.server.abfo.deploy.dir}/outputDirectory

Don't know if this helps, but according to the docu, the
outputDirectory should be directly below configuration, at the same
level as artifactItems. It's worth a try.

 /artifactItem
 /artifactItems

*** put outputDirectory here

 /configuration
 /execution
  
 /executions
 /plugin
 
 


- Henry




-
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: copy file in maven

2007-06-14 Thread Bernd Bohmann

Hello Jon,

just deployed a little bit documentation about the wagon plugin.

http://myfaces.apache.org/wagon-maven-plugin

We are using this plugin to publish the nightly builds to the nightly 
build download location.


Regards

Bernd

Jon Strayer wrote:

Is there any documentation on the wagon plugin?

On 6/14/07, Ralf Quebbemann [EMAIL PROTECTED] wrote:


Hi,

maybe it's not the best way to use the recommended copy-maven-plugin.
Although
it does its job (and yes I wrote it) there are plugins out there which
have
better capabilities.

You might want to check out the wagon-maven-plugin from the MyFaces
project:

groupIdorg.apache.myfaces.maven/groupId
artifactIdwagon-maven-plugin/artifactId
version1.0.5/version

This plugin uses wagon. So copying to remote destinations (scp, webdav,
etc..)
should be no problem.

The only drawback is, that it's not very convenient. Currently it's not
possible
to copy more than one file. Wildcards are not supported either.

Source code is available and I am sure patches are welcome. So give it a
try.

However, the copy-maven-plugin works on local filesystems but is not
maintained
anymore.

Ralf

Jeff Mutonho wrote:
 On 6/14/07, Eric Redmond [EMAIL PROTECTED] wrote:
 Yeah, ant is the easiest way.

 Eric


 Or you can try this :


http://quebbemann.kicks-ass.net/development/qu-base/maven-plugins/copy-maven-plugin/index.html 








 Don't take the name of root in vain.

 Jeff  Mutonho
 Cape Town
 South Africa

 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042

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

-
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]



Resource files are not overwritten

2007-06-14 Thread Nathan Maves

I have two resource directories set up via...


   resources
   resource
   directorysrc/main/resources/directory
   /resource
   resource
   directorysrc/main/resources-${env}/directory
   /resource
   /resources

The env var is set via a selected profile.  The problem occurs when there is
a file in both of the resources directories.  I would expect the one in the
second directory would over write the first but this is not the case.  It is
always ignored.  If I remove the resource from the first directory then the
resource with the same name is used from the second resource directory.

Any ideas?

Nathan


Re: Resource files are not overwritten

2007-06-14 Thread Mick Knutson

where is ${env} defined?


On 6/14/07, Nathan Maves [EMAIL PROTECTED] wrote:


I have two resource directories set up via...


resources
resource
directorysrc/main/resources/directory
/resource
resource
directorysrc/main/resources-${env}/directory
/resource
/resources

The env var is set via a selected profile.  The problem occurs when there
is
a file in both of the resources directories.  I would expect the one in
the
second directory would over write the first but this is not the case.  It
is
always ignored.  If I remove the resource from the first directory then
the
resource with the same name is used from the second resource directory.

Any ideas?

Nathan





--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---


Re: Resource files are not overwritten

2007-06-14 Thread Nathan Maves

In a profile.

   profile
   idenv-qa/id
   activation
   property
   nameenv/name
   valueqa/value
   /property
   /activation
   properties
   envqa/env
   /properties
   /profile

   profile
   idenv-prod/id
   activation
   property
   nameenv/name
   valueprod/value
   /property
   /activation
   properties
   envprod/env
   /properties
   /profile

Like I said this works fine because it will pick up all the files in the
resources-${env} directory as long as they are not in the standard resources
directory.

Nathan

On 6/14/07, Mick Knutson [EMAIL PROTECTED] wrote:


where is ${env} defined?


On 6/14/07, Nathan Maves [EMAIL PROTECTED] wrote:

 I have two resource directories set up via...


 resources
 resource
 directorysrc/main/resources/directory
 /resource
 resource
 directorysrc/main/resources-${env}/directory
 /resource
 /resources

 The env var is set via a selected profile.  The problem occurs when
there
 is
 a file in both of the resources directories.  I would expect the one in
 the
 second directory would over write the first but this is not the
case.  It
 is
 always ignored.  If I remove the resource from the first directory then
 the
 resource with the same name is used from the second resource directory.

 Any ideas?

 Nathan




--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---



using javadocDirectory with maven-javadoc-plugin [was: package.html resources not read]

2007-06-14 Thread Adam Hardy
I thought I'd post a more generic description since it seems no-one else 
recognises the problem.


Can't find any references to it in the JIRA or on the mailing list or in fact 
just generally by googling (there is some stuff but it was for mvn 1.1 and fixed).


Using the src/main/javadoc directory for package.html files just doesn't work.

Does anyone successfully process their package.html and images etc from 
src/main/javadoc? I'd be interested to hear.


Thanks
Adam


Adam Hardy on 13/06/07 21:39, wrote:
I moved my package.html files from the src/main/java directory where 
they worked fine into the src/main/javadoc directory, and now the 
maven-javadoc-plugin ignores them.


I can see from debug -X that javadocDirectory is passed with the correct 
setting.


I worked my way through a few errors to get this far and it seems very 
strange that no-one else is suffering from this problem - unless of 
course my ability to search the mailing list properly has evaporated.


This is my config:

reporting
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
configuration
links
linkhttp://java.sun.com/j2ee/1.4/docs/api/link

linkhttp://java.sun.com/j2se/1.5.0/docs/api/link

/link
source1.5/source

sourcepath${basedir}/src/main/java;${basedir}/src/test/java/sourcepath
!-- 
javadocDirectory${basedir}/src/main/javadoc/javadocDirectory --

/configuration
/plugin

Uncommenting the javadocDirectory tag doesn't help.

This is using either 2.2 or 2.3-SNAPSHOT, using JDK 1.5.0_12 and maven 
2.0.6.


Does anybody else see this? Or recognise a stupid error? Thanks!



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



Re: Javadoc Plugin Not Processing package.html Correctly

2007-06-14 Thread Adam Hardy

Danny Hurlburt on 14/06/07 18:18, wrote:

Hello,

I am having a problem with the javadoc plugin converting my package.html to
package-summary.html. When it finds a package.html, the plugin simply put
the word and in for the package description.

Has anyone else had the same problem and was able to fix this?

Can anyone offer any incite to this problem?


Hi Dan,

I just posted a similar problem myself but I think yours sounds like it might be 
easily resolved - did you follow the javadoc instructions for the package.html? 
For instance, there has to be a starting body tag and an ending /body too.



Regards
Adam



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



Possible bug in Maven filter

2007-06-14 Thread Briankous

Hi,

We have multiple projects that use different data base. For most of project
we need to use username and pasword master 
for DB access. However, for some projects, each developer has to use their
own username and password for the DB access of unit tests.

My solution for this configuration issue is to use maven filter functinality
to replace user name and password in Spring configuration file during build
process. Therefore, I created masterfilter.poperties file in ${HOME}/.m2 and
add following entry in my pom.xml in top level.
filters
filter${HOME}/.m2/masterfilter.properties/filter
/filters

It worked fine. The next step was to use different username and password for
some of the project. Therefore, I created 
filter.properties file in a project and added following entry to the pom.xml
of the project.
filters
filterfilter.properties/filter
/filters
When I run the maven build, I found the filtered value is not from
filter.properties in each project, but from 
${HOME}/.m2/masterfilter.properties.

Even if I tried many different methods, I was not able to find a way to
override the value in ${HOME}/.m2/masterfilter.properties.  

Therfore, I tried next trick by adding following entry in pom.xml in top
level and removed the filter from projects'
pom.xml.
filters
filter${HOME}/.m2/masterfilter.properties/filter
filterfilter.properties/filter
/filters
As I expected, the value in filter.properties is overriding the ones in
${HOME}/.m2/masterfilter.properties. It was 
working fine with its own littles issues.

1. If the filter.properties file is not available, build will fail with the
error. Can it be better if the process just 
skips it if the file is not found?
2. When there are mutiple modules, I cannot have a common filter.properties
in project level. I need to create a 
filter.properties in each module. Maven is looking for the filter.properties
in the module level.

I know if I have the filter.properties file for every project and every
module, it works. However, is there any better 
way than mine? 
Thank you.
-- 
View this message in context: 
http://www.nabble.com/Possible-bug-in-Maven-filter-tf3924649s177.html#a11129881
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: Javadoc Plugin Not Processing package.html Correctly

2007-06-14 Thread Danny Hurlburt
Yes I did. I used the documentation at 
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#packagecomments
My package.html file is a full blown validating HTML transitional 
document. I do realize that only the contents of the body tag is to be 
extract and put in package-summary.html during JavaDoc processing.


However, for some strange reason, where the contents of my body should 
be in package-summary.html appears the word and.


More details:

   My javadoc plugin declaration:

   ...
   reporting
   plugins
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-javadoc-plugin/artifactId
   configuration
   source1.5/source
   /configuration
   /plugin
   ...

   maven-javadoc-plugin version: 2.2

   Maven version: 2.0.6

   package.html location: src/main/javadoc/java package
   hierarchy/package.html where java package hierarchy depends on
   what java package I am documenting.

   Java Version: 1.5.0_11


If I put the package.html file in src/main/java/java package 
hierarchy/package.html I don't even get that weird and.


I too searched the mailing lists, and Jira and found nothing of use. Let 
me know if you find any thing.


Thanks - Dan

Adam Hardy wrote:

Danny Hurlburt on 14/06/07 18:18, wrote:

Hello,

I am having a problem with the javadoc plugin converting my 
package.html to
package-summary.html. When it finds a package.html, the plugin simply 
put

the word and in for the package description.

Has anyone else had the same problem and was able to fix this?

Can anyone offer any incite to this problem?


Hi Dan,

I just posted a similar problem myself but I think yours sounds like 
it might be easily resolved - did you follow the javadoc instructions 
for the package.html? For instance, there has to be a starting body 
tag and an ending /body too.



Regards
Adam



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






Re: How to parse pom.version

2007-06-14 Thread Mark Derricutt

Excellent - I was about to ask something similar for another project I'm
working on.  Not having looked at maven-artifact yet I suppose theres
support utils/methods for sorting and determining which version is higher in
here?

*hunts out javadoc*

On 6/15/07, Eric Redmond [EMAIL PROTECTED] wrote:




org.apache.maven.artifact.versioning.DefaultArtifactVersion (within
project org.apache.maven:maven-artifact) constructor takes a string and
parses into major, minor, incremental, build number and qualifier.



Re: How to parse pom.version

2007-06-14 Thread Mark Derricutt

Scratch that - I see it has a compareTo all nice and built in ;-)

On 6/15/07, Mark Derricutt [EMAIL PROTECTED] wrote:


Excellent - I was about to ask something similar for another project I'm
working on.  Not having looked at maven-artifact yet I suppose theres
support utils/methods for sorting and determining which version is higher in
here?

*hunts out javadoc*

On 6/15/07, Eric Redmond [EMAIL PROTECTED] wrote:



 org.apache.maven.artifact.versioning.DefaultArtifactVersion (within
 project org.apache.maven:maven-artifact) constructor takes a string and
 parses into major, minor, incremental, build number and qualifier.





RE: How to reset java.home value from inside a pom file?

2007-06-14 Thread Tawfik, Sameh E

Hi Wayne,

When I set JAVA_1_5_HOME to C:\Program Files\Java\jdk1.5.0_1 in mvn.bat
file everything works fine.

But, I wanted to use the alternative method by modifying the parent POM,
so I made the following changes: 

The first part works fine, where it is set to configure the Java
compiler to allow JDK 5.0 sources. 

But the second part is not working? Something is wrong. It seems it is
not set correctly or there is something else?

I set an environment variable JAVA_1_5_HOME to C:\Program
Files\Java\jdk1.5.0_1, and when I run mvn compile, I get the following
error message:

[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

Failure executing javac,  but could not parse the error:


Here is my parent POM code:
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId

version2.0/version
configuration
  source1.5/source
  target1.5/target

  verbosetrue/verbose
  forktrue/fork
  executable${JAVA_1_5_HOME}/bin/javac/executable
  compilerVersion1.5.0_11/compilerVersion

/configuration
  /plugin
/plugins
  /build

 Thanks,

  Sameh

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 6:17 PM
To: Maven Users List
Subject: Re: How to reset java.home value from inside a pom file?

Realistically, you should set the JAVA_HOME in Windows Control Panel
etc so it is set to 1.5.0_11 permanently for all apps. Then you can
set compiler configuration parameters in your pom to target/source a
different Java version as needed.

Alternatively, you can edit the mvn.bat file and set your JAVA_HOME
there. Set it near the top as the value is checked at some point and
fails if it is not set.

Finally, you can check the documentation for maven-compiler-plugin if
you really want to set up multiple compilers in your project for some
reason (this is generally not done, and not advised unless you have a
specific need for a complicated configuration).

Wayne

On 5/31/07, Tawfik, Sameh E [EMAIL PROTECTED] wrote:

 Hi,

 I'm using Maven version: 2.0.6, and I've different versions of java
sdk
 installed on my machine.

 Currently on my WindowsXP, JAVA_HOME is set to C:\j2sdk1.4.2_13,  but
 when I run maven I need to have JAVA_HOME set to C:\Program
 Files\Java\jdk1.5.0_11 instead.

 I can reset the value of JAVA_HOME variable to the needed value and
that
 will work fine when I run maven, but is there a way where I can
override
 the default value from inside the pom file?

 Could anyone let me know if this step can be accomplished?

  Thanks,

Sameh
 This email and any files transmitted with it are confidential,
proprietary
 and intended solely for the individual or entity to whom they are
addressed.
 If you have received this email in error please delete it immediately.


 -
 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]

This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


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



Re: How to reset java.home value from inside a pom file?

2007-06-14 Thread Wayne Fay

Try mvn -e or mvn -X which should show you more information about the
failure/error.

Wayne

On 6/14/07, Tawfik, Sameh E [EMAIL PROTECTED] wrote:


Hi Wayne,

When I set JAVA_1_5_HOME to C:\Program Files\Java\jdk1.5.0_1 in mvn.bat
file everything works fine.

But, I wanted to use the alternative method by modifying the parent POM,
so I made the following changes:

The first part works fine, where it is set to configure the Java
compiler to allow JDK 5.0 sources.

But the second part is not working? Something is wrong. It seems it is
not set correctly or there is something else?

I set an environment variable JAVA_1_5_HOME to C:\Program
Files\Java\jdk1.5.0_1, and when I run mvn compile, I get the following
error message:

[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

Failure executing javac,  but could not parse the error:


Here is my parent POM code:
  build
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId

version2.0/version
configuration
  source1.5/source
  target1.5/target

  verbosetrue/verbose
  forktrue/fork
  executable${JAVA_1_5_HOME}/bin/javac/executable
  compilerVersion1.5.0_11/compilerVersion

/configuration
  /plugin
/plugins
  /build

 Thanks,

  Sameh

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 31, 2007 6:17 PM
To: Maven Users List
Subject: Re: How to reset java.home value from inside a pom file?

Realistically, you should set the JAVA_HOME in Windows Control Panel
etc so it is set to 1.5.0_11 permanently for all apps. Then you can
set compiler configuration parameters in your pom to target/source a
different Java version as needed.

Alternatively, you can edit the mvn.bat file and set your JAVA_HOME
there. Set it near the top as the value is checked at some point and
fails if it is not set.

Finally, you can check the documentation for maven-compiler-plugin if
you really want to set up multiple compilers in your project for some
reason (this is generally not done, and not advised unless you have a
specific need for a complicated configuration).

Wayne

On 5/31/07, Tawfik, Sameh E [EMAIL PROTECTED] wrote:

 Hi,

 I'm using Maven version: 2.0.6, and I've different versions of java
sdk
 installed on my machine.

 Currently on my WindowsXP, JAVA_HOME is set to C:\j2sdk1.4.2_13,  but
 when I run maven I need to have JAVA_HOME set to C:\Program
 Files\Java\jdk1.5.0_11 instead.

 I can reset the value of JAVA_HOME variable to the needed value and
that
 will work fine when I run maven, but is there a way where I can
override
 the default value from inside the pom file?

 Could anyone let me know if this step can be accomplished?

  Thanks,

Sameh
 This email and any files transmitted with it are confidential,
proprietary
 and intended solely for the individual or entity to whom they are
addressed.
 If you have received this email in error please delete it immediately.


 -
 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]

This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.


-
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]