Re: RepositoryProxyConnectors - Transfer error

2008-03-04 Thread Martin Höller
On Tuesday 04 March 2008 wrote [EMAIL PROTECTED]:

 I installed archiva 1.0.1, and configured a network proxy (my company
 proxy).

 Then I tried to point
 http://localhost:8080/archiva/repository/internal/junit/junit/3.8.1/junit
-3.8.1.jar (like in the documentation quick-start) But when archiva is
 trying to download it from the central repository
 (http://repo1.maven.org/maven2) I have the following error :

Does it work without the configured proxy? Is archiva connecting to the 
proxy? (check the proxy log-files)

- martin
-- 
Martin Höller   | [EMAIL PROTECTED]
*x Software + Systeme   | http://www.xss.co.at/
Karmarschgasse 51/2/20  | Tel: +43-1-6060114-30
A-1100 Vienna, Austria  | Fax: +43-1-6060114-71


signature.asc
Description: This is a digitally signed message part.


Réf. : Re: RepositoryProxyConnectors - Transfer error

2008-03-04 Thread ldelaforge
Thank you for you quick answer

In fact, I just missed to configure the Proxy connectors in order they 
use the Network Proxy
After doing this, junit is correctly downloaded.

So the problem is closed...

Laurent Delaforge





Martin Höller [EMAIL PROTECTED]
04/03/2008 13:12
Veuillez répondre à archiva-users

 
Pour :  archiva-users@maven.apache.org
cc :(ccc : Laurent Delaforge/ODDO)
Objet : Re: RepositoryProxyConnectors - Transfer error


On Tuesday 04 March 2008 wrote [EMAIL PROTECTED]:

 I installed archiva 1.0.1, and configured a network proxy (my company
 proxy).

 Then I tried to point
 http://localhost:8080/archiva/repository/internal/junit/junit/3.8.1/junit
-3.8.1.jar (like in the documentation quick-start) But when archiva is
 trying to download it from the central repository
 (http://repo1.maven.org/maven2) I have the following error :

Does it work without the configured proxy? Is archiva connecting to the 
proxy? (check the proxy log-files)

- martin
-- 
Martin Höller   | [EMAIL PROTECTED]
*x Software + Systeme   | http://www.xss.co.at/
Karmarschgasse 51/2/20  | Tel: +43-1-6060114-30
A-1100 Vienna, Austria  | Fax: +43-1-6060114-71





___

L'integrite de ce message n'etant pas assuree sur Internet, les societes du 
groupe Oddo ne peuvent être tenues responsables de son contenu. Ce message et  
les eventuels fichiers attaches contiennent des informations confidentielles. 
Au cas où il ne vous serait pas destine, nous vous remercions de bien vouloir 
le supprimer et en aviser l'expediteur.

This message and the files that may be attached to it contain confidential 
information. The Oddo group may not be held responsible for their contents, 
whose accuracy and completeness cannot be guaranteed over the internet. If the 
message is not addressed to you, kindly delete it and notify the sender.

___


RE: Why is the parent pom upload compulsory ?

2008-03-04 Thread MATHUS Baptiste
Thanks for your answers,

That's certainly what's wrong. We don't have any $USER_HOME/.m2/settings.xml 
file. Only in $M2_HOME/conf.

In fact, the maven version and binaries we're using is distributed to our 
developers with the right settings.xml file in $M2_HOME/conf directory.
How come maven, launched by continuum, doesn't use $M2_HOME/conf/settings.xml 
if no $USER_HOME/.m2/settings.xml is found ? 

Isn't it the maven binaries default behaviour? Why isn't it used ?
In fact, as I said, if I start maven from the command line from the same 
machine continuum is running in, it has no problem to use the 
$M2_HOME/conf/settings.xml and is able to download the parent pom if it's 
missing.

Cheers.


-Message d'origine-
De : Sebastien Geindre [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 3 mars 2008 22:48
À : continuum-users@maven.apache.org
Objet : Re: Why is the parent pom upload compulsory ?

Baptiste,

The fact is that Continuum use the ~/.m2/settings.xml of the user which launch 
Continuum
And NOT settings.xml of maven installation...
It's a bit confusing but it helps when you change version of maven...

Sebastien,
A toulouse...


2008/3/3, Olivier Lamy [EMAIL PROTECTED]:

 Hi,
 inline.

 2008/3/3, MATHUS Baptiste [EMAIL PROTECTED]:

  Hi all,
 
   I'm evaluating continuum 1.1.

 Cool :-)

   We've been using the 1.0 for some months now, and consider 
  migrating
 mostly for the group management feature.
   In fact, we're about to add more and more projects, and displaying 
  them
 all in the same view seems quite unreasonnable.
   I just tried adding one of our project and there seems to have a
 problem with the parent pom. The thing I don't get is why it's needed.
   Is the installation feature related to this problem ? I didn't
 configure any installation, should I configure my maven installation ?
 Doesn't continuum just use the path/environment it's running in by default ?



 Yep continuum will use default user settings (PATH, JAVA_HOME etc...)


 
   In fact, even if I empty the local repository and run mvn package 
  from
 the project directory, the parent pom will be downloaded just fine.
   The mvn command is configured correctly, so why doesn't continuum 
  just
 use the same configuration ?

 This parent pom should be available in a repo, you have to declare 
 this repo in the settings.xml (~/.m2/settings.xml)

 
   Maybe we had to do the same thing with continuum 1.0 and I don't
 remember it ? In fact, I managed to do the build by uploading the 
 parent pom, but it doesn't seem straightforward to me.
   I also noticed that if I add the parent pom as a project, then 
  delete
 it. Then adding a project that uses this parent pom works fine.
   I guess there should be a part in the doc explaining this behaviour :).


 When you add the parent pom in continuum, mvn install it in the local 
 repo.That's why it's available for other builds.


   I tried to find some doc about it, but didn't find a lot.
 
   Any advice greatly appreciated :).
 
   Thanks a lot.
   Cheers.
 
 
   -- Baptiste
 
 




--
Sébastien.


Re: one build per cpu (continuum 1.1)

2008-03-04 Thread Emmanuel Venisse
It's a planned feature. I can't say for the moment when it will be
available.

Emmanuel

On Tue, Mar 4, 2008 at 2:23 AM, deckrider [EMAIL PROTECTED] wrote:

 Hi,

 We have a 4-cpu machine on which we run continuum 1.1.  Unfortunately,
 it only runs one build at a time.  How can we run up to 4 builds at a
 time?

 Thanks!



Re: Standalone installation on Debian Etch

2008-03-04 Thread Emmanuel Venisse
On Tue, Mar 4, 2008 at 11:45 AM, Jonathan Share [EMAIL PROTECTED] wrote:

 Hi,

 I'm currently trying to get Continuum working standalone on a Debian
 system and it seems that the documented instructions[1] are severely
 flawed.

 If you follow the instructions directly

  ln -s /usr/local/continuum-[VERSION]/bin/linux/run.sh
 /etc/init.d/continuum

  update-rc.d continuum defaults 80

 Then testing this on the shell

   invoke-rc.d continuum start

 things appear to work fine, however, when you let the system try and
 start continuum at boot it fails. There are 2 reasons for this failing.

 The first reason is that the symlinks created by update-rc.d are
 relative causing the loop to resolve the destination of the link to fail.

 Personally I have resolved this by replacing the loop with the readlink
 command. This is part of gnu coreutils so I believe it should be
 available on pretty much any system.

 Once that is fixed the wrapper dies because it can't find the JAVA_HOME
 environment variable. There is no way to set an environment variable so
 that it is available in the init scripts. In line with the debian
 guidelines[2] I would recommend adding a default JAVA_HOME in the script
 if one is not present, currently you only seem to do this for OS X. A
 sensible default could be something along the lines of

   JAVA_EXE=`which java`
   REAL_JAVA_EXE=`readlink -fn $JAVA_EXE`
   export JAVA_HOME=`dirname $REAL_JAVA_EXE`/../../

 2 questions;
 1) How did the current documentation end up on the site if it could
 never have worked as intended? Have I missed something obvious?


We don't have a Debian for tests so we let users to send us their process.


 2) Do you want me to submit a patch for my proposed changes?


Yes, please.

Emmanuel



 Regards,

 Jon

 [1]

 http://maven.apache.org/continuum/docs/1.1/installation/standalone.html#In_a_Debian-based_system
 [2] http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.9



Problem with continuum

2008-03-04 Thread Glauber Stéfano Rezende

Hi,

Anybody there are solution to this problem.
I´ve never saw this.


Provider message: The svn command failed.
Command output: 
---

svn: Your .svn/tmp directory may be missing or corrupt; run 'svn cleanup' and 
try again
svn: Can't open file 
'Sigmai-Evolution\SigmaiWeb\JavaSource\br\com\hst\j2ee\sigmai\web\struts\form\report\.svn\tmp\text-base\ReportBdRemainingBySegmentAtCommissionerSupervisorForm.java.svn-base':
 The system cannot find the path specified.
---

--
Glauber Stéfano Rezende




Re: Build number plugin

2008-03-04 Thread Emmanuel Venisse
Do you have a plugin or a test that modify/create a file or a directory in
the local copy?

Emmanuel

On Tue, Mar 4, 2008 at 2:03 PM, John Coleman 
[EMAIL PROTECTED] wrote:


 Hi,

 I have had problems committing a source fiel recently and somehow this
 has messed up out continuum build.

[INFO] Cannot create the build number because you have local
 modifications :

 I just don't understand how continuum can have local modifications,
 surely it just checks out the latest state of the svn repo for the
 project?

 TIA
 John

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

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

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

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




Re: Build number plugin

2008-03-04 Thread Glauber Stéfano Rezende

Emmanuel Venisse wrote:

Do you have a plugin or a test that modify/create a file or a directory in
the local copy?

Emmanuel

On Tue, Mar 4, 2008 at 2:03 PM, John Coleman 
[EMAIL PROTECTED] wrote:

  

Hi,

I have had problems committing a source fiel recently and somehow this
has messed up out continuum build.

   [INFO] Cannot create the build number because you have local
modifications :

I just don't understand how continuum can have local modifications,
surely it just checks out the latest state of the svn repo for the
project?

TIA
John

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

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

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

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





  

Yes, and with the linux I create de build with sucess.

--
Glauber Stéfano Rezende
HST Sistemas  Tecnologia
CM – Configuration Manager
Fone: +55 19 3294-0331
http://www.hst.com.br



RE: Problem with continuum

2008-03-04 Thread nicklist
You need file access to your continuum application. (Through ssh or on the 
machine itself for example) Continuum uses a work directory where the checkouts 
are made. Here lies the problem. (For every build the working copy is updated, 
not recreated.)

As a side note for the dev'ers. Would it be possible to get some functionality 
to recreate your workingcopy? At the moment I have the same problem and no 
direct connection to the machine, only the web interface.

Hth,

Nick Stolwijk


   
How I do this?

-- 
Glauber Stéfano Rezende
HST Sistemas  Tecnologia
CM - Configuration Manager
Fone: +55 19 3294-0331
http://www.hst.com.br




Re: Release process

2008-03-04 Thread Vincent Massol


On Mar 4, 2008, at 6:13 AM, Wendy Smoak wrote:

On Mon, Mar 3, 2008 at 7:29 PM, Arash Bizhan zadeh  
[EMAIL PROTECTED] wrote:
There is 6 Tomcat 5.5 sandboxes, all of them running on RHE 6.  
There is a
load balancer in front of them and we need to release every app on  
all of

them. I am looking for the best practices to manage the releases.


This is more deployment (and configuration management) than release.

Take a look at Lokahi, currently in the ASF Incubator:
http://incubator.apache.org/lokahi/


You can also check http://www.smartfrog.org/

-Vincent


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



Re: How to specify local dependency in maven2

2008-03-04 Thread Shakun Gupta

Hi Dipankar,

You can not add jars from any local directory to maven. But, if the jars 
exist at some path like some-path/abc/jars

Then you have to add a private repository in pom.xml as
   repositories
   repository
   layoutlegacy/layout
   idAbcRepository/id
   nameAbcRepository/name
   urlfile:///some-path/url
   /repository
   /repositories

and give the dependencies as
   dependency
   groupIdabc/groupId
   artifactIdjunit/artifactId
   version4.4/version
   scopetest/scope
   /dependency

Basically, if you give layout as legacy then it will search for the 
pom at the location repositry-url/$groupId/pom/$artifactId-$version.pom
and will search for the jar at the location 
repositry-url/$groupId/jars/$artifactId-$version.jar


So, in your case you can use the following two approcahes :
1.  you move your jars from library C:\lib to some directory say 
C:\abc\jars and use the above snippets
2.  write a script which will create the folder structure 
$groupId/$atrifactId/$version and copy the jars in this directory, then 
you can use the approach the Samuel has suggested.

I will suggest to use the second approach.

But, the best approach is to use the maven repositories and with the 
m2eclipse plugin, you just have to type the name of the jar, it will 
automatically give you a list of all the matching jars, then you select 
which version to use and it will automatically modify the pom.xml


Regards,
Shakun

Samuel Le Berrigaud wrote:

Not that I know of. And I believe there is not.

The maven way of managing dependencies is to declare those in the POM (or to
get them transitively for maven2), using libraries from a directory would go
against that.

Hope it helps.
SaM

On Tue, Mar 4, 2008 at 6:36 PM, Dipankar Ghosal 
[EMAIL PROTECTED] wrote:

  

Thanks Samuel..

However is there any way to include all libraries that are present in a
particular folder.
Say i have 20 odd jars in C:\lib folder?



Samuel Le Berrigaud wrote:


Hi,

you would have to use the system scope. See the system dependencies
section
at

  

http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html


.

However I would recommend you create a private repository internally to
your
company so that you can more easily share those dependencies with your
team.
This way those dependencies will work the same way as any other maven
dependency. Consistency is good.

SaM

On Tue, Mar 4, 2008 at 6:00 PM, Dipankar Ghosal 
[EMAIL PROTECTED] wrote:

  

I have a WebSphere Portlet project which uses many IBM jars(Available


at


installation directory in local system).

I need to use these jars while performing maven build.

How do i specify the location of the jars so that maven uses the jars
from
local location rather than download from remote repository.

Is there any option like specifying the local jars in
project.properties(available in maven 1.1)

#
# Register local jar files to maven. This prevents maven from
# trying to download these dependencies
#

maven.jar.wps = ${wps.home}/wps.jar
maven.jar.jsr168-api = ${wps.home}/shared/app/jsr168-api.jar

Any help will be appreciated
--
View this message in context:



http://www.nabble.com/How-to-specify-local-dependency-in-maven2-tp15821419s177p15821419.html


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


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




--
Samuel Le Berrigaud


  

--
View this message in context:
http://www.nabble.com/How-to-specify-local-dependency-in-maven2-tp15821419s177p15821761.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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






  




upgrade from maven 1 to maven 2

2008-03-04 Thread David Delbecq

Hello,

we have a few project here using maven 1. They become difficult to 
maintain when it come to using new plugins that are not available for 
maven 1. So we thought it might be time to switch to maven 2. Question 
is, considering about all projects are using preGoal/postGoal and 
personalized rules in maven.xml, what should i do with them? I read 
there is no equivalent of maven.xml, i need to use a plugin. Can I sort 
of embbed that plugin with the project that use it, or do i need to 
create a separate plugin project for each of our maven.xml, compile and 
deploy those plugin change everytime before compiling the main project 
(with maven 1, changes to maven.xml were immediate)? Also if someone can 
point me to documentation about converting that maven.xml to a plugin, 
it'll be great. Documentation here 
http://maven.apache.org/guides/mini/guide-m1-m2.html , section what to 
do with maven.xml point to error page (the pages seems to have been 
removed from maven site :( )


example of such task of maven.xml here is, we have a project X that is a 
webapp. In a subdirectory of that webapp we need to copy all ressources 
of another project Y, and we need to merge the struts and web.xml 
configs (we use a xslt processor for that). Am not sure how easy that 
can be transfered to a plugin...


--
David Delbecq
Institut Royal Météorologique
Ext:557


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



Re: upgrade from maven 1 to maven 2

2008-03-04 Thread Samuel Le Berrigaud
Hi David,

You don't to implement your whole maven.xml into one maven2 plugin. Instead
you should decompose what you do in your maven.xml and find out the existing
maven 2 plugins that would enable those different tasks.

For example, if I take your two examples below:
- copying resources of another project:
I would make that project a dependency of your web application and that
would be sufficient to add those on your classpath.
If you need them outside the classpath, I would probably use the maven
dependency plugin: http://maven.apache.org/plugins/maven-dependency-plugin/
using the unpack goal, it will unpack the jar wherever you need to. I would
attach that to the process-resources phase of you war module.

- xslt transformation
that should be fairly easy using the XSLT plugin:
http://mojo.codehaus.org/xslt-maven-plugin/
attaching it to the same process-resources phase.

Hope this all make sense. I strongly advise researching existing plugins
before writing your own. All the configuration will go in your pom.xml so as
with the maven.xml you can update those rules easily.

SaM

On Tue, Mar 4, 2008 at 8:39 PM, David Delbecq [EMAIL PROTECTED] wrote:

 Hello,

 we have a few project here using maven 1. They become difficult to
 maintain when it come to using new plugins that are not available for
 maven 1. So we thought it might be time to switch to maven 2. Question
 is, considering about all projects are using preGoal/postGoal and
 personalized rules in maven.xml, what should i do with them? I read
 there is no equivalent of maven.xml, i need to use a plugin. Can I sort
 of embbed that plugin with the project that use it, or do i need to
 create a separate plugin project for each of our maven.xml, compile and
 deploy those plugin change everytime before compiling the main project
 (with maven 1, changes to maven.xml were immediate)? Also if someone can
 point me to documentation about converting that maven.xml to a plugin,
 it'll be great. Documentation here
 http://maven.apache.org/guides/mini/guide-m1-m2.html , section what to
 do with maven.xml point to error page (the pages seems to have been
 removed from maven site :( )

 example of such task of maven.xml here is, we have a project X that is a
 webapp. In a subdirectory of that webapp we need to copy all ressources
 of another project Y, and we need to merge the struts and web.xml
 configs (we use a xslt processor for that). Am not sure how easy that
 can be transfered to a plugin...

 --
 David Delbecq
 Institut Royal Météorologique
 Ext:557


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




-- 
Samuel Le Berrigaud


Re: Test classpath problem in multi module project

2008-03-04 Thread VUB Stefan Seidel

Hi Petr,

I have a default.persistence.properties in the artifact with the EJB3 
abstract test case. There I can specify whatever I like. Also, in the 
jboss in deploy/ejb3.deployer/META-INF there is another 
persistence.properties where I specify the production properties.


Stefan

Petr Nejedly wrote:

Thanks Stefan,

 


Very helpful. Just a question:

 


You said you're using only one persistence.xml for both, testing and
live deployment. How do you specify different Hibernate properties for
those, eg dialect (Oracle vs HSQLDB), auto create schema (on vs off),
etc?

 


Cheers, Petr



The information contained in this email and its attachments is confidential and may be the subject of legal, professional or other privileged information. It is intended only for the named addressees and may not be disclosed to anyone else without consent from On Demand. If you are not the named addressee you must not use, disclose, distribute, copy, print or rely on the contents of this email and should destroy it immediately. Whilst On Demand takes care to protect its systems from electronic virus attack or other harmful event, the firm gives no warranty that this email message (including any attachments to it) is free of any virus or other harmful matter and accepts no responsibility for any loss or damage resulting from the recipient receiving, opening or using it. If you need any further information, please contact the originator of this message on +44 (0)20 7131 6700. Website: www.ondemand.co.uk. Registered Office: 1 Stephen Street, London, W1T 1AL. Registered in the 

UK No.4094951.


This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com




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



Re: upgrade from maven 1 to maven 2

2008-03-04 Thread [EMAIL PROTECTED]
David Delbecq schrieb:
 Hello,

 we have a few project here using maven 1. They become difficult to
 maintain when it come to using new plugins that are not available for
 maven 1. So we thought it might be time to switch to maven 2. Question
 is, considering about all projects are using preGoal/postGoal and
 personalized rules in maven.xml, what should i do with them? I read
 there is no equivalent of maven.xml, i need to use a plugin. Can I
 sort of embbed that plugin with the project that use it, or do i need
 to create a separate plugin project for each of our maven.xml, compile
 and deploy those plugin change everytime before compiling the main
 project (with maven 1, changes to maven.xml were immediate)? Also if
 someone can point me to documentation about converting that maven.xml
 to a plugin, it'll be great. Documentation here
 http://maven.apache.org/guides/mini/guide-m1-m2.html , section what
 to do with maven.xml point to error page (the pages seems to have
 been removed from maven site :( )

 example of such task of maven.xml here is, we have a project X that is
 a webapp. In a subdirectory of that webapp we need to copy all
 ressources of another project Y, and we need to merge the struts and
 web.xml configs (we use a xslt processor for that). Am not sure how
 easy that can be transfered to a plugin...

Maven2 has a different approach, with the concept of lifecycle phases;
you need to read the available information on that first. See the
getting started guides here:
  http://maven.apache.org/guides/index.html

Then in many cases the hacks that use preGoal/postGoal can be removed
and replaced with a standard plugin. For example, to copy resources of
another project Y you would:
 * have Y install those resources as an artifact into the repository
 * in project X, use the maven-dependency-plugin to pull those resources
from the repository

Where you have something that just cannot be done with an existing
plugin, the easiest solution is usually to write an ant task to perform
the necessary work, then bind the maven-ant-plugin to an appropriate
*phase* of the build-cycle so that it runs at the appropriate time. See
the documentation on maven-ant-plugin, executions sections and (again)
the documentation about phases. Of course using ant tasks should be a
last resort..there are a *lot* of standard plugins available.

Hope this helps..

Regards,
Simon


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



Re: upgrade from maven 1 to maven 2

2008-03-04 Thread David Delbecq

Hello,

i was hopping there was some way to take my pack of maven.xml preGoal 
rule and just relocate them somewhere where maven2 would use them. You 
suggestion will not work. For our XSLT transform, we need to pass 
parameters to the xslt transform engine (for that we use saxon 
transformer with some specific transformation parameters), i don't see 
such equivalent in what you pointed me to nor is there information about 
version of xslt supported (1,2? we need 2).


For the dependency plugin we have to investigate, but if that mean we 
need to upgrade included project to maven 2 also, that's a no go. That 
project i have no write access to and we don't plan maven 2 for it, we 
just currently, in our build process, download it along our main 
project, and retrieve some files from it (files we patch on the fly 
using ant:replace / rules btw). We don't even build it, we only need 
it's webapp (jsp/pictures/html/config) files integrated in our app.



So, if we could keep our current build process rules (maven.xml), and 
just somehow move them in a plugin that would be lot's easier. Some of 
the jelly rules took time to implement, we don't have the time to 
recreate all them. Isn't it possible to take the maven.xml and put it in 
a project.jelly or it's maven2 equivalent?


I need some direction on how to easily convert from maven1 to maven2, 
related to maven.xml, but all link related to that in maven site seem 
dead (see my first mail)



En l'instant précis du 04/03/08 10:57, Samuel Le Berrigaud s'exprimait 
en ces termes:

Hi David,

You don't to implement your whole maven.xml into one maven2 plugin. Instead
you should decompose what you do in your maven.xml and find out the existing
maven 2 plugins that would enable those different tasks.

For example, if I take your two examples below:
- copying resources of another project:
I would make that project a dependency of your web application and that
would be sufficient to add those on your classpath.
If you need them outside the classpath, I would probably use the maven
dependency plugin: http://maven.apache.org/plugins/maven-dependency-plugin/
using the unpack goal, it will unpack the jar wherever you need to. I would
attach that to the process-resources phase of you war module.

- xslt transformation
that should be fairly easy using the XSLT plugin:
http://mojo.codehaus.org/xslt-maven-plugin/
attaching it to the same process-resources phase.

Hope this all make sense. I strongly advise researching existing plugins
before writing your own. All the configuration will go in your pom.xml so as
with the maven.xml you can update those rules easily.

SaM

On Tue, Mar 4, 2008 at 8:39 PM, David Delbecq [EMAIL PROTECTED] wrote:

  

Hello,

we have a few project here using maven 1. They become difficult to
maintain when it come to using new plugins that are not available for
maven 1. So we thought it might be time to switch to maven 2. Question
is, considering about all projects are using preGoal/postGoal and
personalized rules in maven.xml, what should i do with them? I read
there is no equivalent of maven.xml, i need to use a plugin. Can I sort
of embbed that plugin with the project that use it, or do i need to
create a separate plugin project for each of our maven.xml, compile and
deploy those plugin change everytime before compiling the main project
(with maven 1, changes to maven.xml were immediate)? Also if someone can
point me to documentation about converting that maven.xml to a plugin,
it'll be great. Documentation here
http://maven.apache.org/guides/mini/guide-m1-m2.html , section what to
do with maven.xml point to error page (the pages seems to have been
removed from maven site :( )

example of such task of maven.xml here is, we have a project X that is a
webapp. In a subdirectory of that webapp we need to copy all ressources
of another project Y, and we need to merge the struts and web.xml
configs (we use a xslt processor for that). Am not sure how easy that
can be transfered to a plugin...

--
David Delbecq
Institut Royal Météorologique
Ext:557


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






  



--
David Delbecq
Institut Royal Météorologique
Ext:557


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



Re: jspc precompile

2008-03-04 Thread VUB Stefan Seidel



[EMAIL PROTECTED] wrote:



There must be some option to alter the default path, right??
You saw the text in jspc maven plugin doc:


configuration
webXml${basedir}/target/jspweb.xml/webXml
...
/configuration

There you can set the path


Nope, I don't think that's it. There you can only define were the jspweb.xml 
should be put. I would need to be able to define a custom path for the webapp 
folder.



Ok, that wasn't it. I did a short test with one of my WARs and found the 
solution (I think). I renamed my webapp folder to webappx and checked 
what I needed to do in order to get it working again. Very helpful was 
the output from


mvn help:describe -Dplugin=org.codehaus.mojo:jspc-maven-plugin -Dfull

which pointed me to the options for this plugin.

So what you already should have is in the maven-war-plugin:
- webappDirectory: to you webapp-dir with the JSP files
- webXml${basedir}/target/jspweb.xml/webXml so it would use the 
output from jspc


and for the jspc plugin:
- warSourceDirectory: same as webAppDirectory above
- inputWebXmlsrc/war/WEB-INF/web.xml/inputWebXml pointing to your 
source web.xml


That should work. If the jspc plugin cannot resolve URIs for TLDs, you 
will need to add the dependencies pointing to the JAR files containing 
the TLDs to the declaration of the plugin:


  plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjspc-maven-plugin/artifactId
dependencies
  dependency
groupIdorg.apache.struts/groupId
artifactIdstruts-taglib/artifactId
version[1.0,)/version
  /dependency
/dependencies

(group and artifact id are just guessed, you'll need to find out more 
maybe).


Hope that helps,

Stefan

--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: upgrade from maven 1 to maven 2

2008-03-04 Thread Samuel Le Berrigaud
Hi again,

I personally don't know any plugin that would take your maven.xml and insert
it into the maven 2 lifecycle. There is no notion of lifecycle in maven1,
just goals. I guess implementing such plugin could be possible but
definitely not trivial.

Indeed the xslt plugin doesn't give much details about its support. You
would probably need to get some work done on the existing one or write your
own. I don't see that being a huge amount of work. But it would still be
some work…

Regarding the project on which you depend, your best bet is still to have it
as a dependency for your project. Even if it is not maven2, you could
probably get this other project team to deploy it to an internal maven2
repository or do it your self manually when they release it. Some other
plugins will allow you to filter the files as you extract them. And as Simon
said you still have the maven-antrun-plugin:
http://maven.apache.org/plugins/maven-antrun-plugin/

I am sorry I cannot be more helpful here,
maybe someone else has another experience with migrating maven.xml scripts?

SaM

PS: I don't know what happened to the page you reference in your first mail
(http://maven.apache.org/guides/mini/guide-m1-m2.html). Maybe a maven
developer could help here?

On Tue, Mar 4, 2008 at 9:11 PM, David Delbecq [EMAIL PROTECTED] wrote:

 Hello,

 i was hopping there was some way to take my pack of maven.xml preGoal
 rule and just relocate them somewhere where maven2 would use them. You
 suggestion will not work. For our XSLT transform, we need to pass
 parameters to the xslt transform engine (for that we use saxon
 transformer with some specific transformation parameters), i don't see
 such equivalent in what you pointed me to nor is there information about
 version of xslt supported (1,2? we need 2).

 For the dependency plugin we have to investigate, but if that mean we
 need to upgrade included project to maven 2 also, that's a no go. That
 project i have no write access to and we don't plan maven 2 for it, we
 just currently, in our build process, download it along our main
 project, and retrieve some files from it (files we patch on the fly
 using ant:replace / rules btw). We don't even build it, we only need
 it's webapp (jsp/pictures/html/config) files integrated in our app.


 So, if we could keep our current build process rules (maven.xml), and
 just somehow move them in a plugin that would be lot's easier. Some of
 the jelly rules took time to implement, we don't have the time to
 recreate all them. Isn't it possible to take the maven.xml and put it in
 a project.jelly or it's maven2 equivalent?

 I need some direction on how to easily convert from maven1 to maven2,
 related to maven.xml, but all link related to that in maven site seem
 dead (see my first mail)


 En l'instant précis du 04/03/08 10:57, Samuel Le Berrigaud s'exprimait
 en ces termes:
  Hi David,
 
  You don't to implement your whole maven.xml into one maven2 plugin.
 Instead
  you should decompose what you do in your maven.xml and find out the
 existing
  maven 2 plugins that would enable those different tasks.
 
  For example, if I take your two examples below:
  - copying resources of another project:
  I would make that project a dependency of your web application and that
  would be sufficient to add those on your classpath.
  If you need them outside the classpath, I would probably use the maven
  dependency plugin:
 http://maven.apache.org/plugins/maven-dependency-plugin/
  using the unpack goal, it will unpack the jar wherever you need to. I
 would
  attach that to the process-resources phase of you war module.
 
  - xslt transformation
  that should be fairly easy using the XSLT plugin:
  http://mojo.codehaus.org/xslt-maven-plugin/
  attaching it to the same process-resources phase.
 
  Hope this all make sense. I strongly advise researching existing plugins
  before writing your own. All the configuration will go in your pom.xmlso as
  with the maven.xml you can update those rules easily.
 
  SaM
 
  On Tue, Mar 4, 2008 at 8:39 PM, David Delbecq [EMAIL PROTECTED] wrote:
 
 
  Hello,
 
  we have a few project here using maven 1. They become difficult to
  maintain when it come to using new plugins that are not available for
  maven 1. So we thought it might be time to switch to maven 2. Question
  is, considering about all projects are using preGoal/postGoal and
  personalized rules in maven.xml, what should i do with them? I read
  there is no equivalent of maven.xml, i need to use a plugin. Can I sort
  of embbed that plugin with the project that use it, or do i need to
  create a separate plugin project for each of our maven.xml, compile and
  deploy those plugin change everytime before compiling the main project
  (with maven 1, changes to maven.xml were immediate)? Also if someone
 can
  point me to documentation about converting that maven.xml to a plugin,
  it'll be great. Documentation here
  http://maven.apache.org/guides/mini/guide-m1-m2.html , 

Re: Problem with snapshots

2008-03-04 Thread Papapara Tudu

I just wanted to bring this topic up again as I still don't know what the
reason for my problem is. Does anyone have any other ideas? Thanks!

Cheers,
Papapara Tudu
-- 
View this message in context: 
http://www.nabble.com/Problem-with-snapshots-tp15709789s177p15824504.html
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: Problem with snapshots

2008-03-04 Thread Jeff MAURY
Can you submit your output with -X option ?

Jeff MAURY

On Tue, Mar 4, 2008 at 11:35 AM, Papapara Tudu [EMAIL PROTECTED]
wrote:


 I just wanted to bring this topic up again as I still don't know what the
 reason for my problem is. Does anyone have any other ideas? Thanks!

 Cheers,
 Papapara Tudu
 --
 View this message in context:
 http://www.nabble.com/Problem-with-snapshots-tp15709789s177p15824504.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


Re: upgrade from maven 1 to maven 2

2008-03-04 Thread David Delbecq
En l'instant précis du 04/03/08 11:03, [EMAIL PROTECTED] 
s'exprimait en ces termes:

David Delbecq schrieb:
  

Hello,

we have a few project here using maven 1. They become difficult to
maintain when it come to using new plugins that are not available for
maven 1. So we thought it might be time to switch to maven 2. Question
is, considering about all projects are using preGoal/postGoal and
personalized rules in maven.xml, what should i do with them? I read
there is no equivalent of maven.xml, i need to use a plugin. Can I
sort of embbed that plugin with the project that use it, or do i need
to create a separate plugin project for each of our maven.xml, compile
and deploy those plugin change everytime before compiling the main
project (with maven 1, changes to maven.xml were immediate)? Also if
someone can point me to documentation about converting that maven.xml
to a plugin, it'll be great. Documentation here
http://maven.apache.org/guides/mini/guide-m1-m2.html , section what
to do with maven.xml point to error page (the pages seems to have
been removed from maven site :( )

example of such task of maven.xml here is, we have a project X that is
a webapp. In a subdirectory of that webapp we need to copy all
ressources of another project Y, and we need to merge the struts and
web.xml configs (we use a xslt processor for that). Am not sure how
easy that can be transfered to a plugin...



Maven2 has a different approach, with the concept of lifecycle phases;
you need to read the available information on that first. See the
getting started guides here:
  http://maven.apache.org/guides/index.html

Then in many cases the hacks that use preGoal/postGoal can be removed
and replaced with a standard plugin. For example, to copy resources of
another project Y you would:
 * have Y install those resources as an artifact into the repository
 * in project X, use the maven-dependency-plugin to pull those resources
from the repository
  
Y can not be modified :) We just pump files from it, so changing it so 
it uses maven 2 and publish the needed ressources is nogo.

Where you have something that just cannot be done with an existing
plugin, the easiest solution is usually to write an ant task to perform
the necessary work, then bind the maven-ant-plugin to an appropriate
*phase* of the build-cycle so that it runs at the appropriate time. See
the documentation on maven-ant-plugin, executions sections and (again)
the documentation about phases. Of course using ant tasks should be a
last resort..there are a *lot* of standard plugins available.
  
That could be a good solution i'll investigate, most our maven.xml codes 
are already using nearly exclusively ant tasks, thanks for suggestion. 
Does that ant taks also support jelly rules? We have foreach rules, that 
cycle on a 'toMerge' list of file that need to be processed by our xslt 
ant task. I understand it wouldn't be the best way, but we need a 
working way that need as little changes as possible to current rules so 
as to minimize risks of non working rules. As i see in docs, lifecycle 
is not that much different from pre/post goal, i suppose everything done 
in postGoal for war-resources could be attached somewhere at end of 
prepare-package lifecycle.



Hope this helps..

Regards,
Simon


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



--
David Delbecq
Institut Royal Météorologique
Ext:557


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



Re: javax.naming.CommunicationException: Receive timed out problem

2008-03-04 Thread VUB Stefan Seidel


Neo Anderson wrote:
However, I encounter a new question. I use test case to call my ejb application (stateless session bean). Thus I found out when executing command 'mvn clean install,'  it will do test first, resulting failure because  the ejb artifact is still not yet deployed to the server. How can deploy to and launch the server first before the test case executed. 



That depends on the way you want to set up your test environment. There 
have recently been several posts about the JBoss EJB3 microcontainer, if 
that helps you.
For EJB2 and deploying to a running jboss you could move the tests to 
the integration-test phase (See 
http://adminsight.de/2006/04/04/integration-and-unit-test-strategies-with-maven2)


regards,

Stefan
--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: Problem with snapshots

2008-03-04 Thread amit kumar
Well I faced a similar problem but configuring my remote repository for
snapshots worked for me. I had to add the below to my repository

repository
idmy-internal-site/id
urlfile:///192.168.x.x/Repository/url
snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicywarn/checksumPolicy
/snapshots
/repository

I started getting latest of the jars present under the project-SNAPSHOT
folder in the repository.

Hope this works for you as well.
Regards,
Amit Kumar

2008/3/4 Jeff MAURY [EMAIL PROTECTED]:

 Can you submit your output with -X option ?

 Jeff MAURY

 On Tue, Mar 4, 2008 at 11:35 AM, Papapara Tudu 
 [EMAIL PROTECTED]
 wrote:

 
  I just wanted to bring this topic up again as I still don't know what
 the
  reason for my problem is. Does anyone have any other ideas? Thanks!
 
  Cheers,
  Papapara Tudu
  --
  View this message in context:
 
 http://www.nabble.com/Problem-with-snapshots-tp15709789s177p15824504.html
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 La mélancolie c'est communiste
 Tout le monde y a droit de temps en temps
 La mélancolie n'est pas capitaliste
 C'est même gratuit pour les perdants
 La mélancolie c'est pacifiste
 On ne lui rentre jamais dedans
 La mélancolie oh tu sais ça existe
 Elle se prend même avec des gants
 La mélancolie c'est pour les syndicalistes
 Il faut juste sa carte de permanent

 Miossec (2006)

 http://www.jeffmaury.com
 http://riadiscuss.jeffmaury.com



Add .classes to compilation classpath

2008-03-04 Thread georges . ravel

Hi everybody,

I'm new to maven. I have a simple question that I can't find an answer anywhere:
I want to include additional classes in the classpath while compiling my project
but I can't find any
obvious solution for this.

- The classes I want to include can not be installed in a maven repository
- I tried the compiler plugin by adding
   forktrue/fork
compilerArguments
classpathmyDic/classes/classpath
/compilerArguments
but this doesn't seem to work.

Any suggestions?
Thanks

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



Re: upgrade from maven 1 to maven 2

2008-03-04 Thread David Delbecq
I'll try to find out solution, i began with one of our simplest project, 
it's made of several subprojects (using multproject maven 1 goal), but 
they have no custom maven.xml (should be the easiest to convert). But i 
don't get how to get the equivalent of


extend../project.xml/extend

I tried
parentrelativePath../pom.xml/relativePath/parent

But with i try a mvn jar, it complains the groupId of the parent tag is 
not defined. That a problem because i need the groupId and the version 
to be inherited from the parent. How should i do it?

The online doc is of no help. It says

Alternatively, if we want the groupId and / or the version of your 
modules to be the same as their parents, you can remove the groupId 
and / or the version identity of your module in its POM.


project
  parent
groupIdcom.mycompany.app/groupId
artifactIdmy-app/artifactId
version1/version
  /parent
  modelVersion4.0.0/modelVersion
  artifactIdmy-module/artifactId
/project
  
As you see in xml fragment given, they did *not* remove the groupId and 
versionId? Is it possible to inherit groupId and versionId or will i 
have to manually maintain all those ids in each release?


Sorry to bother you with basic question :)


En l'instant précis du 04/03/08 11:32, Samuel Le Berrigaud s'exprimait 
en ces termes:

Hi again,

I personally don't know any plugin that would take your maven.xml and insert
it into the maven 2 lifecycle. There is no notion of lifecycle in maven1,
just goals. I guess implementing such plugin could be possible but
definitely not trivial.

Indeed the xslt plugin doesn't give much details about its support. You
would probably need to get some work done on the existing one or write your
own. I don't see that being a huge amount of work. But it would still be
some work…

Regarding the project on which you depend, your best bet is still to have it
as a dependency for your project. Even if it is not maven2, you could
probably get this other project team to deploy it to an internal maven2
repository or do it your self manually when they release it. Some other
plugins will allow you to filter the files as you extract them. And as Simon
said you still have the maven-antrun-plugin:
http://maven.apache.org/plugins/maven-antrun-plugin/

I am sorry I cannot be more helpful here,
maybe someone else has another experience with migrating maven.xml scripts?

SaM

PS: I don't know what happened to the page you reference in your first mail
(http://maven.apache.org/guides/mini/guide-m1-m2.html). Maybe a maven
developer could help here?

On Tue, Mar 4, 2008 at 9:11 PM, David Delbecq [EMAIL PROTECTED] wrote:

  

Hello,

i was hopping there was some way to take my pack of maven.xml preGoal
rule and just relocate them somewhere where maven2 would use them. You
suggestion will not work. For our XSLT transform, we need to pass
parameters to the xslt transform engine (for that we use saxon
transformer with some specific transformation parameters), i don't see
such equivalent in what you pointed me to nor is there information about
version of xslt supported (1,2? we need 2).

For the dependency plugin we have to investigate, but if that mean we
need to upgrade included project to maven 2 also, that's a no go. That
project i have no write access to and we don't plan maven 2 for it, we
just currently, in our build process, download it along our main
project, and retrieve some files from it (files we patch on the fly
using ant:replace / rules btw). We don't even build it, we only need
it's webapp (jsp/pictures/html/config) files integrated in our app.


So, if we could keep our current build process rules (maven.xml), and
just somehow move them in a plugin that would be lot's easier. Some of
the jelly rules took time to implement, we don't have the time to
recreate all them. Isn't it possible to take the maven.xml and put it in
a project.jelly or it's maven2 equivalent?

I need some direction on how to easily convert from maven1 to maven2,
related to maven.xml, but all link related to that in maven site seem
dead (see my first mail)


En l'instant précis du 04/03/08 10:57, Samuel Le Berrigaud s'exprimait
en ces termes:


Hi David,

You don't to implement your whole maven.xml into one maven2 plugin.
  

Instead


you should decompose what you do in your maven.xml and find out the
  

existing


maven 2 plugins that would enable those different tasks.

For example, if I take your two examples below:
- copying resources of another project:
I would make that project a dependency of your web application and that
would be sufficient to add those on your classpath.
If you need them outside the classpath, I would probably use the maven
dependency plugin:
  

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


using the unpack goal, it will unpack the jar wherever you need to. I
  

would


attach that to the process-resources phase of you war module.

- xslt transformation
that should be fairly easy 

Re: Add .classes to compilation classpath

2008-03-04 Thread amit kumar
I had concept/misconception that target/classes gets added to the classpath
by maven as default?

Are you dealing with generated sources?

Regards,
Amit

On Tue, Mar 4, 2008 at 4:34 PM, [EMAIL PROTECTED] wrote:


 Hi everybody,

 I'm new to maven. I have a simple question that I can't find an answer
 anywhere:
 I want to include additional classes in the classpath while compiling my
 project
 but I can't find any
 obvious solution for this.

 - The classes I want to include can not be installed in a maven repository
 - I tried the compiler plugin by adding
   forktrue/fork
compilerArguments
classpathmyDic/classes/classpath
/compilerArguments
 but this doesn't seem to work.

 Any suggestions?
 Thanks

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




Re: Add .classes to compilation classpath

2008-03-04 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] schrieb:
 Hi everybody,

 I'm new to maven. I have a simple question that I can't find an answer 
 anywhere:
 I want to include additional classes in the classpath while compiling my 
 project
 but I can't find any
 obvious solution for this.

 - The classes I want to include can not be installed in a maven repository
 - I tried the compiler plugin by adding
forktrue/fork
 compilerArguments
 classpathmyDic/classes/classpath
 /compilerArguments
 but this doesn't seem to work.
   
Normally, you put classes into a jarfile, install it in a repository
with a suitable groupId and artifactId, then declare that jar as a
dependency in your pom. Why can't the classes be put into a maven
repository in your case?

Regards, Simon


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



Compiling only submodules in multi module projects

2008-03-04 Thread carioca

Hi,

I have a multi module project in the form:

pom.xml
module1
pom.xml
module2
pom.xml

Module2 depends on module1.
Both modules have the master project as parent project.
I manage to compile the master project by using mvn package from the
master project's  base directory.
However, when I try to compile only module2 using mvn package from the
module2's base directory I get the message that module1 is missing.
I would expect that maven compile module1 (because it's a dependency of
module2) and then compile module2.

In a multi module project, is it possible to compile modules that have
dependencies in other modules without compiling the entire master project?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Compiling-only-submodules-in-multi-module-projects-tp15825207s177p15825207.html
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: Add .classes to compilation classpath

2008-03-04 Thread georges . ravel
Oh sorry,

I meant to include some .class files from some other projects
which are not maven projects and they can not be easily installed
as maven packages. I think it would be possible to use ant plugin but it should
be something much simpler I guess?

Thanks


Quoting amit kumar [EMAIL PROTECTED]:

 I had concept/misconception that target/classes gets added to the classpath
 by maven as default?

 Are you dealing with generated sources?

 Regards,
 Amit

 On Tue, Mar 4, 2008 at 4:34 PM, [EMAIL PROTECTED] wrote:

 
  Hi everybody,
 
  I'm new to maven. I have a simple question that I can't find an answer
  anywhere:
  I want to include additional classes in the classpath while compiling my
  project
  but I can't find any
  obvious solution for this.
 
  - The classes I want to include can not be installed in a maven repository
  - I tried the compiler plugin by adding
forktrue/fork
 compilerArguments
 classpathmyDic/classes/classpath
 /compilerArguments
  but this doesn't seem to work.
 
  Any suggestions?
  Thanks
 
  -
  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: Add .classes to compilation classpath

2008-03-04 Thread amit kumar
Okay. Then you can jar up the classes as told by Simon and
install/deploy(look for command mvn install:install-file... or mvn
deploy:deploy-file...) them to your repository. There are few jar files
which are not outcome of maven projects but yet we are using at out place.
This seems to be the simplest of the options.

On Tue, Mar 4, 2008 at 4:58 PM, [EMAIL PROTECTED] wrote:

 Oh sorry,

 I meant to include some .class files from some other projects
 which are not maven projects and they can not be easily installed
 as maven packages. I think it would be possible to use ant plugin but it
 should
 be something much simpler I guess?

 Thanks


 Quoting amit kumar [EMAIL PROTECTED]:

  I had concept/misconception that target/classes gets added to the
 classpath
  by maven as default?
 
  Are you dealing with generated sources?
 
  Regards,
  Amit
 
  On Tue, Mar 4, 2008 at 4:34 PM, [EMAIL PROTECTED] wrote:
 
  
   Hi everybody,
  
   I'm new to maven. I have a simple question that I can't find an answer
   anywhere:
   I want to include additional classes in the classpath while compiling
 my
   project
   but I can't find any
   obvious solution for this.
  
   - The classes I want to include can not be installed in a maven
 repository
   - I tried the compiler plugin by adding
 forktrue/fork
  compilerArguments
  classpathmyDic/classes/classpath
  /compilerArguments
   but this doesn't seem to work.
  
   Any suggestions?
   Thanks
  
   -
   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]




[ANN] Maven Shade Plugin 1.0 Released

2008-03-04 Thread Brett Porter
The Maven team is pleased to announce the release of the Maven Shade  
Plugin, version 1.0.


This plugin provides the capability to package the artifact in a uber- 
jar, including its dependencies and

 to shade - ie rename - the packages of some of the dependencies.

For instructions on how to use the plugin, refer to it's web site at:
http://maven.apache.org/plugins/maven-shade-plugin/


Release Notes - Maven 2.x Shade Plugin - Version 1.0


** Bug
* [MSHADE-15] - directories in shaded JARs are not valid -  
external jar and unzip tools generate files instead

* [MSHADE-16] - Manifest should never be copied from dependent JARs
* [MSHADE-17] - files from main artifact JAR should override  
those from dependant JARs if there is no transformer

* [MSHADE-19] - static fields are not relocated

** Improvement
* [MSHADE-14] - Remove dependency on asm-all


** Task
* [MSHADE-18] - Configure META-INF/MANIFEST.MF

Enjoy,

-The Maven team

--
Brett Porter
[EMAIL PROTECTED]
http://blogs.exist.com/bporter/


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



Maven doesnt download archetypes from a custom repository

2008-03-04 Thread atouret . nospam
Hi,
I deployed a custom archetype in the repository of my company. Unfortunately, I
cant figure out how to retreive automatically that. I saw on JIRA I should use
the remoteRepositories property but I have the same behaviour. Maven doesnt try
to download the archetype from the 'local' repository but from ibiblio :-(

You could find after the log

$ /cygdrive/c/java/legacy/apache-maven-2.0.8/bin/mvn.bat archetype:create -Darc
hetypeGroupId=fr.common.maven -DarchetypeArtifactId=maven-custom-archetype -
DarchetypeVersion=1.4 -DgroupId=test -DartifactId=test -DremoteRepositories=htt
p://127.0.0.1/repos -DpomRemoteRepositories=http://127.0.0.1/repos
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 
[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO] 
Downloading: http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag
on-http-shared-1.0-beta-2.pom
Downloading: http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag
on-http-shared-1.0-beta-2.pom
[INFO] Setting property: classpath.resource.loader.class = 'org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: test
[INFO] We are using command line specified remote repositories: http://127.0.0.1
/repos
Downloading: http://repo1.maven.org/maven2/fr/common/maven/maven-custom-arche
type/1.4/maven-custom-archetype-1.4.jar
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] Failed to resolve artifact.

GroupId: fr.common.maven
ArtifactId: maven-custom-archetype
Version: 1.4

Reason: Unable to locate resource in repository

Try downloading the file manually from the project website.

Then, install it using the command:
...


from the specified remote repositories:
  id0 (http://127.0.0.1/repos)


Thanks in advance for your help
Regards,
Alexandre

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



detected reference cycle, but there is no cycle conflict

2008-03-04 Thread simim

maven build aborted with the following message:
Diagnosis: The projects in the reactor contain a cyclic reference ...
and yes, there is a cycle in the specified dependencies, like:

A - B - A

but A needs B only for the compilation (because a class from A
extends a class from B) and B needs A only for the runtime
(because B calls an object of the extended class per reflection).
i specified the dependency in B as scoperuntime/scope
and in A, B is referenced per default with the option
scopecompile/scope.

so, there is no cycle conflict.

any ideas?
thanks, simim
-- 
View this message in context: 
http://www.nabble.com/detected-reference-cycle%2C-but-there-is-no-cycle-conflict-tp15825973s177p15825973.html
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: detected reference cycle, but there is no cycle conflict

2008-03-04 Thread Jan Torben Heuer
simim wrote:

 but A needs B only for the compilation (because a class from A
 extends a class from B) and B needs A only for the runtime
 (because B calls an object of the extended class per reflection).
 i specified the dependency in B as scoperuntime/scope
 and in A, B is referenced per default with the option
 scopecompile/scope.

Try to completely eliminate the cyclic reference by using an interface in
A, so that you don't need to specifiy a dependency from B to A


Jan


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



Re: Maven doesnt download archetypes from a custom repository

2008-03-04 Thread Alexandre Touret

Hello
I tried to create a project from a SNAPSHOT release of my custom archetype.
It works fine ...
So, in conclusion : maven can download automatically archetypes from a
snapshot custom repository but not for a release repository 
If you can see how to solve this problem or any workaround 

Thanks 


Alexandre Touret wrote:
 
 Hi,
 I deployed a custom archetype in the repository of my company.
 Unfortunately, I
 cant figure out how to retreive automatically that. I saw on JIRA I should
 use
 the remoteRepositories property but I have the same behaviour. Maven
 doesnt try
 to download the archetype from the 'local' repository but from ibiblio :-(
 
 You could find after the log
 
 $ /cygdrive/c/java/legacy/apache-maven-2.0.8/bin/mvn.bat archetype:create
 -Darc
 hetypeGroupId=fr.common.maven -DarchetypeArtifactId=maven-custom-archetype
 -
 DarchetypeVersion=1.4 -DgroupId=test -DartifactId=test
 -DremoteRepositories=htt
 p://127.0.0.1/repos -DpomRemoteRepositories=http://127.0.0.1/repos
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [INFO]
 
 [INFO] Building Maven Default Project
 [INFO]task-segment: [archetype:create] (aggregator-style)
 [INFO]
 
 Downloading:
 http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag
 on-http-shared-1.0-beta-2.pom
 Downloading:
 http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag
 on-http-shared-1.0-beta-2.pom
 [INFO] Setting property: classpath.resource.loader.class =
 'org.codehaus.plexus
 .velocity.ContextClassLoaderResourceLoader'.
 [INFO] Setting property: velocimacro.messages.on = 'false'.
 [INFO] Setting property: resource.loader = 'classpath'.
 [INFO] Setting property: resource.manager.logwhenfound = 'false'.
 [INFO] [archetype:create]
 [INFO] Defaulting package to group ID: test
 [INFO] We are using command line specified remote repositories:
 http://127.0.0.1
 /repos
 Downloading:
 http://repo1.maven.org/maven2/fr/common/maven/maven-custom-arche
 type/1.4/maven-custom-archetype-1.4.jar
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.
 
 GroupId: fr.common.maven
 ArtifactId: maven-custom-archetype
 Version: 1.4
 
 Reason: Unable to locate resource in repository
 
 Try downloading the file manually from the project website.
 
 Then, install it using the command:
 ...
 
 
 from the specified remote repositories:
   id0 (http://127.0.0.1/repos)
 
 
 Thanks in advance for your help
 Regards,
 Alexandre
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-doesnt-download-archetypes-from-a-custom-repository-tp15825974s177p15826272.html
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: detected reference cycle, but there is no cycle conflict

2008-03-04 Thread simim


Jan Torben Heuer-3 wrote:
 
 Try to completely eliminate the cyclic reference by using an interface
 in
 A, so that you don't need to specifiy a dependency from B to A
 
 
 Jan
 

thanks, but i think thats not a smooth solution in my case. at compilation
time there
is definitively not cycle, because B doesn`t need A in any way, at
compilation.
but maven abort the compilation with the message above.

so, i see no problem at the design. i cannot understand why maven detects
there
an psoudo-cycle. maybe the relevant scope-option are not considered.

maybe there is a possibility to set a cycle-order in maven? with that i
could set
reference A - B before reference B - A. maybe i can realize an order
with a common parent pom-file for A and B? perhaps that the wrong way?

other ideas? thanks!

-- 
View this message in context: 
http://www.nabble.com/detected-reference-cycle%2C-but-there-is-no-cycle-conflict-tp15825973s177p15826737.html
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: detected reference cycle, but there is no cycle conflict

2008-03-04 Thread [EMAIL PROTECTED]
simim schrieb:
 Jan Torben Heuer-3 wrote:
   
 Try to completely eliminate the cyclic reference by using an interface
 in
 A, so that you don't need to specifiy a dependency from B to A


 Jan

 

 thanks, but i think thats not a smooth solution in my case. at compilation
 time there
 is definitively not cycle, because B doesn`t need A in any way, at
 compilation.
 but maven abort the compilation with the message above.

 so, i see no problem at the design. i cannot understand why maven detects
 there
 an psoudo-cycle. maybe the relevant scope-option are not considered.

 maybe there is a possibility to set a cycle-order in maven? with that i
 could set
 reference A - B before reference B - A. maybe i can realize an order
 with a common parent pom-file for A and B? perhaps that the wrong way?

 other ideas? thanks!
   

No, there is no solution to this with maven except the one that Jan gave.

Maven downloads all dependencies, even the runtime-scoped ones, during
building. So B needs A before it can build, but A needs B before it can
build.

Note that there are maven plugins that run apps, eg the exec, jetty or
cargo plugins. These will need the runtime-scoped jars available. And
maven doesn't look ahead to determine whether the current pom configures
plugins that will need runtime-scoped dependencies. It can't anyway, as
something like the maven-antrun-plugin might need the runtime deps
depending on what is inside some external file it cannot parse.

Regards, Simon


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



Re: detected reference cycle, but there is no cycle conflict

2008-03-04 Thread Stephen Connolly
AFAIK The scope does not matter as far as maven is concerned.

This is a pom.xml cycle

i.e. Maven does not know what order to examine the pom.xml files.

The pom for A depends on the pom for B
The pom for B depends on the pom for A

In order to build the complete list of dependencies of A, it needs to know
what dependencies of B will be added transitively

If you force the issue, then the maven-release-plugin will never be able
to build a release on it's own.

-Stephen


On Tue, Mar 4, 2008 at 1:04 PM, simim [EMAIL PROTECTED] wrote:



 Jan Torben Heuer-3 wrote:
 
  Try to completely eliminate the cyclic reference by using an interface
  in
  A, so that you don't need to specifiy a dependency from B to A
 
 
  Jan
 

 thanks, but i think thats not a smooth solution in my case. at compilation
 time there
 is definitively not cycle, because B doesn`t need A in any way, at
 compilation.
 but maven abort the compilation with the message above.

 so, i see no problem at the design. i cannot understand why maven detects
 there
 an psoudo-cycle. maybe the relevant scope-option are not considered.

 maybe there is a possibility to set a cycle-order in maven? with that i
 could set
 reference A - B before reference B - A. maybe i can realize an order
 with a common parent pom-file for A and B? perhaps that the wrong way?

 other ideas? thanks!

 --
 View this message in context:
 http://www.nabble.com/detected-reference-cycle%2C-but-there-is-no-cycle-conflict-tp15825973s177p15826737.html
 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 doesnt download archetypes from a custom repository

2008-03-04 Thread Alexandre Touret
Hello
I tried to create a project from a SNAPSHOT release of my custom archetype.
It works fine ...
So, in conclusion : maven can download automatically archetypes from a
snapshot custom repository but not for a release repository
If you can see how to solve this problem or any workaround 

Thanks

2008/3/4, [EMAIL PROTECTED] [EMAIL PROTECTED]:

 Hi,
 I deployed a custom archetype in the repository of my company.
 Unfortunately, I
 cant figure out how to retreive automatically that. I saw on JIRA I should
 use
 the remoteRepositories property but I have the same behaviour. Maven
 doesnt try
 to download the archetype from the 'local' repository but from ibiblio :-(

 You could find after the log

 $ /cygdrive/c/java/legacy/apache-maven-2.0.8/bin/mvn.bat archetype:create
 -Darc
 hetypeGroupId=fr.common.maven -DarchetypeArtifactId=maven-custom-archetype
 -
 DarchetypeVersion=1.4 -DgroupId=test -DartifactId=test
 -DremoteRepositories=htt
 p://127.0.0.1/repos -DpomRemoteRepositories=http://127.0.0.1/repos
 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 [INFO]
 
 [INFO] Building Maven Default Project
 [INFO]task-segment: [archetype:create] (aggregator-style)
 [INFO]
 
 Downloading:
 http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag
 on-http-shared-1.0-beta-2.pom
 Downloading:
 http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag
 on-http-shared-1.0-beta-2.pom
 [INFO] Setting property: classpath.resource.loader.class = '
 org.codehaus.plexus
 .velocity.ContextClassLoaderResourceLoader'.
 [INFO] Setting property: velocimacro.messages.on = 'false'.
 [INFO] Setting property: resource.loader = 'classpath'.
 [INFO] Setting property: resource.manager.logwhenfound = 'false'.
 [INFO] [archetype:create]
 [INFO] Defaulting package to group ID: test
 [INFO] We are using command line specified remote repositories:
 http://127.0.0.1
 /repos
 Downloading:
 http://repo1.maven.org/maven2/fr/common/maven/maven-custom-arche
 type/1.4/maven-custom-archetype-1.4.jar
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.

 GroupId: fr.common.maven
 ArtifactId: maven-custom-archetype
 Version: 1.4

 Reason: Unable to locate resource in repository

 Try downloading the file manually from the project website.

 Then, install it using the command:
 ...


 from the specified remote repositories:
   id0 (http://127.0.0.1/repos)


 Thanks in advance for your help
 Regards,
 Alexandre

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





the archetype plugin doesnt download any archetype from a custom repository

2008-03-04 Thread Alexandre Touret
Hi,
I deployed a custom archetype in the repository of my company.
Unfortunately, I cant figure out how to retreive automatically that. I saw
on JIRA I should use the remoteRepositories property but I have the same
behaviour. Maven doesnt try to download the archetype from the 'local'
repository but from ibiblio :-(

You could find after the log

$ /cygdrive/c/java/legacy/apache-maven-2.0.8/bin/mvn.bat archetype:create
-Darc
hetypeGroupId=fr.common.maven -DarchetypeArtifactId=maven-custom-archetype -
DarchetypeVersion=1.4 -DgroupId=test -DartifactId=test
-DremoteRepositories=htt
p://127.0.0.1/repos -DpomRemoteRepositories=http://127.0.0.1/repos
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO]

[INFO] Building Maven Default Project
[INFO]task-segment: [archetype:create] (aggregator-style)
[INFO]

Downloading:
http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag
on-http-shared-1.0-beta-2.pom
Downloading:
http://repo1.maven.org/maven2/test/wagon-http-shared/1.0-beta-2/wag
on-http-shared-1.0-beta-2.pom
[INFO] Setting property: classpath.resource.loader.class = '
org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on = 'false'.
[INFO] Setting property: resource.loader = 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound = 'false'.
[INFO] [archetype:create]
[INFO] Defaulting package to group ID: test
[INFO] We are using command line specified remote repositories:
http://127.0.0.1
/repos
Downloading:
http://repo1.maven.org/maven2/fr/common/maven/maven-custom-arche
type/1.4/maven-custom-archetype-1.4.jar
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: fr.common.maven
ArtifactId: maven-custom-archetype
Version: 1.4

Reason: Unable to locate resource in repository

Try downloading the file manually from the project website.

Then, install it using the command:
...


from the specified remote repositories:
  id0 (http://127.0.0.1/repos)


Thanks in advance for your help
Regards,
Alexandre


Re: jspc precompile

2008-03-04 Thread Dooing
YES! Now it works! Thanks!

And this great help goal also helped me in getting the jetty jspc goal tu 
run. THANKS!

Last but not least - is there a way to run the jspc goal standalone? When 
working on a certain jsp, without changing any backend java classes, creating 
the entire war seems to be a bit of a pain. Is there a way to just precompile 
the jsps to know if they'll be working / to redeploy them on tomcat server, 
without restarting the server?

Thanks in advance,

Stefanie 

-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free

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



RE: compress obfuscate js files

2008-03-04 Thread John Coleman
Hi, 

We use the YUI compression/obfusation now, and it seems to work very
nicely.

You should certainly separate out your js, css and JSP, which should be
easy. If you cannot, then you could get the compression plugin and tweak
it to do JSP somehow. Seperation is the way to go though IMO.

Regards,
John
 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: 01 March 2008 08:57
 To: users@maven.apache.org
 Subject: compress  obfuscate js files
 
 Hi,
 
 I am still working on moving a big legacy project from Maven 
 1 to Maven2.
 Next step is compression of javascript files.
 
 What's the best plugin for this task?
 http://mojo.codehaus.org/javascript-maven-tools/ 
 
 ?
 
 I just found:
 
 http://alchim.sourceforge.net/hg/yuicompressor-maven-plugin/
 
 - which is based on yuicompressor, that I was even 
 recommended to use by the javascript community. 
 
 Not only does it compress javascript file, but also css file 
 and it also seems to abfuscate them.
 The only problem I see with my legacy project - css and 
 javascript are not 100% separated into their own files - 
 often javascript and or css is directly used in jsp pages. 
 So in order to properly obfuscate, a plugin would have to 
 parse not only the css and javascript files, but also all jsp 
 pages, that do direct javascript function calls and so on.
 
 Any idea if there is a compressor / obfuscator plugin that 
 does all that?
 
 I would be pleased if you could recommend me something, that 
 would be great - I underestimated the work to be done 
 migrating to maven 2 and am kinda lost! :-(
 
 Thanks in advance,
 
 Stefanie
 
 --
 GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
 Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

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

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

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


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



Re: jspc precompile

2008-03-04 Thread VUB Stefan Seidel


[EMAIL PROTECTED] wrote:

YES! Now it works! Thanks!


Glad to hear it :)


Last but not least - is there a way to run the jspc goal standalone? When 
working on a certain jsp, without changing any backend java classes, creating 
the entire war seems to be a bit of a pain. Is there a way to just precompile 
the jsps to know if they'll be working / to redeploy them on tomcat server, 
without restarting the server?

Yes, with mvn jspc:compile.

Stefan


--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



RE: Mevenide vs. M2Eclipse, Q for Eclipse/IAM

2008-03-04 Thread John Coleman
I can't see a way in Q4E to activate a profile in my settings.xml. Did
you find out how to do that?

My experience so far is that NetBeans mavenide seems to be streets ahead
of the various eclipse efforts I have tried. Since devzuz support Q4E I
am hoping it is better than what I have seen.

Regards,
John
 

 -Original Message-
 From: Thomas Lutz [mailto:[EMAIL PROTECTED] 
 Sent: 25 February 2008 11:24
 To: Maven Users List
 Subject: Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM
 
 Hi !
 
 Though this doesn't answer your question regarding a comparison.. :-):
 
 I use Q4E and am really happy with it. much better than 
 m2eclipse and mevenide, pom synchronization and classpath 
 integration works well. No webtools support in the version I 
 use, but that could have changed in the meantime...
 
 Tom
 
 VUB Stefan Seidel schrieb:
  Hi Chris,
 
  we started with m2eclipse, too, and had troubles too. After 
 spending 
  about a week in total fixing the worst things in it, it is quite 
  usable. Unfortunately, almost none of my suggestions made 
 it into the 
  mainstream code, and I've given up trying. I thought about 
 a fork but 
  I don't have the time. Anyway, m2eclipse is based on some 
 good ideas, 
  and when I last looked at Q4E, it wasn't usable due to its 
 early dev 
  stage.
  There is a eclipse plugin for maven that generated the 
 .project files 
  and others, this one allows you to develop maven apps in 
 Eclipse, but 
  it is no real Eclipse integration.
 
  HTH,
 
  Stefan
 
  Chris wrote:
  I googled around to try to find a comparison between 
 Mevenide and the 
  alternatives, and didn't come up with much.
 
  Can someone tell me the differences?
 
  (I've spend some time with m2eclipse, and I'm *not* impressed).
 
 
  
 -
  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]
 
 

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

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

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

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


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



Re: RE: compress obfuscate js files

2008-03-04 Thread Dooing
Seperation is the way to go though IMO.

You are 100% correct. Problem is, we just stared working on this project.
Before, it was managed by an external company. Step by step, we will have to 
improve the legacy code. However, as it is now, css and javascript or totally 
mixed with jsp code - and it will take month if not years to change that (as 
it's a lot + there are other important tasks too)

However, I am wondering - speaking of css - even IF the css and javscript code 
was 100% seperated - there will still be class=myCSSClass and
onclick=MyJavascriptFunction calls in the jsp code.

So if the obfuscator renames these css classes / javascript functions - how 
would that work?!

Thanks in advance,

Stefanie

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

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



Re: jspc precompile

2008-03-04 Thread Dooing
Is there a way to just
 precompile the jsps to know if they'll be working / to redeploy them on tomcat
 server, without restarting the server?
 Yes, with mvn jspc:compile.
:-(

This says:

Embedded error: The -uriroot option must specify a pre-existing directory

I've read somewhere I had to change the jsp spec and servlet spec jars from 
runtime to compile time. Could that be it?

Thanks,

Stefanie
-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.web.de/de/entertainment/games/free

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



Re: jspc precompile

2008-03-04 Thread VUB Stefan Seidel


[EMAIL PROTECTED] wrote:

Is there a way to just
precompile the jsps to know if they'll be working / to redeploy them on tomcat
server, without restarting the server?
Yes, with mvn jspc:compile.

:-(

This says:

Embedded error: The -uriroot option must specify a pre-existing directory

I've read somewhere I had to change the jsp spec and servlet spec jars from 
runtime to compile time. Could that be it?


Sounds a bit like the settings for the plugin are not read from the 
pom.xml when you run the goal specifically from the CLI.
You can play around with the scopes, maybe there is a solution, but I 
think this is more a bug in maven, something like 
http://jira.codehaus.org/browse/MNG-472


Stefan


--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM

2008-03-04 Thread Thomas Lutz
I don't use profiles very much, I've one box for office work, another 
for private stuff :-)...


found a post in the q4e users list:
http://groups.google.com/group/q4e-users/browse_thread/thread/82ff5a7afd79ebcf

refering to an issue in q4e:
http://code.google.com/p/q4e/issues/detail?id=5

sorry,
tom

John Coleman schrieb:

I can't see a way in Q4E to activate a profile in my settings.xml. Did
you find out how to do that?

My experience so far is that NetBeans mavenide seems to be streets ahead
of the various eclipse efforts I have tried. Since devzuz support Q4E I
am hoping it is better than what I have seen.

Regards,
John
 

  

-Original Message-
From: Thomas Lutz [mailto:[EMAIL PROTECTED] 
Sent: 25 February 2008 11:24

To: Maven Users List
Subject: Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM

Hi !

Though this doesn't answer your question regarding a comparison.. :-):

I use Q4E and am really happy with it. much better than 
m2eclipse and mevenide, pom synchronization and classpath 
integration works well. No webtools support in the version I 
use, but that could have changed in the meantime...


Tom

VUB Stefan Seidel schrieb:


Hi Chris,

we started with m2eclipse, too, and had troubles too. After 
  
spending 

about a week in total fixing the worst things in it, it is quite 
usable. Unfortunately, almost none of my suggestions made 
  
it into the 

mainstream code, and I've given up trying. I thought about 
  
a fork but 

I don't have the time. Anyway, m2eclipse is based on some 
  
good ideas, 

and when I last looked at Q4E, it wasn't usable due to its 
  
early dev 


stage.
There is a eclipse plugin for maven that generated the 
  
.project files 

and others, this one allows you to develop maven apps in 
  
Eclipse, but 


it is no real Eclipse integration.

HTH,

Stefan

Chris wrote:
  
I googled around to try to find a comparison between 

Mevenide and the 


alternatives, and didn't come up with much.

Can someone tell me the differences?

(I've spend some time with m2eclipse, and I'm *not* impressed).





-


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]





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

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


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

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


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

  



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



Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM

2008-03-04 Thread Henri Gomez
I switched from m2eclipse to Q4E (still using the dev release, ie
http://www.jroller.com/carlossg/entry/exist_global_acquires_devzuz).

Even if Q4E is a new project and so less mature, it works great for
me, ie I could use an eclipse project having both WTP and Q4E nature.

Q4E is supported by Devzuz.org and as they are involved (indirectly
via Exist) in Buckminster, it will be in a not too long future the
'official eclipse plugin' for maven support.

I recommands Q4E (http://code.google.com/p/q4e/)

Regards.

2008/3/4, Thomas Lutz [EMAIL PROTECTED]:
 I don't use profiles very much, I've one box for office work, another
  for private stuff :-)...

  found a post in the q4e users list:
  
 http://groups.google.com/group/q4e-users/browse_thread/thread/82ff5a7afd79ebcf

  refering to an issue in q4e:
  http://code.google.com/p/q4e/issues/detail?id=5

  sorry,
  tom

  John Coleman schrieb:

  I can't see a way in Q4E to activate a profile in my settings.xml. Did
   you find out how to do that?
  
   My experience so far is that NetBeans mavenide seems to be streets ahead
   of the various eclipse efforts I have tried. Since devzuz support Q4E I
   am hoping it is better than what I have seen.
  
   Regards,
   John
  
  
  
   -Original Message-
   From: Thomas Lutz [mailto:[EMAIL PROTECTED]
   Sent: 25 February 2008 11:24
   To: Maven Users List
   Subject: Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM
  
   Hi !
  
   Though this doesn't answer your question regarding a comparison.. :-):
  
   I use Q4E and am really happy with it. much better than
   m2eclipse and mevenide, pom synchronization and classpath
   integration works well. No webtools support in the version I
   use, but that could have changed in the meantime...
  
   Tom
  
   VUB Stefan Seidel schrieb:
  
   Hi Chris,
  
   we started with m2eclipse, too, and had troubles too. After
  
   spending
  
   about a week in total fixing the worst things in it, it is quite
   usable. Unfortunately, almost none of my suggestions made
  
   it into the
  
   mainstream code, and I've given up trying. I thought about
  
   a fork but
  
   I don't have the time. Anyway, m2eclipse is based on some
  
   good ideas,
  
   and when I last looked at Q4E, it wasn't usable due to its
  
   early dev
  
   stage.
   There is a eclipse plugin for maven that generated the
  
   .project files
  
   and others, this one allows you to develop maven apps in
  
   Eclipse, but
  
   it is no real Eclipse integration.
  
   HTH,
  
   Stefan
  
   Chris wrote:
  
   I googled around to try to find a comparison between
  
   Mevenide and the
  
   alternatives, and didn't come up with much.
  
   Can someone tell me the differences?
  
   (I've spend some time with m2eclipse, and I'm *not* impressed).
  
  
  
  
   -
  
   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]
  
  
  
  
   Eurobase International Limited and its subsidiaries (Eurobase) are unable 
 to exercise control over the content of information in E-Mails. Any views and 
 opinions expressed may be personal to the sender and are not necessarily 
 those of Eurobase. Eurobase will not enter into any contractual obligations 
 in respect of any part of its business in any E-mail.
  
   Privileged / confidential information may be contained in this message and 
 /or any attachments. This E-mail is intended for the use of the addressee(s) 
 only and may contain confidential information. If you are not the / an 
 intended recipient, you are hereby notified that any use or dissemination of 
 this communication is strictly prohibited.  If you receive this transmission 
 in error, please notify us immediately, and then delete this E-mail.
  
   Neither the sender nor Eurobase accepts any liability whatsoever for any 
 defects of any kind either in or arising from this E-mail transmission. 
 E-Mail transmission cannot be guaranteed to be secure or error-free, as 
 messages can be intercepted, lost, corrupted, destroyed, contain viruses, or 
 arrive late or incomplete. Eurobase does not accept any responsibility for 
 viruses and it is your responsibility to scan any attachments.
  
   Eurobase Systems Limited is the main trading company in the Eurobase 
 International Group; registered in England and Wales as company number 
 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
 CM2 0RE, UK.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  

RE: RE: compress obfuscate js files

2008-03-04 Thread John Coleman
Hi,

We only use JSPs to arrange content pieces (like creating a page by
including header JSP and footer JSP), so our js/css is an entirely
separate concern. The js handles things like form input fields all
itself using DHTML/DOM.

I can't believe that seperating the jss is such a big operation (unless
your js is using embedded scriptlets or something yucky like that), you
should be able to scrape it out and bung it into a big function library
script for starters. Switch off the js obfuscation so function names
stay the same, or else build a plugin that can look for JSP embedded js
function names and rename them using the obfuscation mappings. There is
much you can do fairly easily using mojos.

Regards,
John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: 04 March 2008 13:43
 To: Maven Users List
 Subject: Re: RE: compress  obfuscate js files
 
 Seperation is the way to go though IMO.
 
 You are 100% correct. Problem is, we just stared working on 
 this project.
 Before, it was managed by an external company. Step by step, 
 we will have to improve the legacy code. However, as it is 
 now, css and javascript or totally mixed with jsp code - and 
 it will take month if not years to change that (as it's a lot 
 + there are other important tasks too)
 
 However, I am wondering - speaking of css - even IF the css 
 and javscript code was 100% seperated - there will still be 
 class=myCSSClass and onclick=MyJavascriptFunction calls 
 in the jsp code.
 
 So if the obfuscator renames these css classes / javascript 
 functions - how would that work?!
 
 Thanks in advance,
 
 Stefanie
 
 --
 GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
 Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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

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

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

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


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



Re: Problem with snapshots

2008-03-04 Thread Papapara Tudu


Jeff MAURY wrote:
 
 Can you submit your output with -X option ?
 
 Jeff MAURY
 
 

Maven produced 200 kB of logs, so I'll skip the rest, to me the most
relevant seem to be these few lines:

[INFO] snapshot com.company.project:project:2.2-SNAPSHOT: checking for
updates from myRepository 
[DEBUG] Skipping disabled repository central
[DEBUG] project: resolved to version 2.2-20080304.145740-2 from repository
myRepository 
[DEBUG]   com.company.project:project:jar:2.2-SNAPSHOT:compile (selected for
compile)

So Maven does see and download the new snapshot, but then it still uses the
old one for compilation. Shouldn't the new snapshot
(project-2.2-20080304.145740-2.jar) instantly replace the old
project-2.2-SNAPSHOT.jar file when it's downloaded from Archiva?

Papapara Tudu
-- 
View this message in context: 
http://www.nabble.com/Problem-with-snapshots-tp15709789s177p15829461.html
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: Problem with snapshots

2008-03-04 Thread Papapara Tudu


amit kumar-18 wrote:
 
 Well I faced a similar problem but configuring my remote repository for
 snapshots worked for me. I had to add the below to my repository
 
 repository
 idmy-internal-site/id
 urlfile:///192.168.x.x/Repository/url
 snapshots
 enabledtrue/enabled
 updatePolicyalways/updatePolicy
 checksumPolicywarn/checksumPolicy
 /snapshots
 /repository
 
 I started getting latest of the jars present under the project-SNAPSHOT
 folder in the repository.
 
 

I tried two configurations:
1. using my local repository both for releases and snapshots
2. having a separate local repo for releases and a separate one for
snapshots.

Both results were identical though :(

Papapara Tudu

-- 
View this message in context: 
http://www.nabble.com/Problem-with-snapshots-tp15709789s177p15829527.html
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: Problem with snapshots

2008-03-04 Thread amit kumar
You mean even from the local repository the maven is not able to pick up the
latest of the jars?

Regards,
Amit

On Tue, Mar 4, 2008 at 8:50 PM, Papapara Tudu [EMAIL PROTECTED]
wrote:



 amit kumar-18 wrote:
 
  Well I faced a similar problem but configuring my remote repository for
  snapshots worked for me. I had to add the below to my repository
 
  repository
  idmy-internal-site/id
  urlfile:///192.168.x.x/Repository/url
  snapshots
  enabledtrue/enabled
  updatePolicyalways/updatePolicy
  checksumPolicywarn/checksumPolicy
  /snapshots
  /repository
 
  I started getting latest of the jars present under the project-SNAPSHOT
  folder in the repository.
 
 

 I tried two configurations:
 1. using my local repository both for releases and snapshots
 2. having a separate local repo for releases and a separate one for
 snapshots.

 Both results were identical though :(

 Papapara Tudu

 --
 View this message in context:
 http://www.nabble.com/Problem-with-snapshots-tp15709789s177p15829527.html
 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: Mevenide vs. M2Eclipse, Q for Eclipse/IAM

2008-03-04 Thread John Coleman
Not supporting -P is a show stopper for us. We use the build number
plugin, and insist that continumm builds have proper source-repo
synchronization.

Taking away these command line options is a big limitation. Expecting
people to change their projects to suit this limitation seems
unacceptable to me. I guess we'll have to use the command line in the
meantime.

Regards,
John
 

 -Original Message-
 From: Henri Gomez [mailto:[EMAIL PROTECTED] 
 Sent: 04 March 2008 15:01
 To: Maven Users List
 Subject: Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM
 
 I switched from m2eclipse to Q4E (still using the dev 
 release, ie 
 http://www.jroller.com/carlossg/entry/exist_global_acquires_devzuz).
 
 Even if Q4E is a new project and so less mature, it works 
 great for me, ie I could use an eclipse project having both 
 WTP and Q4E nature.
 
 Q4E is supported by Devzuz.org and as they are involved 
 (indirectly via Exist) in Buckminster, it will be in a not 
 too long future the 'official eclipse plugin' for maven support.
 
 I recommands Q4E (http://code.google.com/p/q4e/)
 
 Regards.
 
 2008/3/4, Thomas Lutz [EMAIL PROTECTED]:
  I don't use profiles very much, I've one box for office 
 work, another
   for private stuff :-)...
 
   found a post in the q4e users list:
   
  
 http://groups.google.com/group/q4e-users/browse_thread/thread/82ff5a7a
  fd79ebcf
 
   refering to an issue in q4e:
   http://code.google.com/p/q4e/issues/detail?id=5
 
   sorry,
   tom
 
   John Coleman schrieb:
 
   I can't see a way in Q4E to activate a profile in my 
 settings.xml. 
   Did
you find out how to do that?
   
My experience so far is that NetBeans mavenide seems to 
 be streets 
  ahead   of the various eclipse efforts I have tried. Since devzuz 
  support Q4E I   am hoping it is better than what I have seen.
   
Regards,
John
   
   
   
-Original Message-
From: Thomas Lutz [mailto:[EMAIL PROTECTED]   Sent: 25 February 
  2008 11:24   To: Maven Users List   Subject: Re: Mevenide vs. 
  M2Eclipse, Q for Eclipse/IAM Hi !
   
Though this doesn't answer your question regarding a 
 comparison.. :-):
   
I use Q4E and am really happy with it. much better than   
  m2eclipse and mevenide, pom synchronization and classpath   
  integration works well. No webtools support in the version 
 I   use, 
  but that could have changed in the meantime...
   
Tom
   
VUB Stefan Seidel schrieb:
   
Hi Chris,
   
we started with m2eclipse, too, and had troubles too. 
 After
   spending about a week in total fixing the worst 
 things in 
  it, it is quite   usable. Unfortunately, almost none of my 
  suggestions made it into the mainstream code, and 
  I've given up trying. I thought about a fork but  
I 
  don't have the time. Anyway, m2eclipse is based on some  
good 
  ideas, and when I last looked at Q4E, it wasn't 
 usable due to 
  its early dev stage.
There is a eclipse plugin for maven that generated the 
 
  .project files and others, this one allows you to develop 
  maven apps in Eclipse, but it is no real Eclipse 
  integration.
   
HTH,
   
Stefan
   
Chris wrote:
   
I googled around to try to find a comparison between  

  Mevenide and the alternatives, and didn't come up 
 with much.
   
Can someone tell me the differences?
   
(I've spend some time with m2eclipse, and I'm *not* 
 impressed).
   
   
   
   

  
 -
   
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]
 Eurobase International Limited and its subsidiaries 
  (Eurobase) are unable to exercise control over the content 
 of information in E-Mails. Any views and opinions expressed 
 may be personal to the sender and are not necessarily those 
 of Eurobase. Eurobase will not enter into any contractual 
 obligations in respect of any part of its business in any E-mail.
   
Privileged / confidential information may be contained 
 in this message and /or any attachments. This E-mail is 
 intended for the use of the addressee(s) only and may contain 
 confidential information. If you are not the / an intended 
 recipient, you are hereby notified that any use or 
 dissemination of this communication is strictly prohibited.  
 If you receive this transmission in error, please notify us 
 immediately, and then delete this E-mail.
   
Neither the sender nor Eurobase accepts any liability 
 whatsoever for any defects of any kind either in or arising 
 from this E-mail transmission. E-Mail transmission cannot be 
 guaranteed to be secure or error-free, as messages can be 
 intercepted, lost, corrupted, 

Re: Problem with continuum

2008-03-04 Thread Emmanuel Venisse
On Tue, Mar 4, 2008 at 4:12 PM, Tomislav Stojcevich [EMAIL PROTECTED]
wrote:

 Isn't that what the Build Fresh option on the build definition is for?


Yes and no :)
The build fresh run a clean checkout instead of an update but it will be use
on all runs except if you change back the value.

With a  remove working copy button, you'll clean it without to modify your
build definitions



  Doesn't it delete the working directory and re-checkout from scm?



escaping dollar sign in archetype templates

2008-03-04 Thread Zemian Deng

Hello,
This is for maven-archetype-plugin related.

There is a Closed-Won't Fix jira issue that doesn't have clear  
direction on a work around.

http://jira.codehaus.org/browse/ARCHETYPE-39

What's more strange is that the many proposed methods in that jira  
comments only work on certain types of files!


For example if I have a src/main/resources/archetype-resources/ 
pom.xml, I can escape with \${artifactID} just fine, but if I have a  
resource file like
src/main/resources/archetype-resources/src/main/webapp/welcome.jsp,  
the back slash WON'T work here! Velocity indeed escaped the dollar  
sign, but it also left the back slash in place which messed up the jsp  
as result. I have to use the #set($dollar = '$') method with this type  
of files as workaround.


Since it's not going to be fixed, is there way I can globally declare  
#set($dollar = '$'), so I can use in many more jsp without adding it  
on every file?


Thanks,
Zemian Deng.

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



Re: escaping dollar sign in archetype templates

2008-03-04 Thread Zemian Deng

Never mind, Answered my own question.
Setting velocity parameter in pom.xml will be visible as global to all  
other resources filter.


Zemian Deng

On Mar 4, 2008, at Tue Mar 4 - 11:07 AM, Zemian Deng wrote:


Hello,
This is for maven-archetype-plugin related.

There is a Closed-Won't Fix jira issue that doesn't have clear  
direction on a work around.

http://jira.codehaus.org/browse/ARCHETYPE-39

What's more strange is that the many proposed methods in that jira  
comments only work on certain types of files!


For example if I have a src/main/resources/archetype-resources/ 
pom.xml, I can escape with \${artifactID} just fine, but if I have a  
resource file like
src/main/resources/archetype-resources/src/main/webapp/welcome.jsp,  
the back slash WON'T work here! Velocity indeed escaped the dollar  
sign, but it also left the back slash in place which messed up the  
jsp as result. I have to use the #set($dollar = '$') method with  
this type of files as workaround.


Since it's not going to be fixed, is there way I can globally  
declare #set($dollar = '$'), so I can use in many more jsp without  
adding it on every file?


Thanks,
Zemian Deng.



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



Looking for regressions from 2.0.7 to 2.0.8

2008-03-04 Thread Brian E. Fox
We are getting ready to close out the 2.0.9 release. Are there any
regressions in 2.0.8 in Jira not already scheduled for 2.0.9[1]?

 

Now is also the time to make your pleas for other critical issues that
must get into 2.0.9. We're available in irc.codehaus.org #maven if you
want to raise something interactively, or reply to this email.

 

[1]
http://jira.codehaus.org/secure/IssueNavigator.jspa?reset=truefixfor=1
3801pid=10500resolution=-1sorter/field=issuekeysorter/order=DESC

 

Thanks,

Brian



how to dependency:sources if sources at different location

2008-03-04 Thread torsten . reinhard
Hi, 

I want to dependency:sources the sources from 
http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/

But in my pom.xml I have only references to parts of spring, for example 

dependency
groupIdorg.springframework/groupId
artifactIdspring-core/artifactId
version2.0.2/version
/dependency

Any idea how to solve this? 

thanx, torsten

Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM

2008-03-04 Thread Carlos Sanchez
it's just a matter of priorities and time, there's only 28 hours in a day ;)

On Tue, Mar 4, 2008 at 7:47 AM, John Coleman
[EMAIL PROTECTED] wrote:
 Not supporting -P is a show stopper for us. We use the build number
  plugin, and insist that continumm builds have proper source-repo
  synchronization.

  Taking away these command line options is a big limitation. Expecting
  people to change their projects to suit this limitation seems
  unacceptable to me. I guess we'll have to use the command line in the
  meantime.

  Regards,
  John



   -Original Message-
   From: Henri Gomez [mailto:[EMAIL PROTECTED]
   Sent: 04 March 2008 15:01
   To: Maven Users List
   Subject: Re: Mevenide vs. M2Eclipse, Q for Eclipse/IAM
  


  I switched from m2eclipse to Q4E (still using the dev
   release, ie
   http://www.jroller.com/carlossg/entry/exist_global_acquires_devzuz).
  
   Even if Q4E is a new project and so less mature, it works
   great for me, ie I could use an eclipse project having both
   WTP and Q4E nature.
  
   Q4E is supported by Devzuz.org and as they are involved
   (indirectly via Exist) in Buckminster, it will be in a not
   too long future the 'official eclipse plugin' for maven support.
  
   I recommands Q4E (http://code.google.com/p/q4e/)
  
   Regards.
  
   2008/3/4, Thomas Lutz [EMAIL PROTECTED]:
I don't use profiles very much, I've one box for office
   work, another
 for private stuff :-)...
   
 found a post in the q4e users list:
   
   
   http://groups.google.com/group/q4e-users/browse_thread/thread/82ff5a7a
fd79ebcf
   
 refering to an issue in q4e:
 http://code.google.com/p/q4e/issues/detail?id=5
   
 sorry,
 tom
   
 John Coleman schrieb:
   
 I can't see a way in Q4E to activate a profile in my
   settings.xml.
 Did
  you find out how to do that?
 
  My experience so far is that NetBeans mavenide seems to
   be streets
ahead   of the various eclipse efforts I have tried. Since devzuz
support Q4E I   am hoping it is better than what I have seen.
 
  Regards,
  John
 
 
 
  -Original Message-
  From: Thomas Lutz [mailto:[EMAIL PROTECTED]   Sent: 25 February
2008 11:24   To: Maven Users List   Subject: Re: Mevenide vs.
M2Eclipse, Q for Eclipse/IAM Hi !
 
  Though this doesn't answer your question regarding a
   comparison.. :-):
 
  I use Q4E and am really happy with it. much better than  
m2eclipse and mevenide, pom synchronization and classpath  
integration works well. No webtools support in the version
   I   use,
but that could have changed in the meantime...
 
  Tom
 
  VUB Stefan Seidel schrieb:
 
  Hi Chris,
 
  we started with m2eclipse, too, and had troubles too.
   After  
 spending about a week in total fixing the worst
   things in
it, it is quite   usable. Unfortunately, almost none of my
suggestions made it into the mainstream code, and
I've given up trying. I thought about a fork but
  I
don't have the time. Anyway, m2eclipse is based on some
  good
ideas, and when I last looked at Q4E, it wasn't
   usable due to
its early dev stage.
  There is a eclipse plugin for maven that generated the
  
.project files and others, this one allows you to develop
maven apps in Eclipse, but it is no real Eclipse
integration.
 
  HTH,
 
  Stefan
 
  Chris wrote:
 
  I googled around to try to find a comparison between
 
Mevenide and the alternatives, and didn't come up
   with much.
 
  Can someone tell me the differences?
 
  (I've spend some time with m2eclipse, and I'm *not*
   impressed).
 
 
 
 
 
   
   -
 
  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]  
   Eurobase International Limited and its subsidiaries
(Eurobase) are unable to exercise control over the content
   of information in E-Mails. Any views and opinions expressed
   may be personal to the sender and are not necessarily those
   of Eurobase. Eurobase will not enter into any contractual
   obligations in respect of any part of its business in any E-mail.
 
  Privileged / confidential information may be contained
   in this message and /or any attachments. This E-mail is
   intended for the use of the addressee(s) only and may contain
   confidential information. If you are not the / an intended
   recipient, you are hereby notified that any use or
   dissemination of this communication is strictly prohibited.
   If you 

RE: how to dependency:sources if sources at different location

2008-03-04 Thread Brian E. Fox
The sources goal tries to find sources for all your dependencies. What
else is it you want to do? 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2008 11:35 AM
To: users@maven.apache.org
Subject: how to dependency:sources if sources at different location

Hi, 

I want to dependency:sources the sources from 
http://repo1.maven.org/maven2/org/springframework/spring/2.0.2/

But in my pom.xml I have only references to parts of spring, for example


dependency
groupIdorg.springframework/groupId
artifactIdspring-core/artifactId
version2.0.2/version
/dependency

Any idea how to solve this? 

thanx, torsten

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



Re: escaping dollar sign in archetype templates

2008-03-04 Thread Wendy Smoak
On Tue, Mar 4, 2008 at 9:17 AM, Zemian Deng [EMAIL PROTECTED] wrote:
 Never mind, Answered my own question.
  Setting velocity parameter in pom.xml will be visible as global to all
  other resources filter.

What did you need to put in pom.xml for this to work?  Sounds like a
good FAQ if it's not in there already.

-- 
Wendy

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



Creating sources jar

2008-03-04 Thread Dooing
Hi,

when installing a jar (MyProject-1.1.jar) of the project containing the class 
files - is it possible to also create  install MyProject-1.1-source.jar and 
MyProject-1.1-java-api.jar at the same time?

Thanks in advance,

Stefanie
-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/[EMAIL PROTECTED]

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



Re: Compiling only submodules in multi module projects

2008-03-04 Thread Wayne Fay
Run mvn install once to install all artifacts into your local repo.

Then, assuming you didn't change module1 and only change module2, you
should be able to run mvn package from the module2 directory.

If you make changes in module1 as well as module2, then you will need
to run from the root/parent, or run mvn from module1 and then go into
module2 and run mvn again.

In short, no, Maven will not do what you expect.

Wayne

On 3/4/08, carioca [EMAIL PROTECTED] wrote:

 Hi,

 I have a multi module project in the form:

 pom.xml
module1
pom.xml
module2
pom.xml

 Module2 depends on module1.
 Both modules have the master project as parent project.
 I manage to compile the master project by using mvn package from the
 master project's  base directory.
 However, when I try to compile only module2 using mvn package from the
 module2's base directory I get the message that module1 is missing.
 I would expect that maven compile module1 (because it's a dependency of
 module2) and then compile module2.

 In a multi module project, is it possible to compile modules that have
 dependencies in other modules without compiling the entire master project?

 Thanks.
 --
 View this message in context: 
 http://www.nabble.com/Compiling-only-submodules-in-multi-module-projects-tp15825207s177p15825207.html
 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: escaping dollar sign in archetype templates

2008-03-04 Thread Zemian Deng

Added this on top of pom.xml
#set($dollar = '$')


On Mar 4, 2008, at Tue Mar 4 - 12:02 PM, Wendy Smoak wrote:

On Tue, Mar 4, 2008 at 9:17 AM, Zemian Deng [EMAIL PROTECTED]  
wrote:

Never mind, Answered my own question.
Setting velocity parameter in pom.xml will be visible as global to  
all

other resources filter.


What did you need to put in pom.xml for this to work?  Sounds like a
good FAQ if it's not in there already.

--
Wendy

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




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



Re: Creating sources jar

2008-03-04 Thread VUB Stefan Seidel

The easiest way to do this is to run
mvn clean install -DperformRelease
For more information on what happens behind the curtain see the maven 
doc about the super pom.


regards,

Stefan

[EMAIL PROTECTED] wrote:

Hi,

when installing a jar (MyProject-1.1.jar) of the project containing the class 
files - is it possible to also create  install MyProject-1.1-source.jar and 
MyProject-1.1-java-api.jar at the same time?

Thanks in advance,

Stefanie


--
best regards,

Stefan Seidel
software developer

VUB Printmedia GmbH
Chopinstraße 4
D-04103 Leipzig
Germany
tel.+49 (341) 9 60 50 07
fax.+49 (341) 9 60 50 92
mail.   [EMAIL PROTECTED]
web.www.vub.de

HRB Köln 24015
UStID DE 122 649 251
GF Dr. Achim Preuss Neudorf,
Dr. Christian Preuss Neudorf

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



Re: how to obtain project dependencies in maven 1.x?

2008-03-04 Thread Arnaud HERITIER
What do you want to say with obtain project dependencies ??In Maven
1.xdependencies are downloaded as soon as maven is started. Yu just
have to
define them in your pom.
Arnaud

On Mon, Mar 3, 2008 at 6:58 AM, san84 [EMAIL PROTECTED] wrote:


 hi all,
 am beginner to maven tool
 my Q is how can i obtain project dependencies in maven 1.x .

 like de way in which we achieve goals using prereqs.
 plz help me
 --
 View this message in context:
 http://www.nabble.com/how-to-obtain-project-dependencies-in-maven-1.x--tp15798160s177p15798160.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: escaping dollar sign in archetype templates

2008-03-04 Thread Wendy Smoak
On Tue, Mar 4, 2008 at 10:37 AM, Zemian Deng [EMAIL PROTECTED] wrote:

 Added this on top of pom.xml
  #set($dollar = '$')

Doesn't that make it invalid xml?  I'm not sure this is a good idea if
anything other than Maven needs to consume the files.

Specifically I wonder whether that line ends up in the pom deployed to
the artifact repository when you release the project.

-- 
Wendy

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



Re: Maven-eclipse-plugin - 2.5-SNAPSHOT

2008-03-04 Thread Arnaud HERITIER
Hi,
  It's better to ask such question on the mailing list. You should have
replies quickly.
  Did you define a wtpversion set to 1.5 in your project's pom or in a
parent ?
  There's an issue open somewhere in the core because we noticed that the
command line parameter do not more override the pom.

  Can it be your issue ?

Arnaud

On Mon, Mar 3, 2008 at 4:19 PM, Salgar, Mehmet (external) 
[EMAIL PROTECTED] wrote:

  Dear Sir,

 I had seen the discussions in these urls *
 http://jira.codehaus.org/browse/MECLIPSE-333*http://jira.codehaus.org/browse/MECLIPSE-333and
 *http://www.mail-archive.com/users@maven.apache.org/msg79790.html*http://www.mail-archive.com/users@maven.apache.org/msg79790.html
 .

 I try to test the WTP 2.0 functionality of the eclipse but even with the
 following command

 mvn -DdownloadSources=false -Declipse.wtpmanifest=true -
 Declipse.wtpapplicat
 ionxml=true -Dwtpversion=2.0
 org.apache.maven.plugins:maven-eclipse-plugin:2.5-SNAPSHOT:clean
 org.apache.maven.plugins:

 maven-eclipse-plugin:2.5-SNAPSHOT:eclipse

 I am getting the message

 [INFO] [eclipse:clean]
 [INFO] Deleting file: .project
 [INFO] Deleting file: .classpath
 [INFO] Deleting file: .wtpmodules
 [INFO] Deleting file: .component
 [INFO] Deleting file: org.eclipse.wst.common.component
 [INFO] Deleting file: org.eclipse.wst.common.project.facet.core.xml
 [INFO] Deleting file: org.eclipse.jdt.core.prefs
 [INFO] Deleting directory: .settings
 [INFO] Preparing eclipse:eclipse
 [INFO] [warpath:add-classes {execution: default}]
 [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
 [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
 [INFO] [eclipse:eclipse]
 [INFO] Adding support for WTP version 1.5.
 [INFO] Using as WTP server : null
 [INFO] Adding default classpath contaigner:
 org.eclipse.jdt.launching.JRE_CONTAINER

 'Adding support for WTP version 1.5.' this message means 2.0 configuration
 is not working or I am doing something wrong….

 Regards,

 Mehmet Salgar

  T-Mobile Deutschland GmbH
 Aufsichtsrat: Hamid Akhavan (Vorsitzender)
 Geschäftsführung: Philipp Humm (Sprecher), Thomas Berlemann, Stefan
 Homeister, Dr. Peter Körner, Günther Ottendorfer, Dr. Raphael Kübler, Dr.
 Steffen Roehn
 Handelsregister: Amtsgericht Bonn, HRB 59 19
 Sitz der Gesellschaft: Bonn
 WEEE-Reg.-Nr.: DE60800328





-- 
..
Arnaud HERITIER
..
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...


Re: Creating sources jar

2008-03-04 Thread simon
I prefer to generate the -sources jars whenever the normal jar is
created. Building a source jar is a pretty quick process. This can be
achieved just by binding the maven-source-plugin to the install phase.

By java-api.jar, do you mean a jar containing javadocs? If so, then
that can be done with the maven-javadoc-plugin. 

This file configures both of these plugins (though it can be done more
simply):
  http://svn.apache.org/repos/asf/myfaces/core/trunk_1.2.x/impl/pom.xml

As Stefan says, the build-in super pom that is the ancestor of all
other poms (and which is shown in the maven site docs) automatically
enables the maven-source-plugin when the -DperformRelease flag is used.
Can't remember for the moment if it does javadocs as well..

Regards,
Simon

On Tue, 2008-03-04 at 18:56 +0100, VUB Stefan Seidel wrote:
 The easiest way to do this is to run
 mvn clean install -DperformRelease
 For more information on what happens behind the curtain see the maven 
 doc about the super pom.
 
 regards,
 
 Stefan
 
 [EMAIL PROTECTED] wrote:
  Hi,
  
  when installing a jar (MyProject-1.1.jar) of the project containing the 
  class files - is it possible to also create  install 
  MyProject-1.1-source.jar and MyProject-1.1-java-api.jar at the same time?
  
  Thanks in advance,
  
  Stefanie
 


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



Re: escaping dollar sign in archetype templates

2008-03-04 Thread Zemian Deng
This is the archetype's template pom.xml, not the owning project  
pom.xml, and hence that line will get processed and removed by the  
template engine. I stated in my original email that this is the file  
in question: src/main/resources/archetype-resources/pom.xml.


I am not saying this is a good idea. It's just a undocumented  
workaround that I discovered. I much prefer the archetype plugin  
itself to provide a way to un-escape the dollar sign so it won't get  
substituted by engine.  Or simply populate the parameter ${dollar}  
instead of making user to set it is a step to improvement.


-Zemian


On Mar 4, 2008, at Tue Mar 4 - 1:15 PM, Wendy Smoak wrote:

On Tue, Mar 4, 2008 at 10:37 AM, Zemian Deng  
[EMAIL PROTECTED] wrote:



Added this on top of pom.xml
#set($dollar = '$')


Doesn't that make it invalid xml?  I'm not sure this is a good idea if
anything other than Maven needs to consume the files.

Specifically I wonder whether that line ends up in the pom deployed to
the artifact repository when you release the project.

--
Wendy

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




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



Re: How to deploy ears to application instead of repository?

2008-03-04 Thread gotama


Excellent... thank you. I'll check it out.

Does Maven's lifecycle end at the repository and deploying to an application
one of those more customizable tasks that is not under the normal realm of
Maven? 

The books I've looked through seem to end their deploy discussion around the
repository and generally what Maven is good at is simplifying common generic
tasks. I can see how a plugin would be required to do more of a customizable
task like deploying to specific containers.


Wendy Smoak-3 wrote:
 
 
  How can I use Maven to simply copy ears - retreived from the local
  repository, and scp them to a specific directory on a remote server?
 
 Take a look at Cargo:  http://cargo.codehaus.org/
 
 (Or you could do something as simple as exec-maven-plugin + a shell
 script.)
 
 -- 
 Wendy
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-ears-to-application-instead-of-repository--tp15818671s177p15834765.html
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: upgrade from maven 1 to maven 2

2008-03-04 Thread Dennis Lundberg

David Delbecq wrote:

Hello,

we have a few project here using maven 1. They become difficult to 
maintain when it come to using new plugins that are not available for 
maven 1. So we thought it might be time to switch to maven 2. Question 
is, considering about all projects are using preGoal/postGoal and 
personalized rules in maven.xml, what should i do with them? I read 
there is no equivalent of maven.xml, i need to use a plugin. Can I sort 
of embbed that plugin with the project that use it, or do i need to 
create a separate plugin project for each of our maven.xml, compile and 
deploy those plugin change everytime before compiling the main project 
(with maven 1, changes to maven.xml were immediate)? Also if someone can 
point me to documentation about converting that maven.xml to a plugin, 
it'll be great. Documentation here 
http://maven.apache.org/guides/mini/guide-m1-m2.html , section what to 
do with maven.xml point to error page (the pages seems to have been 
removed from maven site :( )


Sorry about that. A recent change messed up the links on that page. I'll 
look into fixing that. In the mean time, here's the correct link:


  http://maven.apache.org/maven1.html#m1-maven-xml

example of such task of maven.xml here is, we have a project X that is a 
webapp. In a subdirectory of that webapp we need to copy all ressources 
of another project Y, and we need to merge the struts and web.xml 
configs (we use a xslt processor for that). Am not sure how easy that 
can be transfered to a plugin...





--
Dennis Lundberg

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



mapping jar plugin include pattern to specific output location in jar...

2008-03-04 Thread shea

Hello,

I am creating 3 classifier-differentiated jars from a single pom - each on
contains the same classes, but different resources.  The resources end up in
the equivalent of classes/mystuff/a, classes/mystuff/b, and
classes//mystuff/c where a, b, and c are the respective resources I want
for each of my jars.

I have three jar plugins configured as below, each in its own execution:

...
configuration
classifiera/classifier
includes
include**/model/**/*.class/include
includemystuff/a/**/include
/includes
/configuration
...

This mostly works (I get three jars), except that the jars retain the
mystuff/a structure when what I want is to have it in the root of the jar
(i.e. suppress the mystuff/a structure and write contents into the root of
the jar).  Is there a way to do this, maybe with a slightly different
include pattern?  The other alternative I am considering are to have 3
separate artifacts that get their classes from a common parent or dependency
via the dependency plugin, but this seems pretty inconvenient.  Any other
ideas appreciated.

Thanks,

Shea.
-- 
View this message in context: 
http://www.nabble.com/mapping-jar-plugin-%3Cinclude%3E-pattern-to-specific-output-location-in-jar...-tp15835651s177p15835651.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Release Plugin: How to specify next version

2008-03-04 Thread jp4

I am trying to find a way to specify the next version to be used by the maven
release plugin on the command line.  

Basically, I have a project that is currently at version 1.0.9-SNAPSHOT and
would like the next release to be 1.1.0-SNAPSHOT after the 1.0.9 version is
released.  I saw another thread
(http://www.nabble.com/batch-release-of-a-set-of-projects-without-using-the-default-versioning-scheme-td11067663s177.html#a11067663)
that outlined how to do this using the release.properties file, but I was
wondering if there is a way to do this on the command line.

Any help would be greatly appreciated.

Thanks,

John
-- 
View this message in context: 
http://www.nabble.com/Release-Plugin%3A-How-to-specify-next-version-tp15835733s177p15835733.html
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: Creating sources jar

2008-03-04 Thread Dooing
 The easiest way to do this is to run
 mvn clean install -DperformRelease
 For more information on what happens behind the curtain see the maven 
 doc about the super pom.

WORKS! GREAT! THANKS! :-)
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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



Compile error, cannot find locally installed resource

2008-03-04 Thread buzzterrier

Hello,

I am new to Maven2 and am trying to get one of our applications building
with it. I want to build myApp, and we have a home grown CoreTools.jar that
is a dependency. The path of least resistance seemed to be to add
CoreTools.jar as as dependency and then install it into my local repository. 

dependency
groupIdcom.foo.core/groupId
artifactIdCoreTools/artifactId
version1.0-SNAPSHOT/version
scopecompile/scope
/dependency

The Core jar is installed:
C:\Documents and
Settings\buzzterrier\.m2\repository\com\foo\core\CoreTools\1.0-SNAPSHOT\CoreTools-1.0-SNAPSHOT.jar


However, when I run the compile goal, it cannot resolve the path to it.


[DEBUG] CoreTools: using locally installed snapshot
[DEBUG] Trying repository gwt-maven
Downloading:
http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/foo/core/CoreTools/1.0-SNAPSHOT/CoreTools-1.0-SNAPSHOT.pom
[DEBUG] Unable to get resource 'com.foo.core:CoreTools:pom:1.0-SNAPSHOT'
from repository gwt-maven
(http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
[DEBUG] Skipping disabled repository central
[DEBUG] Artifact not found - using stub model: Unable to download the
artifact from any repository

  com.foo.core:CoreTools:pom:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)

[DEBUG] Using defaults for missing POM
com.foo.core:CoreTools:pom:1.0-SNAPSHOT:compile
[DEBUG]   com.foo.core:CoreTools:jar:1.0-SNAPSHOT:compile (selected for
compile)
...

   [ERROR] Errors in
'C:\gwt-apps\myApp\src\main\java\com\foo\ComposeAction.java'
  [ERROR] Line 19:  The import com.foo.core.Action cannot be resolved
  [ERROR] Line 26:  Action cannot be resolved to a type


where com.foo.core.Action resides in CoreTools.jar

If I add Action.java to myApp/src/main/java/com/foo/core then it compiles.

And the classpath from the maven output appears to correctly see the
CoreTools.jar.  

Any ideas? I am certain that I am not handling the CoreTools.jar in an
elegant way, but for right now I was just looking to get myApp to compile,
and refactor from there.


-- 
View this message in context: 
http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15836706.html
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-aar-plugin

2008-03-04 Thread Martin Gainty
Bodo-

*supposedly* you can get an answer from maven users group on the exact URL
for latest and greatest plugins (and live servers that host them)
[EMAIL PROTECTED]

Let me know if you find it because I need it to-
Martin
- Original Message -
From: Bodo Tasche [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2008 8:05 AM
Subject: maven-aar-plugin


 Hi.

 at the moment I am trying to use the maven-aar-plugin , but I can't
 download the 1.3-Version and don't find it on the maven repository
 server. Is the webpage outdated?

 I already searched this mailing list, but I only found a link to a pom
 that uses an ant-task.

 Could someone help me?

 Thanks,
 Bodo
 --
 http://www.wannawork.de
 http://www.tvbrowser.org

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



Fw: failure on version 2.2 maven-jar-plugin

2008-03-04 Thread Martin Gainty
All-
attempting to execute an axis supplied pom.xml for one of the modules and
see the following version errors

//due to comcast network error I see this disabled error message
[DEBUG] Skipping disabled repository apache-snapshots
[DEBUG] maven-jar-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
latest ve
rsion

  org.apache.maven.plugins:maven-jar-plugin:pom:LATEST


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-jar-plugin
:pom:LATEST
[DEBUG] maven-jar-plugin: using locally installed snapshot
[DEBUG] Artifact not found - using stub model: Unable to determine the
release v
ersion

  org.apache.maven.plugins:maven-jar-plugin:pom:RELEASE


[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-jar-plugin
:pom:RELEASE
[INFO] -
---
[ERROR] BUILD ERROR
[INFO] -
---
[INFO] The plugin 'org.apache.maven.plugins:maven-jar-plugin' does not exist
or
no valid version could be found
[INFO] -
---
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.m
aven.plugins:maven-jar-plugin' does not exist or no valid version could be
found

I have the maven-jar-plugin (version 2.2) installed in a local repository
specifically in
Directory of %M2_HOME%\org\apache\maven\plugins\maven-jar-plugin\2.2

03/04/2008  01:41p  DIR  .
03/04/2008  01:41p  DIR  ..
01/28/2008  09:50a  26,646 maven-jar-plugin-2.2.jar
01/28/2008  09:50a   8,560 maven-jar-plugin-2.2.pom
01/28/2000  03:58p   8,560 pom.xml
01/28/2000  03:57p 292 settings.xml
   4 File(s) 44,058 bytes

How do I tell maven to stop erroring out and to use the version 2.2
maven-jar-plugin I have installed locally?

Thanks
Martin


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



Re: Coverage report of web application integration test with cobertura-maven-plugin

2008-03-04 Thread joseph22

We have a very similar need.   We have an integration-test module that has
dependencies on other modules containing unit tests and would like to have
the integration-test module use the instrumented classes from its
dependencies to generate a cobertura report.  A few questions:

1. Has this issue been logged as a jira bug or  task against the plugin?  If
so, what is the jira number?
2.  The work that you or jeff have been doing -- is it checked in anywhere? 
If so, how could someone check it out.

tks
Joseph 


Joshua Spiewak wrote:
 
 So in a simplistic attempt to get this to work, I looked at the Clover
 plugin to see what it did.  I tried changing the execute phase of
 CoberturaCheckMojo and CoberturaReportMojo to verify, like the Clover
 mojos of the same function.  This fails in the package phase:
 
 [INFO] Error configuring: org.apache.maven.plugins:maven-war-plugin.
 Reason: ERROR: Cannot override read-only parameter: classesDirectory in
 goal: war:war
 
 Looking at the Clover plugin a little more, it looks like it manages its
 separate lifecycle a little differently and only the instrument mojo kicks
 off the separate lifecycle.  And in fact, the instrument mojo is a shell,
 and there is an internal instrument mojo that does the real work.
 
 Do you think that the Cobertura mojo can be incrementally moved to this
 model?  What else were you intending?
 
 I would love to get this working, as having code coverage (with checking)
 is that last step in converting our main project from Ant to Maven.  So
 let me know if you need help!
 
   -- Josh
 
 
 
 Jeff MAURY wrote:
 
 Richard,
 
 I have the same problem and I think this is not feasible with the current
 design of the Cobertura Maven2 plugin design as it is today. It does only
 address the test phase and not the integration-test phase. I plan to work
 on
 another Cobertura plugin (inspired from the philosophy of the Clover
 plugin)
 that address this issue.
 
 Jeff
 
 
 On Dec 13, 2007 3:29 PM, Brewster, Richard [EMAIL PROTECTED]
 wrote:
 
 I want to produce a coverage report for the integration test phase of a
 web application (war packaging).  My integration tests are run by the
 Cargo maven plugin launching JBoss 4.0.5.  I've been using the 2.0
 version of the cobertura-maven-plugin (and will try the upgrade to 2.2).
 I have a modular project with core and web modules.  I get the expected
 coverage reports for my core module, but zero coverage for the web
 module.  The instrumented classes are not packaged into the war, for
 one.  According to the Cobertura FAQ, this sort of coverage testing can
 be done.

 http://cobertura.sourceforge.net/faq.html

 Has anyone done this?  Any advice would be appreciated!

 Also, it would be great if integration test coverage could be documented
 here, too:

 http://mojo.codehaus.org/cobertura-maven-plugin/usage.html

 Thanks,

 Richard Brewster
 Senior Associate
 Perrin Quarles Associates
 [EMAIL PROTECTED]
 (434) 817-2640

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


 
 
 -- 
 La mélancolie c'est communiste
 Tout le monde y a droit de temps en temps
 La mélancolie n'est pas capitaliste
 C'est même gratuit pour les perdants
 La mélancolie c'est pacifiste
 On ne lui rentre jamais dedans
 La mélancolie oh tu sais ça existe
 Elle se prend même avec des gants
 La mélancolie c'est pour les syndicalistes
 Il faut juste sa carte de permanent
 
 Miossec (2006)
 
 http://www.jeffmaury.com
 http://riadiscuss.jeffmaury.com
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-ANN--cobertura-maven-plugin-2.2-tp14310731s177p15836604.html
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: upgrade from maven 1 to maven 2

2008-03-04 Thread Samuel Le Berrigaud
Hey David,

as you found out you have to define groupId, artifactId of your parent in
the pom. I don't believe it is a lot of maintenance though as on many
projects I've worked on groupdId and artifactId don't change much.

You also have to specify the version. This can seems like a lot of pain to
maintain especially when releasing. But the maven-release-plugin makes it as
easy as it gets: http://maven.apache.org/plugins/maven-release-plugin/

You don't need to define the path to the parent pom. Maven will look up in
.. by default. Or will get it from the repository if it can't find it there.

SaM

On Tue, Mar 4, 2008 at 10:04 PM, David Delbecq [EMAIL PROTECTED] wrote:

 I'll try to find out solution, i began with one of our simplest project,
 it's made of several subprojects (using multproject maven 1 goal), but
 they have no custom maven.xml (should be the easiest to convert). But i
 don't get how to get the equivalent of

 extend../project.xml/extend

 I tried
 parentrelativePath../pom.xml/relativePath/parent

 But with i try a mvn jar, it complains the groupId of the parent tag is
 not defined. That a problem because i need the groupId and the version
 to be inherited from the parent. How should i do it?
 The online doc is of no help. It says

  Alternatively, if we want the groupId and / or the version of your
  modules to be the same as their parents, you can remove the groupId
  and / or the version identity of your module in its POM.
 
  project
parent
  groupIdcom.mycompany.app/groupId
  artifactIdmy-app/artifactId
  version1/version
/parent
modelVersion4.0.0/modelVersion
artifactIdmy-module/artifactId
  /project
 
 As you see in xml fragment given, they did *not* remove the groupId and
 versionId? Is it possible to inherit groupId and versionId or will i
 have to manually maintain all those ids in each release?

 Sorry to bother you with basic question :)


 En l'instant précis du 04/03/08 11:32, Samuel Le Berrigaud s'exprimait
 en ces termes:
  Hi again,
 
  I personally don't know any plugin that would take your maven.xml and
 insert
  it into the maven 2 lifecycle. There is no notion of lifecycle in
 maven1,
  just goals. I guess implementing such plugin could be possible but
  definitely not trivial.
 
  Indeed the xslt plugin doesn't give much details about its support. You
  would probably need to get some work done on the existing one or write
 your
  own. I don't see that being a huge amount of work. But it would still be
  some work…
 
  Regarding the project on which you depend, your best bet is still to
 have it
  as a dependency for your project. Even if it is not maven2, you could
  probably get this other project team to deploy it to an internal maven2
  repository or do it your self manually when they release it. Some other
  plugins will allow you to filter the files as you extract them. And as
 Simon
  said you still have the maven-antrun-plugin:
  http://maven.apache.org/plugins/maven-antrun-plugin/
 
  I am sorry I cannot be more helpful here,
  maybe someone else has another experience with migrating maven.xmlscripts?
 
  SaM
 
  PS: I don't know what happened to the page you reference in your first
 mail
  (http://maven.apache.org/guides/mini/guide-m1-m2.html). Maybe a maven
  developer could help here?
 
  On Tue, Mar 4, 2008 at 9:11 PM, David Delbecq [EMAIL PROTECTED] wrote:
 
 
  Hello,
 
  i was hopping there was some way to take my pack of maven.xml preGoal
  rule and just relocate them somewhere where maven2 would use them. You
  suggestion will not work. For our XSLT transform, we need to pass
  parameters to the xslt transform engine (for that we use saxon
  transformer with some specific transformation parameters), i don't see
  such equivalent in what you pointed me to nor is there information
 about
  version of xslt supported (1,2? we need 2).
 
  For the dependency plugin we have to investigate, but if that mean we
  need to upgrade included project to maven 2 also, that's a no go. That
  project i have no write access to and we don't plan maven 2 for it, we
  just currently, in our build process, download it along our main
  project, and retrieve some files from it (files we patch on the fly
  using ant:replace / rules btw). We don't even build it, we only need
  it's webapp (jsp/pictures/html/config) files integrated in our app.
 
 
  So, if we could keep our current build process rules (maven.xml), and
  just somehow move them in a plugin that would be lot's easier. Some of
  the jelly rules took time to implement, we don't have the time to
  recreate all them. Isn't it possible to take the maven.xml and put it
 in
  a project.jelly or it's maven2 equivalent?
 
  I need some direction on how to easily convert from maven1 to maven2,
  related to maven.xml, but all link related to that in maven site seem
  dead (see my first mail)
 
 
  En l'instant précis du 04/03/08 10:57, Samuel Le Berrigaud s'exprimait
  en ces termes:
 
  Hi 

Re: Compile error, cannot find locally installed resource

2008-03-04 Thread Wayne Fay
Its not finding the pom file because it doesn't exist, so its running
out and trying to find one in remote repos. Re-run mvn install and
this time specify -DgeneratePom=true along with the other parameters.

Wayne

On 3/4/08, buzzterrier [EMAIL PROTECTED] wrote:

 Hello,

 I am new to Maven2 and am trying to get one of our applications building
 with it. I want to build myApp, and we have a home grown CoreTools.jar that
 is a dependency. The path of least resistance seemed to be to add
 CoreTools.jar as as dependency and then install it into my local repository.

dependency
groupIdcom.foo.core/groupId
artifactIdCoreTools/artifactId
version1.0-SNAPSHOT/version
scopecompile/scope
/dependency

 The Core jar is installed:
 C:\Documents and
 Settings\buzzterrier\.m2\repository\com\foo\core\CoreTools\1.0-SNAPSHOT\CoreTools-1.0-SNAPSHOT.jar


 However, when I run the compile goal, it cannot resolve the path to it.

 
 [DEBUG] CoreTools: using locally installed snapshot
 [DEBUG] Trying repository gwt-maven
 Downloading:
 http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/foo/core/CoreTools/1.0-SNAPSHOT/CoreTools-1.0-SNAPSHOT.pom
 [DEBUG] Unable to get resource 'com.foo.core:CoreTools:pom:1.0-SNAPSHOT'
 from repository gwt-maven
 (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
 [DEBUG] Skipping disabled repository central
 [DEBUG] Artifact not found - using stub model: Unable to download the
 artifact from any repository

  com.foo.core:CoreTools:pom:1.0-SNAPSHOT

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)

 [DEBUG] Using defaults for missing POM
 com.foo.core:CoreTools:pom:1.0-SNAPSHOT:compile
 [DEBUG]   com.foo.core:CoreTools:jar:1.0-SNAPSHOT:compile (selected for
 compile)
 ...

   [ERROR] Errors in
 'C:\gwt-apps\myApp\src\main\java\com\foo\ComposeAction.java'
  [ERROR] Line 19:  The import com.foo.core.Action cannot be resolved
  [ERROR] Line 26:  Action cannot be resolved to a type
 

 where com.foo.core.Action resides in CoreTools.jar

 If I add Action.java to myApp/src/main/java/com/foo/core then it compiles.

 And the classpath from the maven output appears to correctly see the
 CoreTools.jar.

 Any ideas? I am certain that I am not handling the CoreTools.jar in an
 elegant way, but for right now I was just looking to get myApp to compile,
 and refactor from there.


 --
 View this message in context: 
 http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15836706.html
 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: Fw: failure on version 2.2 maven-jar-plugin

2008-03-04 Thread Wayne Fay
Grep ~/.m2 for LATEST and RELEASE in *.pom files. Seems like you've
got a bad pom (perhaps a snapshot?) or something along those lines.

Also, you could try specifying the maven-jar-plugin version 2.2 in
build for your pom.

Wayne

On 3/4/08, Martin Gainty [EMAIL PROTECTED] wrote:
 All-
 attempting to execute an axis supplied pom.xml for one of the modules and
 see the following version errors

 //due to comcast network error I see this disabled error message
 [DEBUG] Skipping disabled repository apache-snapshots
 [DEBUG] maven-jar-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine the
 latest ve
 rsion

  org.apache.maven.plugins:maven-jar-plugin:pom:LATEST


 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-jar-plugin
 :pom:LATEST
 [DEBUG] maven-jar-plugin: using locally installed snapshot
 [DEBUG] Artifact not found - using stub model: Unable to determine the
 release v
 ersion

  org.apache.maven.plugins:maven-jar-plugin:pom:RELEASE


 [DEBUG] Using defaults for missing POM
 org.apache.maven.plugins:maven-jar-plugin
 :pom:RELEASE
 [INFO] -
 ---
 [ERROR] BUILD ERROR
 [INFO] -
 ---
 [INFO] The plugin 'org.apache.maven.plugins:maven-jar-plugin' does not exist
 or
 no valid version could be found
 [INFO] -
 ---
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
 'org.apache.m
 aven.plugins:maven-jar-plugin' does not exist or no valid version could be
 found

 I have the maven-jar-plugin (version 2.2) installed in a local repository
 specifically in
 Directory of %M2_HOME%\org\apache\maven\plugins\maven-jar-plugin\2.2

 03/04/2008  01:41p  DIR  .
 03/04/2008  01:41p  DIR  ..
 01/28/2008  09:50a  26,646 maven-jar-plugin-2.2.jar
 01/28/2008  09:50a   8,560 maven-jar-plugin-2.2.pom
 01/28/2000  03:58p   8,560 pom.xml
 01/28/2000  03:57p 292 settings.xml
   4 File(s) 44,058 bytes

 How do I tell maven to stop erroring out and to use the version 2.2
 maven-jar-plugin I have installed locally?

 Thanks
 Martin


 -
 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-aar-plugin

2008-03-04 Thread Wayne Fay
Ultimately, all Maven plugins are the responsibility of the team who
created them. In this case, the maven-aar-plugin comes from the Apache
WS team, so you should be able to find out where they have deployed it
by asking them directly.

Sending users like Bodo to the Maven Users list is exactly the wrong
thing to do. Bodo, the Apache WS dev team should be able to tell you
where their plugin has been deployed etc (what repo, groupId, and
artifactId). Please ask them (again).

Wayne

On 3/4/08, Martin Gainty [EMAIL PROTECTED] wrote:
 Bodo-

 *supposedly* you can get an answer from maven users group on the exact URL
 for latest and greatest plugins (and live servers that host them)
 [EMAIL PROTECTED]

 Let me know if you find it because I need it to-
 Martin
 - Original Message -
 From: Bodo Tasche [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, March 04, 2008 8:05 AM
 Subject: maven-aar-plugin


  Hi.
 
  at the moment I am trying to use the maven-aar-plugin , but I can't
  download the 1.3-Version and don't find it on the maven repository
  server. Is the webpage outdated?
 
  I already searched this mailing list, but I only found a link to a pom
  that uses an ant-task.
 
  Could someone help me?
 
  Thanks,
  Bodo
  --
  http://www.wannawork.de
  http://www.tvbrowser.org
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



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



Re: Compile error, cannot find locally installed resource

2008-03-04 Thread buzzterrier

Thanks Wayne,

That took care of that pom error at the start, but it still fails for to
find the CoreTools-1.0-SNAPSHOT.jar when it tries to compile.  Really odd,
because it is clearly on the classpath. 



Wayne Fay wrote:
 
 Its not finding the pom file because it doesn't exist, so its running
 out and trying to find one in remote repos. Re-run mvn install and
 this time specify -DgeneratePom=true along with the other parameters.
 
 Wayne
 
 On 3/4/08, buzzterrier [EMAIL PROTECTED] wrote:

 Hello,

 I am new to Maven2 and am trying to get one of our applications building
 with it. I want to build myApp, and we have a home grown CoreTools.jar
 that
 is a dependency. The path of least resistance seemed to be to add
 CoreTools.jar as as dependency and then install it into my local
 repository.

dependency
groupIdcom.foo.core/groupId
artifactIdCoreTools/artifactId
version1.0-SNAPSHOT/version
scopecompile/scope
/dependency

 The Core jar is installed:
 C:\Documents and
 Settings\buzzterrier\.m2\repository\com\foo\core\CoreTools\1.0-SNAPSHOT\CoreTools-1.0-SNAPSHOT.jar


 However, when I run the compile goal, it cannot resolve the path to it.

 
 [DEBUG] CoreTools: using locally installed snapshot
 [DEBUG] Trying repository gwt-maven
 Downloading:
 http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/foo/core/CoreTools/1.0-SNAPSHOT/CoreTools-1.0-SNAPSHOT.pom
 [DEBUG] Unable to get resource 'com.foo.core:CoreTools:pom:1.0-SNAPSHOT'
 from repository gwt-maven
 (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
 [DEBUG] Skipping disabled repository central
 [DEBUG] Artifact not found - using stub model: Unable to download the
 artifact from any repository

  com.foo.core:CoreTools:pom:1.0-SNAPSHOT

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)

 [DEBUG] Using defaults for missing POM
 com.foo.core:CoreTools:pom:1.0-SNAPSHOT:compile
 [DEBUG]   com.foo.core:CoreTools:jar:1.0-SNAPSHOT:compile (selected for
 compile)
 ...

   [ERROR] Errors in
 'C:\gwt-apps\myApp\src\main\java\com\foo\ComposeAction.java'
  [ERROR] Line 19:  The import com.foo.core.Action cannot be resolved
  [ERROR] Line 26:  Action cannot be resolved to a type
 

 where com.foo.core.Action resides in CoreTools.jar

 If I add Action.java to myApp/src/main/java/com/foo/core then it
 compiles.

 And the classpath from the maven output appears to correctly see the
 CoreTools.jar.

 Any ideas? I am certain that I am not handling the CoreTools.jar in an
 elegant way, but for right now I was just looking to get myApp to
 compile,
 and refactor from there.


 --
 View this message in context:
 http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15836706.html
 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/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15837552.html
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: How to deploy ears to application instead of repository?

2008-03-04 Thread gotama



Actually, Cargo seems broken, at least for JBoss. Has anyone actually remote
deployed to JBoss4x successfully with Cargo?

What I have read and tried is that:

1) remote stop/start does not work; mvn cargo:start gives me only local
containers can be started, 

2) remote deploying to JBoss appears to have a bug:
http://jira.codehaus.org/browse/CARGO-416
http://www.nabble.com/JBoss-Remote-Deployment-workaround-for-HTTP-500-error-td10079769s177.html

So what does this give me? You need to have the war file present on the
remote system in order to hot deploy it - which ends up deployed in a tmp
directory and gone after a jboss restart anyway. And without
starting/stopping remotely, Cargo gives me/anyone nothing... no remote file
copy, no remote jboss start/stop, no persistent war deployments...

Am I missing something or is Cargo broken software?

Thanks.

-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-ears-to-application-instead-of-repository--tp15818671s177p15838462.html
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: Compile error, cannot find locally installed resource

2008-03-04 Thread Karthik Krishnan
Hi,

Is there a way to configure the pom creation?

Thanks,

Karthik

On Tue, Mar 4, 2008 at 1:30 PM, buzzterrier [EMAIL PROTECTED] wrote:


 Thanks Wayne,

 That took care of that pom error at the start, but it still fails for to
 find the CoreTools-1.0-SNAPSHOT.jar when it tries to compile.  Really odd,
 because it is clearly on the classpath.



 Wayne Fay wrote:
 
  Its not finding the pom file because it doesn't exist, so its running
  out and trying to find one in remote repos. Re-run mvn install and
  this time specify -DgeneratePom=true along with the other parameters.
 
  Wayne
 
  On 3/4/08, buzzterrier [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I am new to Maven2 and am trying to get one of our applications
 building
  with it. I want to build myApp, and we have a home grown CoreTools.jar
  that
  is a dependency. The path of least resistance seemed to be to add
  CoreTools.jar as as dependency and then install it into my local
  repository.
 
 dependency
 groupIdcom.foo.core/groupId
 artifactIdCoreTools/artifactId
 version1.0-SNAPSHOT/version
 scopecompile/scope
 /dependency
 
  The Core jar is installed:
  C:\Documents and
 
 Settings\buzzterrier\.m2\repository\com\foo\core\CoreTools\1.0-SNAPSHOT\CoreTools-
 1.0-SNAPSHOT.jar
 
 
  However, when I run the compile goal, it cannot resolve the path to it.
 
  
  [DEBUG] CoreTools: using locally installed snapshot
  [DEBUG] Trying repository gwt-maven
  Downloading:
 
 http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/foo/core/CoreTools/1.0-SNAPSHOT/CoreTools-1.0-SNAPSHOT.pom
  [DEBUG] Unable to get resource 'com.foo.core:CoreTools:pom:1.0-SNAPSHOT
 '
  from repository gwt-maven
  (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
  [DEBUG] Skipping disabled repository central
  [DEBUG] Artifact not found - using stub model: Unable to download the
  artifact from any repository
 
   com.foo.core:CoreTools:pom:1.0-SNAPSHOT
 
  from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
 
  [DEBUG] Using defaults for missing POM
  com.foo.core:CoreTools:pom:1.0-SNAPSHOT:compile
  [DEBUG]   com.foo.core:CoreTools:jar:1.0-SNAPSHOT:compile (selected for
  compile)
  ...
 
[ERROR] Errors in
  'C:\gwt-apps\myApp\src\main\java\com\foo\ComposeAction.java'
   [ERROR] Line 19:  The import com.foo.core.Action cannot be
 resolved
   [ERROR] Line 26:  Action cannot be resolved to a type
  
 
  where com.foo.core.Action resides in CoreTools.jar
 
  If I add Action.java to myApp/src/main/java/com/foo/core then it
  compiles.
 
  And the classpath from the maven output appears to correctly see the
  CoreTools.jar.
 
  Any ideas? I am certain that I am not handling the CoreTools.jar in an
  elegant way, but for right now I was just looking to get myApp to
  compile,
  and refactor from there.
 
 
  --
  View this message in context:
 
 http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15836706.html
  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/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15837552.html
 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: Compile error, cannot find locally installed resource

2008-03-04 Thread Wayne Fay
What exactly do you want to know/do?

Wayne

On 3/4/08, Karthik Krishnan [EMAIL PROTECTED] wrote:
 Hi,

 Is there a way to configure the pom creation?

 Thanks,

 Karthik

 On Tue, Mar 4, 2008 at 1:30 PM, buzzterrier [EMAIL PROTECTED] wrote:

 
  Thanks Wayne,
 
  That took care of that pom error at the start, but it still fails for to
  find the CoreTools-1.0-SNAPSHOT.jar when it tries to compile.  Really odd,
  because it is clearly on the classpath.
 
 
 
  Wayne Fay wrote:
  
   Its not finding the pom file because it doesn't exist, so its running
   out and trying to find one in remote repos. Re-run mvn install and
   this time specify -DgeneratePom=true along with the other parameters.
  
   Wayne
  
   On 3/4/08, buzzterrier [EMAIL PROTECTED] wrote:
  
   Hello,
  
   I am new to Maven2 and am trying to get one of our applications
  building
   with it. I want to build myApp, and we have a home grown CoreTools.jar
   that
   is a dependency. The path of least resistance seemed to be to add
   CoreTools.jar as as dependency and then install it into my local
   repository.
  
  dependency
  groupIdcom.foo.core/groupId
  artifactIdCoreTools/artifactId
  version1.0-SNAPSHOT/version
  scopecompile/scope
  /dependency
  
   The Core jar is installed:
   C:\Documents and
  
  Settings\buzzterrier\.m2\repository\com\foo\core\CoreTools\1.0-SNAPSHOT\CoreTools-
  1.0-SNAPSHOT.jar
  
  
   However, when I run the compile goal, it cannot resolve the path to it.
  
   
   [DEBUG] CoreTools: using locally installed snapshot
   [DEBUG] Trying repository gwt-maven
   Downloading:
  
  http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/foo/core/CoreTools/1.0-SNAPSHOT/CoreTools-1.0-SNAPSHOT.pom
   [DEBUG] Unable to get resource 'com.foo.core:CoreTools:pom:1.0-SNAPSHOT
  '
   from repository gwt-maven
   (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
   [DEBUG] Skipping disabled repository central
   [DEBUG] Artifact not found - using stub model: Unable to download the
   artifact from any repository
  
com.foo.core:CoreTools:pom:1.0-SNAPSHOT
  
   from the specified remote repositories:
central (http://repo1.maven.org/maven2),
gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
  
   [DEBUG] Using defaults for missing POM
   com.foo.core:CoreTools:pom:1.0-SNAPSHOT:compile
   [DEBUG]   com.foo.core:CoreTools:jar:1.0-SNAPSHOT:compile (selected for
   compile)
   ...
  
 [ERROR] Errors in
   'C:\gwt-apps\myApp\src\main\java\com\foo\ComposeAction.java'
[ERROR] Line 19:  The import com.foo.core.Action cannot be
  resolved
[ERROR] Line 26:  Action cannot be resolved to a type
   
  
   where com.foo.core.Action resides in CoreTools.jar
  
   If I add Action.java to myApp/src/main/java/com/foo/core then it
   compiles.
  
   And the classpath from the maven output appears to correctly see the
   CoreTools.jar.
  
   Any ideas? I am certain that I am not handling the CoreTools.jar in an
   elegant way, but for right now I was just looking to get myApp to
   compile,
   and refactor from there.
  
  
   --
   View this message in context:
  
  http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15836706.html
   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/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15837552.html
  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: Compile error, cannot find locally installed resource

2008-03-04 Thread Karthik Krishnan
I have the module foo-util which is dependent on core module. So in my pom,
I have this dependency.

dependency
groupIdfoo/groupId
artifactIdfoo-core/artifactId
version${project.version}/version
scopecompile/scope
/dependency

The foo-core has been compiled and packaged into a jar. I want to package
the  foot-util jar into a jar. I saw the post where you install the
third_party jar by adding the argument -DgeneratePom=true. I was wondering
that instead of having to install 3 party jars again and again, perhaps we
could configure the pom.xml to handle the generatePom attribute.

Thanks,

Karthik

On Tue, Mar 4, 2008 at 2:28 PM, Wayne Fay [EMAIL PROTECTED] wrote:

 What exactly do you want to know/do?

 Wayne

 On 3/4/08, Karthik Krishnan [EMAIL PROTECTED] wrote:
  Hi,
 
  Is there a way to configure the pom creation?
 
  Thanks,
 
  Karthik
 
  On Tue, Mar 4, 2008 at 1:30 PM, buzzterrier [EMAIL PROTECTED]
 wrote:
 
  
   Thanks Wayne,
  
   That took care of that pom error at the start, but it still fails for
 to
   find the CoreTools-1.0-SNAPSHOT.jar when it tries to compile.  Really
 odd,
   because it is clearly on the classpath.
  
  
  
   Wayne Fay wrote:
   
Its not finding the pom file because it doesn't exist, so its
 running
out and trying to find one in remote repos. Re-run mvn install and
this time specify -DgeneratePom=true along with the other
 parameters.
   
Wayne
   
On 3/4/08, buzzterrier [EMAIL PROTECTED] wrote:
   
Hello,
   
I am new to Maven2 and am trying to get one of our applications
   building
with it. I want to build myApp, and we have a home grown
 CoreTools.jar
that
is a dependency. The path of least resistance seemed to be to add
CoreTools.jar as as dependency and then install it into my local
repository.
   
   dependency
   groupIdcom.foo.core/groupId
   artifactIdCoreTools/artifactId
   version1.0-SNAPSHOT/version
   scopecompile/scope
   /dependency
   
The Core jar is installed:
C:\Documents and
   
  
 Settings\buzzterrier\.m2\repository\com\foo\core\CoreTools\1.0-SNAPSHOT\CoreTools-
   1.0-SNAPSHOT.jar
   
   
However, when I run the compile goal, it cannot resolve the path to
 it.
   

[DEBUG] CoreTools: using locally installed snapshot
[DEBUG] Trying repository gwt-maven
Downloading:
   
  
 http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/foo/core/CoreTools/1.0-SNAPSHOT/CoreTools-1.0-SNAPSHOT.pom
[DEBUG] Unable to get resource '
 com.foo.core:CoreTools:pom:1.0-SNAPSHOT
   '
from repository gwt-maven
(http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
[DEBUG] Skipping disabled repository central
[DEBUG] Artifact not found - using stub model: Unable to download
 the
artifact from any repository
   
 com.foo.core:CoreTools:pom:1.0-SNAPSHOT
   
from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
   
[DEBUG] Using defaults for missing POM
com.foo.core:CoreTools:pom:1.0-SNAPSHOT:compile
[DEBUG]   com.foo.core:CoreTools:jar:1.0-SNAPSHOT:compile (selected
 for
compile)
...
   
  [ERROR] Errors in
'C:\gwt-apps\myApp\src\main\java\com\foo\ComposeAction.java'
 [ERROR] Line 19:  The import com.foo.core.Action cannot be
   resolved
 [ERROR] Line 26:  Action cannot be resolved to a type

   
where com.foo.core.Action resides in CoreTools.jar
   
If I add Action.java to myApp/src/main/java/com/foo/core then it
compiles.
   
And the classpath from the maven output appears to correctly see
 the
CoreTools.jar.
   
Any ideas? I am certain that I am not handling the CoreTools.jar in
 an
elegant way, but for right now I was just looking to get myApp to
compile,
and refactor from there.
   
   
--
View this message in context:
   
  
 http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15836706.html
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/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15837552.html
   Sent from the Maven - Users mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   

Re: How to deploy ears to application instead of repository?

2008-03-04 Thread Martin Gainty
if you need a task which will clean,compile and deploy use ant ejb deploy
task
http://www.informit.com/guides/content.aspx?g=javaseqNum=155

M-
- Original Message -
From: gotama [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Tuesday, March 04, 2008 5:17 PM
Subject: Re: How to deploy ears to application instead of repository?





 Actually, Cargo seems broken, at least for JBoss. Has anyone actually
remote
 deployed to JBoss4x successfully with Cargo?

 What I have read and tried is that:

 1) remote stop/start does not work; mvn cargo:start gives me only local
 containers can be started,

 2) remote deploying to JBoss appears to have a bug:
 http://jira.codehaus.org/browse/CARGO-416

http://www.nabble.com/JBoss-Remote-Deployment-workaround-for-HTTP-500-error-
td10079769s177.html

 So what does this give me? You need to have the war file present on the
 remote system in order to hot deploy it - which ends up deployed in a tmp
 directory and gone after a jboss restart anyway. And without
 starting/stopping remotely, Cargo gives me/anyone nothing... no remote
file
 copy, no remote jboss start/stop, no persistent war deployments...

 Am I missing something or is Cargo broken software?

 Thanks.

 --
 View this message in context:
http://www.nabble.com/How-to-deploy-ears-to-application-instead-of-repositor
y--tp15818671s177p15838462.html
 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: How to deploy ears to application instead of repository?

2008-03-04 Thread gotama


Any Maven solutions?

Come on guys - we're talking about copying a file from point a to point b.
Cargo can't do this? Maven can't do this?

If you can't tell me how Cargo can do it, how can I simply scp a file in
Maven?

Thanks.


-- 
View this message in context: 
http://www.nabble.com/How-to-deploy-ears-to-application-instead-of-repository--tp15818671s177p15838928.html
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: Compile error, cannot find locally installed resource

2008-03-04 Thread Martin Gainty
In the same folder as the jar you should see
CoreTools-1.0-SNAPSHOT.pom

M-
- Original Message -
From: buzzterrier [EMAIL PROTECTED]
To: users@maven.apache.org
Sent: Tuesday, March 04, 2008 3:47 PM
Subject: Compile error, cannot find locally installed resource



 Hello,

 I am new to Maven2 and am trying to get one of our applications building
 with it. I want to build myApp, and we have a home grown CoreTools.jar
that
 is a dependency. The path of least resistance seemed to be to add
 CoreTools.jar as as dependency and then install it into my local
repository.

 dependency
 groupIdcom.foo.core/groupId
 artifactIdCoreTools/artifactId
 version1.0-SNAPSHOT/version
 scopecompile/scope
 /dependency

 The Core jar is installed:
 C:\Documents and

Settings\buzzterrier\.m2\repository\com\foo\core\CoreTools\1.0-SNAPSHOT\Core
Tools-1.0-SNAPSHOT.jar


 However, when I run the compile goal, it cannot resolve the path to it.

 
 [DEBUG] CoreTools: using locally installed snapshot
 [DEBUG] Trying repository gwt-maven
 Downloading:

http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/foo/core/CoreTools/
1.0-SNAPSHOT/CoreTools-1.0-SNAPSHOT.pom
 [DEBUG] Unable to get resource 'com.foo.core:CoreTools:pom:1.0-SNAPSHOT'
 from repository gwt-maven
 (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
 [DEBUG] Skipping disabled repository central
 [DEBUG] Artifact not found - using stub model: Unable to download the
 artifact from any repository

   com.foo.core:CoreTools:pom:1.0-SNAPSHOT

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)

 [DEBUG] Using defaults for missing POM
 com.foo.core:CoreTools:pom:1.0-SNAPSHOT:compile
 [DEBUG]   com.foo.core:CoreTools:jar:1.0-SNAPSHOT:compile (selected for
 compile)
 ...

[ERROR] Errors in
 'C:\gwt-apps\myApp\src\main\java\com\foo\ComposeAction.java'
   [ERROR] Line 19:  The import com.foo.core.Action cannot be resolved
   [ERROR] Line 26:  Action cannot be resolved to a type
 

 where com.foo.core.Action resides in CoreTools.jar

 If I add Action.java to myApp/src/main/java/com/foo/core then it compiles.

 And the classpath from the maven output appears to correctly see the
 CoreTools.jar.

 Any ideas? I am certain that I am not handling the CoreTools.jar in an
 elegant way, but for right now I was just looking to get myApp to compile,
 and refactor from there.


 --
 View this message in context:
http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resourc
e-tp15836706s177p15836706.html
 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: Compile error, cannot find locally installed resource

2008-03-04 Thread buzzterrier

Yep.

It contains:

?xml version=1.0 encoding=UTF-8?project
  modelVersion4.0.0/modelVersion
  groupIdcom.foo.core/groupId
  artifactIdCoreTools/artifactId
  version1.0-SNAPSHOT/version
  descriptionPOM was created from install:install-file/description
/project



mgainty wrote:
 
 In the same folder as the jar you should see
 CoreTools-1.0-SNAPSHOT.pom
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15839649.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Unit Testing Hibernate/Entities/EJB3/EE (Req Advice)

2008-03-04 Thread Andrew Hughes
Hi All,

This seems to be a hot topic at the moment, but there is very little
documentation and references I can find... and so I'm asking for your help.

*Background:*

One of Maven's most brilliant functions is it's lifecycle's ability to slip
straight into agile+continuous integration development (kudo's to maven).
It's a wonderful thing that when you write your code and its unit tests
today, that maven in many future versions and with countless changes will
ensure your tests still work! If they don't maven will fail the build (I
could go on but I wont)! So, the reason I'm really on this mailing list is
because I want to utilize this wonderful practice! Manually unit testing and
manually notifying people about error's is unreliable and so 2004!


*So what do I want to test:*

*Hibernate Entities:*

I have an Entity data model that is provided by Hibernate maven modules.
Each modules entities need to be unit tested. From what I have read.. the
options available to perform this are Easygloss/mock, ejb3unit, OpenJPA, and
TestNG.

What I found so far (and don't take this as definitive):

Easygloss/mock: This works a treat! Within my unit test's I can setup() an
instance of a (Hibernate) entity manager and thus my Entities do persist.
The unit tests are a little cut and paste the setup() into all of them,
but as a whole you can't complain too much if it works.

ebj3unit: This I found to be both brilliant and also non functional. I hope
I am wrong, but I can't get this working with Hibernate. When I do run it
against my entities I get all sorts of Use of @OneToMany or @ManyToMany
targeting an unmapped class exceptions and problems with @Embbeded eta
eta eta. Something which does not occur in easygloss, or when running the
tests with ithin the JunitEE on the Application Server. What I can say is
this is quite cool! The test classes you extent have some very neat default
tests you should have run over your entity beans. Example would be, read a
record x2 and see if both objects are .equals(). Other than the fact I can't
get it working, it's greatest downfall is that I can't find a mailing list
or irc channel or blog or wiki or anything to figure out what/if I am doing
something wrong. From what I can see, it's brilliant... but I really need it
working.

OpenJPA: I am yet to use... but I can only assume this is pure JPA and not
hibernate? Don't take my word for it though.

TestNG : I am reading up on now, which looks good... but because Im greedy I
do like the ejb3unit default tests and it will be hard to discard them.


*EJB3:*
As common moden architecture, you wrap your Entitie's with sensible real
world operations on your data model (Entities). So lets say someone changes
the @bean*, you want to make sure you don't effect anything else and you
want to test it does persist and comes back out the other side. Now it gets
a little complex, because not only do you need to mock the EJB* container
for your session* beans. Because the beans depend on Entities, you will also
need an entity manager. So... you need the out of container entitiy manager
above to work at the same test phase as we have here to test your EJB3 @bean
's.

Because I have not solved the above adequately, I have not looked at this
yet. In an ideal world, the ejb3unit would be working and I could build on
this... or if I get TestNG working it should do both... or if OpenJPA does
support hibernate I should be able to use it with OpenEJB.


To cut a long story short, it will be excellent when this is all running and
I will spread my knowledge if some smarter people than me read then and help
me out.

Cheers.


Re: How to deploy ears to application instead of repository?

2008-03-04 Thread Wayne Fay
It is perfectly legit to use Ant tasks in conjunction with Maven. Why
write a whole plugin etc when the functionality is already available
via Ant?

Wayne

On 3/4/08, gotama [EMAIL PROTECTED] wrote:


 Any Maven solutions?

 Come on guys - we're talking about copying a file from point a to point b.
 Cargo can't do this? Maven can't do this?

 If you can't tell me how Cargo can do it, how can I simply scp a file in
 Maven?

 Thanks.


 --
 View this message in context: 
 http://www.nabble.com/How-to-deploy-ears-to-application-instead-of-repository--tp15818671s177p15838928.html
 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: Compile error, cannot find locally installed resource

2008-03-04 Thread Wayne Fay
No.

Wayne

On 3/4/08, Karthik Krishnan [EMAIL PROTECTED] wrote:
 I have the module foo-util which is dependent on core module. So in my pom,
 I have this dependency.

 dependency
groupIdfoo/groupId
artifactIdfoo-core/artifactId
version${project.version}/version
scopecompile/scope
/dependency

 The foo-core has been compiled and packaged into a jar. I want to package
 the  foot-util jar into a jar. I saw the post where you install the
 third_party jar by adding the argument -DgeneratePom=true. I was wondering
 that instead of having to install 3 party jars again and again, perhaps we
 could configure the pom.xml to handle the generatePom attribute.

 Thanks,

 Karthik

 On Tue, Mar 4, 2008 at 2:28 PM, Wayne Fay [EMAIL PROTECTED] wrote:

  What exactly do you want to know/do?
 
  Wayne
 
  On 3/4/08, Karthik Krishnan [EMAIL PROTECTED] wrote:
   Hi,
  
   Is there a way to configure the pom creation?
  
   Thanks,
  
   Karthik
  
   On Tue, Mar 4, 2008 at 1:30 PM, buzzterrier [EMAIL PROTECTED]
  wrote:
  
   
Thanks Wayne,
   
That took care of that pom error at the start, but it still fails for
  to
find the CoreTools-1.0-SNAPSHOT.jar when it tries to compile.  Really
  odd,
because it is clearly on the classpath.
   
   
   
Wayne Fay wrote:

 Its not finding the pom file because it doesn't exist, so its
  running
 out and trying to find one in remote repos. Re-run mvn install and
 this time specify -DgeneratePom=true along with the other
  parameters.

 Wayne

 On 3/4/08, buzzterrier [EMAIL PROTECTED] wrote:

 Hello,

 I am new to Maven2 and am trying to get one of our applications
building
 with it. I want to build myApp, and we have a home grown
  CoreTools.jar
 that
 is a dependency. The path of least resistance seemed to be to add
 CoreTools.jar as as dependency and then install it into my local
 repository.

dependency
groupIdcom.foo.core/groupId
artifactIdCoreTools/artifactId
version1.0-SNAPSHOT/version
scopecompile/scope
/dependency

 The Core jar is installed:
 C:\Documents and

   
  Settings\buzzterrier\.m2\repository\com\foo\core\CoreTools\1.0-SNAPSHOT\CoreTools-
1.0-SNAPSHOT.jar


 However, when I run the compile goal, it cannot resolve the path to
  it.

 
 [DEBUG] CoreTools: using locally installed snapshot
 [DEBUG] Trying repository gwt-maven
 Downloading:

   
  http://gwt-maven.googlecode.com/svn/trunk/mavenrepo//com/foo/core/CoreTools/1.0-SNAPSHOT/CoreTools-1.0-SNAPSHOT.pom
 [DEBUG] Unable to get resource '
  com.foo.core:CoreTools:pom:1.0-SNAPSHOT
'
 from repository gwt-maven
 (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)
 [DEBUG] Skipping disabled repository central
 [DEBUG] Artifact not found - using stub model: Unable to download
  the
 artifact from any repository

  com.foo.core:CoreTools:pom:1.0-SNAPSHOT

 from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  gwt-maven (http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/)

 [DEBUG] Using defaults for missing POM
 com.foo.core:CoreTools:pom:1.0-SNAPSHOT:compile
 [DEBUG]   com.foo.core:CoreTools:jar:1.0-SNAPSHOT:compile (selected
  for
 compile)
 ...

   [ERROR] Errors in
 'C:\gwt-apps\myApp\src\main\java\com\foo\ComposeAction.java'
  [ERROR] Line 19:  The import com.foo.core.Action cannot be
resolved
  [ERROR] Line 26:  Action cannot be resolved to a type
 

 where com.foo.core.Action resides in CoreTools.jar

 If I add Action.java to myApp/src/main/java/com/foo/core then it
 compiles.

 And the classpath from the maven output appears to correctly see
  the
 CoreTools.jar.

 Any ideas? I am certain that I am not handling the CoreTools.jar in
  an
 elegant way, but for right now I was just looking to get myApp to
 compile,
 and refactor from there.


 --
 View this message in context:

   
  http://www.nabble.com/Compile-error%2C-cannot-find-locally-installed-resource-tp15836706s177p15836706.html
 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:
   
  

install:install-file via POM file

2008-03-04 Thread gotama


How can I do:

 mvn install:install-file

not from the command line, but configured in a POM?

I'd like to automate this as the EAR I am installing to the repo will change
frequently, but is not built w/ Maven. Until the module is Mavenized, I
simply want a module POM to copy an EAR from a directory, say
c:\deploy\version_3.0.1\app.EAR, version it using the parameter specified in
the POM and install it in the local/company repository. Once the module has
been Mavenized, I can tear this out and the parent POM will not know that
the module is now building with Maven. I basically want to create a place
holder POM for various modules which simply copies EARs from a location and
trick the parent POM into thinking its a regular Maven module. I don't want
to manually exec this on the command line because there are 15 EARs like
this and 40 developers would have to do the same thing. I just want to
automate this w/ mvn and be done.

Thanks.


-- 
View this message in context: 
http://www.nabble.com/install%3Ainstall-file-via-POM-file-tp15841398s177p15841398.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



plugin.xml

2008-03-04 Thread EJ Ciramella
What's the correct way to include this file when creating a
maven-plugin?
 
I have it in src/main but it's not getting included with my plugin jar -
am I supposed to alter the jar plugin configuration to include this?


Re: install:install-file via POM file

2008-03-04 Thread Wayne Fay
As far as I know, you can't.

Most people would simply write a shell script to deal with repeatedly
installing wars into a repo with different versions.

Wayne

On 3/4/08, gotama [EMAIL PROTECTED] wrote:


 How can I do:

  mvn install:install-file

 not from the command line, but configured in a POM?

 I'd like to automate this as the EAR I am installing to the repo will change
 frequently, but is not built w/ Maven. Until the module is Mavenized, I
 simply want a module POM to copy an EAR from a directory, say
 c:\deploy\version_3.0.1\app.EAR, version it using the parameter specified in
 the POM and install it in the local/company repository. Once the module has
 been Mavenized, I can tear this out and the parent POM will not know that
 the module is now building with Maven. I basically want to create a place
 holder POM for various modules which simply copies EARs from a location and
 trick the parent POM into thinking its a regular Maven module. I don't want
 to manually exec this on the command line because there are 15 EARs like
 this and 40 developers would have to do the same thing. I just want to
 automate this w/ mvn and be done.

 Thanks.


 --
 View this message in context: 
 http://www.nabble.com/install%3Ainstall-file-via-POM-file-tp15841398s177p15841398.html
 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: plugin.xml

2008-03-04 Thread EJ Ciramella
Nvm - * @aggregator

I thought you had to do * @aggregator=true.  Apparently just having it =
true. 

-Original Message-
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 04, 2008 9:04 PM
To: users@maven.apache.org
Subject: plugin.xml

What's the correct way to include this file when creating a
maven-plugin?
 
I have it in src/main but it's not getting included with my plugin jar -
am I supposed to alter the jar plugin configuration to include this?

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



  1   2   >