Re: Invalid maven.scm.url

2006-03-22 Thread Jeff Mutonho
The manual login sorted things out :).Thanx.However , the checking out
does not spit out info on what it's checking like what used to be the
case with 1.0.Is there something that needs to be set in order to make
it verbose?






--
"All I ask is a chance to prove that money can't make me happy."

Jeff

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: [M2]Maven Ear Plugin did not recognize the RAR Sub Project

2006-03-22 Thread Jian.Wu

Hi,

My second thought, would this be easier that I create a simple plugin
gentargetclassesdir to create
"target/classes" directory if it is not existed and associate it with
"process-resource" phase in my 
rar project?

Any suggestion or tip is realy appreciated

Jian
--
View this message in context: 
http://www.nabble.com/-M2-Maven-Ear-Plugin-did-not-recognize-the-RAR-Sub-Project-t1327696.html#a3547413
Sent from the Maven - Users forum at Nabble.com.


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



Re: Maven Experts M1 vs M2

2006-03-22 Thread Carlos Sanchez
Please don't repost your mails

On 3/23/06, raja bangaru <[EMAIL PROTECTED]> wrote:
> Attention all maven implementers
>
> Which is better? Maven 1.x OR Maven 2.x
>
> I found that most of the plugin support is for maven 1.x thru the following
> link
>
>
> But my current project needs to be future proof,...i mean we will implement
> for a .net project tooo
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

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



Re: Problem hibernate3 plugin cfg2cfgxml

2006-03-22 Thread Taavi Sildeberg

Hello,

I try to use plugin, but now  I get this error:

[INFO] Unresolved compilation problem:

[INFO] 


[DEBUG] Trace
java.lang.Error: Unresolved compilation problem:

at 
org.codehaus.mojo.hibernate3.HibernateUtils.getClassLoader(HibernateUtils.java:79)
at 
org.codehaus.mojo.hibernate3.HibernateExporterMojo.getClassLoader(HibernateExporterMojo.java:195)
at 
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporterMojo.java:56)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 



Can this be the problem, that I have both java 1.4 and 1.5 install in my 
machine?


All the best

Taavi

Johann Reyes wrote:

Hello Sylvain

Based in your plugin, I have added now the ability to support the auto
discovery of hibernate annotated classes to the plugin. If you like please
try it.

Regards

Johann Reyes

-Original Message-
From: Sylvain Vieujot [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 9:40 AM

To: [EMAIL PROTECTED]
Cc: Maven Users List
Subject: Re: Problem hibernate3 plugin cfg2cfgxml

I sometime have problems like this.
Try to do an "mvn clean" before.
For me it solved the problem.

On Wed, 2006-03-22 at 16:10 +0200, Taavi Sildeberg wrote:


Hello Sylvain,

When I try to use your plugin, I got this result from it:

C:\devTest\timemanager\data>mvn hibernate-annotations:mappings-compile
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix:

'hibernate-annotations'.
Downloading: 
http://repo1.maven.org/maven2/oracle/jdbc/10.2.0.1.0/jdbc-10.2.0.1.0.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 




[INFO] Building TimeManager Data Module
[INFO]task-segment: [hibernate-annotations:mappings-compile]
[INFO] 




[INFO] [hibernate-annotations:mappings-compile]
java.lang.NoClassDefFoundError: 
C:\devTest\timemanager\data\target\classes\ee\zero\data\user\Address 
(wrong name: ee/zero/data/user/Address)

 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
 at 


com.seanergie.maven.plugins.FileClassLoader.getClassFromFile(FileClassLoader
.java:54)
 at 


com.seanergie.maven.plugins.FileClassLoader.shouldBeMapped(FileClassLoader.j
ava:84)
 at 


com.seanergie.maven.plugins.AbstractHibernate.execute(AbstractHibernate.java
:82)
 at 


org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:415)
 at 


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:531)
 at 


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:485)
 at 


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:455)
 at 


org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:303)
 at 


org.apache.maven.lifec

Maven Experts M1 vs M2

2006-03-22 Thread raja bangaru
Attention all maven implementers

Which is better? Maven 1.x OR Maven 2.x

I found that most of the plugin support is for maven 1.x thru the following
link


But my current project needs to be future proof,...i mean we will implement
for a .net project tooo


Re: [M2]Maven Ear Plugin did not recognize the RAR Sub Project

2006-03-22 Thread Jian.Wu

Hi Kenney,

Thanks a lot for your quick reply!

> Conclusion: just run 'mvn install' or 'mvn package'

This is tolerable but not convenient. 

Based on your analysis, it looks like we have to change RAR Plugin to
create "target/classes" directory to make "mvn compile" successful since
RAR Plugin depends on Jar Plugin to create Jar file.

By the way, would you mind pointing me to where I can find more info
or code related to "reactor build"?

Thanks again,

Jian 
--
View this message in context: 
http://www.nabble.com/-M2-Maven-Ear-Plugin-did-not-recognize-the-RAR-Sub-Project-t1327696.html#a3546990
Sent from the Maven - Users forum at Nabble.com.


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



Maven experts! Maven1.x vs Maven2.x

2006-03-22 Thread raja bangaru
Attention all maven implementers

Which is better? Maven 1.x OR Maven 2.x

I found that most of the plugin support is for maven 1.x thru the following
link


But my current project needs to be future proof,...i mean we will implement
for a .net project tooo



http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Matrix


Re: Jsp precompilation

2006-03-22 Thread Sylvain Vieujot
I use the JSPC plugin too, and yes, you need those dependencies.
The reason for this is that the plugin on the 5.5.15 version of those
libraries, but there is no pom.xml file for the 5.5.15 on ibiblio.
So either you install the 5.5.15 version by hand, or you include the
dependencies to version 5.5.12.

HTH

Sylvain.

On Wed, 2006-03-22 at 16:48 +0100, Geoffrey De Smet wrote:

> Are you sure you actually need to define them in your dependencies?
> They are dependencies of the plugin (at least in the latest subversion 
> checkout), which would mean there's no need to depend on them in your 
> project using the plugin.
> 
> It's similar to not having to depend on the pmd jar (only on the pmd 
> plugin itself) when you use the pmd plugin.
> 
> Tom Joad wrote:
> > I know but jspc plugin needs these dependencies with compiled scope.
> > Perhaps i missed something somewhere but that what i saw when i used it.
> > Tom
> > 
> > 2006/3/22, Tomislav Stojcevich <[EMAIL PROTECTED]>:
> >> Use provided which makes them available at build time
> >> but keeps them out of your war.
> >>
> >> On 3/22/06, Tom Joad <[EMAIL PROTECTED]> wrote:
> >>> Hello,
> >>> Please see.
> >>>
> >>> http://mojo.codehaus.org/jspc-maven-plugin/
> >>>
> >>> We must add inside your pom.xml
> >>>
> >>>  
> >>> tomcat
> >>> jasper-runtime
> >>> 5.5.12
> >>> 
> >>>  
> >>> javax.servlet
> >>> servlet-api
> >>> 2.4
> >>> 
> >>> with compile scope dependency. The problem is that the two jars will
> >>> be included on your war file. You must delete them before deplloying
> >>> to tomcat
> >>>
> >>> and modify your web.xml by adding string
> >>> 
> >>> The plugin replaces this string by jsp/servlet mapping .
> >>>
> >>> Tom.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> 2006/3/22, Venkatagopalaraju <[EMAIL PROTECTED]>:
>  Dear Maven users,
> 
>  I am new to Maven build tool.I am not able to find Jsp 
>  precompilation Documents or information. When I am trying to compile 
>  jsp's in my project, It is not identifying. Anyone please help me out, 
>  what I need to add in my pom.xml for jsp precompilation.
> 
> 
>  Thanks & Regards
> Gopal
> 
> 
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >> --
> >> tom
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> 


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Alexandre Poitras
I am working on some documentation right now. If you want to see the
work in progress :
http://docs.codehaus.org/display/MAVENUSER/The+Maven+2+tutorial

On 3/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> this has all been "documented" in the email list multiple times
> but i'll agree it should be extracted and more officially documented
> on the Maven site somewhere
>
> also vincent m. has an onjava.com article from last year that talks
> about using maven1 for j2ee, a good bit of it is still relevant
> http://www.onjava.com/pub/a/onjava/2005/09/07/maven.html?page=1
>
> Wayne
>
>
> On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > I will - I guess I use the ear plugin to inculde the war since it's not
> > really a dependency ?
> >
> > Thanks guys - this needs to go on the maven site I guess ?
> >
> > On 22/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > >
> > > Yes exactly. I have the following:
> > > project root
> > > -pom.xml
> > > -lib
> > > ++pom.xml
> > > -ejb
> > > ++pom.xml
> > > -war
> > > ++pom.xml
> > > -ear
> > > ++pom.xml
> > >
> > > So every directory has a pom.xml file that describes the files and
> > > dependencies for that directory, and each one has a different
> > > packaging type declared.
> > >
> > > So lib depends on a few external resources, ejb depends on lib plus a
> > > couple others, war depends on ejb and some others, and ear depends on
> > > war.
> > >
> > > This is roughly how you'd want to construct a J2EE app in Maven2.
> > >
> > > There have been a lot of discussions on J2EE in the users@ list,
> > > search the mailing list archives for examples of poms etc...
> > >
> > > Wayne
> > >
> > >
> > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > So I need to use more than one pom in a parent child relationship,
> > > defining
> > > > the child poms as modules in the parent pom ?
> > > >
> > > > Then everything should be OK because each module is it's own context
> > > > 'brilliant!'
> > > >
> > > > Then what you say about adding the inter-depencies makes sense too.
> > > >
> > > > Yann thanks for your time.
> > > >
> > > > ps I found this too:
> > > >
> > > >
> > > http://communitygrids.blogspot.com/2006/02/maven-2-notes-part-6-multiproject_06.html
> > > >
> > > > On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Let Maven work for you ;)
> > > > >
> > > > > If you declare the JAR as a dependency in the WAR POM, the JAR will be
> > > > > included in the WAR. Same thing for EAR.
> > > > >
> > > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Sure
> > > > > >
> > > > > > The ear contains the war and the war contains the jar .. but I'm
> > > getting
> > > > > > closer.
> > > > > >
> > > > > >
> > > > > > On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > I'm not sure to understand what you want to achieve. If you want
> > > to
> > > > > have
> > > > > > > some resources packaged in META-INF, just put them into :
> > > > > > > * src/main/resources/META-INF for JAR
> > > > > > > * src/main/webapp/META-INF for WAR
> > > > > > > * src/main/application/META-INF for EAR
> > > > > > >
> > > > > > > Can you explain what you mean about multiple nested artifacts ?
> > > > > > >
> > > > > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > > > >
> > > > > > > > That approach doesn't look good because I don't this one pom can
> > > > > > easily
> > > > > > > > creat multiple artifacts which are nested in some way ?
> > > > > > > >
> > > > > > > > Should I be looking at archetype ?
> > > > > > > >
> > > > > > > > On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > > > >
> > > > > > > > >
> > > > > > > > > Well I started looking at the jar plugin first, and I couldn't
> > > see
> > > > > a
> > > > > > > way
> > > > > > > > > to limit what resources are added - not a problem for war or
> > > ear ?
> > > > > > > > >
> > > > > > > > > I suppose I could farm that out to ant ?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Mark,
> > > > > > > > > >
> > > > > > > > > > Did you check :
> > > > > > > > > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > > > > > > > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > > > > > > > > http://maven.apache.org/plugins/maven-war-plugin/
> > > > > > > > > > http://maven.apache.org/plugins/maven-ear-plugin/
> > > > > > > > > >
> > > > > > > > > > - Yann
> > > > > > > > > >
> > > > > > > > > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > > > > > > > > > >
> > > > > > > > > > > Is there any examples / articles on this ?
> > > > > > > > > > >
> > > > > > > > > > > The artifacts I am looking to create a jar, war, and ear
> > > all
> > > > > > with
> > > > > > > > > > varying
> > > > > > > > > > > resources in their respective META-INF folders ?
> > > > > > > > > > >
> > > > > > > > > > > Mark.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > 

Re: How can I use Maven with CVS?

2006-03-22 Thread Subhash Chandran
No. The changelog plugin operates exclusively on the SCM (in ur case CVS).
An example changelog report:

http://wiztools.org/project/WizCrypt/changelog.html

But, u may write a wrapper over ur build scripts that does the following:

1. When ever a build is triggered, the tag or the revision of the code is
persisted, may be in a DB.
2. A changelog report is generated between the previous tag/revision and the
current one being built. This way u will be able to find the commits between
the builds, and the commits that can cause a build failure.

Regards,
Subhash.

On 3/23/06, Allen Young <[EMAIL PROTECTED]> wrote:
>
> Can "changelog-maven-plugin" give me a report about junit testing
> containing
> author information? I was thinking this should be the responsiblity of
> "surefire-report-maven-plugin".
>
>
> 2006/3/23, Subhash Chandran <[EMAIL PROTECTED]>:
> >
> > The requirement regarding daily build is satisfied using the Continuum
> > project:
> >
> > http://maven.apache.org/continuum/
> >
> > This is a continuous integration server.
> >
> > Regarding the detail regarding who has committed what, we have the
> > changelog-maven-plugin:
> >
> > http://mojo.codehaus.org/changelog-maven-plugin/
> >
> > Regards,
> > Subhash.
> >
> > On 3/23/06, Allen Young <[EMAIL PROTECTED]> wrote:
> > >
> > > Here is the scenario:
> > >
> > > Several developers check their java code (including unit tests writing
> > in
> > > junit) into a CVS everyday. And I want to run a daily build to see if
> > all
> > > the code can be compiled and all the unit tests are passed. If there
> is
> > > any
> > > error about the compiling or unit test, I want to know which developer
> > is
> > > responsed to it.
> > > I know that using "surefire-report-maven-plugin" can generate a report
> > > including junit test result. But it seems that it doesn't contain the
> > > information about the author of the code and unit test. I also want to
> > > know
> > > how can I use Maven with CVS. Add a certain plugin?
> > >
> > > I think this is a common wanted functionality, shall we put an article
> > > about
> > > this at Maven's home page?
> > >
> > > Regards.
> > >
> > > Allen.
> > >
> >
> >
>
>


Re: How can I use Maven with CVS?

2006-03-22 Thread Allen Young
Can "changelog-maven-plugin" give me a report about junit testing containing
author information? I was thinking this should be the responsiblity of
"surefire-report-maven-plugin".


2006/3/23, Subhash Chandran <[EMAIL PROTECTED]>:
>
> The requirement regarding daily build is satisfied using the Continuum
> project:
>
> http://maven.apache.org/continuum/
>
> This is a continuous integration server.
>
> Regarding the detail regarding who has committed what, we have the
> changelog-maven-plugin:
>
> http://mojo.codehaus.org/changelog-maven-plugin/
>
> Regards,
> Subhash.
>
> On 3/23/06, Allen Young <[EMAIL PROTECTED]> wrote:
> >
> > Here is the scenario:
> >
> > Several developers check their java code (including unit tests writing
> in
> > junit) into a CVS everyday. And I want to run a daily build to see if
> all
> > the code can be compiled and all the unit tests are passed. If there is
> > any
> > error about the compiling or unit test, I want to know which developer
> is
> > responsed to it.
> > I know that using "surefire-report-maven-plugin" can generate a report
> > including junit test result. But it seems that it doesn't contain the
> > information about the author of the code and unit test. I also want to
> > know
> > how can I use Maven with CVS. Add a certain plugin?
> >
> > I think this is a common wanted functionality, shall we put an article
> > about
> > this at Maven's home page?
> >
> > Regards.
> >
> > Allen.
> >
>
>


Re: How can I use Maven with CVS?

2006-03-22 Thread Subhash Chandran
The requirement regarding daily build is satisfied using the Continuum
project:

http://maven.apache.org/continuum/

This is a continuous integration server.

Regarding the detail regarding who has committed what, we have the
changelog-maven-plugin:

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

Regards,
Subhash.

On 3/23/06, Allen Young <[EMAIL PROTECTED]> wrote:
>
> Here is the scenario:
>
> Several developers check their java code (including unit tests writing in
> junit) into a CVS everyday. And I want to run a daily build to see if all
> the code can be compiled and all the unit tests are passed. If there is
> any
> error about the compiling or unit test, I want to know which developer is
> responsed to it.
> I know that using "surefire-report-maven-plugin" can generate a report
> including junit test result. But it seems that it doesn't contain the
> information about the author of the code and unit test. I also want to
> know
> how can I use Maven with CVS. Add a certain plugin?
>
> I think this is a common wanted functionality, shall we put an article
> about
> this at Maven's home page?
>
> Regards.
>
> Allen.
>


How can I use Maven with CVS?

2006-03-22 Thread Allen Young
Here is the scenario:

Several developers check their java code (including unit tests writing in
junit) into a CVS everyday. And I want to run a daily build to see if all
the code can be compiled and all the unit tests are passed. If there is any
error about the compiling or unit test, I want to know which developer is
responsed to it.
I know that using "surefire-report-maven-plugin" can generate a report
including junit test result. But it seems that it doesn't contain the
information about the author of the code and unit test. I also want to know
how can I use Maven with CVS. Add a certain plugin?

I think this is a common wanted functionality, shall we put an article about
this at Maven's home page?

Regards.

Allen.


Re: Sun's jars, ibiblio and java.net repository: status?

2006-03-22 Thread Carlos Sanchez
There's a jira issue for that "provides" thing

On 3/23/06, jerome lacoste <[EMAIL PROTECTED]> wrote:
> On 3/20/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
> > A few months back I read something that Sun's jars (activation,
> > javamail, jca, netbeans libs, ...) etc might end up on ibiblio.
> > Still most of them aren't there yet.
> >
> > However there is a maven1 java.net repository with a lot of jars
> > auto-downloadable available at
> > https://maven-repository.dev.java.net/nonav/repository/
> > including for example the activation jar:
> > https://maven-repository.dev.java.net/nonav/repository/jaxb/jars/activation-1.0.2.jar
> > (with a wrong groupId)
> >
> > Is there any news on this matter?
>
> I have no idea if this is happening or not. Related to that, I have
> been wondering for a while if there's some sort of 'Provides' tag (as
> in the Debian package management system) to identify a library that
> fulfill a particular dependency. Differing libraries could provide for
> the same dependency.
>
> Someone depending on javamail just for compilation purposes shouldn't
> care if the lib that will be used by maven is Sun's official (taken
> from an internal corporate repos), geronimo's one, GNU classpath
> one
>
> Obviously that only works well when there's a centralized definition
> of dependencies, but that's a role the ibiblio uploaders could have.
>
> Jerome
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

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



Re: [M2]Maven Ear Plugin did not recognize the RAR Sub Project

2006-03-22 Thread Kenney Westerhof
On Wed, 22 Mar 2006, Jian.Wu wrote:

Hi,

This is perfectly normal operation. I'll explain what happens,
since it took me some time to see the problem :)

You're running 'mvn compile'. That means that no .jar, .rar, .ear,
or any other artifact, is being generated.

The ear plugin requires an artifact. If you're running a reactor build
(from RootProject), maven checks the projects in the scope to see
if xmpp-... is present, when it tries to resolve the dependencies
for the ear project.

It sees that it exists. Next, it tries to use the target/classes
directory as the 'artifact' (${project.build.outputDirectory}).
That's not present, since your rar project does not contain
any sources, right?

Then it tries to find the artifact using the normal dependency resolution
mechanism (local repo, remote repo's).

Conclusion: just run 'mvn install' or 'mvn package'.


-- Kenney


>
> Hi,
>
> I'm trying to build a EAR containing one or more RAR Components, I created
> a Project File Structure as the following:
>
> RootProject
> |  ( pom.xml as aggregator projects )
> |
> +-dispatch-rar-jar
> |  ( pom.xml which type is jar )
> |
> +-xmpp-adapter-dispatacher
> |  ( pom.xml which type is rar and depends on dispatch-rar-jar )
> |
> +-ns-ear
> | ( pom.xml which type is ear and depends on xmpp-adapter-dispatcher )
>
> If I exclude "ns-ear" project I can build xmpp-adapter-dispatcher.rar
> without
> problem. Also, I should say that, if I exclude my RAR project, I can also
> build
> ns.ear without problem.
>
> But, when I add "ns-ear" project trying to create my EAR File,
> Ear Plugin always reports the following error message:
> 
> [INFO] Building ns-EAR-Project
> [INFO]task-segment: [compile]
> [INFO]
> 
> Downloading:
> http://jianwu-pc.us.oracle.com/maven2repository/repositoryroot/orac
> le/ias/messaging/ns/xmpp-adapter-dispatcher/1.0-SNAPSHOT/xmpp-adapter-dispatcher
> -1.0-SNAPSHOT.rar
> [WARNING] Unable to get resource from repository http-repository
> (http://jianwu-
> pc.us.oracle.com/maven2repository/repositoryroot)
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Failed to resolve artifact.
>
> required artifacts missing:
>  oracle.ias.messaging.ns:xmpp-adapter-dispatcher:rar:1.0-SNAPSHOT
>
> for the artifact:
>  oracle.ias.messaging.ns:ns-ear:ear:1.0-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  http-repository
> (http://jianwu-pc.us.oracle.com/maven2repository/repositoryroo
> t)
>
> [INFO]
> 
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: required artifacts
> missi
> ng:
>  oracle.ias.messaging.ns:xmpp-adapter-dispatcher:rar:1.0-SNAPSHOT
>
> for the artifact:
>  oracle.ias.messaging.ns:ns-ear:ear:1.0-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  http-repository
> (http://jianwu-pc.us.oracle.com/maven2repository/repositoryroo
> t)
>
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:548)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:472)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:451)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:303)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:270)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:139)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
> requi
> red artifacts missing:
>  oracle.ias.messaging.ns:xm

Re: maven repository and artifact caching

2006-03-22 Thread Pierre Monestie
Thanks Stephen, that did it. I guess I didn't understand at first the
maven concept of SNAPSHOT.
Thanks again,
Pierre

On 3/22/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> It only checks if the version number changes.  If you want it to
> redownload even though the version number hasn't been explicitly
> changed, you need your versions to be SNAPSHOTs.  Such as
> 2.3-SNAPSHOT.  Then you can configure how often to download snapshots
> from the remote repository.
>
> -Stephen
>
> On 3/22/06, Pierre Monestie <[EMAIL PROTECTED]> wrote:
> > Hello,
> > I'm not sure I fully understand the 'philosophy' of maven:
> > If developper A does on artifactA:
> >  -mvn compile
> >  -mvn deploy
> > Assume the artifact is correctly deployed on the repository
> >
> > Now developper B comes and tries to compile artifactB which DEPENDS on
> > artifact A.
> > Shouldn't maven bring the last repository version before compiling,
> > even if the artifactA version number has not changed?
> > Or is it that maven sync the local cache only if the artifact version 
> > change?
> > It tried it and it doesn't seem to update unless I change the version
> > number in the pom file.
> > Is there a way to force this behaviour?
> > Thanks,
> > Pierre
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: [m2] Improper build number after deploying a snapshot of maven-javadoc-plugin

2006-03-22 Thread Kenney Westerhof
On Thu, 23 Mar 2006, Odea Ching wrote:

Hi Thorsten,

I remember a bug like this, but it was fixed long ago. Perhaps you're
using an old version of Maven 2? Maybe your proxy needs updating..

What version of maven2 are you using? What version of the deploy plugin is
used? (run mvn -X to find out.)

-- Kenney



> Hi Thorsten,
>
> mvn deploy automatically appends the timestamp when it deploys the jar
> file in the repository when it is a snapshot version.
> If you want to disable this, you would have to specify a version of the
> plugin instead of specifying it as a snapshot.
>
> Thanks,
> Odea
>
>
>
> Thorsten Heit wrote:
>
> >-BEGIN PGP SIGNED MESSAGE-
> >Hash: SHA1
> >
> >Hi,
> >
> >I'm trying to use the beta-4 snapshot of the maven-javadoc-plugin and
> >wanted to deploy it on my local proxy. The plugin is deployed via:
> >
> >$ mvn compile jar:jar
> >(lots of messages)
> >
> >$ cd target
> >$ mvn deploy:deploy-file -DrepositoryId=
> >- -Durl=file://H:/maven-proxy/target/repo-local -DpomFile=exported-pom.xml
> >- -Dfile=maven-javadoc-plugin-2.0-beta-4-SNAPSHOT.jar
> >(lots of messages)
> >
> >The plugin jar gets copied to the proxy, and so far everything seems to
> >be fine. In another project, I added the following lines to my pom.xml:
> >
> >
> >  
> >
> >  org.apache.maven.plugins
> >  maven-javadoc-plugin
> >  2.0-beta-4-SNAPSHOT
> >  
> >created
> >256m
> >  
> >
> >...
> >  
> >
> >
> >Unfortunately the plugin cannot be downloaded from my proxy:
> >
> >
> >$ mvn clean
> >[INFO] Scanning for projects...
> >[INFO]
> >-
> >
> >[INFO] Building base Repository
> >[INFO]task-segment: [clean]
> >[INFO]
> >-
> >
> >Downloading:
> >http://maven_proxy:/repository/org/apache/maven/plugins/maven-javadoc-plugin/2.0-beta-4-SNAPSHOT/maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.jar
> >[INFO]
> >-
> >
> >[ERROR] BUILD ERROR
> >[INFO]
> >-
> >
> >[INFO] Failed to resolve artifact.
> >
> >GroupId: org.apache.maven.plugins
> >ArtifactId: maven-javadoc-plugin
> >Version: 2.0-beta-4-20060322.180042-2
> >
> >Reason: Unable to locate resource in repository
> >
> >
> >org.apache.maven.plugins:maven-javadoc-plugin:maven-plugin:2.0-beta-4-20060322.180042-2
> >
> >from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2),
> >  bender (http://maven_proxy:/repository),
> >  snapshots-codehaus-org (http://snapshots.maven.codehaus.org/maven2)
> >
> >
> >which is strange because I just deployed it. I looked into the proxy
> >directories and wondered that the files are named differently:
> >
> >* maven-javadoc-plugin-2.0-beta-4-20060322.180042-1.jar
> >* maven-javadoc-plugin-2.0-beta-4-20060322.180042-1.jar.md5
> >* maven-javadoc-plugin-2.0-beta-4-20060322.180042-1.jar.sha1
> >* maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.pom
> >* maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.pom.md5
> >* maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.pom.sha1
> >
> >When I manually rename the -1.jar* files to -2.jar* the plugin is
> >downloadable, and "mvn clean" above will work...
> >
> >Is there a reason for this behaviour? Is this a bug?
> >
> >
> >Regards
> >
> >Thorsten
> >-BEGIN PGP SIGNATURE-
> >Version: GnuPG v1.4.2.2 (MingW32)
> >
> >iD8DBQFEIZVlQvObkgCcDe0RAjz7AJ9InFVTGyFAvwOSuy5W8BGujTkUHwCglbtO
> >9S4ieHuxassG1Cmg4sDUots=
> >=37Im
> >-END PGP SIGNATURE-
> >
> >-
> >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]
>

--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key

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



Re: maven repository and artifact caching

2006-03-22 Thread Stephen Duncan
It only checks if the version number changes.  If you want it to
redownload even though the version number hasn't been explicitly
changed, you need your versions to be SNAPSHOTs.  Such as
2.3-SNAPSHOT.  Then you can configure how often to download snapshots
from the remote repository.

-Stephen

On 3/22/06, Pierre Monestie <[EMAIL PROTECTED]> wrote:
> Hello,
> I'm not sure I fully understand the 'philosophy' of maven:
> If developper A does on artifactA:
>  -mvn compile
>  -mvn deploy
> Assume the artifact is correctly deployed on the repository
>
> Now developper B comes and tries to compile artifactB which DEPENDS on
> artifact A.
> Shouldn't maven bring the last repository version before compiling,
> even if the artifactA version number has not changed?
> Or is it that maven sync the local cache only if the artifact version change?
> It tried it and it doesn't seem to update unless I change the version
> number in the pom file.
> Is there a way to force this behaviour?
> Thanks,
> Pierre
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



[M2]Maven Ear Plugin did not recognize the RAR Sub Project

2006-03-22 Thread Jian.Wu

Hi,

I'm trying to build a EAR containing one or more RAR Components, I created
a Project File Structure as the following:

RootProject
|  ( pom.xml as aggregator projects )
|
+-dispatch-rar-jar
|  ( pom.xml which type is jar )
|
+-xmpp-adapter-dispatacher
|  ( pom.xml which type is rar and depends on dispatch-rar-jar )
|
+-ns-ear
| ( pom.xml which type is ear and depends on xmpp-adapter-dispatcher )

If I exclude "ns-ear" project I can build xmpp-adapter-dispatcher.rar
without
problem. Also, I should say that, if I exclude my RAR project, I can also
build
ns.ear without problem.

But, when I add "ns-ear" project trying to create my EAR File,
Ear Plugin always reports the following error message:

[INFO] Building ns-EAR-Project
[INFO]task-segment: [compile]
[INFO]

Downloading:
http://jianwu-pc.us.oracle.com/maven2repository/repositoryroot/orac
le/ias/messaging/ns/xmpp-adapter-dispatcher/1.0-SNAPSHOT/xmpp-adapter-dispatcher
-1.0-SNAPSHOT.rar
[WARNING] Unable to get resource from repository http-repository
(http://jianwu-
pc.us.oracle.com/maven2repository/repositoryroot)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

required artifacts missing:
 oracle.ias.messaging.ns:xmpp-adapter-dispatcher:rar:1.0-SNAPSHOT

for the artifact:
 oracle.ias.messaging.ns:ns-ear:ear:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 http-repository
(http://jianwu-pc.us.oracle.com/maven2repository/repositoryroo
t)

[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: required artifacts
missi
ng:
 oracle.ias.messaging.ns:xmpp-adapter-dispatcher:rar:1.0-SNAPSHOT

for the artifact:
 oracle.ias.messaging.ns:ns-ear:ear:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 http-repository
(http://jianwu-pc.us.oracle.com/maven2repository/repositoryroo
t)

   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:548)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:472)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:451)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:303)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:270)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:139)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
requi
red artifacts missing:
 oracle.ias.messaging.ns:xmpp-adapter-dispatcher:rar:1.0-SNAPSHOT

for the artifact:
 oracle.ias.messaging.ns:ns-ear:ear:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 http-repository
(http://jianwu-pc.us.oracle.com/maven2repository/repositoryroo
t)

   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:251)
   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:211)
   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
nsitively(DefaultArtifactResolver.java:182)
   at
org.apache.maven.plugin.DefaultPluginManager.resolveTransitiveDepende
ncies(DefaultPluginManager.java:1120)
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:369)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:531)
   ... 16 more
[INFO]

[INFO] Total time: 1

Re: [m2] Improper build number after deploying a snapshot of maven-javadoc-plugin

2006-03-22 Thread Odea Ching

Hi Thorsten,

mvn deploy automatically appends the timestamp when it deploys the jar 
file in the repository when it is a snapshot version.
If you want to disable this, you would have to specify a version of the 
plugin instead of specifying it as a snapshot.


Thanks,
Odea



Thorsten Heit wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I'm trying to use the beta-4 snapshot of the maven-javadoc-plugin and
wanted to deploy it on my local proxy. The plugin is deployed via:

$ mvn compile jar:jar
(lots of messages)

$ cd target
$ mvn deploy:deploy-file -DrepositoryId=
- -Durl=file://H:/maven-proxy/target/repo-local -DpomFile=exported-pom.xml
- -Dfile=maven-javadoc-plugin-2.0-beta-4-SNAPSHOT.jar
(lots of messages)

The plugin jar gets copied to the proxy, and so far everything seems to
be fine. In another project, I added the following lines to my pom.xml:


 
   
 org.apache.maven.plugins
 maven-javadoc-plugin
 2.0-beta-4-SNAPSHOT
 
   created
   256m
 
   
   ...
 


Unfortunately the plugin cannot be downloaded from my proxy:


$ mvn clean
[INFO] Scanning for projects...
[INFO]
-

[INFO] Building base Repository
[INFO]task-segment: [clean]
[INFO]
-

Downloading:
http://maven_proxy:/repository/org/apache/maven/plugins/maven-javadoc-plugin/2.0-beta-4-SNAPSHOT/maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.jar
[INFO]
-

[ERROR] BUILD ERROR
[INFO]
-

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-javadoc-plugin
Version: 2.0-beta-4-20060322.180042-2

Reason: Unable to locate resource in repository


org.apache.maven.plugins:maven-javadoc-plugin:maven-plugin:2.0-beta-4-20060322.180042-2

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 bender (http://maven_proxy:/repository),
 snapshots-codehaus-org (http://snapshots.maven.codehaus.org/maven2)


which is strange because I just deployed it. I looked into the proxy
directories and wondered that the files are named differently:

* maven-javadoc-plugin-2.0-beta-4-20060322.180042-1.jar
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-1.jar.md5
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-1.jar.sha1
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.pom
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.pom.md5
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.pom.sha1

When I manually rename the -1.jar* files to -2.jar* the plugin is
downloadable, and "mvn clean" above will work...

Is there a reason for this behaviour? Is this a bug?


Regards

Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEIZVlQvObkgCcDe0RAjz7AJ9InFVTGyFAvwOSuy5W8BGujTkUHwCglbtO
9S4ieHuxassG1Cmg4sDUots=
=37Im
-END PGP SIGNATURE-

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

 




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



FW: Problem with M2 on Windows Servers - running tests

2006-03-22 Thread Gest, Stephen B
Hello,
 
This problem is what is reported under SUREFIRE-30. I made the code
changes listed to the SurefireBooter class, updated the jar file, and
now I am able to successfully run the project tests.
 
Stephen
 
 Previous Posting ===
 
-Original Message-
From: Gest, Stephen B 
Sent: Wednesday, March 22, 2006 3:26 PM
To: 'users@maven.apache.org'
Subject: FW: Problem with M2 on Windows Servers - running tests


 
-Original Message-
From: Gest, Stephen B 
Sent: Wednesday, March 22, 2006 2:29 PM
To: 'users@maven.apache.org'
Subject: Problem with M2 on Windows Servers - running tests


Hello,
 
Here is additional information regarding the error:
 
Executing "mvn -X install" gives the following:
 
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\stgest\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'D:\Maven
2.0.2\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Web Service Framework for CME
[INFO]   WSF Common
[INFO]   WSF Provider Interface
[INFO]   WSF Hibernate Provider
[INFO]   WSF Model
[INFO]   WSF Object Server Provider
[INFO]   WSF Object Server Plugin
[INFO]   WSF Axis Demo Library
[INFO]   WSF Service Common
[INFO]   Axis integration
[INFO]   WSF Hibernate Demo Web-Application
[INFO]   WSF Object Server Demo Web-Application
[INFO]   WSF System Tests Common
[INFO]   WSF System Tests Hibernate
[INFO]   WSF System Tests Obs
[INFO]   WSF System Tests
[INFO]


[INFO] Building Web Service Framework for CME
[INFO]task-segment: [install]
[INFO]


[DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-site-plugin:maven-plugin:2.0-beta-4
[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[DEBUG] maven-install-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-install-plugin:maven-plugin:2.0
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-compiler-plugin:maven-plugin:2.0
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-surefire-plugin:maven-plugin:2.1.2
[DEBUG] maven-source-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-source-plugin:maven-plugin:2.0
[DEBUG] org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.0
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-project:jar:2.0
[DEBUG]   org.apache.maven:maven-project:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
(selected for runtime)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact:jar:2.0
[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0
[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-repository-metadata:jar:2.0
[DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0
(selected for runtime)
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0
[DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for
runtime)
[DEBUG]   org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3 (selected
for runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-source-plugin:2.0:jar' -->
[DEBUG]   (f) attach = true
[DEBUG]   (f) compileSourceRoots = [D:\project\wsf\src\main\java]
[DEBUG]   (f) finalName = obs-wsf-1.0pre6-SNAPSHOT
[DEBUG]   (f) outputDirectory = D:\project\wsf\target
[DEBUG]   (f) packaging = pom
[DEBUG]   (f) proje

maven repository and artifact caching

2006-03-22 Thread Pierre Monestie
Hello,
I'm not sure I fully understand the 'philosophy' of maven:
If developper A does on artifactA:
 -mvn compile
 -mvn deploy
Assume the artifact is correctly deployed on the repository

Now developper B comes and tries to compile artifactB which DEPENDS on
artifact A.
Shouldn't maven bring the last repository version before compiling,
even if the artifactA version number has not changed?
Or is it that maven sync the local cache only if the artifact version change?
It tried it and it doesn't seem to update unless I change the version
number in the pom file.
Is there a way to force this behaviour?
Thanks,
Pierre

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



Re: deploy: invalid private key

2006-03-22 Thread Stephen Duncan
Ok.  So, outside of Maven, you can ssh using that username and
passphrase.  And you're certain that the private key is located at
"/.ssh/identity"?  Normally it is "/.ssh/id_dsa"
or "/.ssh/id_rsa".  Finally, could you go ahead and send
the error message you get?

-Stephen

On 3/22/06, Bruno Patini Furtado <[EMAIL PROTECTED]> wrote:
> The settings.xml has the real values. My mistake in using different
> notations.
>
> On 3/21/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
> >
> > Where you have $user_name and $usr_home do you have in your actual
> > settings.xml the real values?  Wasn't clear since you used
> >  later to represent a value actually replaced in your
> > files...
> >
> > -Stephen
> >
> > On 3/21/06, Bruno Patini Furtado <[EMAIL PROTECTED]> wrote:
> > > Hi folks,
> > > I'm trying to deploy a artifact to a local intranet repository using
> > SCP, I
> > > can establish a ssh session using my pass phrase as expected, but I'm
> > having
> > > to success in configuring maven to make it.
> > >
> > > My settings.xml servers tag goes like this:
> > > 
> > >   ssh-repository
> > >   $user_name
> > >   $usr_home/.ssh/identity
> > >   
> > > 
> > >
> > > My pom.xml distributionManagement tag:
> > >   
> > > 
> > >   ssh-repository
> > >   scp:///
> > > 
> > >   
> > >
> > > I'm not using putty, which I've read has a key format issue and a key
> > > converter.
> > > I've looked a lot at the mailing list archives and in the maven
> > > documentation site.
> > > Any help in any page will be most appreciated :)
> > >
> > >
> > > --
> > > "Minds are like parachutes, they work best when open."
> > >
> > > Bruno Patini Furtado
> > > Software Developer
> > > webpage: www.bpfurtado.net
> > > software development blog: http://bpfurtado.livejournal.com
> > >
> > >
> >
> >
> > --
> > Stephen Duncan Jr
> > www.stephenduncanjr.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> "Minds are like parachutes, they work best when open."
>
> Bruno Patini Furtado
> Software Developer
> webpage: www.bpfurtado.net
> blog: http://bpfurtado.livejournal.com
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



Re: running a internal repositories

2006-03-22 Thread Pierre Monestie
Actually I just figured I needed to run this:
mvn deploy:deploy-file -DgroupId= \
-DartifactId= \
-Dversion= \
-Dpackaging= \
-Dfile= \
-DrepositoryId= \
-Durl=

Thanks,
Pierre

On 3/22/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote:
> What kind of errors do you get?
>
> Have you read this page yet?
> http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html
>
>
> _Mang Lau
>
>
>
>
>
> "Pierre Monestie" <[EMAIL PROTECTED]>
> 03/22/2006 04:55 PM
> Please respond to
> "Maven Users List" 
>
>
> To
> users@maven.apache.org
> cc
>
> Subject
> running a internal repositories
>
>
>
>
>
>
> Hi,
> I'm a bit confused as far as setting up an internal repository:
> So far I just copied what was in my local cache onto it and that
> worked. However what is the correct methods to install new jars onto
> it. More precisely I want to install libraries that are not in the
> maven central and for which I just have a jar. Maven will always
> complain if I don't have a pom associated with it. I tried maven
> install:install-file without success.
> Thanks,
> Pierre
>
> -
> 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: Should a WAR directory have Java code? And why does my WAR have both classes and Jars?

2006-03-22 Thread Stephen Duncan
Go ahead and send your pom.xml for the WAR project so we can figure it out.

It's ok to have java code specific to the webapp in the WAR project.

-Stephen

On 3/22/06, Gareth Western <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm just getting started with Maven and i'm jumping straight in to the deep
> end by trying to convert our existing multi-module project from large,
> complex Ant scripts to a (hopefully, by the end of it) simpler POM. The end
> result for the project is to create a WAR file, containing each of the
> previously complied modules as JARs. The directory structure is something
> like this:
>
> -module1
> --src
> ---java
> -module2
> --src
> ---java
> ...
> -warModule
> --src
> ---java
> ---webapp
>
> My first question is: is it ok to have both web application stuff (web.xml /
> graphics / etc) as well as java code to be compiled all in the same module
> (ie "warModule")? Or would it be better practice to take the Java classes
> from the warModule and create another module / JAR just for those, and then
> include those in to warModule?
>
> My second question is: I now have the project compiling and creating a WAR
> file. This WAR contains the web.xml, graphics and the JARs from the other
> modules, however it also seems to be including all the CLASS files from
> these JARs (ie the expanded JARs). So for example in the WAR I'll have a
> copy of module1.jar (which contains myClass1.class and myClass2.class), as
> well as a copy of myClass1.class and myClass2.class.
>
> Does anyone know what I could be doing to cause this? If not I can post a
> copy of the pom.xml from the modules (either the JAR ones, the WAR one, or
> both?).
>
> Thanks for any and all help.
>
> Gareth
>
>


--
Stephen Duncan Jr
www.stephenduncanjr.com

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



RE: FW: Problem with M2 on Windows Servers - running tests

2006-03-22 Thread Gest, Stephen B
Yes, the same project works successfully on Unix and Linux systems, and
also one other Windows system.
The project was used in Maven 1.1, with the success, using th same kinds
of directory names:

C:\Documents And Settings\...
D:\Maven 1.1\...

Also, if we run "mvn install -Dmaven.test.skip="true", then the project
builds successfully.
I would think that if it were a path issue with spaces, that the
compilation would also fail,
unless it is specific to the surefire plugin, which was not in Maven 1.1

Stephen 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 3:34 PM
To: Maven Users List
Subject: Re: FW: Problem with M2 on Windows Servers - running tests


Have you tried building these same exact projects etc on another system
ie Linux, Unix, or Mac OS X? If not, can you please try this, to ensure
that your problems are limited to Win32?

I would generally expect that your problems are related to the spaces in
folder names...

C:\Documents And Settings\...
D:\Maven 202\...

Wayne


On 3/22/06, Gest, Stephen B <[EMAIL PROTECTED]> wrote:
>
> -Original Message-
> From: Gest, Stephen B
> Sent: Wednesday, March 22, 2006 2:29 PM
> To: 'users@maven.apache.org'
> Subject: Problem with M2 on Windows Servers - running tests
>
>
> Hello,
>
> Here is additional information regarding the error:
>
> Executing "mvn -X install" gives the following:
>
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents 
> and Settings\stgest\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'D:\Maven 
> 2.0.2\conf\plugin-registry.xml' [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Web Service Framework for CME
> [INFO]   WSF Common
> [INFO]   WSF Provider Interface
> [INFO]   WSF Hibernate Provider
> [INFO]   WSF Model
> [INFO]   WSF Object Server Provider
> [INFO]   WSF Object Server Plugin
> [INFO]   WSF Axis Demo Library
> [INFO]   WSF Service Common
> [INFO]   Axis integration
> [INFO]   WSF Hibernate Demo Web-Application
> [INFO]   WSF Object Server Demo Web-Application
> [INFO]   WSF System Tests Common
> [INFO]   WSF System Tests Hibernate
> [INFO]   WSF System Tests Obs
> [INFO]   WSF System Tests
> [INFO]
>

> 
> [INFO] Building Web Service Framework for CME
> [INFO]task-segment: [install]
> [INFO]
>

> 
> [DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
> repository central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-site-plugin:maven-plugin:2.0-beta-4
> [INFO] Skipping missing optional mojo:
> org.apache.maven.plugins:maven-site-plugin:attach-descriptor
> [DEBUG] maven-install-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-install-plugin:maven-plugin:2.0
> [DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-compiler-plugin:maven-plugin:2.0
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-surefire-plugin:maven-plugin:2.1.2
> [DEBUG] maven-source-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-source-plugin:maven-plugin:2.0
> [DEBUG] org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.0
> (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-project:jar:2.0
> [DEBUG]   org.apache.maven:maven-project:jar:2.0 (selected for
runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
> runtime)
> [DEBUG]
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
> (selected for runtime)
> [DEBUG]   classworlds:classworlds:jar:1.1-alpha-2 (selected for
> runtime)
> [DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-artifact:jar:2.0
> [DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for
> runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-model:jar:2.0
> [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for
runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-artifact-manager:jar:2.0
> [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected
> for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-repository-metadata:jar:2.0
> [DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0
> (selected for runtime)
> [DEBUG]
org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
> (selected for runtime)

Re: FW: Problem with M2 on Windows Servers - running tests

2006-03-22 Thread Wayne Fay
Have you tried building these same exact projects etc on another
system ie Linux, Unix, or Mac OS X? If not, can you please try this,
to ensure that your problems are limited to Win32?

I would generally expect that your problems are related to the spaces
in folder names...

C:\Documents And Settings\...
D:\Maven 202\...

Wayne


On 3/22/06, Gest, Stephen B <[EMAIL PROTECTED]> wrote:
>
> -Original Message-
> From: Gest, Stephen B
> Sent: Wednesday, March 22, 2006 2:29 PM
> To: 'users@maven.apache.org'
> Subject: Problem with M2 on Windows Servers - running tests
>
>
> Hello,
>
> Here is additional information regarding the error:
>
> Executing "mvn -X install" gives the following:
>
> + Error stacktraces are turned on.
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
> and Settings\stgest\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from: 'D:\Maven
> 2.0.2\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   Web Service Framework for CME
> [INFO]   WSF Common
> [INFO]   WSF Provider Interface
> [INFO]   WSF Hibernate Provider
> [INFO]   WSF Model
> [INFO]   WSF Object Server Provider
> [INFO]   WSF Object Server Plugin
> [INFO]   WSF Axis Demo Library
> [INFO]   WSF Service Common
> [INFO]   Axis integration
> [INFO]   WSF Hibernate Demo Web-Application
> [INFO]   WSF Object Server Demo Web-Application
> [INFO]   WSF System Tests Common
> [INFO]   WSF System Tests Hibernate
> [INFO]   WSF System Tests Obs
> [INFO]   WSF System Tests
> [INFO]
> 
> 
> [INFO] Building Web Service Framework for CME
> [INFO]task-segment: [install]
> [INFO]
> 
> 
> [DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
> repository central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-site-plugin:maven-plugin:2.0-beta-4
> [INFO] Skipping missing optional mojo:
> org.apache.maven.plugins:maven-site-plugin:attach-descriptor
> [DEBUG] maven-install-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-install-plugin:maven-plugin:2.0
> [DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-compiler-plugin:maven-plugin:2.0
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-surefire-plugin:maven-plugin:2.1.2
> [DEBUG] maven-source-plugin: resolved to version 2.0 from repository
> central
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-source-plugin:maven-plugin:2.0
> [DEBUG] org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.0
> (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-project:jar:2.0
> [DEBUG]   org.apache.maven:maven-project:jar:2.0 (selected for runtime)
> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
> runtime)
> [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
> (selected for runtime)
> [DEBUG]   classworlds:classworlds:jar:1.1-alpha-2 (selected for
> runtime)
> [DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-artifact:jar:2.0
> [DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for
> runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-model:jar:2.0
> [DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-artifact-manager:jar:2.0
> [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected
> for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-repository-metadata:jar:2.0
> [DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0
> (selected for runtime)
> [DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
> (selected for runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> null:maven-profile:jar:2.0
> [DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for
> runtime)
> [DEBUG] Retrieving parent-POM from the repository for project:
> org.apache.maven:maven-plugin-api:jar:2.0
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for
> runtime)
> [DEBUG]   org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3 (selected
> for runtime)
> [DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for
> runtime)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-source-plugin:2.0:jar' -->
> [DEBUG]   (f) attach = true
> [DEBUG]   (f) compileSourceRoots = [D:\project\wsf\src\mai

FW: Problem with M2 on Windows Servers - running tests

2006-03-22 Thread Gest, Stephen B
 
-Original Message-
From: Gest, Stephen B 
Sent: Wednesday, March 22, 2006 2:29 PM
To: 'users@maven.apache.org'
Subject: Problem with M2 on Windows Servers - running tests


Hello,
 
Here is additional information regarding the error:
 
Executing "mvn -X install" gives the following:
 
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\stgest\.m2\plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 'D:\Maven
2.0.2\conf\plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Web Service Framework for CME
[INFO]   WSF Common
[INFO]   WSF Provider Interface
[INFO]   WSF Hibernate Provider
[INFO]   WSF Model
[INFO]   WSF Object Server Provider
[INFO]   WSF Object Server Plugin
[INFO]   WSF Axis Demo Library
[INFO]   WSF Service Common
[INFO]   Axis integration
[INFO]   WSF Hibernate Demo Web-Application
[INFO]   WSF Object Server Demo Web-Application
[INFO]   WSF System Tests Common
[INFO]   WSF System Tests Hibernate
[INFO]   WSF System Tests Obs
[INFO]   WSF System Tests
[INFO]


[INFO] Building Web Service Framework for CME
[INFO]task-segment: [install]
[INFO]


[DEBUG] maven-site-plugin: resolved to version 2.0-beta-4 from
repository central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-site-plugin:maven-plugin:2.0-beta-4
[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[DEBUG] maven-install-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-install-plugin:maven-plugin:2.0
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-compiler-plugin:maven-plugin:2.0
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-surefire-plugin:maven-plugin:2.1.2
[DEBUG] maven-source-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-source-plugin:maven-plugin:2.0
[DEBUG] org.apache.maven.plugins:maven-source-plugin:maven-plugin:2.0
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-project:jar:2.0
[DEBUG]   org.apache.maven:maven-project:jar:2.0 (selected for runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
(selected for runtime)
[DEBUG]   classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG]   junit:junit:jar:3.8.1 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact:jar:2.0
[DEBUG] org.apache.maven:maven-artifact:jar:2.0 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-model:jar:2.0
[DEBUG] org.apache.maven:maven-model:jar:2.0 (selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-artifact-manager:jar:2.0
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0 (selected
for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-repository-metadata:jar:2.0
[DEBUG]   org.apache.maven:maven-repository-metadata:jar:2.0
(selected for runtime)
[DEBUG]   org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
(selected for runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-profile:jar:2.0
[DEBUG] org.apache.maven:maven-profile:jar:2.0 (selected for
runtime)
[DEBUG] Retrieving parent-POM from the repository for project:
org.apache.maven:maven-plugin-api:jar:2.0
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0 (selected for
runtime)
[DEBUG]   org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-3 (selected
for runtime)
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2 (selected for
runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-source-plugin:2.0:jar' -->
[DEBUG]   (f) attach = true
[DEBUG]   (f) compileSourceRoots = [D:\project\wsf\src\main\java]
[DEBUG]   (f) finalName = obs-wsf-1.0pre6-SNAPSHOT
[DEBUG]   (f) outputDirectory = D:\project\wsf\target
[DEBUG]   (f) packaging = pom
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [source:jar {execution: default}]
[INFO] NOT adding java-sources to attached artifacts for packaging:
'pom'.
[DEBUG] org.apache.maven.plugins:maven-install-plugin:maven-plugin:2.0
(selected for runtime)
[DEBUG]   org.apache.maven:maven-artifact-manager:jar:2.0 (selected for
runtime)
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4 (selected for
runtime)
[DEBUG]  

Re: Continuum configuration

2006-03-22 Thread Gianfranco Oldani
Sorry for my st last question, I missed the basic fact that obviously 
continuum do the build only if there are changes. Sorry to be a newbee.


Gianfranco
Original Message Follows
From: "Gianfranco Oldani" <[EMAIL PROTECTED]>
Reply-To: continuum-users@maven.apache.org
To: continuum-users@maven.apache.org
Subject: Re: Continuum configuration
Date: Wed, 22 Mar 2006 22:04:27 +

Hello,
With the RC 1.0.3 the schedulers works fine. Just a question, is it possible 
(or is it planned to implement) to configure continuum in order that he 
detect for one or various specified projects that something has been 
committed and that he must trigger a build. In some sens its not a "time" 
triggering but a "change" triggering.


Regards

Gianfranco OLDANI
Mob: +41787330350
Web: www.gfoldani.com



Original Message Follows
From: "Gianfranco Oldani" <[EMAIL PROTECTED]>
Reply-To: continuum-users@maven.apache.org
To: continuum-users@maven.apache.org
Subject: Re: Continuum configuration
Date: Wed, 22 Mar 2006 18:59:01 +

Hi Dan,
[EMAIL PROTECTED]  thanks a lot I will try...;o))).

Gianfranco



Original Message Follows
From: "dan tran" <[EMAIL PROTECTED]>
Reply-To: continuum-users@maven.apache.org
To: continuum-users@maven.apache.org
Subject: Re: Continuum configuration
Date: Wed, 22 Mar 2006 09:44:10 -0800

it is a bug in 1.0.2 where user created schedule is ingored.

you can try out 1.0.3 rc

http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/

-D


On 3/22/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have installed Continuum and I am able to launch build manually from 
the

> http console. BUT I have defined various scheduling policy but none is
> taken
> into account. I mean no build start automatically. For example one of my
> schedule definition is :
>
> WebCoach
> WebCoach frequent rebuild. Every 5 minutes every day
> 0 0/5 * * * ?
> 0
>
> What I miss ?
>
> Regards and thanks in advance for help.
>
> Gianfranco OLDANI
> Mob: +41787330350
> Web: www.gfoldani.com
>
> _
> Vous rêvez de chaussettes aux doigts de pieds séparés? Demandez à MSN
> Search!
> http://search.msn.ch/results.aspx?q=chaussettes+originales&FORM=QBRE
>
>

_
Vous voulez adopter un chien mais ne savez pas où trouver Rex? MSN Search 
si. http://search.msn.ch/results.aspx?q=adopter+un+chien&FORM=QBRE


_
30 secondes pour écouter les tout derniers singles et décider de les 
télécharger http://sib1.od2.com/common/Framework.aspx?shid=0045002E


_
Vous rêvez de chaussettes aux doigts de pieds séparés? Demandez à MSN 
Search! http://search.msn.ch/results.aspx?q=chaussettes+originales&FORM=QBRE




Problem with M2 on Windows Servers - running tests

2006-03-22 Thread Gest, Stephen B
Hello,
 
We have a Java-based maven multi-project for which we've been using
Maven 1.0 successfully for several months.
We've recently upgraded to Maven 2.0.2, and for some of our systems, the
upgrade went successfully.
However, for two of our Windows systems, when we try and build the
project using Maven 2, we get the 
following error. We are able to perform an "mvn clean" successfully on
those machines, and also 
Java compilation succeeds. It's just running the tests that fails. When
the tests fail, under the "target"
directory exists a "classes" and a "test-classes" subdirectory, but no
"report" directory.
 
Any help you can give would be much appreciated.
 
Stephen
 

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order: 
[INFO]   Web Service Framework for CME
[INFO]   WSF Common
[INFO]   WSF Provider Interface
[INFO]   WSF Hibernate Provider
[INFO]   WSF Model
[INFO]   WSF Object Server Provider
[INFO]   WSF Object Server Plugin
[INFO]   WSF Axis Demo Library
[INFO]   WSF Service Common
[INFO]   Axis integration
[INFO]   WSF Hibernate Demo Web-Application
[INFO]   WSF Object Server Demo Web-Application
[INFO]   WSF System Tests Common
[INFO]   WSF System Tests Hibernate
[INFO]   WSF System Tests Obs
[INFO]   WSF System Tests
[INFO]


[INFO] Building Web Service Framework for CME
[INFO]task-segment: [install]
[INFO]


[INFO] Skipping missing optional mojo:
org.apache.maven.plugins:maven-site-plugin:attach-descriptor
[INFO] [source:jar {execution: default}]
[INFO] NOT adding java-sources to attached artifacts for packaging:
'pom'.
[INFO] [install:install]
[INFO] Installing D:\project\wsf\pom.xml to C:\Documents and
Settings\stgest\.m2\repository\com\hp\ov\obs\obs-wsf\1.0pre6-SNAPSHOT\ob
s-wsf-1.0pre6-SNAPSHOT.pom
[INFO]


[INFO] Building WSF Common
[INFO]task-segment: [install]
[INFO]


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Setting reports dir:
D:\project\wsf\obs-ws-common\target/surefire-reports
[INFO]


[ERROR] BUILD ERROR
[INFO]


[INFO] There are some test failure.
[INFO]


[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: There are some
test failure.
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:556)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:472)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:451)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:303)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:270)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:139)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
 at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
 at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
 at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
 at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: There are
some test failure.
 at
org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java:384)
 at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:415)
 at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:531)
 ... 16 more
[INFO]


[INFO] Total time: 5 seconds
[INFO] Finished at: Wed Mar 22 14:17:55 MST 2006
[INFO] Final Memory:

Re: Continuum configuration

2006-03-22 Thread Gianfranco Oldani

Hello,
With the RC 1.0.3 the schedulers works fine. Just a question, is it possible 
(or is it planned to implement) to configure continuum in order that he 
detect for one or various specified projects that something has been 
committed and that he must trigger a build. In some sens its not a "time" 
triggering but a "change" triggering.


Regards

Gianfranco OLDANI
Mob: +41787330350
Web: www.gfoldani.com



Original Message Follows
From: "Gianfranco Oldani" <[EMAIL PROTECTED]>
Reply-To: continuum-users@maven.apache.org
To: continuum-users@maven.apache.org
Subject: Re: Continuum configuration
Date: Wed, 22 Mar 2006 18:59:01 +

Hi Dan,
[EMAIL PROTECTED]  thanks a lot I will try...;o))).

Gianfranco



Original Message Follows
From: "dan tran" <[EMAIL PROTECTED]>
Reply-To: continuum-users@maven.apache.org
To: continuum-users@maven.apache.org
Subject: Re: Continuum configuration
Date: Wed, 22 Mar 2006 09:44:10 -0800

it is a bug in 1.0.2 where user created schedule is ingored.

you can try out 1.0.3 rc

http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/

-D


On 3/22/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have installed Continuum and I am able to launch build manually from 
the

> http console. BUT I have defined various scheduling policy but none is
> taken
> into account. I mean no build start automatically. For example one of my
> schedule definition is :
>
> WebCoach
> WebCoach frequent rebuild. Every 5 minutes every day
> 0 0/5 * * * ?
> 0
>
> What I miss ?
>
> Regards and thanks in advance for help.
>
> Gianfranco OLDANI
> Mob: +41787330350
> Web: www.gfoldani.com
>
> _
> Vous rêvez de chaussettes aux doigts de pieds séparés? Demandez à MSN
> Search!
> http://search.msn.ch/results.aspx?q=chaussettes+originales&FORM=QBRE
>
>

_
Vous voulez adopter un chien mais ne savez pas où trouver Rex? MSN Search 
si. http://search.msn.ch/results.aspx?q=adopter+un+chien&FORM=QBRE


_
30 secondes pour écouter les tout derniers singles et décider de les 
télécharger http://sib1.od2.com/common/Framework.aspx?shid=0045002E




Re: running a internal repositories

2006-03-22 Thread Mang Jun Lau
What kind of errors do you get?

Have you read this page yet?
http://maven.apache.org/guides/mini/guide-installing-3rd-party-jars.html


_Mang Lau





"Pierre Monestie" <[EMAIL PROTECTED]> 
03/22/2006 04:55 PM
Please respond to
"Maven Users List" 


To
users@maven.apache.org
cc

Subject
running a internal repositories






Hi,
I'm a bit confused as far as setting up an internal repository:
So far I just copied what was in my local cache onto it and that
worked. However what is the correct methods to install new jars onto
it. More precisely I want to install libraries that are not in the
maven central and for which I just have a jar. Maven will always
complain if I don't have a pom associated with it. I tried maven
install:install-file without success.
Thanks,
Pierre

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




running a internal repositories

2006-03-22 Thread Pierre Monestie
Hi,
I'm a bit confused as far as setting up an internal repository:
So far I just copied what was in my local cache onto it and that
worked. However what is the correct methods to install new jars onto
it. More precisely I want to install libraries that are not in the
maven central and for which I just have a jar. Maven will always
complain if I don't have a pom associated with it. I tried maven
install:install-file without success.
Thanks,
Pierre

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



[M2] Create Ant plugin from a Antlib build.xml file

2006-03-22 Thread Michael Meyer

Hi
I have created a build.xml file with antlib 
(http://maven.apache.org/ant-tasks.html).

It looks something like this:



 
   
 
   
 
 


 

 
   The version is ${maven.project.version}
 



Now I would like to create a maven 2 plugin from this build.xml file 
(http://maven.apache.org/guides/plugin/guide-ant-plugin-development.html).


Can anybody tell me where I could place the 
maven-artifact-ant-2.0-2-dep.jar so that the plugin finds it?
I tried adding it as a dependancy to the plugin, and I added it as a 
dependancy to the project that calls the plugin
and i tried adding it to main/src/resources. Nothing worked. I always 
get the classical ant error message that a library wasn't found...


Cheers, michael




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



Passing Version number thru properties in depdency section

2006-03-22 Thread raghurajan . x . gurunathan
Hi All,

As i'm not getting much reponse on my earlier post, here i'm posting again 
the same question

i already tried

1. Passing proj.version thru system property as -Dproj.version
2. First did mvn install on Module-A then tried 



I have some weird problem in may be pom inheritance

This is what my dirctory structure

Project
Module A
SubModule-A
|-pom.xml
   |-pom.xml

 Module B
SubModule-B
|- pom.xml
  |-pom.xml
|-pom.xml

lets say i have SubModule-A has a dependency in my SubModule-B

in my SubModule-B pom.xml i have

Project.ModuleA
SubModule-A
${proj.version}
jar
provided

 

here ${proj.version} comes from my .m2>settings.xml

When i run mvn deploy from top level (ie) c:\project everything works fine

but when i just want to deploy lets say Module B then when i ran mvn 
deploy from c:\project\ModuleB

its giving me error

   Downloading: http://Mycompany.repository.com/Project/Module 
A/${proj.version}/Module-A-${proj.version}.pom
[WARNING] Unable to get resource from repository Dev-Repo 
(http://Mycompany.repository.com)
Downloading: http://repo1.maven.org/maven2/Project/Module 
A/${proj.version}/Module-A-${proj.version}.pom
[WARNING] Unable to get resource from repository central 
(http://repo1.maven.org/maven2)
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Failed to resolve artifact.

GroupId: Project
ArtifactId: Module-A
Version: ${proj.version}

Reason: Unable to download the artifact from any repository

  Project.Module A:pom:${proj.version}

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  Dev-Repo (http://Mycompany.repository.com)


Any suggestion??


Thanks,
Raghu 


Re: System scope and transitive dependencies

2006-03-22 Thread Wayne Fay
I really don't suggest people use scope system. It just seems to cause
more problems than its worth (based entirely on the questions posed on
this list over the last few months).

[I hope they (Maven dev) will deprecate it soon -- it just doesn't fit
the desired Maven usage strategy, in my opinion.]

Install the jar into your local user repo, or corporate Maven repo,
etc and then use another scope that best fits your needs.

Wayne


On 3/22/06, Richard Sladek <[EMAIL PROTECTED]> wrote:
>
> One more question for today:
> Are system-scope dependencies supposed to be transitively resolved or not?
>
> My experience shows they are not. Any help on this?
>
> The reason for this is that I have a couple of jars related to a project
> which I don't want to store into the local rep. I have them just in /lib
> folder and reference them like:
> 
>  scheduler
>  scheduler
>  1.0
>  system
>  ${basedir}/lib/scheduler.jar
>
>
> However, once I run packaging /WAR/, such a jar is not resolved into the
> WEB-INF/lib folder :(
>
> --
> View this message in context: 
> http://www.nabble.com/System-scope-and-transitive-dependencies-t1326219.html#a3539651
> Sent from the Maven - Users forum at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: deploy: invalid private key

2006-03-22 Thread Bruno Patini Furtado
The settings.xml has the real values. My mistake in using different
notations.

On 3/21/06, Stephen Duncan <[EMAIL PROTECTED]> wrote:
>
> Where you have $user_name and $usr_home do you have in your actual
> settings.xml the real values?  Wasn't clear since you used
>  later to represent a value actually replaced in your
> files...
>
> -Stephen
>
> On 3/21/06, Bruno Patini Furtado <[EMAIL PROTECTED]> wrote:
> > Hi folks,
> > I'm trying to deploy a artifact to a local intranet repository using
> SCP, I
> > can establish a ssh session using my pass phrase as expected, but I'm
> having
> > to success in configuring maven to make it.
> >
> > My settings.xml servers tag goes like this:
> > 
> >   ssh-repository
> >   $user_name
> >   $usr_home/.ssh/identity
> >   
> > 
> >
> > My pom.xml distributionManagement tag:
> >   
> > 
> >   ssh-repository
> >   scp:///
> > 
> >   
> >
> > I'm not using putty, which I've read has a key format issue and a key
> > converter.
> > I've looked a lot at the mailing list archives and in the maven
> > documentation site.
> > Any help in any page will be most appreciated :)
> >
> >
> > --
> > "Minds are like parachutes, they work best when open."
> >
> > Bruno Patini Furtado
> > Software Developer
> > webpage: www.bpfurtado.net
> > software development blog: http://bpfurtado.livejournal.com
> >
> >
>
>
> --
> Stephen Duncan Jr
> www.stephenduncanjr.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
"Minds are like parachutes, they work best when open."

Bruno Patini Furtado
Software Developer
webpage: www.bpfurtado.net
blog: http://bpfurtado.livejournal.com


Re: [doxia] rendering xdoc separatly

2006-03-22 Thread Vincent Siveton
Arnaud,

You are right,  very poor documentation. See the doxia-site project.
The developers need to check the sources, and the tests.

Cheers,

Vincent

2006/3/22, Arnaud HERITIER <[EMAIL PROTECTED]>:
> Vincent,
>
> There's no documentation actually about doxia (except the javadoc and the
> tests) ?
>
> Arnaud
>
> On 3/22/06, Vincent Siveton <[EMAIL PROTECTED]> wrote:
> >
> > Hi Dominique,
> >
> > Have a look to test cases in the doxia-core
> >
> > http://svn.apache.org/repos/asf/maven/doxia/trunk/doxia-core/src/test/java/o
> > rg/apache/maven/doxia/module/xdoc
> >
> > HTH
> >
> > Vincent
> >
> > > -Original Message-
> > > From: Dominique JOCAL [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 22, 2006 4:55 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [doxia] rendering xdoc separatly
> > >
> > > Hi all,
> > >
> > > i would like to write some technical documentation in xdoc format and
> > > render it for an existing web site, out of a maven context.
> > >
> > > Is it possible to call some code from Doxia to render xdoc files
> > separatly
> > > ? We'd like to render it "online", is there already some servlet for
> > doing
> > > this ?
> > >
> > > I'm conscious web site integration issues have to be handled : support
> > of
> > > the site banner and/or menu, support of the site CSS... There is some
> > work
> > > to do even if this Doxia code could generate style-less XHTML.
> > >
> > > Thank you for your reading and your solutions or advises,
> > >
> > > Dominique.
> >
> >
>
>


Re: jboss-maven-plugin jboss:start does it work for anyone ?

2006-03-22 Thread Pete
o/s : Windows XP
Maven: 2.0.2
JBoss 4 : latest version for EJB3
Java 1.5
Will have to check the jboss-maven-plugin version at work tomorrow, but it
should be the latest as I specified no specific version in the pomx.xml

Thanks.

On 22/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> It would be helpful if you could include the following info:
>
> operating system
> maven version
> jboss version
> java/jdk version
> jboss-maven-plugin version
>
>
> Wayne
>
> On 3/22/06, Pete <[EMAIL PROTECTED]> wrote:
> > Has anyone succeeded in using the
> > jboss-maven-plugin
> >
> > to start JBoss ? It says starting...
> >
> > but as far as I can tell it isn't started ? I put a pause in the
> > pom.xmlusing AntRun just to make sure it wasn't shutting down again.
> >
> > I was hoping it would start JBoss the echo the console to the Maven2
> console
> > window ?
> > I'd then run some JUnits that require the container started, then stop
> > jboss.
> >
> >
> > [INFO] [jboss:start {execution: jboss-maven-plugin start container}]
> >
> > [INFO] Starting JBoss...
> >
> > POM.XML is like this
> >
> > 
> >  org.codehaus.mojo
> >  jboss-maven-plugin
> >  
> >  
> >   jboss-maven-plugin start container 
> >   install
> >   
> >
> >${JBossHome}
> >default
> >   
> >   
> >start
> >   
> >  
> >  
> > 
> >
> >
>


System scope and transitive dependencies

2006-03-22 Thread Richard Sladek

One more question for today:
Are system-scope dependencies supposed to be transitively resolved or not?
 
My experience shows they are not. Any help on this?

The reason for this is that I have a couple of jars related to a project
which I don't want to store into the local rep. I have them just in /lib
folder and reference them like:

  scheduler
  scheduler
  1.0
  system
  ${basedir}/lib/scheduler.jar


However, once I run packaging /WAR/, such a jar is not resolved into the
WEB-INF/lib folder :(

--
View this message in context: 
http://www.nabble.com/System-scope-and-transitive-dependencies-t1326219.html#a3539651
Sent from the Maven - Users forum at Nabble.com.


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



Re: Regarding MNG-1598

2006-03-22 Thread Mang Jun Lau
Issue filed: http://jira.codehaus.org/browse/MWAR-27


_Mang Lau





"Wayne Fay" <[EMAIL PROTECTED]> 
03/22/2006 02:04 PM
Please respond to
"Maven Users List" 


To
"Maven Users List" 
cc

Subject
Re: Regarding MNG-1598






Jar plugin != Ear plugin != War plugin
Potentially different people are responsible for each plugin.

So yes I'd file a MWAR bug to deal with it. Should be an "easy" fix
though since the EAR and JAR plugins have already handled it.

Wayne


On 3/22/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote:
> I'm trying to exclude that META-INF/maven directory in produced WARs.  I
> know the fix has been made for JARs.  It even works for EARs but how 
come
> not WARs?  Here is the issue I'm referring to:
> http://jira.codehaus.org/browse/MNG-1598
>
> Am I doing something wrong or does it indeed not work?  Should I file
> another issue about not being able to exclude this directory in produced
> WAR files?
>
>
> _Mang Lau
>



Re: jboss-maven-plugin jboss:start does it work for anyone ?

2006-03-22 Thread Wayne Fay
It would be helpful if you could include the following info:

operating system
maven version
jboss version
java/jdk version
jboss-maven-plugin version


Wayne

On 3/22/06, Pete <[EMAIL PROTECTED]> wrote:
> Has anyone succeeded in using the
> jboss-maven-plugin
>
> to start JBoss ? It says starting...
>
> but as far as I can tell it isn't started ? I put a pause in the
> pom.xmlusing AntRun just to make sure it wasn't shutting down again.
>
> I was hoping it would start JBoss the echo the console to the Maven2 console
> window ?
> I'd then run some JUnits that require the container started, then stop
> jboss.
>
>
> [INFO] [jboss:start {execution: jboss-maven-plugin start container}]
>
> [INFO] Starting JBoss...
>
> POM.XML is like this
>
> 
>  org.codehaus.mojo
>  jboss-maven-plugin
>  
>  
>   jboss-maven-plugin start container 
>   install
>   
>
>${JBossHome}
>default
>   
>   
>start
>   
>  
>  
> 
>
>


Re: Regarding MNG-1598

2006-03-22 Thread Wayne Fay
Jar plugin != Ear plugin != War plugin
Potentially different people are responsible for each plugin.

So yes I'd file a MWAR bug to deal with it. Should be an "easy" fix
though since the EAR and JAR plugins have already handled it.

Wayne


On 3/22/06, Mang Jun Lau <[EMAIL PROTECTED]> wrote:
> I'm trying to exclude that META-INF/maven directory in produced WARs.  I
> know the fix has been made for JARs.  It even works for EARs but how come
> not WARs?  Here is the issue I'm referring to:
> http://jira.codehaus.org/browse/MNG-1598
>
> Am I doing something wrong or does it indeed not work?  Should I file
> another issue about not being able to exclude this directory in produced
> WAR files?
>
>
> _Mang Lau
>


Re: Continuum configuration

2006-03-22 Thread Gianfranco Oldani

Hi Dan,
[EMAIL PROTECTED]  thanks a lot I will try...;o))).

Gianfranco



Original Message Follows
From: "dan tran" <[EMAIL PROTECTED]>
Reply-To: continuum-users@maven.apache.org
To: continuum-users@maven.apache.org
Subject: Re: Continuum configuration
Date: Wed, 22 Mar 2006 09:44:10 -0800

it is a bug in 1.0.2 where user created schedule is ingored.

you can try out 1.0.3 rc

http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/

-D


On 3/22/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have installed Continuum and I am able to launch build manually from 
the

> http console. BUT I have defined various scheduling policy but none is
> taken
> into account. I mean no build start automatically. For example one of my
> schedule definition is :
>
> WebCoach
> WebCoach frequent rebuild. Every 5 minutes every day
> 0 0/5 * * * ?
> 0
>
> What I miss ?
>
> Regards and thanks in advance for help.
>
> Gianfranco OLDANI
> Mob: +41787330350
> Web: www.gfoldani.com
>
> _
> Vous rêvez de chaussettes aux doigts de pieds séparés? Demandez à MSN
> Search!
> http://search.msn.ch/results.aspx?q=chaussettes+originales&FORM=QBRE
>
>

_
Vous voulez adopter un chien mais ne savez pas où trouver Rex? MSN Search 
si. http://search.msn.ch/results.aspx?q=adopter+un+chien&FORM=QBRE




Re: M2 - Best practice for common jars between EJB,WAR modules in EAR

2006-03-22 Thread Brad O'Hearne

Richard,

I feel your pain. I struggled with similar issues at great length  
several weeks back. On one hand, Maven's encouragement toward  
modularity is a good thing, but something that comes with that is  
that in handling upstream dependencies, there is no consideration  
given to the downstream archive being built. So on one hand, there's  
the argument that a WAR should be a self-contained archive, which is  
a good argument; but pragmatically, doing so may result in huge EAR  
files. Additionally, manipulating jar classpaths and the like doesn't  
really help much, because you need upstream manipulation of these,  
not just the EAR you are building. Add JBoss SARs and WSRs into the  
mix, and the whole deal gets really fun.


I am sure there are some maven experts here that can give you better  
advice than I on pursuing a solution. While it doesn't optimize file  
size, the way it works now, keeping everything self-contained and  
modular isn't a wrong approach -- you just probably won't like the  
size of your EAR file. One possible approach might be to alter the  
WAR plugin to allow inclusion or exclusion of dependencies, and treat  
things the way the JAR plugin works. Another approach might be to  
fork the EAR plugin and create a new plugin that will both create  
your WAR and EAR in the same project. Just thoughts, maybe not good  
ones, but ideas.


In the end, I concluded that the time investment to get it to  
optimize dependency packaging wasn't worth it, and that the nuisance  
of file size could be incurred. If you hit on a solution, let me know.


Brad


On Mar 22, 2006, at 11:23 AM, Wayne Fay wrote:


I've been wondering this myself and just "didn't care" enough to
really solve the "problem". ;-)

Fortunately the duplicated libs are not very large so it doesn't
affect me much (yet).

Anyone got a solution?

Wayne


On 3/22/06, Richard Sladek <[EMAIL PROTECTED]> wrote:


Hello,
I've been searching through the archive half of the day but I  
haven't found

a satisfactory solution to my problem:
I have an EAR including 2 modules: EJB JAR and WAR.
These 2 modules have some common dependencies, lets say  
mycommonlib.jar.


When I run the packaging on EAR, I get duplicates of mycommonlib.jar:
one is in EAR's root, the other is in WAR's WEB-INF/lib.

I found a way how to exclude this from WEB-INF/lib by providing:

   org.apache.maven.plugins
   maven-war-plugin
   
 WEB-INF/lib/*.jar
 
   
 true
 /
   
 
   
 
in my WAR's pom.xml

However, now none of my WAR's dependencies gets resolved to the  
EAR (see
http://jira.codehaus.org/browse/MEAR-14), even those that are not  
common.

Is there a way how could I force EAR plugin to enable transitive
dependencies on a WAR?

Also see
http://jira.codehaus.org/browse/MWAR-9
--
View this message in context: http://www.nabble.com/M2---Best- 
practice-for-common-jars-between-EJB%2CWAR-modules-in-EAR- 
t1325601.html#a3537700

Sent from the Maven - Users forum at Nabble.com.


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





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



Re: Project ignoring custom respository?

2006-03-22 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

> I assume this means it can't fetch the maven-resources-plugin from the
> repository (because it's not in my local one yet). But why didn't it then go
> on to try central?

Does your Maven proxy have direct access to the Internet, i.e. can your
proxy access ibiblio.org?

Some days ago ibiblio.org wasn't accessible for a few people for some
unknown reason, perhaps you should simply try again...?


Regards

Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEIZuVQvObkgCcDe0RApJHAKC1OH3rXdi2kOLD/N67TKtYTiWJwgCeMMlJ
EYvaLHhCMVtwDBoGEoDWKFI=
=W43x
-END PGP SIGNATURE-

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



Regarding MNG-1598

2006-03-22 Thread Mang Jun Lau
I'm trying to exclude that META-INF/maven directory in produced WARs.  I 
know the fix has been made for JARs.  It even works for EARs but how come 
not WARs?  Here is the issue I'm referring to:
http://jira.codehaus.org/browse/MNG-1598

Am I doing something wrong or does it indeed not work?  Should I file 
another issue about not being able to exclude this directory in produced 
WAR files?


_Mang Lau

Re: [m2] jetty6 plugin & log4j

2006-03-22 Thread Mark Hobson
On 22/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> I would think this might be addressed in the future when
> {interface} or something similar is added to
> Maven pom.
>
> Thus you could say in your jetty6 pom:
> javax.logging
>
> Then in the project pom:
> ...log4j...javax.logging
>
> Another perhaps more concrete example is javax.mail API and
> implementation. Sun created it originally but has a Sun Binary License
> so we can't distribute it in Maven repo. Projects Geronimo, Glassfish,
> and GNU Classpath all have their own versions of the javax.mail API.
> Ideally we could say in a pom "give me javax.mail, implementation 1.2
> or higher from someone" and then in another pom that depends on it, we
> could include "this is glassfish-mail.jar which implements the
> javax.mail 1.3 API" which would satisfy the dependency.
>
> I am fairly certain the Maven team knows about this use case and is
> actively working to design and implement a solution for it.

Yep, this kinda thing is scheduled for 2.1:

http://docs.codehaus.org/display/MAVEN/Specification+Dependencies+Design

Although a plugin exclusions block would provide a parallel to how
this situation is normally solve with regular project dependencies in
2.0.

Mark

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



Re: JAX-WS plugin for maven2

2006-03-22 Thread Daniel Kulp

Sefaan,

> I started working on Maven 2 and was trying to build a WS project using
> maven2 and JAX-WS RI 2.0 (EA 3.0) .
>
> Any ideas if there is a maven2 plug-in which I could use ?
>
> Using ant, the annotation processing tool (apt) can be used, but can
> apt be used using maven2 ?

Another option is to look at Celtix  ( and maybe contribute or at least 
file a request) 
http://celtix.objectweb.org/

We currently have a maven plugin for the WSDL -> Java and XSD -> java 
cases, but not the Java -> WSDL parts.   However the command lines tools 
are there to allow the Java -> WSDL stuff so writing the maven 2 mojo 
should be fairly straight forward.

We are going to start putting period snapshots up on the objectweb maven 2 
repositories at:
http://maven.objectweb.org/

Thanks!
-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727  C: 508-380-7194
[EMAIL PROTECTED]

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



Re: Sun's jars, ibiblio and java.net repository: status?

2006-03-22 Thread jerome lacoste
On 3/20/06, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
> A few months back I read something that Sun's jars (activation,
> javamail, jca, netbeans libs, ...) etc might end up on ibiblio.
> Still most of them aren't there yet.
>
> However there is a maven1 java.net repository with a lot of jars
> auto-downloadable available at
> https://maven-repository.dev.java.net/nonav/repository/
> including for example the activation jar:
> https://maven-repository.dev.java.net/nonav/repository/jaxb/jars/activation-1.0.2.jar
> (with a wrong groupId)
>
> Is there any news on this matter?

I have no idea if this is happening or not. Related to that, I have
been wondering for a while if there's some sort of 'Provides' tag (as
in the Debian package management system) to identify a library that
fulfill a particular dependency. Differing libraries could provide for
the same dependency.

Someone depending on javamail just for compilation purposes shouldn't
care if the lib that will be used by maven is Sun's official (taken
from an internal corporate repos), geronimo's one, GNU classpath
one

Obviously that only works well when there's a centralized definition
of dependencies, but that's a role the ibiblio uploaders could have.

Jerome

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



Re: [m2] jetty6 plugin & log4j

2006-03-22 Thread Wayne Fay
I would think this might be addressed in the future when
{interface} or something similar is added to
Maven pom.

Thus you could say in your jetty6 pom:
javax.logging

Then in the project pom:
...log4j...javax.logging

Another perhaps more concrete example is javax.mail API and
implementation. Sun created it originally but has a Sun Binary License
so we can't distribute it in Maven repo. Projects Geronimo, Glassfish,
and GNU Classpath all have their own versions of the javax.mail API.
Ideally we could say in a pom "give me javax.mail, implementation 1.2
or higher from someone" and then in another pom that depends on it, we
could include "this is glassfish-mail.jar which implements the
javax.mail 1.3 API" which would satisfy the dependency.

I am fairly certain the Maven team knows about this use case and is
actively working to design and implement a solution for it.

Wayne


On 3/22/06, Mark Hobson <[EMAIL PROTECTED]> wrote:
> Just spotted this thread - any avid readers may be interested in:
>
> http://jira.codehaus.org/browse/MNG-2163
>
> Mark
>
> On 20/02/06, David Main <[EMAIL PROTECTED]> wrote:
> > Ceki,
> >
> > Thanks very much for those pointers.  I see SLF4J seems to be your
> > creation!  From reading the documentation at your site, I see now why
> > all of my configuration efforts are ignored.
> >
> > And I can see now that this really isn't so much of a Maven issue as
> > a Jetty one.
> >
> > So double-thanks for stumbling across my message and pointing me in
> > the right direction.  I'm still not sure how to "instruct Maven or
> > Jetty to use the correct binding" (I'm somewhat of a newbie to Java/
> > Jetty/Maven), but I'll get there somehow.
> >
> > For what it's worth, I *love* Maven.  It has enhanced immeasurably my
> > development environment.  I would not have made nearly the progress I
> > have up to this point without it.
> >
> > --David
> >
> > > David,
> > >
> > > I am not very familiar with maven-jetty6-plugin. However, from what
> > > you describe, it looks like jetty is using SLF4J's SimpleLogger
> > > binding instead of its log4j binding. This is attested by the
> > > following line:
> > >
> > >   2 [main] INFO org.mortbay.log - Logging to
> > >  [EMAIL PROTECTED] via org.mortbay.log.Slf4jLog
> > >
> > > When Jetty uses SLF4J's SimpleLogger binding log4j configuration files
> > > have no affect as log4j is not used by Jetty. You need to instruct
> > > Maven or Jetty to use the correct binding. For more details on SLF4J
> > > bindings please see http://www.slf4j.org.
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: M2 - Best practice for common jars between EJB,WAR modules in EAR

2006-03-22 Thread Wayne Fay
I've been wondering this myself and just "didn't care" enough to
really solve the "problem". ;-)

Fortunately the duplicated libs are not very large so it doesn't
affect me much (yet).

Anyone got a solution?

Wayne


On 3/22/06, Richard Sladek <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I've been searching through the archive half of the day but I haven't found
> a satisfactory solution to my problem:
> I have an EAR including 2 modules: EJB JAR and WAR.
> These 2 modules have some common dependencies, lets say mycommonlib.jar.
>
> When I run the packaging on EAR, I get duplicates of mycommonlib.jar:
> one is in EAR's root, the other is in WAR's WEB-INF/lib.
>
> I found a way how to exclude this from WEB-INF/lib by providing:
> 
>org.apache.maven.plugins
>maven-war-plugin
>
>  WEB-INF/lib/*.jar
>  
>
>  true
>  /
>
>  
>
>  
> in my WAR's pom.xml
>
> However, now none of my WAR's dependencies gets resolved to the EAR (see
> http://jira.codehaus.org/browse/MEAR-14), even those that are not common.
> Is there a way how could I force EAR plugin to enable transitive
> dependencies on a WAR?
>
> Also see
> http://jira.codehaus.org/browse/MWAR-9
> --
> View this message in context: 
> http://www.nabble.com/M2---Best-practice-for-common-jars-between-EJB%2CWAR-modules-in-EAR-t1325601.html#a3537700
> Sent from the Maven - Users forum at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Wayne Fay
this has all been "documented" in the email list multiple times
but i'll agree it should be extracted and more officially documented
on the Maven site somewhere

also vincent m. has an onjava.com article from last year that talks
about using maven1 for j2ee, a good bit of it is still relevant
http://www.onjava.com/pub/a/onjava/2005/09/07/maven.html?page=1

Wayne


On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> I will - I guess I use the ear plugin to inculde the war since it's not
> really a dependency ?
>
> Thanks guys - this needs to go on the maven site I guess ?
>
> On 22/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> >
> > Yes exactly. I have the following:
> > project root
> > -pom.xml
> > -lib
> > ++pom.xml
> > -ejb
> > ++pom.xml
> > -war
> > ++pom.xml
> > -ear
> > ++pom.xml
> >
> > So every directory has a pom.xml file that describes the files and
> > dependencies for that directory, and each one has a different
> > packaging type declared.
> >
> > So lib depends on a few external resources, ejb depends on lib plus a
> > couple others, war depends on ejb and some others, and ear depends on
> > war.
> >
> > This is roughly how you'd want to construct a J2EE app in Maven2.
> >
> > There have been a lot of discussions on J2EE in the users@ list,
> > search the mailing list archives for examples of poms etc...
> >
> > Wayne
> >
> >
> > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > So I need to use more than one pom in a parent child relationship,
> > defining
> > > the child poms as modules in the parent pom ?
> > >
> > > Then everything should be OK because each module is it's own context
> > > 'brilliant!'
> > >
> > > Then what you say about adding the inter-depencies makes sense too.
> > >
> > > Yann thanks for your time.
> > >
> > > ps I found this too:
> > >
> > >
> > http://communitygrids.blogspot.com/2006/02/maven-2-notes-part-6-multiproject_06.html
> > >
> > > On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Let Maven work for you ;)
> > > >
> > > > If you declare the JAR as a dependency in the WAR POM, the JAR will be
> > > > included in the WAR. Same thing for EAR.
> > > >
> > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Sure
> > > > >
> > > > > The ear contains the war and the war contains the jar .. but I'm
> > getting
> > > > > closer.
> > > > >
> > > > >
> > > > > On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > I'm not sure to understand what you want to achieve. If you want
> > to
> > > > have
> > > > > > some resources packaged in META-INF, just put them into :
> > > > > > * src/main/resources/META-INF for JAR
> > > > > > * src/main/webapp/META-INF for WAR
> > > > > > * src/main/application/META-INF for EAR
> > > > > >
> > > > > > Can you explain what you mean about multiple nested artifacts ?
> > > > > >
> > > > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > That approach doesn't look good because I don't this one pom can
> > > > > easily
> > > > > > > creat multiple artifacts which are nested in some way ?
> > > > > > >
> > > > > > > Should I be looking at archetype ?
> > > > > > >
> > > > > > > On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > >
> > > > > > > > Well I started looking at the jar plugin first, and I couldn't
> > see
> > > > a
> > > > > > way
> > > > > > > > to limit what resources are added - not a problem for war or
> > ear ?
> > > > > > > >
> > > > > > > > I suppose I could farm that out to ant ?
> > > > > > > >
> > > > > > > >
> > > > > > > >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > > > > > >
> > > > > > > > > Hi Mark,
> > > > > > > > >
> > > > > > > > > Did you check :
> > > > > > > > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > > > > > > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > > > > > > > http://maven.apache.org/plugins/maven-war-plugin/
> > > > > > > > > http://maven.apache.org/plugins/maven-ear-plugin/
> > > > > > > > >
> > > > > > > > > - Yann
> > > > > > > > >
> > > > > > > > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > > > > > > > > >
> > > > > > > > > > Is there any examples / articles on this ?
> > > > > > > > > >
> > > > > > > > > > The artifacts I am looking to create a jar, war, and ear
> > all
> > > > > with
> > > > > > > > > varying
> > > > > > > > > > resources in their respective META-INF folders ?
> > > > > > > > > >
> > > > > > > > > > Mark.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
>


[m2] Improper build number after deploying a snapshot of maven-javadoc-plugin

2006-03-22 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I'm trying to use the beta-4 snapshot of the maven-javadoc-plugin and
wanted to deploy it on my local proxy. The plugin is deployed via:

$ mvn compile jar:jar
(lots of messages)

$ cd target
$ mvn deploy:deploy-file -DrepositoryId=
- -Durl=file://H:/maven-proxy/target/repo-local -DpomFile=exported-pom.xml
- -Dfile=maven-javadoc-plugin-2.0-beta-4-SNAPSHOT.jar
(lots of messages)

The plugin jar gets copied to the proxy, and so far everything seems to
be fine. In another project, I added the following lines to my pom.xml:


  

  org.apache.maven.plugins
  maven-javadoc-plugin
  2.0-beta-4-SNAPSHOT
  
created
256m
  

...
  


Unfortunately the plugin cannot be downloaded from my proxy:


$ mvn clean
[INFO] Scanning for projects...
[INFO]
-

[INFO] Building base Repository
[INFO]task-segment: [clean]
[INFO]
-

Downloading:
http://maven_proxy:/repository/org/apache/maven/plugins/maven-javadoc-plugin/2.0-beta-4-SNAPSHOT/maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.jar
[INFO]
-

[ERROR] BUILD ERROR
[INFO]
-

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-javadoc-plugin
Version: 2.0-beta-4-20060322.180042-2

Reason: Unable to locate resource in repository


org.apache.maven.plugins:maven-javadoc-plugin:maven-plugin:2.0-beta-4-20060322.180042-2

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  bender (http://maven_proxy:/repository),
  snapshots-codehaus-org (http://snapshots.maven.codehaus.org/maven2)


which is strange because I just deployed it. I looked into the proxy
directories and wondered that the files are named differently:

* maven-javadoc-plugin-2.0-beta-4-20060322.180042-1.jar
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-1.jar.md5
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-1.jar.sha1
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.pom
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.pom.md5
* maven-javadoc-plugin-2.0-beta-4-20060322.180042-2.pom.sha1

When I manually rename the -1.jar* files to -2.jar* the plugin is
downloadable, and "mvn clean" above will work...

Is there a reason for this behaviour? Is this a bug?


Regards

Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEIZVlQvObkgCcDe0RAjz7AJ9InFVTGyFAvwOSuy5W8BGujTkUHwCglbtO
9S4ieHuxassG1Cmg4sDUots=
=37Im
-END PGP SIGNATURE-

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



M2 - Best practice for common jars between EJB,WAR modules in EAR

2006-03-22 Thread Richard Sladek

Hello,
I've been searching through the archive half of the day but I haven't found
a satisfactory solution to my problem:
I have an EAR including 2 modules: EJB JAR and WAR.
These 2 modules have some common dependencies, lets say mycommonlib.jar.

When I run the packaging on EAR, I get duplicates of mycommonlib.jar:
one is in EAR's root, the other is in WAR's WEB-INF/lib.

I found a way how to exclude this from WEB-INF/lib by providing:
 
org.apache.maven.plugins
maven-war-plugin

  WEB-INF/lib/*.jar
  

  true
  /

  

  
in my WAR's pom.xml

However, now none of my WAR's dependencies gets resolved to the EAR (see
http://jira.codehaus.org/browse/MEAR-14), even those that are not common.
Is there a way how could I force EAR plugin to enable transitive
dependencies on a WAR?

Also see
http://jira.codehaus.org/browse/MWAR-9
--
View this message in context: 
http://www.nabble.com/M2---Best-practice-for-common-jars-between-EJB%2CWAR-modules-in-EAR-t1325601.html#a3537700
Sent from the Maven - Users forum at Nabble.com.


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



Re: JAX-WS plugin for maven2

2006-03-22 Thread Eddie O'Neil
Stefaan--

  Hey, I'm not aware of a Maven2 plugin that could be used to
specifically build JAX-WS related source files, but there are a couple
of options for APT (annotation processing tool) support.  These are

1) the patch in this bug:
  http://jira.codehaus.org/browse/MNG-2089?page=all
that supports running apt.exe during code generation phase
2) the code here:
  http://svn.apache.org/repos/asf/beehive/sandbox/maven2/maven-apt-compiler/
that adds support for configuring APT as a compiler used during "compile" phase

  Both should work -- JB (author of the first) and I (author of the
second) have talked about how to integrate these into a single plugin
that could be used to run APT in either phase and as an alternate to
"javac".  To setup the latter (after installing the plugin and
registering the compiler), you'd just need to add the XML below to
your pom.xml file; configuration for (1) is similar.

  Hope that helps...

Eddie



::: pom.xml



org.apache.maven.plugins
maven-compiler-plugin

apt
1.5
1.5
true
true

target/srcgen





:::





On 3/13/06, Stefaan Hallet <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I started working on Maven 2 and was trying to build a WS project using
> maven2 and JAX-WS RI 2.0 (EA 3.0) .
>
> Any ideas if there is a maven2 plug-in which I could use ?
>
> Using ant, the annotation processing tool (apt) can be used, but can apt be
> used using maven2 ?
>
> Any suggestions?
>
> Thanks,
>
> Stefaan
>
>
>
>
>

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



Re: [m2] jetty6 plugin & log4j

2006-03-22 Thread Mark Hobson
Just spotted this thread - any avid readers may be interested in:

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

Mark

On 20/02/06, David Main <[EMAIL PROTECTED]> wrote:
> Ceki,
>
> Thanks very much for those pointers.  I see SLF4J seems to be your
> creation!  From reading the documentation at your site, I see now why
> all of my configuration efforts are ignored.
>
> And I can see now that this really isn't so much of a Maven issue as
> a Jetty one.
>
> So double-thanks for stumbling across my message and pointing me in
> the right direction.  I'm still not sure how to "instruct Maven or
> Jetty to use the correct binding" (I'm somewhat of a newbie to Java/
> Jetty/Maven), but I'll get there somehow.
>
> For what it's worth, I *love* Maven.  It has enhanced immeasurably my
> development environment.  I would not have made nearly the progress I
> have up to this point without it.
>
> --David
>
> > David,
> >
> > I am not very familiar with maven-jetty6-plugin. However, from what
> > you describe, it looks like jetty is using SLF4J's SimpleLogger
> > binding instead of its log4j binding. This is attested by the
> > following line:
> >
> >   2 [main] INFO org.mortbay.log - Logging to
> >  [EMAIL PROTECTED] via org.mortbay.log.Slf4jLog
> >
> > When Jetty uses SLF4J's SimpleLogger binding log4j configuration files
> > have no affect as log4j is not used by Jetty. You need to instruct
> > Maven or Jetty to use the correct binding. For more details on SLF4J
> > bindings please see http://www.slf4j.org.
>
>

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



Re: Project ignoring custom respository?

2006-03-22 Thread Gareth Western
Ah thanks! Ok, so now i'm getting somewhere. Now my internal maven proxy is
being contacted, however it doesn't seem to be able to fetch anything from
central. For example: I removed everything from ~/.m2/repository and ran my
project again, however it fell over straight away with:
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not
exist or no valid version could be found
[INFO]

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


I assume this means it can't fetch the maven-resources-plugin from the
repository (because it's not in my local one yet). But why didn't it then go
on to try central?

Sorry for all the bother, and once again thank you for your help!

Gareth

On 3/22/06, Thorsten Heit <[EMAIL PROTECTED]> wrote:

>
> No, the proxy is always contacted. See
> http://maven.apache.org/guides/mini/guide-mirror-settings.html
>
> Thorsten
>
>
>


Re: Continuum configuration

2006-03-22 Thread Emmanuel Venisse

only the RC, not latest because it doesn't work

http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/continuum-20060316.173001.tar.gz

Emmanuel

dan tran a écrit :

it is a bug in 1.0.2 where user created schedule is ingored.

you can try out 1.0.3 rc

http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/

-D


On 3/22/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:


Hello,
I have installed Continuum and I am able to launch build manually from the
http console. BUT I have defined various scheduling policy but none is
taken
into account. I mean no build start automatically. For example one of my
schedule definition is :

WebCoach
WebCoach frequent rebuild. Every 5 minutes every day
0 0/5 * * * ?
0

What I miss ?

Regards and thanks in advance for help.

Gianfranco OLDANI
Mob: +41787330350
Web: www.gfoldani.com

_
Vous rêvez de chaussettes aux doigts de pieds séparés? Demandez à MSN
Search!
http://search.msn.ch/results.aspx?q=chaussettes+originales&FORM=QBRE









Re: Project ignoring custom respository?

2006-03-22 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Gareth,

> Thanks for your reply! So by doing that, you're saying that you only want to
> use your mirror if the central repo is down, correct?

No, the proxy is always contacted. See
http://maven.apache.org/guides/mini/guide-mirror-settings.html


> However I would like to use the maven proxy before trying to contact
> central. What am I getting wrong?

That's exactly what I'm doing here: If a file doesn't yet exist on the
proxy, it is fetched from central :-)


Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEIY1oQvObkgCcDe0RAuUJAJ0VpwIT47SyFL37UcVZJIzEZJiVcQCeLTpo
EwLA5ubgKgiRTaNB7sGR3Ak=
=lyAR
-END PGP SIGNATURE-

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



Re: Continuum configuration

2006-03-22 Thread dan tran
it is a bug in 1.0.2 where user created schedule is ingored.

you can try out 1.0.3 rc

http://maven.zones.apache.org/~continuum/builds/branches/continuum-1.0.x/

-D


On 3/22/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
>
> Hello,
> I have installed Continuum and I am able to launch build manually from the
> http console. BUT I have defined various scheduling policy but none is
> taken
> into account. I mean no build start automatically. For example one of my
> schedule definition is :
>
> WebCoach
> WebCoach frequent rebuild. Every 5 minutes every day
> 0 0/5 * * * ?
> 0
>
> What I miss ?
>
> Regards and thanks in advance for help.
>
> Gianfranco OLDANI
> Mob: +41787330350
> Web: www.gfoldani.com
>
> _
> Vous rêvez de chaussettes aux doigts de pieds séparés? Demandez à MSN
> Search!
> http://search.msn.ch/results.aspx?q=chaussettes+originales&FORM=QBRE
>
>


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Mark
yeah - I was missing *war* in my ear dependency list so it was
looking for a jar to add !


On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
>
> Falling at the last fence - including the war in the ear ?
>
>
>
>
>
> On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
> >
> > I will - I guess I use the ear plugin to inculde the war since it's not
> > really a dependency ?
> >
> > Thanks guys - this needs to go on the maven site I guess ?
> >
> >  On 22/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > >
> > > Yes exactly. I have the following:
> > > project root
> > > -pom.xml
> > > -lib
> > > ++pom.xml
> > > -ejb
> > > ++pom.xml
> > > -war
> > > ++pom.xml
> > > -ear
> > > ++pom.xml
> > >
> > > So every directory has a pom.xml file that describes the files and
> > > dependencies for that directory, and each one has a different
> > > packaging type declared.
> > >
> > > So lib depends on a few external resources, ejb depends on lib plus a
> > > couple others, war depends on ejb and some others, and ear depends on
> > > war.
> > >
> > > This is roughly how you'd want to construct a J2EE app in Maven2.
> > >
> > > There have been a lot of discussions on J2EE in the users@ list,
> > > search the mailing list archives for examples of poms etc...
> > >
> > > Wayne
> > >
> > >
> > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > > > So I need to use more than one pom in a parent child relationship,
> > > defining
> > > > the child poms as modules in the parent pom ?
> > > >
> > > > Then everything should be OK because each module is it's own context
> > >
> > > > 'brilliant!'
> > > >
> > > > Then what you say about adding the inter-depencies makes sense too.
> > > >
> > > > Yann thanks for your time.
> > > >
> > > > ps I found this too:
> > > >
> > > > http://communitygrids.blogspot.com/2006/02/maven-2-notes-part-6-multiproject_06.html
> > >
> > > >
> > > > On 22/03/06, Yann Le Du < [EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Let Maven work for you ;)
> > > > >
> > > > > If you declare the JAR as a dependency in the WAR POM, the JAR
> > > will be
> > > > > included in the WAR. Same thing for EAR.
> > > > >
> > > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Sure
> > > > > >
> > > > > > The ear contains the war and the war contains the jar .. but I'm
> > > getting
> > > > > > closer.
> > > > > >
> > > > > >
> > > > > > On 22/03/06, Yann Le Du < [EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > I'm not sure to understand what you want to achieve. If you
> > > want to
> > > > > have
> > > > > > > some resources packaged in META-INF, just put them into :
> > > > > > > * src/main/resources/META-INF for JAR
> > > > > > > * src/main/webapp/META-INF for WAR
> > > > > > > * src/main/application/META-INF for EAR
> > > > > > >
> > > > > > > Can you explain what you mean about multiple nested artifacts
> > > ?
> > > > > > >
> > > > > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > > > >
> > > > > > > > That approach doesn't look good because I don't this one pom
> > > can
> > > > > > easily
> > > > > > > > creat multiple artifacts which are nested in some way ?
> > > > > > > >
> > > > > > > > Should I be looking at archetype ?
> > > > > > > >
> > > > > > > > On 22/03/06, Mark < [EMAIL PROTECTED]> wrote:
> > > > > > > >
> > > > > > > > >
> > > > > > > > > Well I started looking at the jar plugin first, and I
> > > couldn't see
> > > > > a
> > > > > > > way
> > > > > > > > > to limit what resources are added - not a problem for war
> > > or ear ?
> > > > > > > > >
> > > > > > > > > I suppose I could farm that out to ant ?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED] > wrote:
> > > > > > > > > >
> > > > > > > > > > Hi Mark,
> > > > > > > > > >
> > > > > > > > > > Did you check :
> > > > > > > > > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > > > > > > > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > > > > > > > > http://maven.apache.org/plugins/maven-war-plugin/
> > > > > > > > > > http://maven.apache.org/plugins/maven-ear-plugin/
> > > > > > > > > >
> > > > > > > > > > - Yann
> > > > > > > > > >
> > > > > > > > > > On 3/22/06, Mark < [EMAIL PROTECTED] > wrote:
> > > > > > > > > > >
> > > > > > > > > > > Is there any examples / articles on this ?
> > > > > > > > > > >
> > > > > > > > > > > The artifacts I am looking to create a jar, war, and
> > > ear all
> > > > > > with
> > > > > > > > > > varying
> > > > > > > > > > > resources in their respective META-INF folders ?
> > > > > > > > > > >
> > > > > > > > > > > Mark.
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>


Re: Project ignoring custom respository?

2006-03-22 Thread Gareth Western
Hi Thorsten,

Thanks for your reply! So by doing that, you're saying that you only want to
use your mirror if the central repo is down, correct?

However I would like to use the maven proxy before trying to contact
central. What am I getting wrong?

Thanks,

Gareth

On 3/22/06, Thorsten Heit <[EMAIL PROTECTED]> wrote:
>
> Hi Gareth,
>
> I'm using the following in my pom.xml:
>
> 
>   
> 
>   false
> 
> apache.snapshots
> Apache Development Repository
> http://cvs.apache.org/maven-snapshot-repository
>   
> 
>
>
> The Maven proxy is specified in my settings.xml:
>
> 
>   
> 
>   bender
>   Internal mirror of http://repo1.maven.org/maven2/
>   http://maven_proxy:/repository
>   central
> 
>   
> 
>
> Thorsten
>
>


Re: maven dependency graph

2006-03-22 Thread Wayne Fay
Use your pom to build a jar and then analyze it... ;-)

Wayne


On 3/22/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> On Carlos' blog :
> http://jroller.com/page/carlossg#analyzing_jar_dependencies
>
> The tool used here - jaranalyzer - analyzes JARs themselves - not POMs.
>
> - Yann
>
> On 3/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> >
> > I know Carlos S. is somehow generating .dot files that he's able to
> > open in UMLGraph and generate some nice graphical pictures for
> > dependencies...
> >
> > I believe this is part of a plugin that is in-progress as a future
> > Maven2 report...
> >
> > Can probably find more info on the dev@ list if you search the archives.
> >
> > Wayne
> >
> >
> > On 3/22/06, Jörg Schaible <[EMAIL PROTECTED] > wrote:
> > > Nicolas De Loof wrote on Wednesday, March 22, 2006 5:08 PM:
> > >
> > > > Thanks.
> > > > Not really easy to use, but does the job.
> > >
> > > And it shows only half of the truth:
> > > http://jira.codehaus.org/browse/MNG-1573
> > >
> > > [snip]
> > >
> > > - Jörg
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
>


Continuum configuration

2006-03-22 Thread Gianfranco Oldani

Hello,
I have installed Continuum and I am able to launch build manually from the 
http console. BUT I have defined various scheduling policy but none is taken 
into account. I mean no build start automatically. For example one of my 
schedule definition is :


WebCoach
WebCoach frequent rebuild. Every 5 minutes every day
0 0/5 * * * ?
0

What I miss ?

Regards and thanks in advance for help.

Gianfranco OLDANI
Mob: +41787330350
Web: www.gfoldani.com

_
Vous rêvez de chaussettes aux doigts de pieds séparés? Demandez à MSN 
Search! http://search.msn.ch/results.aspx?q=chaussettes+originales&FORM=QBRE




Re: Project ignoring custom respository?

2006-03-22 Thread Thorsten Heit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Gareth,

> 
> ...
>
>  
>   my-repo
>   my custom repo
>   http://myserver:8080/maven-proxy-webapp/repository
>  
>
> 

I'm using the following in my pom.xml:


  

  false

apache.snapshots
Apache Development Repository
http://cvs.apache.org/maven-snapshot-repository
  



The Maven proxy is specified in my settings.xml:


  

  bender
  Internal mirror of http://repo1.maven.org/maven2/
  http://maven_proxy:/repository
  central

  



HTH

Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEIYcaQvObkgCcDe0RApXeAJ9bDDrqY8563KdBOPDmaz+PboyV8wCgrHFl
iJTyp77tUdUIIDdErGGVQ5c=
=n3Ex
-END PGP SIGNATURE-

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



Re: include jboss-web.xml file

2006-03-22 Thread thenew05
Thanks,

I have a few differences:

* I have a different file structure than the default maven setup.


 |
 |
 \ __ WEB-INF/
 |
 |_ web.xml
 |_ jboss.xml
 |
 \ __ META-INF/
 |
 \ __ src/
 |
 \__ test/
 |
  \__ target/ (maven created)

* I tried the  but it does not put the file in the
WEB-INF.



maven-war-plugin



${basedir}/WEB-INF/

${basedir}/WEB-INF/web.xml

/usr2/local/jboss-4.0.3SP1/server/nextServer/deploy/





Is the only way to get this file is by having it in a resource?

Thanks
On 3/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> Sorry those directories are all wrong. ;-)
>
> First is:
> /src/main/webapp/WEB-INF
>
> Second one is:
> /src/main/resources/WEB-INF
>
> Wayne
>
>
> On 3/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> > Put it in: /src/main/WEB-INF
> > And it will automatically be included in your WAR.
> >
> > If that doesn't work, put it in:
> > /src/resources/WEB-INF
> >
> > Wayne
> >
> >
> > On 3/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > I want to add my jboss-web.xml with my web.xml file in my WEB-INF
> directory
> > > in my WAR file.
> > >
> > > Is there a way to include this file in the war with maven 2?
> > >
> > >
> > >
> > > On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > >  I can not get maven2 to add my *jboss-web.xml* file in my war file.
> Here
> > > > is my plugin for it!
> > > > With the  my war file builds as empty war no class files
> added.
> > > >
> > > > How do I get this file in my war?
> > > >
> > > >
> > > > 
> > > >
> > > > maven-war-plugin
> > > >
> > > > 
> > > >
> > > > ${basedir}/WEB-INF/web.xml 
> > > >
> > > > /usr2/local/jboss-4.0.3SP1/server/nextServer/deploy/
>  > > > outputDirectory>
> > > >
> > > > 
> > > >
> > > > 
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > >
> > >
> >
>


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Mark
Falling at the last fence - including the war in the ear ?





On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
>
> I will - I guess I use the ear plugin to inculde the war since it's not
> really a dependency ?
>
> Thanks guys - this needs to go on the maven site I guess ?
>
>  On 22/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> >
> > Yes exactly. I have the following:
> > project root
> > -pom.xml
> > -lib
> > ++pom.xml
> > -ejb
> > ++pom.xml
> > -war
> > ++pom.xml
> > -ear
> > ++pom.xml
> >
> > So every directory has a pom.xml file that describes the files and
> > dependencies for that directory, and each one has a different
> > packaging type declared.
> >
> > So lib depends on a few external resources, ejb depends on lib plus a
> > couple others, war depends on ejb and some others, and ear depends on
> > war.
> >
> > This is roughly how you'd want to construct a J2EE app in Maven2.
> >
> > There have been a lot of discussions on J2EE in the users@ list,
> > search the mailing list archives for examples of poms etc...
> >
> > Wayne
> >
> >
> > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > So I need to use more than one pom in a parent child relationship,
> > defining
> > > the child poms as modules in the parent pom ?
> > >
> > > Then everything should be OK because each module is it's own context
> > > 'brilliant!'
> > >
> > > Then what you say about adding the inter-depencies makes sense too.
> > >
> > > Yann thanks for your time.
> > >
> > > ps I found this too:
> > >
> > > http://communitygrids.blogspot.com/2006/02/maven-2-notes-part-6-multiproject_06.html
> >
> > >
> > > On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Let Maven work for you ;)
> > > >
> > > > If you declare the JAR as a dependency in the WAR POM, the JAR will
> > be
> > > > included in the WAR. Same thing for EAR.
> > > >
> > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Sure
> > > > >
> > > > > The ear contains the war and the war contains the jar .. but I'm
> > getting
> > > > > closer.
> > > > >
> > > > >
> > > > > On 22/03/06, Yann Le Du < [EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > I'm not sure to understand what you want to achieve. If you want
> > to
> > > > have
> > > > > > some resources packaged in META-INF, just put them into :
> > > > > > * src/main/resources/META-INF for JAR
> > > > > > * src/main/webapp/META-INF for WAR
> > > > > > * src/main/application/META-INF for EAR
> > > > > >
> > > > > > Can you explain what you mean about multiple nested artifacts ?
> > > > > >
> > > > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > That approach doesn't look good because I don't this one pom
> > can
> > > > > easily
> > > > > > > creat multiple artifacts which are nested in some way ?
> > > > > > >
> > > > > > > Should I be looking at archetype ?
> > > > > > >
> > > > > > > On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > >
> > > > > > > > Well I started looking at the jar plugin first, and I
> > couldn't see
> > > > a
> > > > > > way
> > > > > > > > to limit what resources are added - not a problem for war or
> > ear ?
> > > > > > > >
> > > > > > > > I suppose I could farm that out to ant ?
> > > > > > > >
> > > > > > > >
> > > > > > > >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > > > > > >
> > > > > > > > > Hi Mark,
> > > > > > > > >
> > > > > > > > > Did you check :
> > > > > > > > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > > > > > > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > > > > > > > http://maven.apache.org/plugins/maven-war-plugin/
> > > > > > > > > http://maven.apache.org/plugins/maven-ear-plugin/
> > > > > > > > >
> > > > > > > > > - Yann
> > > > > > > > >
> > > > > > > > > On 3/22/06, Mark < [EMAIL PROTECTED] > wrote:
> > > > > > > > > >
> > > > > > > > > > Is there any examples / articles on this ?
> > > > > > > > > >
> > > > > > > > > > The artifacts I am looking to create a jar, war, and ear
> > all
> > > > > with
> > > > > > > > > varying
> > > > > > > > > > resources in their respective META-INF folders ?
> > > > > > > > > >
> > > > > > > > > > Mark.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
>
>


Project ignoring custom respository?

2006-03-22 Thread Gareth Western
Hi,

I'm trying to setup a local repository using the maven-proxy webapp. I have
successfully installed the webapp on a local Tomcat server, and i'm
monitoring the catalina.out log file to see what happens. In a project on my
local machine, I have the following specified in my pom.xml:


...
   
 
  my-repo
  my custom repo
  http://myserver:8080/maven-proxy-webapp/repository
 
   



i clean out my local machine's repository in order to try to use the
maven-proxy-webapp, however whenever I run the project (mvn compile), the
project just goes straight to ibiblio to fetch the dependencies!

Does anyone have any suggestions as to why the project is not picking up my
local repository?

Thanks,

Gareth


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Mark
I will - I guess I use the ear plugin to inculde the war since it's not
really a dependency ?

Thanks guys - this needs to go on the maven site I guess ?

On 22/03/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> Yes exactly. I have the following:
> project root
> -pom.xml
> -lib
> ++pom.xml
> -ejb
> ++pom.xml
> -war
> ++pom.xml
> -ear
> ++pom.xml
>
> So every directory has a pom.xml file that describes the files and
> dependencies for that directory, and each one has a different
> packaging type declared.
>
> So lib depends on a few external resources, ejb depends on lib plus a
> couple others, war depends on ejb and some others, and ear depends on
> war.
>
> This is roughly how you'd want to construct a J2EE app in Maven2.
>
> There have been a lot of discussions on J2EE in the users@ list,
> search the mailing list archives for examples of poms etc...
>
> Wayne
>
>
> On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > So I need to use more than one pom in a parent child relationship,
> defining
> > the child poms as modules in the parent pom ?
> >
> > Then everything should be OK because each module is it's own context
> > 'brilliant!'
> >
> > Then what you say about adding the inter-depencies makes sense too.
> >
> > Yann thanks for your time.
> >
> > ps I found this too:
> >
> >
> http://communitygrids.blogspot.com/2006/02/maven-2-notes-part-6-multiproject_06.html
> >
> > On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > >
> > > Let Maven work for you ;)
> > >
> > > If you declare the JAR as a dependency in the WAR POM, the JAR will be
> > > included in the WAR. Same thing for EAR.
> > >
> > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Sure
> > > >
> > > > The ear contains the war and the war contains the jar .. but I'm
> getting
> > > > closer.
> > > >
> > > >
> > > > On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > I'm not sure to understand what you want to achieve. If you want
> to
> > > have
> > > > > some resources packaged in META-INF, just put them into :
> > > > > * src/main/resources/META-INF for JAR
> > > > > * src/main/webapp/META-INF for WAR
> > > > > * src/main/application/META-INF for EAR
> > > > >
> > > > > Can you explain what you mean about multiple nested artifacts ?
> > > > >
> > > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > That approach doesn't look good because I don't this one pom can
> > > > easily
> > > > > > creat multiple artifacts which are nested in some way ?
> > > > > >
> > > > > > Should I be looking at archetype ?
> > > > > >
> > > > > > On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > >
> > > > > > > Well I started looking at the jar plugin first, and I couldn't
> see
> > > a
> > > > > way
> > > > > > > to limit what resources are added - not a problem for war or
> ear ?
> > > > > > >
> > > > > > > I suppose I could farm that out to ant ?
> > > > > > >
> > > > > > >
> > > > > > >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > > > > >
> > > > > > > > Hi Mark,
> > > > > > > >
> > > > > > > > Did you check :
> > > > > > > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > > > > > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > > > > > > http://maven.apache.org/plugins/maven-war-plugin/
> > > > > > > > http://maven.apache.org/plugins/maven-ear-plugin/
> > > > > > > >
> > > > > > > > - Yann
> > > > > > > >
> > > > > > > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > > > > > > > >
> > > > > > > > > Is there any examples / articles on this ?
> > > > > > > > >
> > > > > > > > > The artifacts I am looking to create a jar, war, and ear
> all
> > > > with
> > > > > > > > varying
> > > > > > > > > resources in their respective META-INF folders ?
> > > > > > > > >
> > > > > > > > > Mark.
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>


Re: maven dependency graph

2006-03-22 Thread Yann Le Du
On Carlos' blog :
http://jroller.com/page/carlossg#analyzing_jar_dependencies

The tool used here - jaranalyzer - analyzes JARs themselves - not POMs.

- Yann

On 3/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> I know Carlos S. is somehow generating .dot files that he's able to
> open in UMLGraph and generate some nice graphical pictures for
> dependencies...
>
> I believe this is part of a plugin that is in-progress as a future
> Maven2 report...
>
> Can probably find more info on the dev@ list if you search the archives.
>
> Wayne
>
>
> On 3/22/06, Jörg Schaible <[EMAIL PROTECTED] > wrote:
> > Nicolas De Loof wrote on Wednesday, March 22, 2006 5:08 PM:
> >
> > > Thanks.
> > > Not really easy to use, but does the job.
> >
> > And it shows only half of the truth:
> > http://jira.codehaus.org/browse/MNG-1573
> >
> > [snip]
> >
> > - Jörg
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


jboss-maven-plugin jboss:start does it work for anyone ?

2006-03-22 Thread Pete
Has anyone succeeded in using the
jboss-maven-plugin

to start JBoss ? It says starting...

but as far as I can tell it isn't started ? I put a pause in the
pom.xmlusing AntRun just to make sure it wasn't shutting down again.

I was hoping it would start JBoss the echo the console to the Maven2 console
window ?
I'd then run some JUnits that require the container started, then stop
jboss.


[INFO] [jboss:start {execution: jboss-maven-plugin start container}]

[INFO] Starting JBoss...

POM.XML is like this


 org.codehaus.mojo
 jboss-maven-plugin
 
  
   jboss-maven-plugin start container 
   install
   

${JBossHome}
default
   
   
start
   
  
 



Re: [m2] multi-project problems

2006-03-22 Thread Wayne Fay
..Or pay for Clover if this is a serious, for-work, for-profit project...
And if its an open-source project, then ask Clover for a free OSS license.

wf


On 3/22/06, John Allen <[EMAIL PROTECTED]> wrote:
> I have tried to use the cobertura plugin for reporting and goverance
> enforcement but im afraid its a none starter, when run in reactor builds you
> get a 'can not overwrite readonly parameter testClassPathElements' (or
> alike) when generating sites and the check goal fails to interoperate with
> the site generation as well. Set your clock back to Jan and use the clover
> plugin, it works a treat - hopefully cobertura will sort its m2 support out
> in the near future (note the clock adjustment is tongue in cheak and only
> something i resort to for demonstration purposes).
>
> John
>
>
> - Original Message -
> From: "Lee Meador" <[EMAIL PROTECTED]>
> To: "Maven Users List" 
> Sent: Wednesday, March 01, 2006 6:52 PM
> Subject: Re: [m2] multi-project problems
>
>
> >I would love to see an example of the pom content(s) for a working
> >Cobertura
> > report on a multi-project setup.
> >
> > On 3/1/06, David Sag <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> Interesting - for me it's the cobertura report that is breaking my
> >> overall
> >> site build.  i'll have to experiment offline for a few days tho as I am
> >> about to be away.  seems strange to have a different general philosophy
> >> for
> >> reports as for build.  indeed i find it odd that the reporting is so
> >> clearly
> >> separate from the overall build lifecycle.  almost like it was an
> >> afterthought.  for me the reports are the most important part of a build.
> >>
> >> Kind regards,
> >> Dave Sag
> >>
> >>
> >>
> >>
> >>
> >>
> >> [EMAIL PROTECTED] wrote on 01-03-2006 17:12:36:
> >>
> >>
> >> > Here is a section from my parent pom.xml that causes all the reports to
> >> run
> >> > on the parent and alll the children. The parent has no source and so
> >> > checkstyle complains but it doesn't kill the site build and continues
> >> on.
> >> > The generated site does end up with some links in the left sidebar that
> >> go
> >> > nowhere though. I just live with it.
> >> >
> >> > One thing (or two) to note is that the changelog report requires a
> >> > valid
> >> >  section in the pom. I also have a 
> >> > section in each of the poms (parent and child) to tell the site:deploy
> >> > target where to put the generated stuff on my site server. That may be
> >> > because of the way I have done things and not really be required. You
> >> get to
> >> > fiddling around with the maven setup and when it works good enough it
> >> gets
> >> > frozen without any backtracking to do it a better way.
> >> >
> >> > 
> >> > 
> >> > 
> >> > org.codehaus.mojo
> >> > jxr-maven-plugin
> >> > 
> >> > 
> >> > org.apache.maven.plugins
> >> > maven-javadoc-plugin
> >> > 
> >> > 1.4
> >> > 
> >> > 
> >> > 
> >> > org.apache.maven.plugins
> >> >
> >> maven-project-info-reports-plugin
> >> > 
> >> > 
> >> > org.codehaus.mojo
> >> > surefire-report-maven-plugin
> >> > 
> >> > 
> >> > org.apache.maven.plugins
> >> > maven-checkstyle-plugin
> >> > 
> >> > ../AA-IFS-checkstyle-rules.xml
> >> > 
> >> > ../license.txt
> >> > 
> >> > 
> >> > 
> >> > org.codehaus.mojo
> >> > changelog-maven-plugin
> >> > 
> >> > 
> >> > 
> >> >
> >> > On 3/1/06, Brian E. Fox <[EMAIL PROTECTED]> wrote:
> >> > >
> >> > > There might be a reportManagement section, there is a
> >> dependencyManagement
> >> > > section. Take a look at the project descriptor under "where is it" on
> >> the
> >> > > maven page.
> >> > >
> >> > > 
> >> > >
> >> > > From: David Sag [mailto:[EMAIL PROTECTED]
> >> > > Sent: Wednesday, March 01, 2006 10:40 AM
> >> > > To: Maven Users List
> >> > > Subject: RE: [m2] multi-project problems
> >> > >
> >> > >
> >> > >
> >> > > Hi Brian,
> >> > >
> >> > > Your suggestion worked well, while it's not quite what I was after (I
> >> > > wanted to leave the build details out of the sub-project altogether)
> >> but
> >> > > hey, we can't always get what we want.
> >> > >
> >> > > But there is no equivalent for the reporting section of the pom. how
> >> do I
> >> > > define a standard suite of reports in a parent pom?  or failing that
> >> at
> >> > > least define how the report plugins are configured in the parent.
> >> > >
> >> > > any tips?
> >> > >
> >> > > Kind regards,
> >> > > Dave Sag
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > "Brian E. Fox" <[EMAIL PROTECTED]> wrot

Re: Building a J2EE app under Maven 2

2006-03-22 Thread Wayne Fay
Yes exactly. I have the following:
project root
-pom.xml
-lib
++pom.xml
-ejb
++pom.xml
-war
++pom.xml
-ear
++pom.xml

So every directory has a pom.xml file that describes the files and
dependencies for that directory, and each one has a different
packaging type declared.

So lib depends on a few external resources, ejb depends on lib plus a
couple others, war depends on ejb and some others, and ear depends on
war.

This is roughly how you'd want to construct a J2EE app in Maven2.

There have been a lot of discussions on J2EE in the users@ list,
search the mailing list archives for examples of poms etc...

Wayne


On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> So I need to use more than one pom in a parent child relationship, defining
> the child poms as modules in the parent pom ?
>
> Then everything should be OK because each module is it's own context
> 'brilliant!'
>
> Then what you say about adding the inter-depencies makes sense too.
>
> Yann thanks for your time.
>
> ps I found this too:
>
> http://communitygrids.blogspot.com/2006/02/maven-2-notes-part-6-multiproject_06.html
>
> On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> >
> > Let Maven work for you ;)
> >
> > If you declare the JAR as a dependency in the WAR POM, the JAR will be
> > included in the WAR. Same thing for EAR.
> >
> > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > >
> > > Sure
> > >
> > > The ear contains the war and the war contains the jar .. but I'm getting
> > > closer.
> > >
> > >
> > > On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > >
> > > > I'm not sure to understand what you want to achieve. If you want to
> > have
> > > > some resources packaged in META-INF, just put them into :
> > > > * src/main/resources/META-INF for JAR
> > > > * src/main/webapp/META-INF for WAR
> > > > * src/main/application/META-INF for EAR
> > > >
> > > > Can you explain what you mean about multiple nested artifacts ?
> > > >
> > > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > That approach doesn't look good because I don't this one pom can
> > > easily
> > > > > creat multiple artifacts which are nested in some way ?
> > > > >
> > > > > Should I be looking at archetype ?
> > > > >
> > > > > On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > >
> > > > > > Well I started looking at the jar plugin first, and I couldn't see
> > a
> > > > way
> > > > > > to limit what resources are added - not a problem for war or ear ?
> > > > > >
> > > > > > I suppose I could farm that out to ant ?
> > > > > >
> > > > > >
> > > > > >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > > > >
> > > > > > > Hi Mark,
> > > > > > >
> > > > > > > Did you check :
> > > > > > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > > > > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > > > > > http://maven.apache.org/plugins/maven-war-plugin/
> > > > > > > http://maven.apache.org/plugins/maven-ear-plugin/
> > > > > > >
> > > > > > > - Yann
> > > > > > >
> > > > > > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > > > > > > >
> > > > > > > > Is there any examples / articles on this ?
> > > > > > > >
> > > > > > > > The artifacts I am looking to create a jar, war, and ear all
> > > with
> > > > > > > varying
> > > > > > > > resources in their respective META-INF folders ?
> > > > > > > >
> > > > > > > > Mark.
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Re: maven dependency graph

2006-03-22 Thread Wayne Fay
I know Carlos S. is somehow generating .dot files that he's able to
open in UMLGraph and generate some nice graphical pictures for
dependencies...

I believe this is part of a plugin that is in-progress as a future
Maven2 report...

Can probably find more info on the dev@ list if you search the archives.

Wayne


On 3/22/06, Jörg Schaible <[EMAIL PROTECTED]> wrote:
> Nicolas De Loof wrote on Wednesday, March 22, 2006 5:08 PM:
>
> > Thanks.
> > Not really easy to use, but does the job.
>
> And it shows only half of the truth:
> http://jira.codehaus.org/browse/MNG-1573
>
> [snip]
>
> - Jörg
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Mark
So I need to use more than one pom in a parent child relationship, defining
the child poms as modules in the parent pom ?

Then everything should be OK because each module is it's own context
'brilliant!'

Then what you say about adding the inter-depencies makes sense too.

Yann thanks for your time.

ps I found this too:

http://communitygrids.blogspot.com/2006/02/maven-2-notes-part-6-multiproject_06.html

On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
>
> Let Maven work for you ;)
>
> If you declare the JAR as a dependency in the WAR POM, the JAR will be
> included in the WAR. Same thing for EAR.
>
> On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> >
> > Sure
> >
> > The ear contains the war and the war contains the jar .. but I'm getting
> > closer.
> >
> >
> > On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > >
> > > I'm not sure to understand what you want to achieve. If you want to
> have
> > > some resources packaged in META-INF, just put them into :
> > > * src/main/resources/META-INF for JAR
> > > * src/main/webapp/META-INF for WAR
> > > * src/main/application/META-INF for EAR
> > >
> > > Can you explain what you mean about multiple nested artifacts ?
> > >
> > > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > > >
> > > > That approach doesn't look good because I don't this one pom can
> > easily
> > > > creat multiple artifacts which are nested in some way ?
> > > >
> > > > Should I be looking at archetype ?
> > > >
> > > > On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
> > > >
> > > > >
> > > > > Well I started looking at the jar plugin first, and I couldn't see
> a
> > > way
> > > > > to limit what resources are added - not a problem for war or ear ?
> > > > >
> > > > > I suppose I could farm that out to ant ?
> > > > >
> > > > >
> > > > >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Hi Mark,
> > > > > >
> > > > > > Did you check :
> > > > > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > > > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > > > > http://maven.apache.org/plugins/maven-war-plugin/
> > > > > > http://maven.apache.org/plugins/maven-ear-plugin/
> > > > > >
> > > > > > - Yann
> > > > > >
> > > > > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > > > > > >
> > > > > > > Is there any examples / articles on this ?
> > > > > > >
> > > > > > > The artifacts I am looking to create a jar, war, and ear all
> > with
> > > > > > varying
> > > > > > > resources in their respective META-INF folders ?
> > > > > > >
> > > > > > > Mark.
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Re: include jboss-web.xml file

2006-03-22 Thread Wayne Fay
Sorry those directories are all wrong. ;-)

First is:
/src/main/webapp/WEB-INF

Second one is:
/src/main/resources/WEB-INF

Wayne


On 3/22/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Put it in: /src/main/WEB-INF
> And it will automatically be included in your WAR.
>
> If that doesn't work, put it in:
> /src/resources/WEB-INF
>
> Wayne
>
>
> On 3/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I want to add my jboss-web.xml with my web.xml file in my WEB-INF directory
> > in my WAR file.
> >
> > Is there a way to include this file in the war with maven 2?
> >
> >
> >
> > On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > >
> > >  I can not get maven2 to add my *jboss-web.xml* file in my war file. Here
> > > is my plugin for it!
> > > With the  my war file builds as empty war no class files added.
> > >
> > > How do I get this file in my war?
> > >
> > >
> > > 
> > >
> > > maven-war-plugin
> > >
> > > 
> > >
> > > ${basedir}/WEB-INF/web.xml 
> > >
> > > /usr2/local/jboss-4.0.3SP1/server/nextServer/deploy/  > > outputDirectory>
> > >
> > > 
> > >
> > > 
> > >
> > >
> > >
> > > Thanks
> > >
> >
> >
>


Re: include jboss-web.xml file

2006-03-22 Thread Wayne Fay
Put it in: /src/main/WEB-INF
And it will automatically be included in your WAR.

If that doesn't work, put it in:
/src/resources/WEB-INF

Wayne


On 3/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I want to add my jboss-web.xml with my web.xml file in my WEB-INF directory
> in my WAR file.
>
> Is there a way to include this file in the war with maven 2?
>
>
>
> On 3/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >  I can not get maven2 to add my *jboss-web.xml* file in my war file. Here
> > is my plugin for it!
> > With the  my war file builds as empty war no class files added.
> >
> > How do I get this file in my war?
> >
> >
> > 
> >
> > maven-war-plugin
> >
> > 
> >
> > ${basedir}/WEB-INF/web.xml 
> >
> > /usr2/local/jboss-4.0.3SP1/server/nextServer/deploy/  > outputDirectory>
> >
> > 
> >
> > 
> >
> >
> >
> > Thanks
> >
>
>


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Yann Le Du
Let Maven work for you ;)

If you declare the JAR as a dependency in the WAR POM, the JAR will be
included in the WAR. Same thing for EAR.

On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
>
> Sure
>
> The ear contains the war and the war contains the jar .. but I'm getting
> closer.
>
>
> On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> >
> > I'm not sure to understand what you want to achieve. If you want to have
> > some resources packaged in META-INF, just put them into :
> > * src/main/resources/META-INF for JAR
> > * src/main/webapp/META-INF for WAR
> > * src/main/application/META-INF for EAR
> >
> > Can you explain what you mean about multiple nested artifacts ?
> >
> > On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> > >
> > > That approach doesn't look good because I don't this one pom can
> easily
> > > creat multiple artifacts which are nested in some way ?
> > >
> > > Should I be looking at archetype ?
> > >
> > > On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
> > >
> > > >
> > > > Well I started looking at the jar plugin first, and I couldn't see a
> > way
> > > > to limit what resources are added - not a problem for war or ear ?
> > > >
> > > > I suppose I could farm that out to ant ?
> > > >
> > > >
> > > >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi Mark,
> > > > >
> > > > > Did you check :
> > > > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > > > http://maven.apache.org/plugins/maven-war-plugin/
> > > > > http://maven.apache.org/plugins/maven-ear-plugin/
> > > > >
> > > > > - Yann
> > > > >
> > > > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > > > > >
> > > > > > Is there any examples / articles on this ?
> > > > > >
> > > > > > The artifacts I am looking to create a jar, war, and ear all
> with
> > > > > varying
> > > > > > resources in their respective META-INF folders ?
> > > > > >
> > > > > > Mark.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
> >
>
>


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Mark
Sure

The ear contains the war and the war contains the jar .. but I'm getting
closer.


On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
>
> I'm not sure to understand what you want to achieve. If you want to have
> some resources packaged in META-INF, just put them into :
> * src/main/resources/META-INF for JAR
> * src/main/webapp/META-INF for WAR
> * src/main/application/META-INF for EAR
>
> Can you explain what you mean about multiple nested artifacts ?
>
> On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> >
> > That approach doesn't look good because I don't this one pom can easily
> > creat multiple artifacts which are nested in some way ?
> >
> > Should I be looking at archetype ?
> >
> > On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
> >
> > >
> > > Well I started looking at the jar plugin first, and I couldn't see a
> way
> > > to limit what resources are added - not a problem for war or ear ?
> > >
> > > I suppose I could farm that out to ant ?
> > >
> > >
> > >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi Mark,
> > > >
> > > > Did you check :
> > > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > > http://maven.apache.org/plugins/maven-war-plugin/
> > > > http://maven.apache.org/plugins/maven-ear-plugin/
> > > >
> > > > - Yann
> > > >
> > > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > > Is there any examples / articles on this ?
> > > > >
> > > > > The artifacts I am looking to create a jar, war, and ear all with
> > > > varying
> > > > > resources in their respective META-INF folders ?
> > > > >
> > > > > Mark.
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> >
>
>


Re: Maven directory structure

2006-03-22 Thread ian . d . stewart
Within Eclipse, you can select a Java source file, select 'References ->
Project' and get a list of all of the other classes within your project
that reference that class (which would, obviously include the covering test
case).  I don't know, but I would assume, that similiar calibre IDE's
(e.g., NetBeans, IDEA, etc) would offer similiar functionality.  There are
a number of Maven plugins that offer finer grained coverage reports
including JCoverage[1], Clover[2] and Cobertura[3].

Con #2 is left as an exercise for the reader :)


Ian

[1] http://svn.mojo.codehaus.org/trunk/mojo/jcoverage-maven-plugin/
[2] http://maven.apache.org/plugins/maven-clover-plugin/
[3] http://mojo.codehaus.org/cobertura-maven-plugin/

It's better to be hated for who you are
than loved for who you are not

Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078



   
  Thorsten Heit 
   
  <[EMAIL PROTECTED]To:   Maven Users List 
 
  ramind.com>  cc:  
   
   Subject:  Re: Maven directory 
structure 
  03/22/2006 07:42  
   
  AM
   
  Please respond to 
   
  "Maven Users  
   
  List" 
   

   




-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

> My project which is build in ant does'nt use maven standard directory
> structure
>
> src/main/java   java source files
> src/test/java -   java test files
>
> Now i want to migrate to maven
>
> Which way of directory structure is bettter?

In our company we're actually also thinking about migrating from Ant to
Maven and have exactly the same problem. Personally I prefer Maven's
standard layout.

Pro:
* Allows to distinguish between normal sources and test classes
* Maven doesn't pack test classes into a release

Con:
* For (extremely) large source trees it can be difficult to see whether
there's a test for a certain component in the source tree.
* You have to convince your developers that they adopt that scheme ;-)


Regards

Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (MingW32)

iD8DBQFEIUYcQvObkgCcDe0RAjXIAKCFUx1a3Bmj7kpn7rXU7rRlF0BniQCfUZ4i
9aSexS+oN7wHN2U/kvCIbiQ=
=A/WJ
-END PGP SIGNATURE-

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




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



RE: maven dependency graph

2006-03-22 Thread Jörg Schaible
Nicolas De Loof wrote on Wednesday, March 22, 2006 5:08 PM:

> Thanks.
> Not really easy to use, but does the job.

And it shows only half of the truth:
http://jira.codehaus.org/browse/MNG-1573

[snip]

- Jörg

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



RE : maven dependency graph

2006-03-22 Thread Olivier Lamy
http://docs.codehaus.org/display/MAVEN/Dependency+Graphing

- Olivier

-Message d'origine-
De : Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 22 mars 2006 17:08
À : Maven Users List
Objet : Re: maven dependency graph



Thanks.
Not really easy to use, but does the job.

Ruel Loehr a écrit :
> Mvn -X install
>
> Ruel Loehr
> JBoss QA
>  
> -
> 512-342-7840 ext 2011
> Yahoo: ruelloehr
> Skype: ruelloehr
> AOL: dokoruel
> -Original Message-
> From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 22, 2006 8:55 AM
> To: Maven Users List
> Subject: Re: maven dependency graph
>
>
> On this wiki page, what does the "Currently, only a simple textual
> representation is available at runtime" mean ?
> How to get this textual representation ?
>
> Nicolas De Loof a écrit :
>   
>> Great ! thanks.
>>
>> Arnaud HERITIER a écrit :
>> 
>>> http://docs.codehaus.org/display/MAVEN/Dependency+Graphing
>>> ~simple :-)
>>> Arnaud
>>>
>>> On 3/22/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>>>  
>>>   
 Hello,

 Is there a (simple) way to get a dependency graph from a POM ? When

 I run mvn, I get lot's of unexpected libs, and cannot know easily 
 from which transitie dependency they come from.

 Nico.


 This message contains information that may be privileged or
 confidential
 and is the property of the Capgemini Group. It is intended only for
the
 person to whom it is addressed. If you are not the intended 
 recipient,  you
 are not authorized to read, print, retain, copy, disseminate,  
 distribute,
 or use this message or any part thereof. If you receive this  
 message in
 error, please notify the sender immediately and delete all  copies 
 of this
 message.


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


 
 
>>>   
>>>   
>> This message contains information that may be privileged or
>> confidential and is the property of the Capgemini Group. It is 
>> intended only for the person to whom it is addressed. If you are not 
>> the intended recipient,  you are not authorized to read, print, 
>> retain, copy, disseminate,  distribute, or use this message or any 
>> part thereof. If you receive this  message in error, please notify
the 
>> sender immediately and delete all  copies of this message.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> 
>
> This message contains information that may be privileged or 
> confidential and is the property of the Capgemini Group. It is 
> intended only for the person to whom it is addressed. If you are not 
> the intended recipient,  you are not authorized to read, print, 
> retain, copy, disseminate,  distribute, or use this message or any 
> part thereof. If you receive this  message in error, please notify the

> sender immediately and delete all  copies of this message.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

This message contains information that may be privileged or confidential
and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended recipient,
you are not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies of this message.


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



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son é

Re: Building a J2EE app under Maven 2

2006-03-22 Thread Yann Le Du
I'm not sure to understand what you want to achieve. If you want to have
some resources packaged in META-INF, just put them into :
* src/main/resources/META-INF for JAR
* src/main/webapp/META-INF for WAR
* src/main/application/META-INF for EAR

Can you explain what you mean about multiple nested artifacts ?

On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
>
> That approach doesn't look good because I don't this one pom can easily
> creat multiple artifacts which are nested in some way ?
>
> Should I be looking at archetype ?
>
> On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:
>
> >
> > Well I started looking at the jar plugin first, and I couldn't see a way
> > to limit what resources are added - not a problem for war or ear ?
> >
> > I suppose I could farm that out to ant ?
> >
> >
> >  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi Mark,
> > >
> > > Did you check :
> > > http://maven.apache.org/guides/mini/guide-webapp.html
> > > http://maven.apache.org/plugins/maven-jar-plugin/
> > > http://maven.apache.org/plugins/maven-war-plugin/
> > > http://maven.apache.org/plugins/maven-ear-plugin/
> > >
> > > - Yann
> > >
> > > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > > >
> > > > Is there any examples / articles on this ?
> > > >
> > > > The artifacts I am looking to create a jar, war, and ear all with
> > > varying
> > > > resources in their respective META-INF folders ?
> > > >
> > > > Mark.
> > > >
> > > >
> > >
> > >
> >
>
>


AW: RE : Maven 2 and changes log from subversion

2006-03-22 Thread Volker Füßler
Hi,
 
> http://jira.codehaus.org/browse/MEV-362
> Add a vote ;-)

Done & thx ;-),

Volker

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



RE: Problem hibernate3 plugin cfg2cfgxml

2006-03-22 Thread Johann Reyes
Hello Sylvain

Based in your plugin, I have added now the ability to support the auto
discovery of hibernate annotated classes to the plugin. If you like please
try it.

Regards

Johann Reyes

-Original Message-
From: Sylvain Vieujot [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 9:40 AM
To: [EMAIL PROTECTED]
Cc: Maven Users List
Subject: Re: Problem hibernate3 plugin cfg2cfgxml

I sometime have problems like this.
Try to do an "mvn clean" before.
For me it solved the problem.

On Wed, 2006-03-22 at 16:10 +0200, Taavi Sildeberg wrote:

> Hello Sylvain,
> 
> When I try to use your plugin, I got this result from it:
> 
> C:\devTest\timemanager\data>mvn hibernate-annotations:mappings-compile
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix:
'hibernate-annotations'.
> Downloading: 
> http://repo1.maven.org/maven2/oracle/jdbc/10.2.0.1.0/jdbc-10.2.0.1.0.pom
> [WARNING] Unable to get resource from repository central 
> (http://repo1.maven.org/maven2)
> [INFO] 
>

> [INFO] Building TimeManager Data Module
> [INFO]task-segment: [hibernate-annotations:mappings-compile]
> [INFO] 
>

> [INFO] [hibernate-annotations:mappings-compile]
> java.lang.NoClassDefFoundError: 
> C:\devTest\timemanager\data\target\classes\ee\zero\data\user\Address 
> (wrong name: ee/zero/data/user/Address)
>  at java.lang.ClassLoader.defineClass1(Native Method)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
>  at 
>
com.seanergie.maven.plugins.FileClassLoader.getClassFromFile(FileClassLoader
.java:54)
>  at 
>
com.seanergie.maven.plugins.FileClassLoader.shouldBeMapped(FileClassLoader.j
ava:84)
>  at 
>
com.seanergie.maven.plugins.AbstractHibernate.execute(AbstractHibernate.java
:82)
>  at 
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:415)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:531)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:485)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:455)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:303)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:270)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:139)
>  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
>  at 
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at 
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>  at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] Dependencies : [Ljava.net.URL;@2a15cd
> java.lang.NoClassDefFoundError: 
> C:\devTest\timemanager\data\target\classes\ee\zero\data\user\CopyOfUser 
> (wrong name: ee/zero/data/user/CopyOfUser)
>  at java.lang.ClassLoader.defineClass1(Native Method)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
>  at 
>
com.seanergie.maven.plugins.FileClassLoader.getClassFromFile(FileClassLoader
.java:54)
>  at 
>
com.seanergie.maven.plugins.FileClassLoader.shouldBeMapped(FileClassLoader.j
ava:84)
>  at 
>
com.seanergie.maven.plugins.AbstractHibernate.execute(AbstractHibernate.java
:82)
>  at 
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:415)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:531)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:485)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:455)
>  at 
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail

Re: maven dependency graph

2006-03-22 Thread Nicolas De Loof


Thanks.
Not really easy to use, but does the job.

Ruel Loehr a écrit :

Mvn -X install

Ruel Loehr
JBoss QA
 
-

512-342-7840 ext 2011
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 8:55 AM

To: Maven Users List
Subject: Re: maven dependency graph


On this wiki page, what does the "Currently, only a simple textual 
representation is available at runtime" mean ?

How to get this textual representation ?

Nicolas De Loof a écrit :
  

Great ! thanks.

Arnaud HERITIER a écrit :


http://docs.codehaus.org/display/MAVEN/Dependency+Graphing
~simple :-)
Arnaud

On 3/22/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
 
  

Hello,

Is there a (simple) way to get a dependency graph from a POM ?
When I run mvn, I get lot's of unexpected libs, and cannot know easily
from which transitie dependency they come from.

Nico.


This message contains information that may be privileged or 
confidential

and is the property of the Capgemini Group. It is intended only for the
person to whom it is addressed. If you are not the intended 
recipient,  you
are not authorized to read, print, retain, copy, disseminate,  
distribute,
or use this message or any part thereof. If you receive this  
message in
error, please notify the sender immediately and delete all  copies 
of this

message.


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




  
  
This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



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




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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


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


  


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Trigger Projects in Continuum

2006-03-22 Thread Stevenson, Chris
Hello All,
 
I was wondering if anyone was considering adding functionality for trigger
projects in continuum? This is really important in my company as we need to
find out straight away if someone has broken an interface which has knock on
effects on other api's.
 
If noone is working on it then I don't mind having a go. I was thinking
about something which interrogated the transitive dep mechanism and worked
out if it had a path to the project that's just been build through some
means, if it does then fire off a build. 
 
I'd be very grateful to hear peoples opinions and or advice on this,
 
Thanks,
 
Chris
 
 

Chris Stevenson

Dresdner Kleinwort Wasserstein 

 

 
 --



The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender. 




Re: Problem hibernate3 plugin cfg2cfgxml

2006-03-22 Thread Sylvain Vieujot
I sometime have problems like this.
Try to do an "mvn clean" before.
For me it solved the problem.

On Wed, 2006-03-22 at 16:10 +0200, Taavi Sildeberg wrote:

> Hello Sylvain,
> 
> When I try to use your plugin, I got this result from it:
> 
> C:\devTest\timemanager\data>mvn hibernate-annotations:mappings-compile
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'hibernate-annotations'.
> Downloading: 
> http://repo1.maven.org/maven2/oracle/jdbc/10.2.0.1.0/jdbc-10.2.0.1.0.pom
> [WARNING] Unable to get resource from repository central 
> (http://repo1.maven.org/maven2)
> [INFO] 
> 
> [INFO] Building TimeManager Data Module
> [INFO]task-segment: [hibernate-annotations:mappings-compile]
> [INFO] 
> 
> [INFO] [hibernate-annotations:mappings-compile]
> java.lang.NoClassDefFoundError: 
> C:\devTest\timemanager\data\target\classes\ee\zero\data\user\Address 
> (wrong name: ee/zero/data/user/Address)
>  at java.lang.ClassLoader.defineClass1(Native Method)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
>  at 
> com.seanergie.maven.plugins.FileClassLoader.getClassFromFile(FileClassLoader.java:54)
>  at 
> com.seanergie.maven.plugins.FileClassLoader.shouldBeMapped(FileClassLoader.java:84)
>  at 
> com.seanergie.maven.plugins.AbstractHibernate.execute(AbstractHibernate.java:82)
>  at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>  at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:585)
>  at 
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>  at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>  at 
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>  at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO] Dependencies : [Ljava.net.URL;@2a15cd
> java.lang.NoClassDefFoundError: 
> C:\devTest\timemanager\data\target\classes\ee\zero\data\user\CopyOfUser 
> (wrong name: ee/zero/data/user/CopyOfUser)
>  at java.lang.ClassLoader.defineClass1(Native Method)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
>  at 
> com.seanergie.maven.plugins.FileClassLoader.getClassFromFile(FileClassLoader.java:54)
>  at 
> com.seanergie.maven.plugins.FileClassLoader.shouldBeMapped(FileClassLoader.java:84)
>  at 
> com.seanergie.maven.plugins.AbstractHibernate.execute(AbstractHibernate.java:82)
>  at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:531)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:485)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:455)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>  at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:

Re: Maven 2 and changes log from subversion

2006-03-22 Thread Gianfranco Oldani

Hi Yann,
Thanks a lot it works perfectly.
Regards

Gianfranco


Original Message Follows
From: "Yann Le Du" <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" 
To: "Maven Users List" 
Subject: Re: Maven 2 and changes log from subversion
Date: Wed, 22 Mar 2006 16:06:50 +0100

Hi Gianfranco,

There indeed is a changelog plugin for m2. It was hosted by Mojo [1] , but
is presently being moved to Maven.

For the moment, you can use :
  
org.codehaus.mojo
changelog-maven-plugin
  

When the plugin is moved, you'll be able to see it here [2]. Then you will
only need :
  
maven-changelog-plugin
  

(note the word order between "maven" and "changelog")

[1] http://mojo.codehaus.org/
[2] http://www.ibiblio.org/maven2/org/apache/maven/plugins/

- Yann

On 3/22/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
>
> Hello,
> Is the changelog plugin still available for maven 2? I want to be able to
> generate change logs via the m2 site goal and my subversion repository. 
DO

> I
> miss something or the changelog plugin is the right one to use?
>
> Regards and Thanks for help.
>
> Gianfranco OLDANI
> Mob: +41787330350
> Web: www.gfoldani.com
>
> _
> Vous voulez adopter un chien mais ne savez pas où trouver Rex? MSN Search
> si. http://search.msn.ch/results.aspx?q=adopter+un+chien&FORM=QBRE
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

_
Sélectionnez les meilleurs albums pour votre discothèque MP3 en ligne! 
http://sib1.od2.com/common/Framework.aspx?shid=0045002E



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



RE : Maven 2 and changes log from subversion

2006-03-22 Thread Olivier Lamy
http://jira.codehaus.org/browse/MEV-362

Add a vote ;-)

- Olivier

-Message d'origine-
De : Volker Füßler [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 22 mars 2006 16:52
À : Maven Users List
Objet : AW: Maven 2 and changes log from subversion


Hi,

At the moment I cant get it to work, because it seems that someone had
deleted the  
http://repo1.maven.org/maven2/org/netbeans/lib/3.6/lib-3.6.jar from the
maven repo. The lib-3.6.pom [.md5 | .sha1] are still there. Can someone
fix this, please?

kind regards,

Volker


> -Ursprüngliche Nachricht-
> Von: Yann Le Du [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 22. März 2006 16:07
> An: Maven Users List
> Betreff: Re: Maven 2 and changes log from subversion
> 
> Hi Gianfranco,
> 
> There indeed is a changelog plugin for m2. It was hosted by Mojo [1] ,

> but is presently being moved to Maven.
> 
> For the moment, you can use :
>   
> org.codehaus.mojo
> changelog-maven-plugin
>   
> 
> When the plugin is moved, you'll be able to see it here [2]. Then you 
> will only need :
>   
> maven-changelog-plugin
>   
> 
> (note the word order between "maven" and "changelog")
> 
> [1] http://mojo.codehaus.org/
> [2] http://www.ibiblio.org/maven2/org/apache/maven/plugins/
> 
> - Yann
> 
> On 3/22/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> > Is the changelog plugin still available for maven 2? I want
> to be able
> > to generate change logs via the m2 site goal and my subversion 
> > repository. DO I miss something or the changelog plugin is
> the right
> > one to use?
> >
> > Regards and Thanks for help.
> >
> > Gianfranco OLDANI
> > Mob: +41787330350
> > Web: www.gfoldani.com
> >
> > _
> > Vous voulez adopter un chien mais ne savez pas où trouver Rex? MSN 
> > Search si. 
> > http://search.msn.ch/results.aspx?q=adopter+un+chien&FORM=QBRE
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 

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



This e-mail, any attachments and the information contained therein ("this 
message") are confidential and intended solely for the use of the addressee(s). 
If you have received this message in error please send it back to the sender 
and delete it. Unauthorized publication, use, dissemination or disclosure of 
this message, either in whole or in part is strictly prohibited.
--
Ce message électronique et tous les fichiers joints ainsi que  les informations 
contenues dans ce message ( ci après "le message" ), sont confidentiels et 
destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. 
Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur 
et de le détruire. Toutes diffusion, publication, totale ou partielle ou 
divulgation sous quelque forme que se soit non expressément autorisées de ce 
message, sont interdites.
-


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



AW: Maven 2 and changes log from subversion

2006-03-22 Thread Volker Füßler
Hi,

At the moment I cant get it to work, because it seems that someone had deleted 
the  
http://repo1.maven.org/maven2/org/netbeans/lib/3.6/lib-3.6.jar from the maven 
repo. The lib-3.6.pom [.md5 | .sha1] are still there. Can someone fix this, 
please?

kind regards,

Volker


> -Ursprüngliche Nachricht-
> Von: Yann Le Du [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 22. März 2006 16:07
> An: Maven Users List
> Betreff: Re: Maven 2 and changes log from subversion
> 
> Hi Gianfranco,
> 
> There indeed is a changelog plugin for m2. It was hosted by 
> Mojo [1] , but is presently being moved to Maven.
> 
> For the moment, you can use :
>   
> org.codehaus.mojo
> changelog-maven-plugin
>   
> 
> When the plugin is moved, you'll be able to see it here [2]. 
> Then you will only need :
>   
> maven-changelog-plugin
>   
> 
> (note the word order between "maven" and "changelog")
> 
> [1] http://mojo.codehaus.org/
> [2] http://www.ibiblio.org/maven2/org/apache/maven/plugins/
> 
> - Yann
> 
> On 3/22/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> > Is the changelog plugin still available for maven 2? I want 
> to be able 
> > to generate change logs via the m2 site goal and my subversion 
> > repository. DO I miss something or the changelog plugin is 
> the right 
> > one to use?
> >
> > Regards and Thanks for help.
> >
> > Gianfranco OLDANI
> > Mob: +41787330350
> > Web: www.gfoldani.com
> >
> > _
> > Vous voulez adopter un chien mais ne savez pas où trouver Rex? MSN 
> > Search si. 
> > http://search.msn.ch/results.aspx?q=adopter+un+chien&FORM=QBRE
> >
> >
> > 
> -
> > 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: Jsp precompilation

2006-03-22 Thread Geoffrey De Smet

Are you sure you actually need to define them in your dependencies?
They are dependencies of the plugin (at least in the latest subversion 
checkout), which would mean there's no need to depend on them in your 
project using the plugin.


It's similar to not having to depend on the pmd jar (only on the pmd 
plugin itself) when you use the pmd plugin.


Tom Joad wrote:

I know but jspc plugin needs these dependencies with compiled scope.
Perhaps i missed something somewhere but that what i saw when i used it.
Tom

2006/3/22, Tomislav Stojcevich <[EMAIL PROTECTED]>:

Use provided which makes them available at build time
but keeps them out of your war.

On 3/22/06, Tom Joad <[EMAIL PROTECTED]> wrote:

Hello,
Please see.

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

We must add inside your pom.xml

 
tomcat
jasper-runtime
5.5.12

 
javax.servlet
servlet-api
2.4

with compile scope dependency. The problem is that the two jars will
be included on your war file. You must delete them before deplloying
to tomcat

and modify your web.xml by adding string

The plugin replaces this string by jsp/servlet mapping .

Tom.





2006/3/22, Venkatagopalaraju <[EMAIL PROTECTED]>:

Dear Maven users,

I am new to Maven build tool.I am not able to find Jsp precompilation 
Documents or information. When I am trying to compile jsp's in my project, It 
is not identifying. Anyone please help me out, what I need to add in my pom.xml 
for jsp precompilation.


Thanks & Regards
   Gopal



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




--
tom

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




--
With kind regards,
Geoffrey De Smet


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



RE: maven dependency graph

2006-03-22 Thread Ruel Loehr
Mvn -X install

Ruel Loehr
JBoss QA
 
-
512-342-7840 ext 2011
Yahoo: ruelloehr
Skype: ruelloehr
AOL: dokoruel
-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 22, 2006 8:55 AM
To: Maven Users List
Subject: Re: maven dependency graph


On this wiki page, what does the "Currently, only a simple textual 
representation is available at runtime" mean ?
How to get this textual representation ?

Nicolas De Loof a écrit :
>
> Great ! thanks.
>
> Arnaud HERITIER a écrit :
>> http://docs.codehaus.org/display/MAVEN/Dependency+Graphing
>> ~simple :-)
>> Arnaud
>>
>> On 3/22/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote:
>>  
>>> Hello,
>>>
>>> Is there a (simple) way to get a dependency graph from a POM ?
>>> When I run mvn, I get lot's of unexpected libs, and cannot know easily
>>> from which transitie dependency they come from.
>>>
>>> Nico.
>>>
>>>
>>> This message contains information that may be privileged or 
>>> confidential
>>> and is the property of the Capgemini Group. It is intended only for the
>>> person to whom it is addressed. If you are not the intended 
>>> recipient,  you
>>> are not authorized to read, print, retain, copy, disseminate,  
>>> distribute,
>>> or use this message or any part thereof. If you receive this  
>>> message in
>>> error, please notify the sender immediately and delete all  copies 
>>> of this
>>> message.
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>> 
>>
>>   
>
> This message contains information that may be privileged or 
> confidential and is the property of the Capgemini Group. It is 
> intended only for the person to whom it is addressed. If you are not 
> the intended recipient,  you are not authorized to read, print, 
> retain, copy, disseminate,  distribute, or use this message or any 
> part thereof. If you receive this  message in error, please notify the 
> sender immediately and delete all  copies of this message.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-
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: Building a J2EE app under Maven 2

2006-03-22 Thread Mark
That approach doesn't look good because I don't this one pom can easily
creat multiple artifacts which are nested in some way ?

Should I be looking at archetype ?

On 22/03/06, Mark <[EMAIL PROTECTED]> wrote:

>
> Well I started looking at the jar plugin first, and I couldn't see a way
> to limit what resources are added - not a problem for war or ear ?
>
> I suppose I could farm that out to ant ?
>
>
>  On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
> >
> > Hi Mark,
> >
> > Did you check :
> > http://maven.apache.org/guides/mini/guide-webapp.html
> > http://maven.apache.org/plugins/maven-jar-plugin/
> > http://maven.apache.org/plugins/maven-war-plugin/
> > http://maven.apache.org/plugins/maven-ear-plugin/
> >
> > - Yann
> >
> > On 3/22/06, Mark <[EMAIL PROTECTED] > wrote:
> > >
> > > Is there any examples / articles on this ?
> > >
> > > The artifacts I am looking to create a jar, war, and ear all with
> > varying
> > > resources in their respective META-INF folders ?
> > >
> > > Mark.
> > >
> > >
> >
> >
>


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Mark
Well I started looking at the jar plugin first, and I couldn't see a way
to limit what resources are added - not a problem for war or ear ?

I suppose I could farm that out to ant ?


On 22/03/06, Yann Le Du <[EMAIL PROTECTED]> wrote:
>
> Hi Mark,
>
> Did you check :
> http://maven.apache.org/guides/mini/guide-webapp.html
> http://maven.apache.org/plugins/maven-jar-plugin/
> http://maven.apache.org/plugins/maven-war-plugin/
> http://maven.apache.org/plugins/maven-ear-plugin/
>
> - Yann
>
> On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
> >
> > Is there any examples / articles on this ?
> >
> > The artifacts I am looking to create a jar, war, and ear all with
> varying
> > resources in their respective META-INF folders ?
> >
> > Mark.
> >
> >
>
>


Re: Building a J2EE app under Maven 2

2006-03-22 Thread Yann Le Du
Hi Mark,

Did you check :
http://maven.apache.org/guides/mini/guide-webapp.html
http://maven.apache.org/plugins/maven-jar-plugin/
http://maven.apache.org/plugins/maven-war-plugin/
http://maven.apache.org/plugins/maven-ear-plugin/

- Yann

On 3/22/06, Mark <[EMAIL PROTECTED]> wrote:
>
> Is there any examples / articles on this ?
>
> The artifacts I am looking to create a jar, war, and ear all with varying
> resources in their respective META-INF folders ?
>
> Mark.
>
>


Re: [m2] multi-project problems

2006-03-22 Thread John Allen
I have tried to use the cobertura plugin for reporting and goverance 
enforcement but im afraid its a none starter, when run in reactor builds you 
get a 'can not overwrite readonly parameter testClassPathElements' (or 
alike) when generating sites and the check goal fails to interoperate with 
the site generation as well. Set your clock back to Jan and use the clover 
plugin, it works a treat - hopefully cobertura will sort its m2 support out 
in the near future (note the clock adjustment is tongue in cheak and only 
something i resort to for demonstration purposes).


John


- Original Message - 
From: "Lee Meador" <[EMAIL PROTECTED]>

To: "Maven Users List" 
Sent: Wednesday, March 01, 2006 6:52 PM
Subject: Re: [m2] multi-project problems


I would love to see an example of the pom content(s) for a working 
Cobertura

report on a multi-project setup.

On 3/1/06, David Sag <[EMAIL PROTECTED]> wrote:



Interesting - for me it's the cobertura report that is breaking my 
overall

site build.  i'll have to experiment offline for a few days tho as I am
about to be away.  seems strange to have a different general philosophy 
for
reports as for build.  indeed i find it odd that the reporting is so 
clearly

separate from the overall build lifecycle.  almost like it was an
afterthought.  for me the reports are the most important part of a build.

Kind regards,
Dave Sag






[EMAIL PROTECTED] wrote on 01-03-2006 17:12:36:


> Here is a section from my parent pom.xml that causes all the reports to
run
> on the parent and alll the children. The parent has no source and so
> checkstyle complains but it doesn't kill the site build and continues
on.
> The generated site does end up with some links in the left sidebar that
go
> nowhere though. I just live with it.
>
> One thing (or two) to note is that the changelog report requires a 
> valid

>  section in the pom. I also have a 
> section in each of the poms (parent and child) to tell the site:deploy
> target where to put the generated stuff on my site server. That may be
> because of the way I have done things and not really be required. You
get to
> fiddling around with the maven setup and when it works good enough it
gets
> frozen without any backtracking to do it a better way.
>
> 
> 
> 
> org.codehaus.mojo
> jxr-maven-plugin
> 
> 
> org.apache.maven.plugins
> maven-javadoc-plugin
> 
> 1.4
> 
> 
> 
> org.apache.maven.plugins
>
maven-project-info-reports-plugin
> 
> 
> org.codehaus.mojo
> surefire-report-maven-plugin
> 
> 
> org.apache.maven.plugins
> maven-checkstyle-plugin
> 
> ../AA-IFS-checkstyle-rules.xml
> 
> ../license.txt
> 
> 
> 
> org.codehaus.mojo
> changelog-maven-plugin
> 
> 
> 
>
> On 3/1/06, Brian E. Fox <[EMAIL PROTECTED]> wrote:
> >
> > There might be a reportManagement section, there is a
dependencyManagement
> > section. Take a look at the project descriptor under "where is it" on
the
> > maven page.
> >
> > 
> >
> > From: David Sag [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 01, 2006 10:40 AM
> > To: Maven Users List
> > Subject: RE: [m2] multi-project problems
> >
> >
> >
> > Hi Brian,
> >
> > Your suggestion worked well, while it's not quite what I was after (I
> > wanted to leave the build details out of the sub-project altogether)
but
> > hey, we can't always get what we want.
> >
> > But there is no equivalent for the reporting section of the pom. how
do I
> > define a standard suite of reports in a parent pom?  or failing that
at
> > least define how the report plugins are configured in the parent.
> >
> > any tips?
> >
> > Kind regards,
> > Dave Sag
> >
> >
> >
> >
> >
> >
> > "Brian E. Fox" <[EMAIL PROTECTED]> wrote on 01-03-2006
15:28:25:
> >
> > > if you put something in the plugins section of the parent, it will
> > > run with the parent. To do what you want, you should put the config
> > > in the parent's pluginManagement section. Then in each child you
> > > just need to put the plugin group and id in the build/plugin 
> > > section

> > > but the configuration will be inherited.
> > >
> > > 
> > >
> > > From: David Sag [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, March 01, 2006 8:49 AM
> > > To: Maven Users List
> > > Subject: RE: [m2] multi-project problems
> > >
> > >
> > >
> > > aha.  okay i had my parent pom called generic-pom.xml as I was only
> > > interesed in building some of our 'generic' projects for now.
> > >
> > > just to get a first-stab working i have renamed it to pom.xml and

Re: [m2] multi-project problems

2006-03-22 Thread John Allen
except reports, there is no way of setting standard reports or a common 
configuration for them in parent projects (ie there is no 
) which results in quite a bit of duplication in leaf 
projects.


John

- Original Message - 
From: "Brian E. Fox" <[EMAIL PROTECTED]>

To: "Maven Users List" 
Sent: Wednesday, March 01, 2006 2:28 PM
Subject: RE: [m2] multi-project problems


if you put something in the plugins section of the parent, it will run with 
the parent. To do what you want, you should put the config in the parent's 
pluginManagement section. Then in each child you just need to put the plugin 
group and id in the build/plugin section but the configuration will be 
inherited.




From: David Sag [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 01, 2006 8:49 AM
To: Maven Users List
Subject: RE: [m2] multi-project problems



aha.  okay i had my parent pom called generic-pom.xml as I was only 
interesed in building some of our 'generic' projects for now.


just to get a first-stab working i have renamed it to pom.xml and moved my 
local folder heirarchy about a bit and voila - it seems to work when i run 
mvn test


but when i run mvn install from the parent it complains that there are no 
source directories to process for checkstyle - that's right the only thing 
in the parent is the pom.xml file.


is that a bug in checkstyle, or a design feature that build plugins in a 
parent pom actually expect something to be in the parent project folder 
other than the pom.


in general I am going to want to put all common build, test and reporting 
config in an otherwise void parent project and extend as needed in 
sub-projects  is that not the right idea?  maybe i have misunderstood it.


on this point, say i have set up checktyle in the master pom but for some 
reason checktyle crashes while processing a sub-project (it happens if there 
are way too many checktyle errors for examplek that it can run out of 
memory.) is there a way of subtractively extending the parent, ie to tell 
one specific sub-project not to generate a checkstyle report, or would i 
have to remove it from the master and add it in to all sub-projects by hand 
until the offending project has been fixed?


Kind regards,
Dave Sag






"Brian E. Fox" <[EMAIL PROTECTED]> wrote on 01-03-2006 14:33:40:


It will try to find the parent at ../pom.xml and then look in the
local repository. If you never built the parent before and you don't
have the pom one folder up, then it won't work. The safest thing is
to keep your parent pom immediately above your children:

Parent pom.xml
 module a
module b
sub modules parent pom.xml
sub a
sub b

etc

-Original Message-
From: Piéroni Raphaël [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 01, 2006 8:14 AM
To: Maven Users List
Subject: Re: [m2] multi-project problems

Hi Dave,

Have you tryed to call mvn install from the parent directory ?

You can also reference the parent by adding a  in the
parent definition in the child pom. (never used it myself)

May that helps.

Raphaël

2006/3/1, David Sag <[EMAIL PROTECTED]>:
>
>
> Dear people,
>
> I am having my first proper stab at doing a milti-project build, but
> naturally have hit some immediate problems.
>
> Firstly I have scoured the maven site and google but can't find any
> sound documentation on how the multi-project builds are meant to work.
> I did find this page
> http://maven.apache.org/guides/mini/guide-multi-module.html but it's a
> little low on detail.
>
> But from the bits and pieces I could patch together from this mailing
> list I have done the following.
>
> I have created a master pom.xml file that specifies
>
> packaging: pom
> version: 2.3-SNAPSHOT (i just made this up for now - yes snapshots are
> working)
> url: a url for the group of projects
> description: a description for the group of projects
> modules: i just listed one module for now
> issueManagement: same for all projects so i put it here
> ciManagement: same for all projects so i put that here too
> organization: EPO
> developers: mostly the same for all projects with a few exceptions.
> should I put all of the developers who are common to all projects 
> here

> and then add specific decelopers to the sub-poms on a
> project by project basis?
> ditto for contributors
> build: the build plugins are the same for all projects
> profiles: once again same for all projects, excpet for the
> distributionManagement which varies from one project to the next.
> if i list the main profile definition here can i just override a
> profile
> defn with the same id in a sub-pom to add the
> distributionManagement data?
> dependencies: junit and some of the commons libs are common to all
> projects
> assume i declare them here and then declare any additional ones i
> need in
> a sub-pom.
> reporting: the same for all projects so I put that here.
>
> in my sub-

Re: Maven 2 and changes log from subversion

2006-03-22 Thread Yann Le Du
Hi Gianfranco,

There indeed is a changelog plugin for m2. It was hosted by Mojo [1] , but
is presently being moved to Maven.

For the moment, you can use :
  
org.codehaus.mojo
changelog-maven-plugin
  

When the plugin is moved, you'll be able to see it here [2]. Then you will
only need :
  
maven-changelog-plugin
  

(note the word order between "maven" and "changelog")

[1] http://mojo.codehaus.org/
[2] http://www.ibiblio.org/maven2/org/apache/maven/plugins/

- Yann

On 3/22/06, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
>
> Hello,
> Is the changelog plugin still available for maven 2? I want to be able to
> generate change logs via the m2 site goal and my subversion repository. DO
> I
> miss something or the changelog plugin is the right one to use?
>
> Regards and Thanks for help.
>
> Gianfranco OLDANI
> Mob: +41787330350
> Web: www.gfoldani.com
>
> _
> Vous voulez adopter un chien mais ne savez pas où trouver Rex? MSN Search
> si. http://search.msn.ch/results.aspx?q=adopter+un+chien&FORM=QBRE
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


  1   2   >