Re: Issues with calling mvn from Ant on Linux

2006-10-09 Thread Hervé BOUTEMY
It works perfectly here.
Here is the full build.xml I wrote for the test :


  

  
  

  


  


  

  



  


As you can see, it is "mvn" and not "mvn.sh".

Here is the result :
Buildfile: build.xml

def:
 [exec] Maven version: 2.0.4

BUILD SUCCESSFUL
Total time: 0 seconds


I don't know where your Ant buildfile fails, but the mistake is not in the way 
the macrodef is written.

Hervé

Le lundi 9 octobre 2006 06:15, mraible a écrit :
> I've tried both and I get the same result.  In the example below (mvn.sh),
> I tried creating a symlink to mvn.
>
> Matt
>
> Alexandre Russel-2 wrote:
> > On Monday 09 October 2006 04:56, mraible wrote:
> >> I have the following macrodef in Ant to run "mvn" to create project
> >> files.
> >> It works fine on Windows XP and OS X, but on Linux it spits out "[exec]
> >> Result: 1".  Any ideas on how to make this work on Linux?
> >>
> >> 
> >
> > Are you sure the executable is mvn.sh and not mvn ?
> > Alex

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



SV: jar and war together

2006-10-09 Thread Naess, Ronny
Do you have one pom with one war artifact and one jar dependency, or do
you have one parent pom (maven 2) with two modules/artifacts?

I guess you want your jar in [war]/WEB-INF/lib when deployed to server?
The jar artifact should be included into lib if spesified as a
dependency. The war plugin is responsible for collecting all artifact
dependencies, classes and resources of the web application and packaging
them into a web application archive. 

With install, do you mean install into appserver or do you mean maven
install aka uploading to local repository? If you meant install to
appserver take a look at Cargo, http://cargo.codehaus.org/Maven2+plugin,
if the latter look at
http://maven.apache.org/plugins/maven-install-plugin/ in short just run
'mvn install'. I guess it was the first you were after? :-)

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 08:40
Til: users@maven.apache.org
Emne: jar and war together

hi all
 i want to install jar and war from one pom but how i can
achieve this i do not know i tried and able to made the jar and war from
single pom but able only to install one ,either jar or war
  can any one tell  me how  i can install or deploy both jar and war
Regards Neeraj


!DSPAM:4529eef09691709321452!

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



Re: jar and war together

2006-10-09 Thread neeraj daffodil

i have simple pom which contain only one source and of this source i want to
make war and jar

means
1)  i have one source and genrate jar and war of same source

my pom is like


 4.0.0
 com.daffodilwoods.framework
 dakwar
 1.0-SNAPSHOT
 jar  



..




 
org.apache.maven.plugins
   maven-war-plugin
   
 
   install
   
   hi i am configuring the WarSourceDirectory.. 

   
 war
   
 
   
 
  

  package
 





i am able to genrate dakwar-1.0-SNAPSHOT.jar and

dakwar-1.0-SNAPSHOT.war but only able to install dakwar-1.0-SNAPSHOT.jar

in my local repository but i need both jar and war to be install in my local
repository

i am doing these operation on one source

how i can achieve this please tell

Regards

Neeraj





On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:


Do you have one pom with one war artifact and one jar dependency, or do
you have one parent pom (maven 2) with two modules/artifacts?

I guess you want your jar in [war]/WEB-INF/lib when deployed to server?
The jar artifact should be included into lib if spesified as a
dependency. The war plugin is responsible for collecting all artifact
dependencies, classes and resources of the web application and packaging
them into a web application archive.

With install, do you mean install into appserver or do you mean maven
install aka uploading to local repository? If you meant install to
appserver take a look at Cargo, http://cargo.codehaus.org/Maven2+plugin,
if the latter look at
http://maven.apache.org/plugins/maven-install-plugin/ in short just run
'mvn install'. I guess it was the first you were after? :-)

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
Sendt: 9. oktober 2006 08:40
Til: users@maven.apache.org
Emne: jar and war together

hi all
i want to install jar and war from one pom but how i can
achieve this i do not know i tried and able to made the jar and war from
single pom but able only to install one ,either jar or war
can any one tell  me how  i can install or deploy both jar and war
Regards Neeraj


!DSPAM:4529eef09691709321452!

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




Re: har plugin

2006-10-09 Thread Wayne Fay

I know there's work underway on a JBoss Maven plugin, which will
support HAR files along with other types, but I don't know much about
it to be honest...

Search the archives and you should find several discussions on the subject.

Wayne

On 10/9/06, Neeraj Bisht <[EMAIL PROTECTED]> wrote:

hi all
can any one tell be there is any plugin for packing my project
in har file as like of jar  ,
Regards
Neeraj




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



Re: [Multiple modules]

2006-10-09 Thread aquinault

My solution consist of:

to have a flat hierarchical under CVS.
ex: 
-TestWeb1WAR
-TestWeb2WAR
-TestWebEAR
-TestWebMultiProject

Make an alias under CVSROOT/modules.
ex:
testVPRWebMPAlias TestWebMultiProject pom.xml &TestWeb1WAR &TestWeb2WAR
&TestWebEAR

to have a multiproject POM.XML looks like:

  4.0.0
  org.testWebMultiProject
  testWebMultiProject
  testWebMultiProject
  pom
  1.0-SNAPSHOT
  
TestWeb1WAR/
TestWeb2WAR/
TestWebEAR/
  
   
   


To insert a Shell project under Continuum.
ex:
Project Name: testWebMultiProject
Version: 1.0-SNAPSHOT
Scm url: scm:cvs:pserver:xxx:@setu04:/ARCLABDEV:TestWebMPAlias
Scm username: aquinault
Scm password: xxx
Scm branch/tag: HEAD

Build definitions
Shell executable: mvn.bat
Arguments: clean install
Is it default: x

Et voila.

Anthony Quinault
J2ee Architect / Sogeti R?gions
[EMAIL PROTECTED]




jrduncans wrote:
> 
> On 9/25/06, Christian Edward Gruber <[EMAIL PROTECTED]> wrote:
>> Yeah.  There's a ticket in the maven JIRA about it, proposing that
>> ${parentSCMUrl}/${modulePath} be used instead of
>> ${parentSCMUrl}/${artifactId}.  No notion of whether it will be actually
>> accepted and implemented.
>>
>> The proper workaround is to explicitly define SCM urls in each child
>> project, as I believe was mentioned earlier, or to make your sub-project
>> modules under the parent and make the folder name equal to the
>> artifactId.
>>
>> This is, however, really problematic for working with maven and eclipse
>> simultaneously, as you can't get the full project set, including parent,
>> loaded in eclipse, because eclipse cannot support sub-projects nested in
>> other projects.
>>
>> Cheers,
>> Christian.
> 
> Actually, that works fine in Eclipse 3.2.
> 
> -Stephen
> 
>> David Roussel wrote:
>> > That does seem to be the convention in Maven (it's not a continuum
>> > thing), that the modules are most often in subfolders of the parent
>> > project, and have folder names the same as the project name.
>> >
>> > On Mon, 25 Sep 2006 14:07:01 +0200, "Francois Le Fevre"
>> > <[EMAIL PROTECTED]> said:
>> >
>> >> Dear all,
>> >>
>> >> I have identified my error: it seems that module and parent artifact
>> id
>> >> have to match to the folder name when using subversion and continuum!
>> >> Could you please confirm the convention?
>> >>
>> >> Francois
>> >>
>> >> snip
>> >>>
>> >>>
>> >>>
>> >>
>>
>> --
>>
>> *christian** gruber + process coach and architect*
>>
>> *Israfil Consulting Services Corporation*
>>
>> *email** [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023*
>>
>>
>>
> 
> 
> -- 
> Stephen Duncan Jr
> www.stephenduncanjr.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Multiple-modules--tf2330928.html#a6713135
Sent from the Continuum - Users mailing list archive at Nabble.com.



SV: jar and war together

2006-10-09 Thread Naess, Ronny
Sorry, I do not have the answer for why this is not working. Maybe you
could try it the other way around?
Change your pom to hav packaging to war, and specify maven-jar-plugin
instead.

We have more than one pom with packaging set to jar and at same time
using maven-jar-plugin spesifying test-jar goal and both jars installs
correct to our repository.

-Ronny

-Opprinnelig melding-
Fra: neeraj daffodil [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 09:40
Til: Maven Users List
Emne: Re: jar and war together

i have simple pom which contain only one source and of this source i
want to make war and jar

means
 1)  i have one source and genrate jar and war of same source

my pom is like


  4.0.0
  com.daffodilwoods.framework
  dakwar
  1.0-SNAPSHOT
  jar  

 

 ..
 



 
 org.apache.maven.plugins
maven-war-plugin

  
install

hi i am configuring the WarSourceDirectory.. 
 

  war

  

  
   

   package
  





i am able to genrate dakwar-1.0-SNAPSHOT.jar and

dakwar-1.0-SNAPSHOT.war but only able to install dakwar-1.0-SNAPSHOT.jar

in my local repository but i need both jar and war to be install in my
local repository

i am doing these operation on one source

how i can achieve this please tell

Regards

Neeraj





On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
>
> Do you have one pom with one war artifact and one jar dependency, or 
> do you have one parent pom (maven 2) with two modules/artifacts?
>
> I guess you want your jar in [war]/WEB-INF/lib when deployed to
server?
> The jar artifact should be included into lib if spesified as a 
> dependency. The war plugin is responsible for collecting all artifact 
> dependencies, classes and resources of the web application and 
> packaging them into a web application archive.
>
> With install, do you mean install into appserver or do you mean maven 
> install aka uploading to local repository? If you meant install to 
> appserver take a look at Cargo, 
> http://cargo.codehaus.org/Maven2+plugin,
> if the latter look at
> http://maven.apache.org/plugins/maven-install-plugin/ in short just 
> run 'mvn install'. I guess it was the first you were after? :-)
>
> -Ronny
>
> -Opprinnelig melding-
> Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
> Sendt: 9. oktober 2006 08:40
> Til: users@maven.apache.org
> Emne: jar and war together
>
> hi all
> i want to install jar and war from one pom but how i can 
> achieve this i do not know i tried and able to made the jar and war 
> from single pom but able only to install one ,either jar or war can 
> any one tell  me how  i can install or deploy both jar and war Regards

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


!DSPAM:4529fcd7162322988016950!

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



required artifacts missing:xdoclet-plugins:xdoclet-plugin-qtags:jar:${pom.currentVersion}

2006-10-09 Thread bhaskar ramasamy
Hi Maven Users,

Iam getting the following error even after manual installation of missing 
artifacts. Your help will be highly appreciated.

[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.
required artifacts missing:
  xdoclet-plugins:xdoclet-plugin-qtags:jar:${pom.currentVersion}
for the artifact:
  xdoclet:maven2-xdoclet2-plugin:maven-plugin:2.0.5-SNAPSHOT
from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus-legacy (http://dist.codehaus.org),
  codehaus-maven2 (http://dist.codehaus.org),
  apache-snapshots (http://people.apache.org/maven-snapshot-repository/),
  dist.codehaus.org (http://dist.codehaus.org),
  apache (http://cvs.apache.org/repository)


Thanks and Regards,
Bhaskar



Re: Can I bypass the whole Maven build part?!

2006-10-09 Thread Manfred Moser

SomeDude wrote:

I am very new to Maven and from the introductory reading that I have done I
am starting to understand that if I were to use it in our projects I would
have to replace our current build process. Here are my problems:

1) Boss wants me to see if Maven can be useful for us in the documentation
process. He really likes the website feature.
2) Boss likes the way we build our projects since we have been using these
ginormous ant scripts for years now. He will not change the build process.
3) Boss would not even consider messing with our current directory
structures

My Question is:

Is there any way I could use Maven features like the website generation and
report creation without having to interfere with the current project
structure and build process?


Well. You can actually call Maven from Ant as a command line call. I 
used to do exactly what you are looking for on one project. Build is 
done by Ant, site and documentation done by Maven. You will have to do 
some changes, but not too many.


It is probably a good first step. Once Maven is being used you will see 
that there is a LOT more benefits to be gained. Definitely check out the

Better Build with Maven book and look at the migration from ant tips.

manfred

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



MavenProject from pom.xml

2006-10-09 Thread Morten Kristiansen
How can I load a pom.xml file from the filesystem into a MavenProject
object?

Morten

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



Re: problem getting started

2006-10-09 Thread Bart Zagers

This doesn't really help, the intro is the same/similar as with the basic
Maven starting guide and naturally does not mention my basic (and probably
stupid) problem.

[INFO] [compiler:testCompile]
Compiling 1 source file to D:\test\VacApp\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
Het systeem kan het opgegeven pad niet vinden.
Het systeem kan het opgegeven pad niet vinden.
[INFO]

[ERROR] BUILD FAILURE
[INFO]
 

The dutch system message says "The system cannot find the given path" but I
have no clue what is going wrong or where to start looking for it.

Bart.

 

mmistroni wrote:
> 
> Hello,
>   try BBWM..
> http://www.mergere.com/m2book_download.jsp
> 
> hth
>  marco
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
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: Idea plugin and hot deploys from Maven

2006-10-09 Thread Ralf Quebbemann

As far as I know this is not possible.

The Idea plugin creates Idea Project/Module files from your existing Maven POMs, but it does not provide a Maven 
integration (like ant) into Idea (please correct me anybody if I am wrong).


I am currently in process of writing such a plugin that integrates maven2 into 
Idea.

With this plugin you are able to call your Maven2 goals directly from idea and 
watch the output through Idea's console.

The plugin is currently in beta phase and needs some more testing. When this is done I will release it via IDEAs plugin 
page.


BTW:
Mevenide (hosted on codehaus) does provide an integration of maven1 into idea. Though I have the feeling that there is 
currently no or pretty less development progress for the Maven2 idea plugin.


Stay tuned

Ralf

Mick Knutson wrote:

Will the Idea plugin allow me to run maven and hot deploy through IDea with
JBoss 4?



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



Site issue

2006-10-09 Thread Morgovsky, Alexander \(US - Glen Mills\)
Hi.  I got this while running mvn site.  What special dependencies do I
need to have to be able to build a Maven 2 Site?  Thanks.

[ERROR] BUILD ERROR
[INFO]

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


Project ID: plexus:plexus-components:pom:1.1.1

Reason: Cannot find parent: plexus:plexus-root for project:
plexus:plexus-components:pom:1.1.1 


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


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


Weblogic plugin

2006-10-09 Thread Morgovsky, Alexander \(US - Glen Mills\)
Hi, I am having a problem with using the stop goal of the Weblogic
plugin.

Here is my error.
[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.codehaus.mojo:weblogic-maven-plugin:2.8.0-SNAPSHOT:stop': Unable to
find the mojo
'org.codehaus.mojo:weblogic-maven-plugin:2.8.0-SNAPSHOT:stop' in the
plugin 'org.codehaus.mojo:weblogic-maven-plugin'
weblogic/utils/compiler/Tool
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
in the plugin manager executing goal
'org.codehaus.mojo:weblogic-maven-plugin:2.8.0-SNAPSHOT:stop': Unable to
find the mojo
'org.codehaus.mojo:weblogic-maven-plugin:2.8.0-SNAPSHOT:stop' in the
plugin 'org.codehaus.mojo:weblogic-m
aven-plugin'

Here is my pom.xml.


org.codehaus.mojo
weblogic-maven-plugin
2.8.0-SNAPSHOT




stop


  x
  x
  http
  x
  x
  false
  true
  true
  true
  x



  

I've been trying to solve this for more than 7 hours, I am stuck here.
Please help. 


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


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


Lib dependencies in .war artifact

2006-10-09 Thread Morgovsky, Alexander \(US - Glen Mills\)
Hi.  I need some .jar's for compilation of a .war artifact, but I want
to only include a subset of these in the WEB-INF/lib.  If I set the
subset of the ones for inclusion with the scope of runtime for each,
they will not be used for compilation, and the compilation will fail.
Thus, the question is, how do I include a subset of .jar's which both
are for compilation and runtime, but exclude all the ones which are for
compilation only?  Thanks for your help. 


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


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


Problem using Maven to run ejb3 tests.

2006-10-09 Thread Watt Poosanguansit
Hi,

I am new to Maven2.  I appreciate any advice.  I am
using Maven2 with Netbeans 5.5.  I created and tested
ejb3 entity beans code in Netbeans web project and
everything works find.  So I move the code to Maven
project.  It does compile fine but it has an error 

No Persistence provider for EntityManager named
myPersistent

How can I add runtime classpath to include
persisten.xml in Maven2?  I am guessing that the
persistent.xml file is not in the classpath.



Thank you for any help,




Watt P.

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

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



XDoclet problem using the Maven2 xdoclet plugin

2006-10-09 Thread Morgovsky, Alexander \(US - Glen Mills\)
Hi.  I try to generate the XDoclet artifacts using the following
definition.  However, nothing gets produced in the target in
generated-souces/xdoclet.  In fact, no artificats anywhere are produced
when I call mvn generate-sources.  May someone please assist me in this,
as I have searched this forum and unfortunately I could not solve this
problem?  Please help if you may.  Thank you in advance.


  xdoclet-maven-plugin
  org.codehaus.mojo
  1.0-alpha-2
  

  generate-sources
  
xdoclet
  
  





  

  

  
 


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


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


Re: Site issue

2006-10-09 Thread Geoffrey De Smet

Are you using maven 2.0.4?
I think I had this issue too when using maven 2.0.2 with a newer site 
plugin.


Morgovsky, Alexander (US - Glen Mills) wrote, On 2006-10-07 8:34 AM:

Hi.  I got this while running mvn site.  What special dependencies do I
need to have to be able to build a Maven 2 Site?  Thanks.

[ERROR] BUILD ERROR
[INFO]

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


Project ID: plexus:plexus-components:pom:1.1.1

Reason: Cannot find parent: plexus:plexus-root for project:
plexus:plexus-components:pom:1.1.1 



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



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



--
With kind regards,
Geoffrey De Smet


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



Aid with Maven2

2006-10-09 Thread Saminda Abeyruwan

Hi All,

I'm in the process of migrating from Maven1 to Maven2.

I got the following problem,

When i say mvn install, it'll work. But after when i said, mvn clean,
following exception occurred with -e

===
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid
version could be found
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1281)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
DefaultLifecycleExecutor.java:1517)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging
(DefaultLifecycleExecutor.java:1011)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings
(DefaultLifecycleExecutor.java:975)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:453)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.

==

How can i force Maven2 to download this "
org.apache.maven.plugins:maven-clean-plugin" plugin. I tried maven2.x site,
couldn't find the solution though.

Please do help me.

Thank you

Saminda


Re: Idea plugin and hot deploys from Maven

2006-10-09 Thread Geoffrey De Smet
I would be interested in testing this plugin as soon as you have an 
alpha or beta and supply some feedback?


Ralf Quebbemann wrote, On 2006-10-07 9:57 AM:

As far as I know this is not possible.

The Idea plugin creates Idea Project/Module files from your existing 
Maven POMs, but it does not provide a Maven integration (like ant) into 
Idea (please correct me anybody if I am wrong).


I am currently in process of writing such a plugin that integrates 
maven2 into Idea.


With this plugin you are able to call your Maven2 goals directly from 
idea and watch the output through Idea's console.


The plugin is currently in beta phase and needs some more testing. When 
this is done I will release it via IDEAs plugin page.


BTW:
Mevenide (hosted on codehaus) does provide an integration of maven1 into 
idea. Though I have the feeling that there is currently no or pretty 
less development progress for the Maven2 idea plugin.


Stay tuned

Ralf

Mick Knutson wrote:
Will the Idea plugin allow me to run maven and hot deploy through IDea 
with

JBoss 4?



--
With kind regards,
Geoffrey De Smet


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



Re: har plugin

2006-10-09 Thread neeraj daffodil

Thanks Wayne fay

On 10/9/06, Wayne Fay <[EMAIL PROTECTED]> wrote:


I know there's work underway on a JBoss Maven plugin, which will
support HAR files along with other types, but I don't know much about
it to be honest...

Search the archives and you should find several discussions on the
subject.

Wayne

On 10/9/06, Neeraj Bisht <[EMAIL PROTECTED]> wrote:
> hi all
> can any one tell be there is any plugin for packing my project
> in har file as like of jar  ,
> Regards
> Neeraj
>
>

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




SV: Aid with Maven2

2006-10-09 Thread Naess, Ronny
Try 'mvn -cpu install'  or also delete the plugin manually in your
repository so it downloads a new one when you try again.

-Ronny

-Opprinnelig melding-
Fra: Saminda Abeyruwan [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 10:04
Til: users@maven.apache.org
Emne: Aid with Maven2

Hi All,

I'm in the process of migrating from Maven1 to Maven2.

I got the following problem,

When i say mvn install, it'll work. But after when i said, mvn clean,
following exception occurred with -e

===
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin '
org.apache.maven.plugins:maven-clean-plugin' does not exist or no valid
version could be found
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(
DefaultLifecycleExecutor.java:1281)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(
DefaultLifecycleExecutor.java:1517)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPack
aging
(DefaultLifecycleExecutor.java:1011)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
ppings
(DefaultLifecycleExecutor.java:975)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:453)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures
(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.

==

How can i force Maven2 to download this "
org.apache.maven.plugins:maven-clean-plugin" plugin. I tried maven2.x
site, couldn't find the solution though.

Please do help me.

Thank you

Saminda


!DSPAM:452a02c9292701272651560!

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



Re: sjc (jaxb) plugin for jdk1.4

2006-10-09 Thread Aleksei Valikov

Hi.


I am trying to convert a large ant project to maven and the project (for
various reasons) is tied to jdk 1.4. There are several uses of xjc
(jaxb)  and I wanted to use a maven jaxb plugin in order to build those
projects.  However, the jaxb plugin available maven-jaxb-plugin
(com.sun.tools.xjc.maven2) requires the use of jdk 1.5.  (It requires
source=1.5). Does there exist a jaxb plugin for maven2 that works with
jdk1.4?  I'd rather not have to use an ant-task for my xjc code
generation.  Thanks. -- Eric


Here's one that we wrote and use extensively:

https://maven-jaxb1-plugin.dev.java.net

Bye.
/lexi

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



Re: problem getting started

2006-10-09 Thread Naess, Ronny
Can you paste your POM?


-Opprinnelig melding-
Fra: Bart Zagers [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 09:57
Til: users@maven.apache.org
Emne: Re: problem getting started


This doesn't really help, the intro is the same/similar as with the
basic Maven starting guide and naturally does not mention my basic (and
probably
stupid) problem.

[INFO] [compiler:testCompile]
Compiling 1 source file to D:\test\VacApp\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
Het systeem kan het opgegeven pad niet vinden.
Het systeem kan het opgegeven pad niet vinden.
[INFO]

[ERROR] BUILD FAILURE
[INFO]



The dutch system message says "The system cannot find the given path"
but I have no clue what is going wrong or where to start looking for it.

Bart.

 

mmistroni wrote:
> 
> Hello,
>   try BBWM..
> http://www.mergere.com/m2book_download.jsp
> 
> hth
>  marco
> 
> 

--
View this message in context:
http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
Sent from the Maven - Users mailing list archive at Nabble.com.


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


!DSPAM:452a00d8269594409620359!


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



Re: XDoclet problem using the Maven2 xdoclet plugin

2006-10-09 Thread Rémy Sanlaville

It seems that the XDoclet plugin does not work very welll.
One solution is to use the antrun plugin with an ejbdoclet task

See
http://www.nabble.com/-M2--Struts-and-XDoclet-tf1775233.html#a4832525
http://www.nabble.com/maven2---xdoclet-plugin-and-strutsconfigxml-tf2270128.html#a6363580
http://www.nabble.com/-M2--maven.plugin.classpath-tf2292286.html#a6366996

Rémy

2006/10/7, Morgovsky, Alexander (US - Glen Mills) <[EMAIL PROTECTED]>:


Hi.  I try to generate the XDoclet artifacts using the following
definition.  However, nothing gets produced in the target in
generated-souces/xdoclet.  In fact, no artificats anywhere are produced
when I call mvn generate-sources.  May someone please assist me in this,
as I have searched this forum and unfortunately I could not solve this
problem?  Please help if you may.  Thank you in advance.


  xdoclet-maven-plugin
  org.codehaus.mojo
  1.0-alpha-2
  

  generate-sources
  
xdoclet
  
  





  

  

  



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


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




docbook plugin

2006-10-09 Thread Aleksei Valikov

Hi folks,

Which docbook plugin would you recommend to use?

Just like many people I previously used DocBook XSLTs and builds from Hibernate 
documentation. My projects are now ported to Maven and I'd like to port 
documentation generation as well.


I've found several plugins that seem to do the job, but I got no idea which one 
is usable.


I have documents in simplified DocBook.

Bye.
/lexi

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



Re: problem getting started

2006-10-09 Thread Bart Zagers

I don't think the problem is there, it's the basic generated pom

http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  org.vac.app
  VacApp
  jar
  1.0-SNAPSHOT
  Maven Quick Start Archetype
  http://maven.apache.org
  

  junit
  junit
  3.8.1
  test

  


The only thing I have changed is the local repository in the settings.xml:
...
D:/test/repository
...

In the meantime I have tried it on a secondary machine (same jdk, same
Maven) and there it works fine.
mvn archetype:create -DgroupId=org.vac.app -DartifactId=VacApp
mvn test



Naess, Ronny wrote:
> 
> Can you paste your POM?
> 
> 
> -Opprinnelig melding-
> Fra: Bart Zagers [mailto:[EMAIL PROTECTED] 
> Sendt: 9. oktober 2006 09:57
> Til: users@maven.apache.org
> Emne: Re: problem getting started
> 
> 
> This doesn't really help, the intro is the same/similar as with the
> basic Maven starting guide and naturally does not mention my basic (and
> probably
> stupid) problem.
> 
> [INFO] [compiler:testCompile]
> Compiling 1 source file to D:\test\VacApp\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
> Het systeem kan het opgegeven pad niet vinden.
> Het systeem kan het opgegeven pad niet vinden.
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
> 
> 
> The dutch system message says "The system cannot find the given path"
> but I have no clue what is going wrong or where to start looking for it.
> 
> Bart.
> 
>  
> 
> mmistroni wrote:
>> 
>> Hello,
>>   try BBWM..
>> http://www.mergere.com/m2book_download.jsp
>> 
>> hth
>>  marco
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> !DSPAM:452a00d8269594409620359!
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-getting-started-tf2404688.html#a6713727
Sent from the Maven - Users mailing list archive at Nabble.com.


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



SV: problem getting started

2006-10-09 Thread Naess, Ronny
I agree. Not much in this pom that can og wrong. 

If you have tested it on an other machine and it workd there must be a
path issue or something like your dutch message says :-)

-Ronny

-Opprinnelig melding-
Fra: Bart Zagers [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 10:40
Til: users@maven.apache.org
Emne: Re: problem getting started


I don't think the problem is there, it's the basic generated pom

http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  org.vac.app
  VacApp
  jar
  1.0-SNAPSHOT
  Maven Quick Start Archetype
  http://maven.apache.org
  

  junit
  junit
  3.8.1
  test

  


The only thing I have changed is the local repository in the
settings.xml:
...
D:/test/repository
...

In the meantime I have tried it on a secondary machine (same jdk, same
Maven) and there it works fine.
mvn archetype:create -DgroupId=org.vac.app -DartifactId=VacApp mvn test



Naess, Ronny wrote:
> 
> Can you paste your POM?
> 
> 
> -Opprinnelig melding-
> Fra: Bart Zagers [mailto:[EMAIL PROTECTED]
> Sendt: 9. oktober 2006 09:57
> Til: users@maven.apache.org
> Emne: Re: problem getting started
> 
> 
> This doesn't really help, the intro is the same/similar as with the 
> basic Maven starting guide and naturally does not mention my basic 
> (and probably
> stupid) problem.
> 
> [INFO] [compiler:testCompile]
> Compiling 1 source file to D:\test\VacApp\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: 
> D:\test\VacApp\target\surefire-reports
> Het systeem kan het opgegeven pad niet vinden.
> Het systeem kan het opgegeven pad niet vinden.
> [INFO]
> --
> --
> [ERROR] BUILD FAILURE
> [INFO]
> --
> --
> 
> 
> The dutch system message says "The system cannot find the given path"
> but I have no clue what is going wrong or where to start looking for
it.
> 
> Bart.
> 
>  
> 
> mmistroni wrote:
>> 
>> Hello,
>>   try BBWM..
>> http://www.mergere.com/m2book_download.jsp
>> 
>> hth
>>  marco
>> 
>> 
> 
> --
> View this message in context:
> http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
> 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/problem-getting-started-tf2404688.html#a6713727
Sent from the Maven - Users mailing list archive at Nabble.com.


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


!DSPAM:452a0af411681383415936!


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



Re: problem getting started

2006-10-09 Thread Marco Mistroni

hello,
can you run mvn --debug  to have more informations?

hth
marco

On 10/9/06, Bart Zagers <[EMAIL PROTECTED]> wrote:



I don't think the problem is there, it's the basic generated pom

http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  org.vac.app
  VacApp
  jar
  1.0-SNAPSHOT
  Maven Quick Start Archetype
  http://maven.apache.org
  

  junit
  junit
  3.8.1
  test

  


The only thing I have changed is the local repository in the settings.xml:
...
D:/test/repository
...

In the meantime I have tried it on a secondary machine (same jdk, same
Maven) and there it works fine.
mvn archetype:create -DgroupId=org.vac.app -DartifactId=VacApp
mvn test



Naess, Ronny wrote:
>
> Can you paste your POM?
>
>
> -Opprinnelig melding-
> Fra: Bart Zagers [mailto:[EMAIL PROTECTED]
> Sendt: 9. oktober 2006 09:57
> Til: users@maven.apache.org
> Emne: Re: problem getting started
>
>
> This doesn't really help, the intro is the same/similar as with the
> basic Maven starting guide and naturally does not mention my basic (and
> probably
> stupid) problem.
>
> [INFO] [compiler:testCompile]
> Compiling 1 source file to D:\test\VacApp\target\test-classes
> [INFO] [surefire:test]
> [INFO] Surefire report directory: D:\test\VacApp\target\surefire-reports
> Het systeem kan het opgegeven pad niet vinden.
> Het systeem kan het opgegeven pad niet vinden.
> [INFO]
> 
> [ERROR] BUILD FAILURE
> [INFO]
> 
>
>
> The dutch system message says "The system cannot find the given path"
> but I have no clue what is going wrong or where to start looking for it.
>
> Bart.
>
>
>
> mmistroni wrote:
>>
>> Hello,
>>   try BBWM..
>> http://www.mergere.com/m2book_download.jsp
>>
>> hth
>>  marco
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/problem-getting-started-tf2404688.html#a6713163
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> !DSPAM:452a00d8269594409620359!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/problem-getting-started-tf2404688.html#a6713727
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 using Maven to run ejb3 tests.

2006-10-09 Thread Marco Mistroni

Hello,
shoudnt'  persistence.xml be included int he META-INF directory of your ejb
target classes?
because you'll need it when you deploy it on appserver...thus it  will have
to be part of your ejb3 deployment
.
personally, i m putting persitence.xml in src/main/resources/META-INF
directory and i am testing using jbosscontainerbut i m runnign
everything from cmdline...

if you want to include persistence.xml in your TESTS only, you should put it
into src/test/resources/META-INF directory

hth
marco


On 10/8/06, Watt Poosanguansit <[EMAIL PROTECTED]> wrote:


Hi,

I am new to Maven2.  I appreciate any advice.  I am
using Maven2 with Netbeans 5.5.  I created and tested
ejb3 entity beans code in Netbeans web project and
everything works find.  So I move the code to Maven
project.  It does compile fine but it has an error

No Persistence provider for EntityManager named
myPersistent

How can I add runtime classpath to include
persisten.xml in Maven2?  I am guessing that the
persistent.xml file is not in the classpath.



Thank you for any help,




Watt P.

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

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




Eclipse and web services

2006-10-09 Thread Javier Leyba

Hi

I'm trying to adapt my old ant project to maven.

My application was a web service with the following structure:

+---classes
+---etc
¦   +---xml
¦   +---wsdl
+---src


In etc/xml/ I use to have mappings needed to generate a wsdl and the
wsdl file is generated in wsdl directory.

My question is: which is the "best practices structure" in Maven for
such kind of apps ?

The second question is how to call wsdl generation task from Maven.

Also, my web services client application is outside this project but
depends of it. Should I include it inside the ws project ?


And finally, it´s posible to run maven inside Eclipse ? I´ve seen
Maven docs instructions but may be they are so old or something else
because I can found "location" option in external tools and can't
finish to configure it.

Thanks in advance

J

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



Multiple Project, Multiple POM

2006-10-09 Thread swdev

Hello,

Suppose I have the following directory structure:

+ jgtfw
. + src
.. + main
... + java
 * CrudAction.java
* pom.xml

+ osstaf
. + src
.. + main
... + webapp
* pom.xml

I want to use CrudAction.java in osstaf project, as WebWork Generic Crud
Action.

How can Maven POM accomplished this
It is very easy to solve this problem in Ant.

But how can Maven solve this multiproject dependency. I am quite new in this
Maven area.

Thank you

Regards.
Eko SW

PS: The main point is, I would like to extract common things in a WebWork
project, to another Base Project, that is JGTFW (acronym for Java Gama
Techno Frame Work). And I would like to take benefit of Maven Powerful Build
System. 
-- 
View this message in context: 
http://www.nabble.com/Multiple-Project%2C-Multiple-POM-tf2408736.html#a6714059
Sent from the Maven - Users mailing list archive at Nabble.com.


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



hexadecimals as integer parameters

2006-10-09 Thread Philippe Faes
Hi all,

I've noticed that I cannot pass hex values "0xa01" or octal values
"0755" as integer parameters. This fails in the pom, and in the source
file of the Mojo I develop ("@parameter expression="0xa01").

I'd like to submit this as a feature request, but I have no idea which
project is responsible for parsing the parameters. Can anybody point me
to the right feature tracker?

thanks

-- 
ir. Philippe Faes
Ghent University - Department ELIS
Sint-Pietersnieuwstraat 41 -- B-9000 Gent
Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
http://www.elis.UGent.be/~pfaes
ON5DEU   --   LPIC1  --  gpg-key:173720B6


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



buildnumber for maven2

2006-10-09 Thread Ravinder Singh
I want to have a buildnumber appended to each snapshot I generate.. Is
this possible using maven2?
 
I was looking at 
org.codehaus.mojo
  maven-buildnumber-plugin
But it seems that this is for maven1, or am i wrong?
 
 
Ravinder Singh
 


Re: Eclipse and web services

2006-10-09 Thread Marco Mistroni

Hello,


On 10/9/06, Javier Leyba <[EMAIL PROTECTED]> wrote:


Hi

I'm trying to adapt my old ant project to maven.

My application was a web service with the following structure:

+---classes
+---etc
¦   +---xml
¦   +---wsdl
+---src


In etc/xml/ I use to have mappings needed to generate a wsdl and the
wsdl file is generated in wsdl directory.

My question is: which is the "best practices structure" in Maven for
such kind of apps ?

The second question is how to call wsdl generation task from Maven.

Also, my web services client application is outside this project but
depends of it. Should I include it inside the ws project ?


And finally, it´s posible to run maven inside Eclipse ? I´ve seen
Maven docs instructions but may be they are so old or something else
because I can found "location" option in external tools and can't
finish to configure it.

Thanks in advance

J

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




Re: Eclipse and web services

2006-10-09 Thread Marco Mistroni

Hello,
my 2 cents here

On 10/9/06, Javier Leyba <[EMAIL PROTECTED]> wrote:


Hi

I'm trying to adapt my old ant project to maven.

My application was a web service with the following structure:

+---classes
+---etc
¦   +---xml
¦   +---wsdl
+---src


In etc/xml/ I use to have mappings needed to generate a wsdl and the
wsdl file is generated in wsdl directory.

My question is: which is the "best practices structure" in Maven for
such kind of apps ?



i think Better Builds With Maven has an example of a WebSErvice projeect

The second question is how to call wsdl generation task from Maven.


mm this is entirely up to you :)
personally, i am deploying on jboss and i m using wstools task (Jboss
specific). For that, i am calling it via maven-antrun-plugin.. below is
sample


 maven-antrun-plugin

 

 antTask
 process-classes
 
 run
 
 
  
 
 

 
 
   
   
   
   
   
   
   
   
   
   
   

   
   
   
   

   
   
 
 








Also, my web services client application is outside this project but

depends of it. Should I include it inside the ws project ?





And finally, it´s posible to run maven inside Eclipse ? I´ve seen

Maven docs instructions but may be they are so old or something else
because I can found "location" option in external tools and can't
finish to configure it.



yes it is.. there's a maven guide for eclipse.. i m using it with WTP..but i
feel more comfortable to run mvn from commandline...

hth
marco





Thanks in advance


J

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




Re: MavenProject from pom.xml

2006-10-09 Thread Kristian Nordal

On 10/6/06, Morten Kristiansen <[EMAIL PROTECTED]> wrote:


How can I load a pom.xml file from the filesystem into a MavenProject
object?



http://maven.apache.org/guides/mini/guide-embedding-m2.html

--
Cheers,
Kristian


SV: Multiple Project, Multiple POM

2006-10-09 Thread Naess, Ronny
In your osstaf/project pom create a dependency to jgtfw like this.


your.jgtfw.group.id
jgtfw
1.0-SNAPSHOT
 

When compiling osstaf the dependency will be availible as long as you av
installed jgtfw into your repository already.

In parent dir run 'mvn install' or run jgtfw/ 'mvn install' first and
then whatever for osstaf.

-Ronny

-Opprinnelig melding-
Fra: swdev [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 11:09
Til: users@maven.apache.org
Emne: Multiple Project, Multiple POM


Hello,

Suppose I have the following directory structure:

+ jgtfw
. + src
.. + main
... + java
 * CrudAction.java
* pom.xml

+ osstaf
. + src
.. + main
... + webapp
* pom.xml

I want to use CrudAction.java in osstaf project, as WebWork Generic Crud
Action.

How can Maven POM accomplished this
It is very easy to solve this problem in Ant.

But how can Maven solve this multiproject dependency. I am quite new in
this Maven area.

Thank you

Regards.
Eko SW

PS: The main point is, I would like to extract common things in a
WebWork project, to another Base Project, that is JGTFW (acronym for
Java Gama Techno Frame Work). And I would like to take benefit of Maven
Powerful Build System. 
--
View this message in context:
http://www.nabble.com/Multiple-Project%2C-Multiple-POM-tf2408736.html#a6
714059
Sent from the Maven - Users mailing list archive at Nabble.com.


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


!DSPAM:452a11ba136891492418586!


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



Re: jar and war together

2006-10-09 Thread Neeraj Bisht

hi Ronny
 i tried both way and not able to install the jar or war
actully it is installing jar but which is it installing is also wrong
while at installing it show following message

Installing
D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
1.0-SNAPSHOT.war to C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\framework\dakwar\1.0-SNAPSHOT\dakwar-
1.0-SNAPSHOT.jar

On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:


Sorry, I do not have the answer for why this is not working. Maybe you
could try it the other way around?
Change your pom to hav packaging to war, and specify maven-jar-plugin
instead.

We have more than one pom with packaging set to jar and at same time
using maven-jar-plugin spesifying test-jar goal and both jars installs
correct to our repository.

-Ronny

-Opprinnelig melding-
Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
Sendt: 9. oktober 2006 09:40
Til: Maven Users List
Emne: Re: jar and war together

i have simple pom which contain only one source and of this source i
want to make war and jar

means
1)  i have one source and genrate jar and war of same source

my pom is like


4.0.0
com.daffodilwoods.framework
dakwar
 1.0-SNAPSHOT
jar  



..




 
org.apache.maven.plugins
   maven-war-plugin
   
 
   install
   
   hi i am configuring the WarSourceDirectory.. 

   
 war
   
 
   
 
  

  package






i am able to genrate dakwar-1.0-SNAPSHOT.jar and

dakwar-1.0-SNAPSHOT.war but only able to install dakwar-1.0-SNAPSHOT.jar

in my local repository but i need both jar and war to be install in my
local repository

i am doing these operation on one source

how i can achieve this please tell

Regards

Neeraj





On 10/9/06, Naess, Ronny < [EMAIL PROTECTED]> wrote:
>
> Do you have one pom with one war artifact and one jar dependency, or
> do you have one parent pom (maven 2) with two modules/artifacts?
>
> I guess you want your jar in [war]/WEB-INF/lib when deployed to
server?
> The jar artifact should be included into lib if spesified as a
> dependency. The war plugin is responsible for collecting all artifact
> dependencies, classes and resources of the web application and
> packaging them into a web application archive.
>
> With install, do you mean install into appserver or do you mean maven
> install aka uploading to local repository? If you meant install to
> appserver take a look at Cargo,
> http://cargo.codehaus.org/Maven2+plugin,
> if the latter look at
> http://maven.apache.org/plugins/maven-install-plugin/ in short just
> run 'mvn install'. I guess it was the first you were after? :-)
>
> -Ronny
>
> -Opprinnelig melding-
> Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
> Sendt: 9. oktober 2006 08:40
> Til: users@maven.apache.org
> Emne: jar and war together
>
> hi all
> i want to install jar and war from one pom but how i can
> achieve this i do not know i tried and able to made the jar and war
> from single pom but able only to install one ,either jar or war can
> any one tell  me how  i can install or deploy both jar and war Regards

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


!DSPAM:4529fcd7162322988016950!

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




SV: buildnumber for maven2

2006-10-09 Thread Naess, Ronny
Since it not is a release i guess timestamp would solve your purposes?

Try 'mvn deploy' it uploads a timestamped artifact to your internal
repository (must be configured). It is to be considered as a stable
snapshot build.

Internal repository:


internal
scp://carrotServer1/opt/web/mavenrepos




Also

Here is a guys post of a maven-timestamp-plugin hi made and uses
http://mail-archives.apache.org/mod_mbox/geronimo-dev/200602.mbox/%3C752
[EMAIL PROTECTED]


-Ronny

-Opprinnelig melding-
Fra: Ravinder Singh [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 11:35
Til: Maven Users List
Emne: buildnumber for maven2

I want to have a buildnumber appended to each snapshot I generate.. Is
this possible using maven2?
 
I was looking at
org.codehaus.mojo
  maven-buildnumber-plugin
But it seems that this is for maven1, or am i wrong?
 
 
Ravinder Singh
 


!DSPAM:452a17e5181941367111490!

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



SV: jar and war together

2006-10-09 Thread Naess, Ronny
What, it says it installes the war to the jar? Is it replacing/moving
it? Seems like strange behavior.

Is it only the jar and now war inside C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\fr
amework\dakwar\1.0-SNAPSHOT\

If only the jar, if you look iside that jar, is it the war content you
see?

-Ronny 

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 11:52
Til: Maven Users List
Emne: Re: jar and war together

hi Ronny
  i tried both way and not able to install the jar or war actully it
is installing jar but which is it installing is also wrong while at
installing it show following message

Installing
D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
1.0-SNAPSHOT.war to C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\fr
amework\dakwar\1.0-SNAPSHOT\dakwar-
1.0-SNAPSHOT.jar

On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
>
> Sorry, I do not have the answer for why this is not working. Maybe you

> could try it the other way around?
> Change your pom to hav packaging to war, and specify maven-jar-plugin 
> instead.
>
> We have more than one pom with packaging set to jar and at same time 
> using maven-jar-plugin spesifying test-jar goal and both jars installs

> correct to our repository.
>
> -Ronny
>
> -Opprinnelig melding-
> Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
> Sendt: 9. oktober 2006 09:40
> Til: Maven Users List
> Emne: Re: jar and war together
>
> i have simple pom which contain only one source and of this source i 
> want to make war and jar
>
> means
> 1)  i have one source and genrate jar and war of same source
>
> my pom is like
>
> 
> 4.0.0
> com.daffodilwoods.framework
> dakwar
>  1.0-SNAPSHOT
> jar   
> 
> 
>
> ..
> 
> 
>
>
>  
> org.apache.maven.plugins
>maven-war-plugin
>
>  
>install
>
>hi i am configuring the WarSourceDirectory.. 
> 
>
>  war
>
>  
>
>  
>   
>
>   package
> 
>
> 
>
>
>
> i am able to genrate dakwar-1.0-SNAPSHOT.jar and
>
> dakwar-1.0-SNAPSHOT.war but only able to install 
> dakwar-1.0-SNAPSHOT.jar
>
> in my local repository but i need both jar and war to be install in my

> local repository
>
> i am doing these operation on one source
>
> how i can achieve this please tell
>
> Regards
>
> Neeraj
>
>
>
>
>
> On 10/9/06, Naess, Ronny < [EMAIL PROTECTED]> wrote:
> >
> > Do you have one pom with one war artifact and one jar dependency, or

> > do you have one parent pom (maven 2) with two modules/artifacts?
> >
> > I guess you want your jar in [war]/WEB-INF/lib when deployed to
> server?
> > The jar artifact should be included into lib if spesified as a 
> > dependency. The war plugin is responsible for collecting all 
> > artifact dependencies, classes and resources of the web application 
> > and packaging them into a web application archive.
> >
> > With install, do you mean install into appserver or do you mean 
> > maven install aka uploading to local repository? If you meant 
> > install to appserver take a look at Cargo, 
> > http://cargo.codehaus.org/Maven2+plugin,
> > if the latter look at
> > http://maven.apache.org/plugins/maven-install-plugin/ in short just 
> > run 'mvn install'. I guess it was the first you were after? :-)
> >
> > -Ronny
> >
> > -Opprinnelig melding-
> > Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
> > Sendt: 9. oktober 2006 08:40
> > Til: users@maven.apache.org
> > Emne: jar and war together
> >
> > hi all
> > i want to install jar and war from one pom but how i can 
> > achieve this i do not know i tried and able to made the jar and war 
> > from single pom but able only to install one ,either jar or war can 
> > any one tell  me how  i can install or deploy both jar and war 
> > Regards
>
> > Neeraj
> >
> >
> >
> >
> > 
> > - 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]
>
>


!DSPAM:452a1d98252891709321452!

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



War file with other suffix

2006-10-09 Thread Per Norrman

Hi,

we develop SIP servlets which are packaged in SAR files--just like WAR files
but with a SIP  servlet specific descriptor added, sip.xml, and a '.sar'
extension. This works very well using the maven-war-plugin. However, I just
cannot find a way to control the file extension--it seems to be hard coded
as '.war'.  What would be the best way to fix this?  Have I overlooked
something obvious? I know, a small issue but somewhar irritating.

/per norrman
-- 
View this message in context: 
http://www.nabble.com/War-file-with-other-suffix-tf2409127.html#a6715100
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: jar and war together

2006-10-09 Thread Mark Struberg
please take a short look at my last comment in MWAR-73

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

I patched the maven-war-plugin to also generate an
attached artifact with the jar-ed WEB-INF/classes if
you set archiveClasses=true.
This attached artifact may later be requested as
dependency in another pom.

If you find it usefull, then i will provide a patch in
jira.

best regards,
strub


--- Neeraj Bisht <[EMAIL PROTECTED]>
schrieb:

> hi Ronny
>   i tried both way and not able to install the
> jar or war
> actully it is installing jar but which is it
> installing is also wrong
> while at installing it show following message
> 
> Installing
>
D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
> 1.0-SNAPSHOT.war to C:\Documents and
>
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\framework\dakwar\1.0-SNAPSHOT\dakwar-
> 1.0-SNAPSHOT.jar
> 
> On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]>
> wrote:
> >
> > Sorry, I do not have the answer for why this is
> not working. Maybe you
> > could try it the other way around?
> > Change your pom to hav packaging to war, and
> specify maven-jar-plugin
> > instead.
> >
> > We have more than one pom with packaging set to
> jar and at same time
> > using maven-jar-plugin spesifying test-jar goal
> and both jars installs
> > correct to our repository.
> >
> > -Ronny
> >
> > -Opprinnelig melding-
> > Fra: neeraj daffodil
> [mailto:[EMAIL PROTECTED]
> > Sendt: 9. oktober 2006 09:40
> > Til: Maven Users List
> > Emne: Re: jar and war together
> >
> > i have simple pom which contain only one source
> and of this source i
> > want to make war and jar
> >
> > means
> > 1)  i have one source and genrate jar and war of
> same source
> >
> > my pom is like
> >
> > 
> > 4.0.0
> > com.daffodilwoods.framework
> > dakwar
> >  1.0-SNAPSHOT
> > jar  
> > 
> > 
> >
> > ..
> > 
> > 
> >
> >
> >  
> > org.apache.maven.plugins
> >maven-war-plugin
> >
> >  
> >install
> >
> >hi i am configuring the
> WarSourceDirectory.. 
> > 
> >
> >  war
> >
> >  
> >
> >  
> >   
> >
> >   package
> > 
> >
> > 
> >
> >
> >
> > i am able to genrate dakwar-1.0-SNAPSHOT.jar and
> >
> > dakwar-1.0-SNAPSHOT.war but only able to install
> dakwar-1.0-SNAPSHOT.jar
> >
> > in my local repository but i need both jar and war
> to be install in my
> > local repository
> >
> > i am doing these operation on one source
> >
> > how i can achieve this please tell
> >
> > Regards
> >
> > Neeraj
> >
> >
> >
> >
> >
> > On 10/9/06, Naess, Ronny < [EMAIL PROTECTED]>
> wrote:
> > >
> > > Do you have one pom with one war artifact and
> one jar dependency, or
> > > do you have one parent pom (maven 2) with two
> modules/artifacts?
> > >
> > > I guess you want your jar in [war]/WEB-INF/lib
> when deployed to
> > server?
> > > The jar artifact should be included into lib if
> spesified as a
> > > dependency. The war plugin is responsible for
> collecting all artifact
> > > dependencies, classes and resources of the web
> application and
> > > packaging them into a web application archive.
> > >
> > > With install, do you mean install into appserver
> or do you mean maven
> > > install aka uploading to local repository? If
> you meant install to
> > > appserver take a look at Cargo,
> > > http://cargo.codehaus.org/Maven2+plugin,
> > > if the latter look at
> > >
>
http://maven.apache.org/plugins/maven-install-plugin/
> in short just
> > > run 'mvn install'. I guess it was the first you
> were after? :-)
> > >
> > > -Ronny
> > >
> > > -Opprinnelig melding-
> > > Fra: Neeraj Bisht [mailto:
> [EMAIL PROTECTED]
> > > Sendt: 9. oktober 2006 08:40
> > > Til: users@maven.apache.org
> > > Emne: jar and war together
> > >
> > > hi all
> > > i want to install jar and war from one
> pom but how i can
> > > achieve this i do not know i tried and able to
> made the jar and war
> > > from single pom but able only to install one
> ,either jar or war can
> > > any one tell  me how  i can install or deploy
> both jar and war Regards
> >
> > > Neeraj
> > >
> > >
> > >
> > >
> > >
>
-
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > !DSPAM:4529fcd7162322988016950!
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 







___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de

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

Warnings accessing M1 repository

2006-10-09 Thread Sybren Stüvel
Hi there,

I'm moving our projects from Maven 1 to Maven 2, and things are looking
good. When running Maven 2 I do get a list of warnings:

Downloading: http://repo1.maven.org/maven2/jaxb/xalan/1.2.6/xalan-1.2.6.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/mailapi/mailapi/1.3.1/mailapi-1.3.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/opensymphony/oscache/2.2/oscache-2.2.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/oracle/classes12/0.0/classes12-0.0.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

Those are all POM files for JARs in my local Maven 1 repository.

Is there a way to convert my M1 repository to M2, or at least
automatically create those POM files so that the web isn't accessed for
each and every one of them, every time I run a mvn command?

Greetings,
-- 
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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



Re: Building POMs

2006-10-09 Thread Elliotte Harold

Elliotte Harold wrote:
How do I set up Maven 1.0.2 to generate a POM file? It used to do this 
automatically with "maven dist:deploy" but since we shifted over to 
WebDAV deployment that no longer happens. Jaxen has no POM for beta 10 
or 11 at this point.




Wait a minute. Is the POM file just the project.xml file with a 
different name? If so I think I can figure this out.


--
Elliotte Rusty Harold  [EMAIL PROTECTED]
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

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



SV: Building POMs

2006-10-09 Thread Naess, Ronny
Yes, that is correct. 

-Opprinnelig melding-
Fra: Elliotte Harold [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 12:57
Til: Maven Users List
Kopi: [EMAIL PROTECTED]
Emne: Re: Building POMs

Elliotte Harold wrote:
> How do I set up Maven 1.0.2 to generate a POM file? It used to do this 
> automatically with "maven dist:deploy" but since we shifted over to 
> WebDAV deployment that no longer happens. Jaxen has no POM for beta 10 
> or 11 at this point.
> 

Wait a minute. Is the POM file just the project.xml file with a different name? 
If so I think I can figure this out.

--
Elliotte Rusty Harold  [EMAIL PROTECTED] Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

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


!DSPAM:452a2b31136411709321452!



SV: Warnings accessing M1 repository

2006-10-09 Thread Naess, Ronny
Try http://repo1.maven.org/maven/ instead

-Ronny 

-Opprinnelig melding-
Fra: Sybren Stüvel [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 12:46
Til: users@maven.apache.org
Emne: Warnings accessing M1 repository

Hi there,

I'm moving our projects from Maven 1 to Maven 2, and things are looking good. 
When running Maven 2 I do get a list of warnings:

Downloading: http://repo1.maven.org/maven2/jaxb/xalan/1.2.6/xalan-1.2.6.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/mailapi/mailapi/1.3.1/mailapi-1.3.1.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/opensymphony/oscache/2.2/oscache-2.2.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
Downloading:
http://repo1.maven.org/maven2/oracle/classes12/0.0/classes12-0.0.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)

Those are all POM files for JARs in my local Maven 1 repository.

Is there a way to convert my M1 repository to M2, or at least automatically 
create those POM files so that the web isn't accessed for each and every one of 
them, every time I run a mvn command?

Greetings,
--
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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


!DSPAM:452a2abc124351926716756!


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



Re: SV: Warnings accessing M1 repository

2006-10-09 Thread Sybren Stüvel
I have put this into $M2_HOME/conf/settings.xml, but still I get the
warnings:


  jdk-1.4
  

  
  

  m1-repository
  Maven 1.x Repository
  http://repo1.maven.org/maven/


  
true
  
  my-m2-repository
  Maven 2.x Repository
  file://C:/Documents and Settings/syst/.m2/repository


  
true
  
  my-m1-repository
  Maven 1.x Repository
  file://C:/Documents and Settings/syst/.maven/repository
  legacy

  


Am I overlooking something?

Sybren

Naess, Ronny wrote:
> Try http://repo1.maven.org/maven/ instead
> 
> -Ronny 
> 
> -Opprinnelig melding-
> Fra: Sybren Stüvel [mailto:[EMAIL PROTECTED] 
> Sendt: 9. oktober 2006 12:46
> Til: users@maven.apache.org
> Emne: Warnings accessing M1 repository
> 
> Hi there,
> 
> I'm moving our projects from Maven 1 to Maven 2, and things are looking good. 
> When running Maven 2 I do get a list of warnings:
> 
> Downloading: http://repo1.maven.org/maven2/jaxb/xalan/1.2.6/xalan-1.2.6.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/mailapi/mailapi/1.3.1/mailapi-1.3.1.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/opensymphony/oscache/2.2/oscache-2.2.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/oracle/classes12/0.0/classes12-0.0.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> 
> Those are all POM files for JARs in my local Maven 1 repository.
> 
> Is there a way to convert my M1 repository to M2, or at least automatically 
> create those POM files so that the web isn't accessed for each and every one 
> of them, every time I run a mvn command?
> 
> Greetings,
> --
> Sybren Stüvel <[EMAIL PROTECTED]>
> Software Engineer CHESS iBusiness
> Nieuwe Gracht 13, Haarlem
> Postbus 5021, 2000 CA Haarlem
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> !DSPAM:452a2abc124351926716756!
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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



SV: Warnings accessing M1 repository

2006-10-09 Thread Naess, Ronny
Sorry, I read you where converting the other way :-) I don not belive you can 
reference maven 1 dependencies without a maven 2 pom. 

You might need to concider upgrading your dependencies, or you can upload the 
needed dependencies to you internal repository if not found on a public one 
with maven-deploy-plugin.

-Ronny 

-Opprinnelig melding-
Fra: Sybren Stüvel [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:09
Til: Maven Users List
Emne: Re: SV: Warnings accessing M1 repository

I have put this into $M2_HOME/conf/settings.xml, but still I get the
warnings:


  jdk-1.4
  

  
  

  m1-repository
  Maven 1.x Repository
  http://repo1.maven.org/maven/


  
true
  
  my-m2-repository
  Maven 2.x Repository
  file://C:/Documents and Settings/syst/.m2/repository


  
true
  
  my-m1-repository
  Maven 1.x Repository
  file://C:/Documents and Settings/syst/.maven/repository
  legacy

  


Am I overlooking something?

Sybren

Naess, Ronny wrote:
> Try http://repo1.maven.org/maven/ instead
> 
> -Ronny
> 
> -Opprinnelig melding-
> Fra: Sybren Stüvel [mailto:[EMAIL PROTECTED]
> Sendt: 9. oktober 2006 12:46
> Til: users@maven.apache.org
> Emne: Warnings accessing M1 repository
> 
> Hi there,
> 
> I'm moving our projects from Maven 1 to Maven 2, and things are looking good. 
> When running Maven 2 I do get a list of warnings:
> 
> Downloading: 
> http://repo1.maven.org/maven2/jaxb/xalan/1.2.6/xalan-1.2.6.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/mailapi/mailapi/1.3.1/mailapi-1.3.1.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/opensymphony/oscache/2.2/oscache-2.2.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> Downloading:
> http://repo1.maven.org/maven2/oracle/classes12/0.0/classes12-0.0.pom
> [WARNING] Unable to get resource from repository central
> (http://repo1.maven.org/maven2)
> 
> Those are all POM files for JARs in my local Maven 1 repository.
> 
> Is there a way to convert my M1 repository to M2, or at least automatically 
> create those POM files so that the web isn't accessed for each and every one 
> of them, every time I run a mvn command?
> 
> Greetings,
> --
> Sybren Stüvel <[EMAIL PROTECTED]> Software Engineer CHESS 
> iBusiness Nieuwe Gracht 13, Haarlem Postbus 5021, 2000 CA Haarlem
> 
> -
> 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]
> 

--
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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


!DSPAM:452a2de9151069724523251!


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



Re: SV: Warnings accessing M1 repository

2006-10-09 Thread Sybren Stüvel
I can manually install every JAR file in my local M1 repository into the
M2 repository, but that would be rather time consuming. Isn't there a
tool that can convert a M1 repos to M2 format?

Sybren

Naess, Ronny wrote:
> Sorry, I read you where converting the other way :-) I don not belive
> you can reference maven 1 dependencies without a maven 2 pom.
> 
> You might need to concider upgrading your dependencies, or you can
> upload the needed dependencies to you internal repository if not found
> on a public one with maven-deploy-plugin.
> 


-- 
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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



Re: jar and war together

2006-10-09 Thread Neeraj Bisht

yes inside jar , i  seen war content



On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:


What, it says it installes the war to the jar? Is it replacing/moving
it? Seems like strange behavior.

Is it only the jar and now war inside C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\fr
amework\dakwar\1.0-SNAPSHOT\

If only the jar, if you look iside that jar, is it the war content you
see?

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
Sendt: 9. oktober 2006 11:52
Til: Maven Users List
Emne: Re: jar and war together

hi Ronny
 i tried both way and not able to install the jar or war actully it
is installing jar but which is it installing is also wrong while at
installing it show following message

Installing
D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
1.0-SNAPSHOT.war to C:\Documents and
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\fr
amework\dakwar\1.0-SNAPSHOT\dakwar-
1.0-SNAPSHOT.jar

On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
>
> Sorry, I do not have the answer for why this is not working. Maybe you

> could try it the other way around?
> Change your pom to hav packaging to war, and specify maven-jar-plugin
> instead.
>
> We have more than one pom with packaging set to jar and at same time
> using maven-jar-plugin spesifying test-jar goal and both jars installs

> correct to our repository.
>
> -Ronny
>
> -Opprinnelig melding-
> Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
> Sendt: 9. oktober 2006 09:40
> Til: Maven Users List
> Emne: Re: jar and war together
>
> i have simple pom which contain only one source and of this source i
> want to make war and jar
>
> means
> 1)  i have one source and genrate jar and war of same source
>
> my pom is like
>
> 
> 4.0.0
> com.daffodilwoods.framework
> dakwar
>  1.0-SNAPSHOT
> jar  
> 
> 
>
> ..
> 
> 
>
>
>  
> org.apache.maven.plugins
>maven-war-plugin
>
>  
>install
>
>hi i am configuring the WarSourceDirectory.. 
> 
>
>  war
>
>  
>
>  
>   
>
>   package
> 
>
> 
>
>
>
> i am able to genrate dakwar-1.0-SNAPSHOT.jar and
>
> dakwar-1.0-SNAPSHOT.war but only able to install
> dakwar-1.0-SNAPSHOT.jar
>
> in my local repository but i need both jar and war to be install in my

> local repository
>
> i am doing these operation on one source
>
> how i can achieve this please tell
>
> Regards
>
> Neeraj
>
>
>
>
>
> On 10/9/06, Naess, Ronny < [EMAIL PROTECTED]> wrote:
> >
> > Do you have one pom with one war artifact and one jar dependency, or

> > do you have one parent pom (maven 2) with two modules/artifacts?
> >
> > I guess you want your jar in [war]/WEB-INF/lib when deployed to
> server?
> > The jar artifact should be included into lib if spesified as a
> > dependency. The war plugin is responsible for collecting all
> > artifact dependencies, classes and resources of the web application
> > and packaging them into a web application archive.
> >
> > With install, do you mean install into appserver or do you mean
> > maven install aka uploading to local repository? If you meant
> > install to appserver take a look at Cargo,
> > http://cargo.codehaus.org/Maven2+plugin,
> > if the latter look at
> > http://maven.apache.org/plugins/maven-install-plugin/ in short just
> > run 'mvn install'. I guess it was the first you were after? :-)
> >
> > -Ronny
> >
> > -Opprinnelig melding-
> > Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
> > Sendt: 9. oktober 2006 08:40
> > Til: users@maven.apache.org
> > Emne: jar and war together
> >
> > hi all
> > i want to install jar and war from one pom but how i can
> > achieve this i do not know i tried and able to made the jar and war
> > from single pom but able only to install one ,either jar or war can
> > any one tell  me how  i can install or deploy both jar and war
> > Regards
>
> > Neeraj
> >
> >
> >
> >
> > 
> > - 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]
>
>


!DSPAM:452a1d98252891709321452!

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




dependency quirck?

2006-10-09 Thread Jeroen Verhagen

Hi all,

I'm having a problem a with servlet-api jar being deployed even though
its scope is set to compile.

I'm exploring mvn by creating a webapplication that is divided into
two modules. A core module generating a jar and containing servlets,
Spring controlllers. A web module contains the jsp's, web.xml etc.
This is the way, right?

The core module has a dependency on the servlet-api jar for
compilation (compile). The web module has a ofcourse a
dependency on the core module. However the problem is that when the
web module is deployed (war and exploded dir) the servlet-api is also
deployed, eventhough it's scope in the core pom is set to compile.

What's causing this? It's a problem because I think the deployment on
Tomcat takes longer and it complains about an offending class:

INFO: 
validateJarFile(C:\java\jakarta-tomcat-5.5.9\webapps\web\WEB-INF\lib\servlet-api-2.4.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class

Thanks for any help,

Jeroen

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



Including test classes in snapshot jar

2006-10-09 Thread Sybren Stüvel
Hi folks,

I'd like to make a snapshot jar from a project, including the test
classes, and install it into my local M2 repository. Is there some
plugin I can use for that?

Greetings,
-- 
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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



SV: dependency quirck?

2006-10-09 Thread Naess, Ronny
Compile scope is included in classpath. Try scope = provided 

More on scopes
http://maven.apache.org/guides/introduction/introduction-to-dependency-m
echanism.html

-Ronny

 

-Opprinnelig melding-
Fra: Jeroen Verhagen [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:22
Til: users@maven.apache.org
Emne: dependency quirck?

Hi all,

I'm having a problem a with servlet-api jar being deployed even though
its scope is set to compile.

I'm exploring mvn by creating a webapplication that is divided into two
modules. A core module generating a jar and containing servlets, Spring
controlllers. A web module contains the jsp's, web.xml etc.
This is the way, right?

The core module has a dependency on the servlet-api jar for compilation
(compile). The web module has a ofcourse a dependency on
the core module. However the problem is that when the web module is
deployed (war and exploded dir) the servlet-api is also deployed,
eventhough it's scope in the core pom is set to compile.

What's causing this? It's a problem because I think the deployment on
Tomcat takes longer and it complains about an offending class:

INFO:
validateJarFile(C:\java\jakarta-tomcat-5.5.9\webapps\web\WEB-INF\lib\ser
vlet-api-2.4.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class

Thanks for any help,

Jeroen

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


!DSPAM:452a30ed225875315134984!


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



SV: jar and war together

2006-10-09 Thread Naess, Ronny
Did you take a look at what Mark Struberg wrote?  

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:19
Til: Maven Users List
Emne: Re: jar and war together

yes inside jar , i  seen war content



On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
>
> What, it says it installes the war to the jar? Is it replacing/moving 
> it? Seems like strange behavior.
>
> Is it only the jar and now war inside C:\Documents and 
> Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\
> fr
> amework\dakwar\1.0-SNAPSHOT\
>
> If only the jar, if you look iside that jar, is it the war content you

> see?
>
> -Ronny
>
> -Opprinnelig melding-
> Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
> Sendt: 9. oktober 2006 11:52
> Til: Maven Users List
> Emne: Re: jar and war together
>
> hi Ronny
>  i tried both way and not able to install the jar or war actully 
> it is installing jar but which is it installing is also wrong while at

> installing it show following message
>
> Installing
> D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
> 1.0-SNAPSHOT.war to C:\Documents and
> Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\
> fr
> amework\dakwar\1.0-SNAPSHOT\dakwar-
> 1.0-SNAPSHOT.jar
>
> On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
> >
> > Sorry, I do not have the answer for why this is not working. Maybe 
> > you
>
> > could try it the other way around?
> > Change your pom to hav packaging to war, and specify 
> > maven-jar-plugin instead.
> >
> > We have more than one pom with packaging set to jar and at same time

> > using maven-jar-plugin spesifying test-jar goal and both jars 
> > installs
>
> > correct to our repository.
> >
> > -Ronny
> >
> > -Opprinnelig melding-
> > Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
> > Sendt: 9. oktober 2006 09:40
> > Til: Maven Users List
> > Emne: Re: jar and war together
> >
> > i have simple pom which contain only one source and of this source i

> > want to make war and jar
> >
> > means
> > 1)  i have one source and genrate jar and war of same source
> >
> > my pom is like
> >
> > 
> > 4.0.0
> > com.daffodilwoods.framework
> > dakwar
> >  1.0-SNAPSHOT
> > jar   
> > 
> > 
> >
> > ..
> > 
> > 
> >
> >
> >  
> > org.apache.maven.plugins
> >maven-war-plugin
> >
> >  
> >install
> >
> >hi i am configuring the WarSourceDirectory..

> > 
> >
> >  war
> >
> >  
> >
> >  
> >   
> >
> >   package
> > 
> >
> > 
> >
> >
> >
> > i am able to genrate dakwar-1.0-SNAPSHOT.jar and
> >
> > dakwar-1.0-SNAPSHOT.war but only able to install 
> > dakwar-1.0-SNAPSHOT.jar
> >
> > in my local repository but i need both jar and war to be install in 
> > my
>
> > local repository
> >
> > i am doing these operation on one source
> >
> > how i can achieve this please tell
> >
> > Regards
> >
> > Neeraj
> >
> >
> >
> >
> >
> > On 10/9/06, Naess, Ronny < [EMAIL PROTECTED]> wrote:
> > >
> > > Do you have one pom with one war artifact and one jar dependency, 
> > > or
>
> > > do you have one parent pom (maven 2) with two modules/artifacts?
> > >
> > > I guess you want your jar in [war]/WEB-INF/lib when deployed to
> > server?
> > > The jar artifact should be included into lib if spesified as a 
> > > dependency. The war plugin is responsible for collecting all 
> > > artifact dependencies, classes and resources of the web 
> > > application and packaging them into a web application archive.
> > >
> > > With install, do you mean install into appserver or do you mean 
> > > maven install aka uploading to local repository? If you meant 
> > > install to appserver take a look at Cargo, 
> > > http://cargo.codehaus.org/Maven2+plugin,
> > > if the latter look at
> > > http://maven.apache.org/plugins/maven-install-plugin/ in short 
> > > just run 'mvn install'. I guess it was the first you were after? 
> > > :-)
> > >
> > > -Ronny
> > >
> > > -Opprinnelig melding-
> > > Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
> > > Sendt: 9. oktober 2006 08:40
> > > Til: users@maven.apache.org
> > > Emne: jar and war together
> > >
> > > hi all
> > > i want to install jar and war from one pom but how i can 
> > > achieve this i do not know i tried and able to made the jar and 
> > > war from single pom but able only to install one ,either jar or 
> > > war can any one tell  me how  i can install or deploy both jar and

> > > war Regards
> >
> > > Neeraj
> > >
> > >
> > >
> > >
> > > --
> > > --
> > > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For add

Re: Eclipse and web services

2006-10-09 Thread Javier Leyba

On 10/9/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:



yes it is.. there's a maven guide for eclipse.. i m using it with WTP..but i
feel more comfortable to run mvn from commandline...




Hi

The guide you told me is the one that I' ve read.

May be another eclipse user could give me a clue.

Thanks.

J

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



SV: Including test classes in snapshot jar

2006-10-09 Thread Naess, Ronny
One way is to use maven-jar-plugin and spesify test-jar goal. This gives you a 
jar containing test classes and test resources in addition to the main jar.

I the jar you want to also genrerate a test-jar for:




org.apache.maven.plugins
maven-jar-plugin



test-jar



 




In a artifact where you want to include your already installed artifact and 
test-jar


groupId
artifactId
1.0-SNAPSHOT 


groupId
artifactId
1.0-SNAPSHOT
test-jar
test


-Ronny

-Opprinnelig melding-
Fra: Sybren Stüvel [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:27
Til: Maven users mailinglist
Emne: Including test classes in snapshot jar

Hi folks,

I'd like to make a snapshot jar from a project, including the test classes, and 
install it into my local M2 repository. Is there some plugin I can use for that?

Greetings,
--
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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


!DSPAM:452a3239205091336712104!


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



java2wsdl

2006-10-09 Thread Javier Leyba

Hi

I'm trying to generate wsdl file from my java code so I did:

---



org.codehaus.mojo
axistools-maven-plugin


src/main/resources/META-INF/wsdl

true
false
 
  com.bs.proteo.notifications.service.NotificationsPortSoapBindingImpl

http://dummy-url

urn:com:bs:proteo:notifications


1.2

NotificationsPort
notifications.wsdl




wsdl2java






---

But when I run the task I got:

[INFO] [axistools:wsdl2java]
[INFO] about to add compile source root
[INFO] Nothing to generate. All WSDL files are up to date.
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Oct 09 13:48:03 CEST 2006
[INFO] Final Memory: 3M/6M
[INFO] 

But no wsdl file was generated !!!

I noticed that parameters in docs are not explained so, may be I'm
asuming a parameter use in a wrong way.

I've no idea about how to use required parameters "filename" and
"project" and wich parameter allow me to say which is my webservice
interface.


Thanks in advance

J

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



Re: SV: Including test classes in snapshot jar

2006-10-09 Thread Sybren Stüvel
This works like a charm, thanks!!

Sybren

Naess, Ronny wrote:
> One way is to use maven-jar-plugin and spesify test-jar goal. This gives you 
> a jar containing test classes and test resources in addition to the main jar.
> 
> I the jar you want to also genrerate a test-jar for:
> 
>   
>   
>   
>   org.apache.maven.plugins
>   maven-jar-plugin
>   
>   
>   
>   test-jar
>   
>   
>   
>
>   
>   
> 
> 
> In a artifact where you want to include your already installed artifact and 
> test-jar
> 
>   
>   groupId
>   artifactId
>   1.0-SNAPSHOT 
>   
>   
>   groupId
>   artifactId
>   1.0-SNAPSHOT
>   test-jar
>   test
>   
> 
> -Ronny


-- 
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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



Re: dependency quirck?

2006-10-09 Thread Jeroen Verhagen

Hi Ronny,

On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:

Compile scope is included in classpath. Try scope = provided


I tried that, made sure everything was cleaned but the servlet-api jar
is still there.

regards,

Jeroen

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



Re: SV: Warnings accessing M1 repository

2006-10-09 Thread Wim Deblauwe

From what I have understood is that in M1, you can easily create a

repository "by hand", but in M2, this is much harder. It is better to use
Proximity to create your repository (if you are talking about a company-wide
'local' repository) or just let M2 download the correct dependencies from
ibiblio if that is an option.

regards,

Wim

2006/10/9, Sybren Stüvel <[EMAIL PROTECTED]>:


I can manually install every JAR file in my local M1 repository into the
M2 repository, but that would be rather time consuming. Isn't there a
tool that can convert a M1 repos to M2 format?

Sybren

Naess, Ronny wrote:
> Sorry, I read you where converting the other way :-) I don not belive
> you can reference maven 1 dependencies without a maven 2 pom.
>
> You might need to concider upgrading your dependencies, or you can
> upload the needed dependencies to you internal repository if not found
> on a public one with maven-deploy-plugin.
>


--
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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




Re: jar and war together

2006-10-09 Thread Neeraj Bisht

at what extend i understand his thought i tried but get the same result as
it was

On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:


Did you take a look at what Mark Struberg wrote?

-Ronny

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
Sendt: 9. oktober 2006 13:19
Til: Maven Users List
Emne: Re: jar and war together

yes inside jar , i  seen war content



On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
>
> What, it says it installes the war to the jar? Is it replacing/moving
> it? Seems like strange behavior.
>
> Is it only the jar and now war inside C:\Documents and
> Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\
> fr
> amework\dakwar\1.0-SNAPSHOT\
>
> If only the jar, if you look iside that jar, is it the war content you

> see?
>
> -Ronny
>
> -Opprinnelig melding-
> Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
> Sendt: 9. oktober 2006 11:52
> Til: Maven Users List
> Emne: Re: jar and war together
>
> hi Ronny
>  i tried both way and not able to install the jar or war actully
> it is installing jar but which is it installing is also wrong while at

> installing it show following message
>
> Installing
> D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwar-
> 1.0-SNAPSHOT.war to C:\Documents and
> Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwoods\
> fr
> amework\dakwar\1.0-SNAPSHOT\dakwar-
> 1.0-SNAPSHOT.jar
>
> On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
> >
> > Sorry, I do not have the answer for why this is not working. Maybe
> > you
>
> > could try it the other way around?
> > Change your pom to hav packaging to war, and specify
> > maven-jar-plugin instead.
> >
> > We have more than one pom with packaging set to jar and at same time

> > using maven-jar-plugin spesifying test-jar goal and both jars
> > installs
>
> > correct to our repository.
> >
> > -Ronny
> >
> > -Opprinnelig melding-
> > Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
> > Sendt: 9. oktober 2006 09:40
> > Til: Maven Users List
> > Emne: Re: jar and war together
> >
> > i have simple pom which contain only one source and of this source i

> > want to make war and jar
> >
> > means
> > 1)  i have one source and genrate jar and war of same source
> >
> > my pom is like
> >
> > 
> > 4.0.0
> > com.daffodilwoods.framework
> > dakwar
> >  1.0-SNAPSHOT
> > jar  
> > 
> > 
> >
> > ..
> > 
> > 
> >
> >
> >  
> > org.apache.maven.plugins
> >maven-war-plugin
> >
> >  
> >install
> >
> >hi i am configuring the WarSourceDirectory..

> > 
> >
> >  war
> >
> >  
> >
> >  
> >   
> >
> >   package
> > 
> >
> > 
> >
> >
> >
> > i am able to genrate dakwar-1.0-SNAPSHOT.jar and
> >
> > dakwar-1.0-SNAPSHOT.war but only able to install
> > dakwar-1.0-SNAPSHOT.jar
> >
> > in my local repository but i need both jar and war to be install in
> > my
>
> > local repository
> >
> > i am doing these operation on one source
> >
> > how i can achieve this please tell
> >
> > Regards
> >
> > Neeraj
> >
> >
> >
> >
> >
> > On 10/9/06, Naess, Ronny < [EMAIL PROTECTED]> wrote:
> > >
> > > Do you have one pom with one war artifact and one jar dependency,
> > > or
>
> > > do you have one parent pom (maven 2) with two modules/artifacts?
> > >
> > > I guess you want your jar in [war]/WEB-INF/lib when deployed to
> > server?
> > > The jar artifact should be included into lib if spesified as a
> > > dependency. The war plugin is responsible for collecting all
> > > artifact dependencies, classes and resources of the web
> > > application and packaging them into a web application archive.
> > >
> > > With install, do you mean install into appserver or do you mean
> > > maven install aka uploading to local repository? If you meant
> > > install to appserver take a look at Cargo,
> > > http://cargo.codehaus.org/Maven2+plugin,
> > > if the latter look at
> > > http://maven.apache.org/plugins/maven-install-plugin/ in short
> > > just run 'mvn install'. I guess it was the first you were after?
> > > :-)
> > >
> > > -Ronny
> > >
> > > -Opprinnelig melding-
> > > Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
> > > Sendt: 9. oktober 2006 08:40
> > > Til: users@maven.apache.org
> > > Emne: jar and war together
> > >
> > > hi all
> > > i want to install jar and war from one pom but how i can
> > > achieve this i do not know i tried and able to made the jar and
> > > war from single pom but able only to install one ,either jar or
> > > war can any one tell  me how  i can install or deploy both jar and

> > > war Regards
> >
> > > Neeraj
> > >
> > >
> > >
> > >
> > > --
> > > --
> > > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >
> > --

SV: jar and war together

2006-10-09 Thread Naess, Ronny
He provided a patch to be used. That shuld solve the problem. Maybe Mark
kan give you som further information in how to use that patch?

-Ronny 

-Opprinnelig melding-
Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 14:04
Til: Maven Users List
Emne: Re: jar and war together

at what extend i understand his thought i tried but get the same result
as it was

On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
>
> Did you take a look at what Mark Struberg wrote?
>
> -Ronny
>
> -Opprinnelig melding-
> Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
> Sendt: 9. oktober 2006 13:19
> Til: Maven Users List
> Emne: Re: jar and war together
>
> yes inside jar , i  seen war content
>
>
>
> On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
> >
> > What, it says it installes the war to the jar? Is it 
> > replacing/moving it? Seems like strange behavior.
> >
> > Is it only the jar and now war inside C:\Documents and 
> > Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwood
> > s\
> > fr
> > amework\dakwar\1.0-SNAPSHOT\
> >
> > If only the jar, if you look iside that jar, is it the war content 
> > you
>
> > see?
> >
> > -Ronny
> >
> > -Opprinnelig melding-
> > Fra: Neeraj Bisht [mailto:[EMAIL PROTECTED]
> > Sendt: 9. oktober 2006 11:52
> > Til: Maven Users List
> > Emne: Re: jar and war together
> >
> > hi Ronny
> >  i tried both way and not able to install the jar or war actully

> > it is installing jar but which is it installing is also wrong while 
> > at
>
> > installing it show following message
> >
> > Installing
> > D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwa
> > r- 1.0-SNAPSHOT.war to C:\Documents and 
> > Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwood
> > s\
> > fr
> > amework\dakwar\1.0-SNAPSHOT\dakwar-
> > 1.0-SNAPSHOT.jar
> >
> > On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
> > >
> > > Sorry, I do not have the answer for why this is not working. Maybe

> > > you
> >
> > > could try it the other way around?
> > > Change your pom to hav packaging to war, and specify 
> > > maven-jar-plugin instead.
> > >
> > > We have more than one pom with packaging set to jar and at same 
> > > time
>
> > > using maven-jar-plugin spesifying test-jar goal and both jars 
> > > installs
> >
> > > correct to our repository.
> > >
> > > -Ronny
> > >
> > > -Opprinnelig melding-
> > > Fra: neeraj daffodil [mailto:[EMAIL PROTECTED]
> > > Sendt: 9. oktober 2006 09:40
> > > Til: Maven Users List
> > > Emne: Re: jar and war together
> > >
> > > i have simple pom which contain only one source and of this source

> > > i
>
> > > want to make war and jar
> > >
> > > means
> > > 1)  i have one source and genrate jar and war of same source
> > >
> > > my pom is like
> > >
> > > 
> > > 4.0.0
> > > com.daffodilwoods.framework
> > > dakwar
> > >  1.0-SNAPSHOT
> > > jar   
> > > 
> > > 
> > >
> > > ..
> > > 
> > > 
> > >
> > >
> > >  
> > > org.apache.maven.plugins
> > >maven-war-plugin
> > >
> > >  
> > >install
> > >
> > >hi i am configuring the WarSourceDirectory..
> 
> > > 
> > >
> > >  war
> > >
> > >  
> > >
> > >  
> > >   
> > >
> > >   package
> > > 
> > >
> > > 
> > >
> > >
> > >
> > > i am able to genrate dakwar-1.0-SNAPSHOT.jar and
> > >
> > > dakwar-1.0-SNAPSHOT.war but only able to install 
> > > dakwar-1.0-SNAPSHOT.jar
> > >
> > > in my local repository but i need both jar and war to be install 
> > > in my
> >
> > > local repository
> > >
> > > i am doing these operation on one source
> > >
> > > how i can achieve this please tell
> > >
> > > Regards
> > >
> > > Neeraj
> > >
> > >
> > >
> > >
> > >
> > > On 10/9/06, Naess, Ronny < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Do you have one pom with one war artifact and one jar 
> > > > dependency, or
> >
> > > > do you have one parent pom (maven 2) with two modules/artifacts?
> > > >
> > > > I guess you want your jar in [war]/WEB-INF/lib when deployed to
> > > server?
> > > > The jar artifact should be included into lib if spesified as a 
> > > > dependency. The war plugin is responsible for collecting all 
> > > > artifact dependencies, classes and resources of the web 
> > > > application and packaging them into a web application archive.
> > > >
> > > > With install, do you mean install into appserver or do you mean 
> > > > maven install aka uploading to local repository? If you meant 
> > > > install to appserver take a look at Cargo, 
> > > > http://cargo.codehaus.org/Maven2+plugin,
> > > > if the latter look at
> > > > http://maven.apache.org/plugins/maven-install-plugin/ in short 
> > > > just run 'mvn install'. I guess it was the first you were after?
> > > > :-)
> > > >
> > > > -Ronny
> > > >
> > > > -Opprinnelig melding-
> > > > Fra: Neeraj Bisht [mailto: [EMAIL PROTECTED]
> > > > Send

Re: maven and WTP in eclipse

2006-10-09 Thread Srepfler Srgjan

Rod Coffin wrote:

Hi Adam,

I do this frequently using the Maven eclipse plugin.  This plugin will
generate the necessary Eclipse project files from your Maven 
metadata.  You

can find information on the plugin at:
http://maven.apache.org/plugins/maven-eclipse-plugin/.  You will need to
specify the version of WTP that you are using.  For example:

"mvn eclipse:eclipse -Dwtpversion=1.5"

Also, you'll want to either create a M2_REPO classpath variable 
yourself or
have the plugin do it for you by executing the eclipse:add-maven-repo 
goal.


HTH,

Rod

On 10/5/06, Adam Hardy <[EMAIL PROTECTED]> wrote:


Hi All

I'm trying out the Eclipse Web Tools Platform (WTP) to see what it
offers in terms of the development cycle, and I'm trying to configure a
maven-ised 'dynamic web' project.

I have tomcat configured in Eclipse, and I have associated the maven
project with tomcat, but trying to start it proves that Eclipse hasn't
added the Maven dependencies to the project's classpath.

I cannot see any way to do this and I think I must do it manually in the
config files in my project, but I haven't found any reference about what
files or attributes to edit.

Does anyone have any experience with this?

Thanks
Adam

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




It seems the current version supports only 1.0 R7 none, are you using 
some other version?
I personally am having a problem to deploy an EAR containing a War and 
EJB module from eclipse to JBoss. Does anyone have this problem? Has 
anyone managed to deploy an maven EAR project using the application 
server explorer in eclipse? Also as I run the command to generate the 
workspace as the Web module references the EJB module it expects a jar 
artifact, is there a way to make that reference to a project reference 
so that classes compiled in the ejb module get picked up by the Web project?
Also, I noticed the EAR project seems to have a java facet, isn't this 
incorrect?


Thanks,
Srgjan

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



RE: hexadecimals as integer parameters

2006-10-09 Thread Zeltner Martin
Hello Philippe

I think this part should be corrected somewhere in Plexus container
(http://plexus.codehaus.org/), that is referenced in maven-core of Maven
components.

Here a useful link how to build Maven 2 with your patched Plexus version
   * http://maven.apache.org/guides/development/guide-building-m2.html
  * Building Maven 2 command line interface (error on given page)
 * cd maven-cli
 * mvn assembly:assembly

At best you ask this question on the developer mailing list.
   * mailto:[EMAIL PROTECTED]
   * mailto:[EMAIL PROTECTED]

Hope this helps...

Cheers,
Martin
http://el4j.sf.net

 

> -Original Message-
> From: Philippe Faes [mailto:[EMAIL PROTECTED] 
> Sent: Montag, 9. Oktober 2006 11:35
> To: Maven Users List
> Subject: hexadecimals as integer parameters
> 
> Hi all,
> 
> I've noticed that I cannot pass hex values "0xa01" or octal values
> "0755" as integer parameters. This fails in the pom, and in the source
> file of the Mojo I develop ("@parameter expression="0xa01").
> 
> I'd like to submit this as a feature request, but I have no idea which
> project is responsible for parsing the parameters. Can 
> anybody point me
> to the right feature tracker?
> 
> thanks
> 
> -- 
> ir. Philippe Faes
> Ghent University - Department ELIS
> Sint-Pietersnieuwstraat 41 -- B-9000 Gent
> Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
> http://www.elis.UGent.be/~pfaes
> ON5DEU   --   LPIC1  --  gpg-key:173720B6
> 
> 
> -
> 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]



SV: dependency quirck?

2006-10-09 Thread Naess, Ronny
This is strange. Test it some more and be sure you do it correct and if
you are doing everything the right way you should file it as a bug in
jira. You can also try scope = system.

This is what the documentation says:
PROVIDED - this is much like compile, but indicates you expect the JDK
or a container to provide it. It is only available on the compilation
classpath, and is not transitive.

-Ronny


-Opprinnelig melding-
Fra: Jeroen Verhagen [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 13:56
Til: Maven Users List
Emne: Re: dependency quirck?

Hi Ronny,

On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]> wrote:
> Compile scope is included in classpath. Try scope = provided

I tried that, made sure everything was cleaned but the servlet-api jar
is still there.

regards,

Jeroen

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


!DSPAM:452a38fa322741367111490!


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



Re: Warnings accessing M1 repository

2006-10-09 Thread Arnaud HERITIER

...




Is there a way to convert my M1 repository to M2, or at least
automatically create those POM files so that the web isn't accessed for
each and every one of them, every time I run a mvn command?




This tool can help you to convert your repository.

http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-tools/

cheers

Arnaud


RE: SV: jar and war together

2006-10-09 Thread Mark Struberg
Hi!

I attached the patch for the AbstractWarMojo.

The changes against the actual subversion revision
(which is almost the state of 2.04) are only the
invocation of the MavenProjectHelper to set the jar as
attached artifact.

projectHelper.attachArtifact( project, "jar",
"webclasses", jarFile );

The MavenProjectHelper setter mechanism is
automatically generated by the maven-plugin-plugin by
annotating it as @component:

/**
 * @component
 */
protected MavenProjectHelper projectHelper;

(You may also make it private due you don't need the
preparecp WarClassPathMojo)

You then have to switch the archiveClasses feature on
in the pom of the war you like to build:


  
org.apache.maven.plugins
maven-war-plugin
 2.0.4-msx.2-SNAPSHOT
 
   true
 
  


Simply build it with 

mvn clean install

I also attached my personal maven-war-plugin pom which
reflects the mix of 2.1-SNAPTHOT and 2.0.4
productional changes i work against (this is a bit of
a hack, since i have to use this plugin in my company
which uses maven 2.04 and cannot switch to a complete
snapshot build)

best regards, 
strub

--- "Naess, Ronny" <[EMAIL PROTECTED]> schrieb:

> He provided a patch to be used. That shuld solve the
> problem. Maybe Mark
> kan give you som further information in how to use
> that patch?
> 
> -Ronny 
> 
> -Opprinnelig melding-
> Fra: Neeraj Bisht
> [mailto:[EMAIL PROTECTED] 
> Sendt: 9. oktober 2006 14:04
> Til: Maven Users List
> Emne: Re: jar and war together
> 
> at what extend i understand his thought i tried but
> get the same result
> as it was
> 
> On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]>
> wrote:
> >
> > Did you take a look at what Mark Struberg wrote?
> >
> > -Ronny
> >
> > -Opprinnelig melding-
> > Fra: Neeraj Bisht
> [mailto:[EMAIL PROTECTED]
> > Sendt: 9. oktober 2006 13:19
> > Til: Maven Users List
> > Emne: Re: jar and war together
> >
> > yes inside jar , i  seen war content
> >
> >
> >
> > On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]>
> wrote:
> > >
> > > What, it says it installes the war to the jar?
> Is it 
> > > replacing/moving it? Seems like strange
> behavior.
> > >
> > > Is it only the jar and now war inside
> C:\Documents and 
> > >
>
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwood
> > > s\
> > > fr
> > > amework\dakwar\1.0-SNAPSHOT\
> > >
> > > If only the jar, if you look iside that jar, is
> it the war content 
> > > you
> >
> > > see?
> > >
> > > -Ronny
> > >
> > > -Opprinnelig melding-
> > > Fra: Neeraj Bisht
> [mailto:[EMAIL PROTECTED]
> > > Sendt: 9. oktober 2006 11:52
> > > Til: Maven Users List
> > > Emne: Re: jar and war together
> > >
> > > hi Ronny
> > >  i tried both way and not able to install
> the jar or war actully
> 
> > > it is installing jar but which is it installing
> is also wrong while 
> > > at
> >
> > > installing it show following message
> > >
> > > Installing
> > >
>
D:\data\localcvs\ABHIWORK\sample\Release\DAK\module\war\target\dakwa
> > > r- 1.0-SNAPSHOT.war to C:\Documents and 
> > >
>
Settings\harvinder.bhutani.HARVINDER\.m2\repository\com\daffodilwood
> > > s\
> > > fr
> > > amework\dakwar\1.0-SNAPSHOT\dakwar-
> > > 1.0-SNAPSHOT.jar
> > >
> > > On 10/9/06, Naess, Ronny <[EMAIL PROTECTED]>
> wrote:
> > > >
> > > > Sorry, I do not have the answer for why this
> is not working. Maybe
> 
> > > > you
> > >
> > > > could try it the other way around?
> > > > Change your pom to hav packaging to war, and
> specify 
> > > > maven-jar-plugin instead.
> > > >
> > > > We have more than one pom with packaging set
> to jar and at same 
> > > > time
> >
> > > > using maven-jar-plugin spesifying test-jar
> goal and both jars 
> > > > installs
> > >
> > > > correct to our repository.
> > > >
> > > > -Ronny
> > > >
> > > > -Opprinnelig melding-
> > > > Fra: neeraj daffodil
> [mailto:[EMAIL PROTECTED]
> > > > Sendt: 9. oktober 2006 09:40
> > > > Til: Maven Users List
> > > > Emne: Re: jar and war together
> > > >
> > > > i have simple pom which contain only one
> source and of this source
> 
> > > > i
> >
> > > > want to make war and jar
> > > >
> > > > means
> > > > 1)  i have one source and genrate jar and war
> of same source
> > > >
> > > > my pom is like
> > > >
> > > > 
> > > > 4.0.0
> > > > com.daffodilwoods.framework
> > > > dakwar
> > > >  1.0-SNAPSHOT
> > > > jar   
> > > > 
> > > > 
> > > >
> > > > ..
> > > > 
> > > > 
> > > >
> > > >
> > > >  
> > > >
> org.apache.maven.plugins
> > > >   
> maven-war-plugin
> > > >
> > > >  
> > > >install
> > > >
> > > >hi i am configuring the
> WarSourceDirectory..
> > 
> > > > 
> > > >
> > > >  war
> > > >
> > > >  
> > > >
> > > >  
> > > >   
> > > >
> > > >   package
> > > > 
> > > >
> > > > 
> > > >
> > > >
> > > >
> > > > i am able to genrate 

Re: Eclipse and web services

2006-10-09 Thread Marco Mistroni

Hello,
yes probably it was old... but do as you normally do when you use External
tools in your eclipse for any other external tools..

in my case, with WTP i'll have to goto Window/Preferences/RunDebug/String
Substitution


once you are there, you click on 'New'  where you can enter name and Value.
there's a Browse button close to 'Value' , you can use that to find your mvn
executable

hth
marco

On 10/9/06, Javier Leyba <[EMAIL PROTECTED]> wrote:


On 10/9/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
>
>
> yes it is.. there's a maven guide for eclipse.. i m using it with
WTP..but i
> feel more comfortable to run mvn from commandline...
>


Hi

The guide you told me is the one that I' ve read.

May be another eclipse user could give me a clue.

Thanks.

J

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




Re: Warnings accessing M1 repository

2006-10-09 Thread Naess, Ronny
Cool!

Does there exist any documentation as well, or is it so straight forward
that even my mother could do it?

-Ronny

-Opprinnelig melding-
Fra: Arnaud HERITIER [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 14:27
Til: Maven Users List
Emne: Re: Warnings accessing M1 repository

...
>
>
>
> Is there a way to convert my M1 repository to M2, or at least 
> automatically create those POM files so that the web isn't accessed 
> for each and every one of them, every time I run a mvn command?



This tool can help you to convert your repository.

http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-too
ls/

cheers

Arnaud


!DSPAM:452a4045166271926716756!

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



SV: buildnumber for maven2

2006-10-09 Thread Ravinder Singh
Problem is that when jars are merged into ie an ear, the included
snapshot jars don't have its timestamp on it, since it readtrieves it
from the local repository, which doesn't keep timestamps on jars.

Is it a way to configure so that the local repository also keeps
timestamp?




-Opprinnelig melding-
Fra: Naess, Ronny [mailto:[EMAIL PROTECTED] 
Sendt: 9. oktober 2006 12:20
Til: Maven Users List
Emne: SV: buildnumber for maven2

Since it not is a release i guess timestamp would solve your purposes?

Try 'mvn deploy' it uploads a timestamped artifact to your internal
repository (must be configured). It is to be considered as a stable
snapshot build.

Internal repository:


internal
scp://carrotServer1/opt/web/mavenrepos




Also

Here is a guys post of a maven-timestamp-plugin hi made and uses
http://mail-archives.apache.org/mod_mbox/geronimo-dev/200602.mbox/%3C752
[EMAIL PROTECTED]


-Ronny

-Opprinnelig melding-
Fra: Ravinder Singh [mailto:[EMAIL PROTECTED]
Sendt: 9. oktober 2006 11:35
Til: Maven Users List
Emne: buildnumber for maven2

I want to have a buildnumber appended to each snapshot I generate.. Is
this possible using maven2?
 
I was looking at
org.codehaus.mojo
  maven-buildnumber-plugin
But it seems that this is for maven1, or am i wrong?
 
 
Ravinder Singh
 


!DSPAM:452a17e5181941367111490!

-
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: java2wsdl

2006-10-09 Thread Marco Mistroni

hi,
i have never used axistools plugin.. but for other code-generation plugins,
normally sourceDirectory is the source of your java files which are supposed
to go thru the code-generation tool

hth
marco

On 10/9/06, Javier Leyba <[EMAIL PROTECTED]> wrote:


Hi

I'm trying to generate wsdl file from my java code so I did:

---



org.codehaus.mojo

axistools-maven-plugin



src/main/resources/META-INF/wsdl

true
false

com.bs.proteo.notifications.service.NotificationsPortSoapBindingImpl

http://dummy-url



urn:com:bs:proteo:notifications

1.2



NotificationsPort
notifications.wsdl






wsdl2java






---

But when I run the task I got:

[INFO] [axistools:wsdl2java]
[INFO] about to add compile source root
[INFO] Nothing to generate. All WSDL files are up to date.
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Oct 09 13:48:03 CEST 2006
[INFO] Final Memory: 3M/6M
[INFO]


But no wsdl file was generated !!!

I noticed that parameters in docs are not explained so, may be I'm
asuming a parameter use in a wrong way.

I've no idea about how to use required parameters "filename" and
"project" and wich parameter allow me to say which is my webservice
interface.


Thanks in advance

J

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




Re: maven and WTP in eclipse

2006-10-09 Thread Adam Hardy

Srepfler,
make sure you're using the latest maven-eclipse-plugin snapshot from the 
snapshots repo at http://people.apache.org/maven-snapshot-repository


This supports 1.5.

I can't help you with the jboss stuff, sorry, but it sounds like you 
have got your inter-project dependencies mixed up.


An EAR file doesn't produce a JAR artifact and you can't make a maven 
dependency on it because it doesn't have any of its own classes. You 
should make a dependency on the each jar directly in your war pom, 
installing them in your repo is they are not actual projects nor on the 
maven repo.


HTH
Adam


Srepfler Srgjan wrote:

Rod Coffin wrote:

Hi Adam,

I do this frequently using the Maven eclipse plugin.  This plugin will
generate the necessary Eclipse project files from your Maven 
metadata.  You

can find information on the plugin at:
http://maven.apache.org/plugins/maven-eclipse-plugin/.  You will need to
specify the version of WTP that you are using.  For example:

"mvn eclipse:eclipse -Dwtpversion=1.5"

Also, you'll want to either create a M2_REPO classpath variable 
yourself or
have the plugin do it for you by executing the eclipse:add-maven-repo 
goal.


HTH,

Rod

On 10/5/06, Adam Hardy <[EMAIL PROTECTED]> wrote:


Hi All

I'm trying out the Eclipse Web Tools Platform (WTP) to see what it
offers in terms of the development cycle, and I'm trying to configure a
maven-ised 'dynamic web' project.

I have tomcat configured in Eclipse, and I have associated the maven
project with tomcat, but trying to start it proves that Eclipse hasn't
added the Maven dependencies to the project's classpath.

I cannot see any way to do this and I think I must do it manually in the
config files in my project, but I haven't found any reference about what
files or attributes to edit.

Does anyone have any experience with this?

It seems the current version supports only 1.0 R7 none, are you using 
some other version?
I personally am having a problem to deploy an EAR containing a War and 
EJB module from eclipse to JBoss. Does anyone have this problem? Has 
anyone managed to deploy an maven EAR project using the application 
server explorer in eclipse? Also as I run the command to generate the 
workspace as the Web module references the EJB module it expects a jar 
artifact, is there a way to make that reference to a project reference 
so that classes compiled in the ejb module get picked up by the Web 
project?
Also, I noticed the EAR project seems to have a java facet, isn't this 
incorrect?



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



Re: java2wsdl

2006-10-09 Thread Javier Leyba

On 10/9/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:

hi,
 i have never used axistools plugin.. but for other code-generation plugins,
normally sourceDirectory is the source of your java files which are supposed
to go thru the code-generation tool




Ok, but java2wsdl use to need to know wich is the interface. It needed
from command line and use to need it from ant.

I couldn´t imagine how it will know wich is my interface with only the
path to source code.


Thanks

J

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



Re: Warnings accessing M1 repository

2006-10-09 Thread Sybren Stüvel


Arnaud HERITIER wrote:
>> Is there a way to convert my M1 repository to M2, or at least
>> automatically create those POM files so that the web isn't accessed for
>> each and every one of them, every time I run a mvn command?
> 

> This tool can help you to convert your repository.
> 
> http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-tools/

It looks nice. Do you know which URL I can use for a checkout?

-- 
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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



Re: Warnings accessing M1 repository

2006-10-09 Thread Arnaud HERITIER

You can use the one I gave.
But it seems that there's a problem with some unknown dependencies.
Carlos, Jason, did you use it recently ?

Arnaud


On 10/9/06, Sybren Stüvel <[EMAIL PROTECTED]> wrote:




Arnaud HERITIER wrote:
>> Is there a way to convert my M1 repository to M2, or at least
>> automatically create those POM files so that the web isn't accessed for
>> each and every one of them, every time I run a mvn command?
>

> This tool can help you to convert your repository.
>
>
http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-tools/

It looks nice. Do you know which URL I can use for a checkout?

--
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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




Maven multiproject, test inheritance

2006-10-09 Thread RobertK

Hi,

first off, using maven 1.0.2 multiproject to build, test and deploy about 8
sub-projects. Everything working there smoothly (got to love Maven! :) )

Now my question, many of my projects repeat the same unit test or data, so
the whole project suffers from the annoying / untidy symptom of "copy and
paste". So what I am wondering, is there an easier (cleaner) way to do it?

Example, I have 43 Tester.java classes for testing various different
packages. Each one of them has the following code,

public Tester(String a_name)
{
super(a_name);
}

/**
 * Run all tests in this package.
 * 
 * @param args
 */
public static void main(String[] args)
{
junit.textui.TestRunner.run(suite());
}


I mean, there must be a better way? There are over 500 unit tests in the
projects, so having one giant test suite is out of the question. Need some
sort of strategy to make common utility classes available to multiple
project and allow some form of inheritance from a base class.

I have some ideas, but really looking for alternatives, see if any one can
think of a better way. So does any one have any suggestions?

Cheers,
Rob
-- 
View this message in context: 
http://www.nabble.com/Maven-multiproject%2C-test-inheritance-tf2409917.html#a6717273
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: Warnings accessing M1 repository

2006-10-09 Thread Sybren Stüvel
Then what am I doing wrong?

$ svn co
http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-tools/
svn: PROPFIND request failed on
'/viewvc/maven/components/trunk/maven-repository-tools'
svn: PROPFIND of
'/viewvc/maven/components/trunk/maven-repository-tools': 302 Found
(http://svn.apache.org)

Sybren

Arnaud HERITIER wrote:
> You can use the one I gave.
> But it seems that there's a problem with some unknown dependencies.
> Carlos, Jason, did you use it recently ?
> 
> Arnaud
> 
> 
> On 10/9/06, Sybren Stüvel <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Arnaud HERITIER wrote:
>> >> Is there a way to convert my M1 repository to M2, or at least
>> >> automatically create those POM files so that the web isn't accessed
>> for
>> >> each and every one of them, every time I run a mvn command?
>> >
>>
>> > This tool can help you to convert your repository.
>> >
>> >
>> http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-tools/
>>
>>
>> It looks nice. Do you know which URL I can use for a checkout?
>>
>> -- 
>> Sybren Stüvel <[EMAIL PROTECTED]>
>> Software Engineer CHESS iBusiness
>> Nieuwe Gracht 13, Haarlem
>> Postbus 5021, 2000 CA Haarlem
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 

-- 
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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



Re: docbook plugin

2006-10-09 Thread Wilfred Springer
It depends. You can use mine if you're looking for:

  * Configuration of the stylesheets using the plugin configuration
mechanism;
  * A solution that has everything included in the actual plugin;
(No manual downloading of stylesheets or the DTD)
  * Entity resolution using entities defined in your POM;
  * PDF generation;
  * Man pages generation;
  * A non-codehaus implementation.

http://www.agilejava.com/docbkx/docbkx-maven-plugin/
http://www.agilejava.com/docbkx/docbkx-samples/html/manual.html

However, if you want to use Simplified DocBook, then you first need to
create a dedicated jar containing the DTD, similar to the DocBook 4.4
version found here:
http://www.agilejava.com/maven/org/docbook/docbook-xml/4.4/

(Note that is actually nothing but the DocBook DTD distribution
unzipped, jarred and uploaded together with a POM.)

The plugin will pick up the catalog file in the jar and use that to
dynamically resolve the DTD and all other relevant entities.

Cheers,

Wilfred


On Mon, 2006-10-09 at 10:25 +0200, Aleksei Valikov wrote:
> Hi folks,
> 
> Which docbook plugin would you recommend to use?
> 
> Just like many people I previously used DocBook XSLTs and builds from 
> Hibernate 
> documentation. My projects are now ported to Maven and I'd like to port 
> documentation generation as well.
> 
> I've found several plugins that seem to do the job, but I got no idea which 
> one 
> is usable.
> 
> I have documents in simplified DocBook.
> 
> Bye.
> /lexi
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
Wilfred Springer | Software Architect | TomTom |
[EMAIL PROTECTED] | +31 646 720 990

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



Re: Lib dependencies in .war artifact

2006-10-09 Thread ArneD


Morgovsky, Alexander (US - Glen Mills) wrote:
> 
> Hi.  I need some .jar's for compilation of a .war artifact, but I want
> to only include a subset of these in the WEB-INF/lib.  If I set the
> subset of the ones for inclusion with the scope of runtime for each,
> they will not be used for compilation, and the compilation will fail.
> Thus, the question is, how do I include a subset of .jar's which both
> are for compilation and runtime, but exclude all the ones which are for
> compilation only?  Thanks for your help. 
> 

Try scope "provided" for those that you need for compilation only
and scope "compile" for thos that you need for compilation and runtime.

Regards,
Arne

-- 
View this message in context: 
http://www.nabble.com/Lib-dependencies-in-.war-artifact-tf2408437.html#a6717565
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: java2wsdl

2006-10-09 Thread dan tran

I think you specified the wrong goal.



On 10/9/06, Javier Leyba <[EMAIL PROTECTED]> wrote:


On 10/9/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> hi,
>  i have never used axistools plugin.. but for other code-generation
plugins,
> normally sourceDirectory is the source of your java files which are
supposed
> to go thru the code-generation tool
>


Ok, but java2wsdl use to need to know wich is the interface. It needed
from command line and use to need it from ant.

I couldn´t imagine how it will know wich is my interface with only the
path to source code.


Thanks

J

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




Re: Warnings accessing M1 repository

2006-10-09 Thread Arnaud HERITIER

ops; so sorry !!!
I didn't see I sent to you the viewcvs link.
Here is the address :
http://svn.apache.org/repos/asf/maven/components/trunk/maven-repository-tools/

Arnaud


On 10/9/06, Sybren Stüvel <[EMAIL PROTECTED]> wrote:


Then what am I doing wrong?

$ svn co

http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-tools/
svn: PROPFIND request failed on
'/viewvc/maven/components/trunk/maven-repository-tools'
svn: PROPFIND of
'/viewvc/maven/components/trunk/maven-repository-tools': 302 Found
(http://svn.apache.org)

Sybren

Arnaud HERITIER wrote:
> You can use the one I gave.
> But it seems that there's a problem with some unknown dependencies.
> Carlos, Jason, did you use it recently ?
>
> Arnaud
>
>
> On 10/9/06, Sybren Stüvel <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>> Arnaud HERITIER wrote:
>> >> Is there a way to convert my M1 repository to M2, or at least
>> >> automatically create those POM files so that the web isn't accessed
>> for
>> >> each and every one of them, every time I run a mvn command?
>> >
>>
>> > This tool can help you to convert your repository.
>> >
>> >
>>
http://svn.apache.org/viewvc/maven/components/trunk/maven-repository-tools/
>>
>>
>> It looks nice. Do you know which URL I can use for a checkout?
>>
>> --
>> Sybren Stüvel <[EMAIL PROTECTED]>
>> Software Engineer CHESS iBusiness
>> Nieuwe Gracht 13, Haarlem
>> Postbus 5021, 2000 CA Haarlem
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

--
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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




Re: maven and WTP in eclipse

2006-10-09 Thread Srepfler Srgjan

Adam Hardy wrote:

Srepfler,
make sure you're using the latest maven-eclipse-plugin snapshot from 
the snapshots repo at http://people.apache.org/maven-snapshot-repository


This supports 1.5.

I can't help you with the jboss stuff, sorry, but it sounds like you 
have got your inter-project dependencies mixed up.


An EAR file doesn't produce a JAR artifact and you can't make a maven 
dependency on it because it doesn't have any of its own classes. You 
should make a dependency on the each jar directly in your war pom, 
installing them in your repo is they are not actual projects nor on 
the maven repo.


HTH
Adam

I perhaps explained incorrectly, my War has a dependency on the EJB 
module, not on the EAR and I declare it in the War.
What happens is that the eclipse:eclipse task links the library 
installed in the repo not the eclipse project. Did this make more sense?


 it.linksystem.csai
 CSAIEJB
 ejb
 provided


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



RE: sjc (jaxb) plugin for jdk1.4

2006-10-09 Thread Swenson, Eric
Thanks.  I found the jaxb1-maven-plugin at org.codehaus, which is
working for me fine.  But I'll take a look at the one you cite, below as
well.  Thanks.  -- Eric

-Original Message-
From: Aleksei Valikov [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 09, 2006 1:18 AM
To: Maven Users List
Subject: Re: sjc (jaxb) plugin for jdk1.4

Hi.

> I am trying to convert a large ant project to maven and the project
(for
> various reasons) is tied to jdk 1.4. There are several uses of xjc
> (jaxb)  and I wanted to use a maven jaxb plugin in order to build
those
> projects.  However, the jaxb plugin available maven-jaxb-plugin
> (com.sun.tools.xjc.maven2) requires the use of jdk 1.5.  (It requires
> source=1.5). Does there exist a jaxb plugin for maven2 that works with
> jdk1.4?  I'd rather not have to use an ant-task for my xjc code
> generation.  Thanks. -- Eric

Here's one that we wrote and use extensively:

https://maven-jaxb1-plugin.dev.java.net

Bye.
/lexi

-
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: Warnings accessing M1 repository

2006-10-09 Thread Sybren Stüvel

> Here is the address :
> http://svn.apache.org/repos/asf/maven/components/trunk/maven-repository-tools/

That one works fine.

> But it seems that there's a problem with some unknown dependencies.

Yup, got that problem too :(

-- 
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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



Re: Maven multiproject, test inheritance

2006-10-09 Thread Philippe Faes
Rob,

You can make the test classes of one project visible in the test phase
of another project:


  com.example
  someArtifact
  0.1.1-SNAPSHOT
  test-jar
  test


greets,
Philippe

On Mon, 2006-10-09 at 06:10 -0700, RobertK wrote:
> Hi,
> 
> first off, using maven 1.0.2 multiproject to build, test and deploy about 8
> sub-projects. Everything working there smoothly (got to love Maven! :) )
> 
> Now my question, many of my projects repeat the same unit test or data, so
> the whole project suffers from the annoying / untidy symptom of "copy and
> paste". So what I am wondering, is there an easier (cleaner) way to do it?
> 
> Example, I have 43 Tester.java classes for testing various different
> packages. Each one of them has the following code,
> 
> public Tester(String a_name)
> {
> super(a_name);
> }
> 
> /**
>  * Run all tests in this package.
>  * 
>  * @param args
>  */
> public static void main(String[] args)
> {
> junit.textui.TestRunner.run(suite());
> }
> 
> 
> I mean, there must be a better way? There are over 500 unit tests in the
> projects, so having one giant test suite is out of the question. Need some
> sort of strategy to make common utility classes available to multiple
> project and allow some form of inheritance from a base class.
> 
> I have some ideas, but really looking for alternatives, see if any one can
> think of a better way. So does any one have any suggestions?
> 
> Cheers,
> Rob
-- 
ir. Philippe Faes
Ghent University - Department ELIS
Sint-Pietersnieuwstraat 41 -- B-9000 Gent
Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
http://www.elis.UGent.be/~pfaes
ON5DEU   --   LPIC1  --  gpg-key:173720B6


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



RE: maven and WTP in eclipse

2006-10-09 Thread Jörg Schaible
Srepfler Srgjan wrote on Monday, October 09, 2006 4:17 PM:

> I perhaps explained incorrectly, my War has a dependency on the EJB
> module, not on the EAR and I declare it in the War.
> What happens is that the eclipse:eclipse task links the library
> installed in the repo not the eclipse project. Did this make
> more sense?
> 
>   it.linksystem.csai
>   CSAIEJB
>   ejb
>   provided
> 

You must generate both eclipse project files with the same maven call. Only 
then inter-project links are geneareted (and the artifact's version must match).

- Jörg

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



RE: hexadecimals as integer parameters

2006-10-09 Thread Philippe Faes
Thanks Martin,

I'll check with the plexus people

Philippe

On Mon, 2006-10-09 at 14:12 +0200, Zeltner Martin wrote:
> Hello Philippe
> 
> I think this part should be corrected somewhere in Plexus container
> (http://plexus.codehaus.org/), that is referenced in maven-core of Maven
> components.
> 
> Here a useful link how to build Maven 2 with your patched Plexus version
>* http://maven.apache.org/guides/development/guide-building-m2.html
>   * Building Maven 2 command line interface (error on given page)
>  * cd maven-cli
>  * mvn assembly:assembly
> 
> At best you ask this question on the developer mailing list.
>* mailto:[EMAIL PROTECTED]
>* mailto:[EMAIL PROTECTED]
> 
> Hope this helps...
> 
> Cheers,
> Martin
> http://el4j.sf.net
> 
>  
> 
> > -Original Message-
> > From: Philippe Faes [mailto:[EMAIL PROTECTED] 
> > Sent: Montag, 9. Oktober 2006 11:35
> > To: Maven Users List
> > Subject: hexadecimals as integer parameters
> > 
> > Hi all,
> > 
> > I've noticed that I cannot pass hex values "0xa01" or octal values
> > "0755" as integer parameters. This fails in the pom, and in the source
> > file of the Mojo I develop ("@parameter expression="0xa01").
> > 
> > I'd like to submit this as a feature request, but I have no idea which
> > project is responsible for parsing the parameters. Can 
> > anybody point me
> > to the right feature tracker?
> > 
> > thanks
> > 
> > -- 
> > ir. Philippe Faes
> > Ghent University - Department ELIS
> > Sint-Pietersnieuwstraat 41 -- B-9000 Gent
> > Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
> > http://www.elis.UGent.be/~pfaes
> > ON5DEU   --   LPIC1  --  gpg-key:173720B6
> > 
> > 
> > -
> > 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]
> 
-- 
ir. Philippe Faes
Ghent University - Department ELIS
Sint-Pietersnieuwstraat 41 -- B-9000 Gent
Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
http://www.elis.UGent.be/~pfaes
ON5DEU   --   LPIC1  --  gpg-key:173720B6


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



Re: Warnings accessing M1 repository

2006-10-09 Thread Arnaud HERITIER

You can try to ask how it works to Jason or Carlos on the channel
irc.codehaus.org #maven

Arnaud

On 10/9/06, Sybren Stüvel <[EMAIL PROTECTED]> wrote:



> Here is the address :
>
http://svn.apache.org/repos/asf/maven/components/trunk/maven-repository-tools/

That one works fine.

> But it seems that there's a problem with some unknown dependencies.

Yup, got that problem too :(

--
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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




Re: java2wsdl

2006-10-09 Thread Marco Mistroni

Hello,
  i see
in my case, my wstools (jboss) can see the Java file from which generate the
wsdl because i am specifying it as an ant task, and i am specifying the
classpath.. that's why the tool sees my interface

check on plugin docs if there is a way to specify classpath...

hth
marco



On 10/9/06, Javier Leyba <[EMAIL PROTECTED]> wrote:


On 10/9/06, Marco Mistroni <[EMAIL PROTECTED]> wrote:
> hi,
>  i have never used axistools plugin.. but for other code-generation
plugins,
> normally sourceDirectory is the source of your java files which are
supposed
> to go thru the code-generation tool
>


Ok, but java2wsdl use to need to know wich is the interface. It needed
from command line and use to need it from ant.

I couldn´t imagine how it will know wich is my interface with only the
path to source code.


Thanks

J

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




RE: settings.xml examples from BBwM Book dont work

2006-10-09 Thread Scott Seiter
Michael,

I'm struggling with the same issue; did you ever find an answer on this?

Scott

-Original Message-
From: Locher, Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 26, 2006 1:59 AM
To: Maven Users List
Subject: settings.xml examples from BBwM Book dont work

Hi

I am trying to use username and password properties defined in
.m2/settings.xml to complete the server templates in
mavenHome/conf/settings.xml as described in "Better Builds with Maven" in
chapter 7.

I had no luck so far... the WebDAV Wagon sends the name of the variables to
the server instead of the username and password.

Does the example from the book really work or is it just wishful thinking?

I am using maven 2.0.4 and the help:active-profiles and
help:effective-settings both look alright.
mvn help:effective-settings shows the account information but in the
server sections there are still the variables.

I would be very glad if you could point me in the right direction ;-)
- What is the best-practice in debugging POMs?
- Where could I start looking in the maven source for the POM interpolation
and settings application procedures?

Kind regards,
  Michael



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



"mvn eclipse:eclipse"

2006-10-09 Thread Sybren Stüvel
Hi folks,

When I perform a "mvn eclipse:eclipse" command in our "argus-core"
project, Eclipse bugs on the generated .classpath file. This is what's
generated:


  
  
  
  
  
  
  
  
  [ snipped a lot more .jar files]


The error that Eclipse gives me is:

"Cannot nest 'argus-core/resources/configuration/syst' inside
'argus-core'. To enable the nesting exclude 'resources/' from 'argus-core'"

If I remove this line:
  
from the .classpath file, Eclipse accepts it and everything works fine.

Is there any way to get M2 to create the proper .classpath in the first
place?

Greetings,
-- 
Sybren Stüvel <[EMAIL PROTECTED]>
Software Engineer CHESS iBusiness
Nieuwe Gracht 13, Haarlem
Postbus 5021, 2000 CA Haarlem

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



Release plugin on multiple projects

2006-10-09 Thread Kjetil �stre
Hi, I'm using the reactor option to build three projects in the same directory 
with maven. 

 

projectOne/

projectTwo/ 

projectThree/

 

projectOne is the parent of projectTwo and projectOne has projectThree as a 
dependency. When I try to do 'mvn -r release:prepare' the plugin finds all the 
projects and builds them in the right order, but it only tags projectThree in 
the scm and for some reason puts projectOne and projectTwo as sub folders of 
projectThree... How do I get the plugin to act as if I run the mvn 
release:prepare command in each folder?

 

- Kjetil



IMPORTANT NOTICE:
This message may contain confidential information. If you have received this 
e-mail in error, do not use, copy or distribute it. Do not open any 
attachments. Delete it immediately from your system and notify the sender 
promptly by e-mail that you have done so. Thank you.



Re: creating different packages for different customers

2006-10-09 Thread Marek Chowaniok

No one has request for this feature?

Please reply if you are using this.

Marek

Marek Chowaniok wrote:
> 
> Hi all,
> In our company we need to create more packages (jar, war) for different
> customers. The content mostly will be same (like "logic layer" of the
> application) but the "view layer" should be different.
> 
> i.e. we have (Cust1Index.jsp, Cust2Index.jsp, Cust3Index.jsp) and we need
> to create 3 different deploys with correct web site inserted in in corect
> deploy (without those others).
> 
> My questions:
> 1. Is Maven2 able to do this?
> 2. Can you point me on some web or show how it can be done?
> 
> Thanks
> 

-- 
View this message in context: 
http://www.nabble.com/creating-different-packages-for-different-customers-tf2394347.html#a6719523
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 multiproject, test inheritance

2006-10-09 Thread RobertK


Cheers for the reply Philippe.

Cool, didn't know you could do that. I am guessing that you need to run the
maven jar:test-jar goal to create the test jar? (The generates an error for
me?)

My original idea was to create a brand new sub project that would handle all
unit tests, so it could share resources (DB connections, parsed XML files
etc...) more easily. Would it make sense to use this approach?

Or would this create more hassle than its worth?

Robert



Philippe Faes wrote:
> 
> Rob,
> 
> You can make the test classes of one project visible in the test phase
> of another project:
> 
> 
>   com.example
>   someArtifact
>   0.1.1-SNAPSHOT
>   test-jar
>   test
> 
> 
> greets,
> Philippe
> 
> On Mon, 2006-10-09 at 06:10 -0700, RobertK wrote:
>> Hi,
>> 
>> first off, using maven 1.0.2 multiproject to build, test and deploy about
>> 8
>> sub-projects. Everything working there smoothly (got to love Maven! :) )
>> 
>> Now my question, many of my projects repeat the same unit test or data,
>> so
>> the whole project suffers from the annoying / untidy symptom of "copy and
>> paste". So what I am wondering, is there an easier (cleaner) way to do
>> it?
>> 
>> Example, I have 43 Tester.java classes for testing various different
>> packages. Each one of them has the following code,
>> 
>> public Tester(String a_name)
>> {
>> super(a_name);
>> }
>> 
>> /**
>>  * Run all tests in this package.
>>  * 
>>  * @param args
>>  */
>> public static void main(String[] args)
>> {
>> junit.textui.TestRunner.run(suite());
>> }
>> 
>> 
>> I mean, there must be a better way? There are over 500 unit tests in the
>> projects, so having one giant test suite is out of the question. Need
>> some
>> sort of strategy to make common utility classes available to multiple
>> project and allow some form of inheritance from a base class.
>> 
>> I have some ideas, but really looking for alternatives, see if any one
>> can
>> think of a better way. So does any one have any suggestions?
>> 
>> Cheers,
>> Rob
> -- 
> ir. Philippe Faes
> Ghent University - Department ELIS
> Sint-Pietersnieuwstraat 41 -- B-9000 Gent
> Tel:+32 9 264 95 25 - Fax:+32 9 264 35 94
> http://www.elis.UGent.be/~pfaes
> ON5DEU   --   LPIC1  --  gpg-key:173720B6
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-multiproject%2C-test-inheritance-tf2409917.html#a6719634
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 different packages for different customers

2006-10-09 Thread Andrew Williams
If you are seperating your logic from your view correctly (i.e. 
product-api, product-core and product-web modules) then you can have a 
different product-web module for each customer and just ship the correct 
one :)


Andrew

Marek Chowaniok wrote:

No one has request for this feature?

Please reply if you are using this.

Marek

Marek Chowaniok wrote:
  

Hi all,
In our company we need to create more packages (jar, war) for different
customers. The content mostly will be same (like "logic layer" of the
application) but the "view layer" should be different.

i.e. we have (Cust1Index.jsp, Cust2Index.jsp, Cust3Index.jsp) and we need
to create 3 different deploys with correct web site inserted in in corect
deploy (without those others).

My questions:
1. Is Maven2 able to do this?
2. Can you point me on some web or show how it can be done?

Thanks




  



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



using ant to do the packaging

2006-10-09 Thread Nigel Magnay

Hello listers

I am binding things like ant tasks into the lifecycle by using the
maven-antrun-plugin bound to the package phase.

The ant script usually overwrites the target/blah.jar file with something
new.

This works well, and I get what I expect in the target directory of my
build.

However, in the continuum repository, I don't get that - I get the jar file
that I would have had if I hadn't done the ANT step.

I'm assuming this is because the jar file is assembled in some other way -
is there a way for me to get it to deploy the right thing ?


changelog-maven-plugin and CVS

2006-10-09 Thread Sam Anabtawi

I have been trying to get the changelog-maven-plugin to work with CVS for a
few hours now. I have searched for the topic and found a few good threads,
but I never really found a definite solution.

Error Message
[WARNING] Error loading report org.apache.maven.changelog.ChangeLogReport -
AbstractMethodError: canGenerateReport()
[WARNING] Error loading report
org.apache.maven.changelog.DeveloperActivityReport - AbstractMethodError:
canGenerateReport()
[WARNING] Error loading report org.apache.maven.changelog.FileActivityReport
- AbstractMethodError: canGenerateReport()

Maven Version
2.0.4

changelog-maven-plugin Version
2.0-beta-1

OS
Windows Xp Pro

Plugin Declaration in POM.xml

  

  org.codehaus.mojo
  changelog-maven-plugin

  


SCM Configuration POM.xml

First Variation:
  
   
scm:cvs:pserver:username:[EMAIL 
PROTECTED]:2401:/a/cvs:OMS
   
scm:cvs:pserver:username:[EMAIL 
PROTECTED]:2401:/a/cvs:OMS
http://repository
  

Second Variation
  
   
scm:cvs:pserver:username:@cvsserver:2401:/a/cvs:OMS
   
scm:cvs:pserver:username:@cvsserver:2401:/a/cvs:OMS
http://repository
  

Note that I removed the password yet left the : just like some thread
suggested. I also did a cvs login from the command line right before I tried
the above scm. 

Third Variation
  
scm:cvs:pserver:username:@cvsserver:/a/cvs:OMS
   
scm:cvs:pserver:username:@cvsserver:/a/cvs:OMS
http://repository
  

Note that I removed the port number.

The SCM Template I am Trying to Follow
I will put this here for quick reference:

scm:cvspserver[username[[EMAIL 
PROTECTED]port]path_to_repositorymodule_name

Other Notes
1) I am not using the standard Maven directory structure. All I am supposed
to do with Maven is create a project site for an existing project using mvn
site:site.
2) The site is generated successfully (I love the site!), but clicking on
any of the changelog links displays this message:

   No sources found to create a report.

3) I hope I was thorough enough, and thank you for your help in advance!

-Sam











-- 
View this message in context: 
http://www.nabble.com/changelog-maven-plugin-and-CVS-tf2411040.html#a6720464
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Artifact licensing on central repository

2006-10-09 Thread Andrew Wilde
Hi,

I was wondering if there is a documented policy detailing what licences
are acceptable when submitting artifacts to a central repository. I've
read:

http://maven.apache.org/guides/mini/guide-ibiblio-upload.html

but there didn't seem be any detailed information on this.
  
Thanks,

Andy Wilde
IT Innovation Centre
2 Venture Road
Chilworth Science Park
Southampton, SO16 7NP, UK

tel: +44 23 8076 0834
fax: +44 23 8076 0833

mailto:[EMAIL PROTECTED]
http://www.it-innovation.soton.ac.uk
 

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



[m2] Trouble between release-plugin and CVS

2006-10-09 Thread Xavier Coulon

Hello,

I'm trying to perform a 'mvn release:prepare' on our SCM (CVS 1.11.17) and I
get the following error:


[INFO] Checking in modified POMs...
[INFO] Executing: cvs -z3 -f -d :ext:[EMAIL PROTECTED]:/cvs/yyy -q commit -R -F
D:\DOCUME~1\xxx\LOCALS~1\Temp\scm-commit-message59827.txt pom.xml
[INFO] Working directory: D:\workspace\project_path
[INFO] Tagging release with the label project_path-1_0...
[INFO] Executing: cvs -z3 -f -d :ext:[EMAIL PROTECTED]:/cvs/yyy -q tag -F -c
project_path-1_0
[INFO] Working directory: D:\workspace\project_path
[WARNING] Unknown status: '? '.
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Unable to tag SCM
Provider message:
The cvs tag command failed.
Command output:
cvs tag: failed to create lock directory for `/cvs/yyy/project_path/src
' (/cvs/yyy/project_path/src
/#cvs.lock): No such file or directory
cvs tag: failed to obtain dir lock in repository `/cvs/yyy/project_path/src
'
cvs [tag aborted]: read lock failed - giving up

[INFO]

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

[INFO] Total time: 20 seconds
[INFO] Finished at: Mon Oct 09 16:27:40 CEST 2006
[INFO] Final Memory: 6M/10M
[INFO]



The problem may be around a carriage/return at the end of the directory name
and before the /#cvs.lock filename.
I actually found a workaround by removing the trailing blank line at the end
of the CVS/Repository file in the project root, but it now appears that I
would have to do the same thing for all the subfolders of all my projects
(developped under the latest Eclipse 3.2.1/WTP1.5.1). However, changing all
those files that are supposed to be managed by Eclipse does not suit me so
much...

Did anyone have the same problem ?

Could the release-plugin manage to escape the empty line ?

Thank you in advance
Xavier


Re: docbook plugin

2006-10-09 Thread Andrés


El 09/10/2006 15:32, Wilfred Springer escribió:


It depends. You can use mine
(...)


Wilfred, I'm taking a look at your docbook plug-in. It looks great, but 
I've seen something strange in the user guide:


  

  generate-html

pre-site
  

I don't know about such a "pre-site" phase. Indeed, I think there's no 
"site" phase either. Is it a "typo", or I'm missing something?.


Thanks in advance.




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



  1   2   >