Re: Multi-module project: assembly is not picking up dependencies

2007-03-08 Thread Sasha O
Just checked: the same thing happens on the Better Builds with Maven
examples -- 'mvn assembly:assembly' fails. See below.

Tried using Maven 2.0.4 or 2.0.5.

Would appreciate any insight on how to make Maven work for me.

Thanks.

===
[INFO] Failed to resolve artifact.

Missing:
--
1) com.mergere.mvnbook.proficio:proficio-model:jar:1.0-SNAPSHOT

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=com.mergere.mvnbook.proficio
-Dartifact
Id=proficio-model \
  -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) com.mergere.mvnbook.proficio:proficio-api:jar:1.0-SNAPSHOT
2) com.mergere.mvnbook.proficio:proficio-model:jar:1.0-SNAPSHOT

--
1 required artifact is missing.

for artifact:
  com.mergere.mvnbook.proficio:proficio-api:jar:1.0-SNAPSHOT

from the specified remote repositories:
  central (http://repo.mergere.com/maven2)
=


Sasha O wrote:
 Wayne, thanks for your reply.
 
 It looks like I have module dependencies set up fine so that 'mvn
 compile' and even 'mvn package' work fine at the top level.
 
 However 'mvn assembly:assembly' fails:
 
  Missing:
 --
 1) mycompany:A:jar:1.0-SNAPSHOT
 
   Try downloading the file manually from the project website.
 
   Then, install it using the command:
   mvn install:install-file -DgroupId=mycompany -DartifactId=A \
   -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
 
   Path to dependency:
 1) mycompany:B:jar:1.0-SNAPSHOT
 2) mycompany:A:jar:1.0-SNAPSHOT
 
 Any ideas?
 
 Thanks
 
 Wayne Fay wrote:
 Yes. Build from a shared parent directory with proper modules
 defined in the parent pom -- ie parent\modA, parent\modB (depends on
 A); run mvn compile from parent directory.

 Otherwise, you'll need to install the modules you have as dependencies.

 Wayne

 On 3/8/07, Sasha O [EMAIL PROTECTED] wrote:
 Dear All,

 My project consists of several interdependent modules. Module B depends
 on module A.

 When I am trying to build module B Maven complains that the module A was
 not found in the local repository. I would expect Maven to be able to
 figure this out automatically -- this is what dependency management is
 all about, right?

 Is there a way to build dependencies automatically without requiring me
 to 'mvn install' them?

 Thank you,
 Sasha


 -
 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: Status of maven dependency analysis mojo?

2007-03-08 Thread Steinar Bang
 Brian E. Fox [EMAIL PROTECTED]:

 The merged plugin is sitting here:
 /maven/sandbox/trunk/plugins/maven-dependency-plugin/pom.xml 

 Once alpha-2 is released, this will be merged into the dependency plugin
 trunk.

Ok.  Thanx!

What goals do I run to generate the reports?  None of the regular
dependency plugin goals seems to fit...?


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



Re: minijar bombs out when found duplicate classes

2007-03-08 Thread Torsten Curdt


On 08.03.2007, at 08:36, Dan Tran wrote:


My project with minijar:minijars gives this error


Embedded error: duplicate entry: org/xml/sax/SAXException.class
[INFO]
-- 
--

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


is it possible for minijar to ignore it?


Well, I am on it to make it better handled ...but what do you suggest  
should minijar do?


...only one will be active in you classpath.


There are a couple of jars containing the same class in my project.


That's bad :)

cheers
--
Torsten



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



How not to download the sources

2007-03-08 Thread mkmichem

Hi there

Just a quick question

Can someone pls tell me how to configure maven such that it does not
download the **-sources.jar for all
the dependencies in the pom.xml file. Im on a limited internet supply ... 

Ive tried creating a build.properties file, and then setting (included at
$HOME, Project dir  $MAVEN_HOME):

   maven.eclipse.src.download = false

Ive also tried:

   mvn eclipse:eclipse -DdownloadSources=false

but no hope.

Maybe its somethin with my local repository name ?? its called repo
instead of M2 but the 
variable is configured correctly and all projects get available jars from
it.

Or maybe is it some configuration in the pom.xml file?? im tryin to run an
example project i found 
off the internet. But there's no indication of it forcing source.jar
downloads. 

Pls help, im clueless about this ...
-- 
View this message in context: 
http://www.nabble.com/How-not-to-download-the-sources-tf3367850s177.html#a9370370
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Continuum reports

2007-03-08 Thread Emmanuel Venisse

you can look at the rpc client. if you use 1.1, a new version (that will be 
merge in trunk) is available in sandbox : 
http://svn.apache.org/viewvc/maven/sandbox/trunk/continuum/continuum-client/

Emmanuel

Morgovsky, Alexander (US - Glen Mills) a écrit :

I am very happy with the way that Continuum is functioning.  I need to
be able to create build metrics of project, build start time, build end
time, build duration and success/failure status.  Beside doing parsing
of the source of the generated Continuum builds page for each project,
what is currently available that I could use to achieve this?  Thank
you. 



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



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





Re: stop a build from GUI in version 1.1

2007-03-08 Thread Emmanuel Venisse

all the code is there but we need to link the gui to it.
This feature will be available only for *nix system

Emmanuel

L. J. a écrit :
Sorry if this question has been asked, in 1.0.3, you can't stop a build 
from

the GUI but will this be added as part of version 1.1 new features?





continuum error after killing the application

2007-03-08 Thread Tilman.Rossmy
I had to kill the container process, that hosts the continuum webapp,
now after a reboot continuum does not find the the old derby schema
anymore (no admin user, no project groups nothing). Is there a file lock
that I have to remove? Or a database table record that locks the schema?
I?ve checked the database with sqlsquirrel, seems ok

Tilman Rossmy
MC-TO-CPT-POA-IMD
Swisscom Mobile
Waldeggstrasse 51
3097  Liebefeld  BE
Phone: +41795932871



Re: continuum error after killing the application

2007-03-08 Thread Emmanuel Venisse

do you have an error or something in your logs when continuum start?

Emmanuel

[EMAIL PROTECTED] a écrit :

I had to kill the container process, that hosts the continuum webapp,
now after a reboot continuum does not find the the old derby schema
anymore (no admin user, no project groups nothing). Is there a file lock
that I have to remove? Or a database table record that locks the schema?
I?ve checked the database with sqlsquirrel, seems ok

Tilman Rossmy
MC-TO-CPT-POA-IMD
Swisscom Mobile
Waldeggstrasse 51
3097  Liebefeld  BE
Phone: +41795932871






Re: Status of maven dependency analysis mojo?

2007-03-08 Thread Steinar Bang
 Steinar Bang [EMAIL PROTECTED]:

 Brian E. Fox [EMAIL PROTECTED]:
 The merged plugin is sitting here:
 /maven/sandbox/trunk/plugins/maven-dependency-plugin/pom.xml 

 Once alpha-2 is released, this will be merged into the dependency plugin
 trunk.

 Ok.  Thanx!

 What goals do I run to generate the reports?  None of the regular
 dependency plugin goals seems to fit...?

mvn dependency:analyze seemed like a good guess.  And that goal
actually seems to be there.

Unfortunately I'm getting a FATAL ERROR (see stack trace below).
Could it be because we're using a flattened directory structure on our
hierarchical maven project?

(the flattened structure is more eclipse friendly.  That's why we're
using it)


/media/sda8/someuser/p4/depot/someproject/MAIN/com.somecompany.someproject$ mvn 
dependency:analyze
[INFO] Scanning for projects...
[INFO] Reactor build order:
[snip! ...]
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] 

[INFO] Building Somecompany Someproject
[INFO]task-segment: [dependency:analyze]
[INFO] 

[INFO] Preparing dependency:analyze
[INFO] No goals needed for project - skipping
[INFO] [dependency:analyze]
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Cannot accept visitor on URL: 
file:/media/sda8/someuser/p4/depot/someproject/MAIN/com.somecompany.someproject/target
[INFO] 
[INFO] Trace
java.lang.IllegalArgumentException: Cannot accept visitor on URL: 
file:/media/sda8/someuser/p4/depot/someproject/MAIN/com.somecompany.someproject/target
at 
org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.accept(ClassFileVisitorUtils.java:74)
at 
org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.analyze(ASMDependencyAnalyzer.java:49)
at 
org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.buildDependencyClasses(DefaultProjectDependencyAnalyzer.java:141)
at 
org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.analyze(DefaultProjectDependencyAnalyzer.java:72)
at 
org.apache.maven.plugin.dependency.AnalyzeMojo.execute(AnalyzeMojo.java:74)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
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] 
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Mar 08 09:53:35 CET 2007
[INFO] Final Memory: 12M/21M
[INFO] 


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



Re: [m2] included features with PDE-maven-plugin

2007-03-08 Thread Magali Helene

Yes, it has his own feature.xml, which includes the first one with the
includes/ tag.
Here is this feature.xml :

?xml version=1.0 encoding=UTF-8?
feature
  id=com.arcadsoftware.skipper.features
  label=ARCAD Plugin For Changer
  version=2.0.0.2
  provider-name=ARCAD Software
  plugin=com.arcadsoftware.core
  image=images/Arcad.gif
  primary=true

   description
...
   /description

   copyright
  ...
   /copyright

   license url=licence.txt
   ...
   /license

   url
...
   /url

   includes
 id=com.arcadsoftware.core.features
 version=2.0.0.2
 name=ARCAD Plug-in Core/

   requires
  import plugin=org.eclipse.ui.ide/
  import plugin=org.eclipse.ui.views/
  import plugin=org.eclipse.jface.text/
  import plugin=org.eclipse.ui.workbench.texteditor/
  import plugin=org.eclipse.ui.editors/
  import plugin=org.eclipse.core.resources/
  import plugin=org.eclipse.ui/
  import plugin=com.ibm.etools.iseries.core/
  import plugin=com.ibm.etools.iseries.toolbox/
  import plugin=com.ibm.etools.systems.core/
  import plugin=com.ibm.etools.systems.dstore.core/
  import plugin=com.ibm.etools.systems.logging/
  import plugin=com.ibm.etools.systems.dstore.extra/
  import plugin=com.ibm.etools.systems.editor/
  import plugin=com.arcadsoftware.core.ui version=2.0.0.2
match=equivalent/
  import plugin=com.arcadsoftware.core version=2.0.0.2
match=equivalent/
  import plugin=com.ibm.lpex/
  import plugin=org.eclipse.core.runtime/
   /requires

   plugin
 id=com.arcadsoftware.skipper
 download-size=0
 install-size=0
 version=2.0.0.2/

   plugin
 id=com.arcadsoftware.skipper.nl
 download-size=0
 install-size=0
 version=2.0.0.2
 fragment=true/

/feature

Magali





dan tran wrote:
 
 Does the second plugin has its own feature.xml?
 
 On 3/6/07, Magali Helene [EMAIL PROTECTED] wrote:


 Hello

 I am using the PDE-maven plugin to build plugins.
 I have a first core plugin. I placed a pom.xml in the features repository
 and the build is ok. It takes into account the features and all the
 plugins
 listed in it.
 Then I have a second plugin, which features includes my first core
 plugin's
 features. The PDE-maven plugin detects correctly this dependency and
 places
 the needed first plugins in the temprorary repository of the second
 features
 plugin. So it seems ok. Then it builds the second plugin itself, and this
 build failed because it can't find the first plugins ! Actually, when I
 am
 looking in the build.xml file, I see that the javac classpath pointed to
 the
 /plugins repositories instead of the temp repository of the features,
 where,
 juste before, the right plugins have been placed !
 I don't know if I am clear enough, but it is really a problem for me
 because
 I can't build plugins that depends on others plugins.

 If someone has any ideas...

 Magali Helene
 --
 in my build.xml of the plugin:

 javac destdir=${temp.folder}/arpchangerclient.jar.bin
 failonerror=${javacFailOnError} verbose=${javacVerbose}
 debug=${javacDebugInfo} includeAntRuntime=no
 bootclasspath=${bootclasspath} source=${javacSource}
 target=${javacTarget}
   compilerarg line=${compilerArg}/
   classpath
   pathelement path=../../../../../../../Program
 Files/eclipse
 3.0.2/eclipse/plugins/org.eclipse.core.runtime_3.0.2/runtime.jar/
   pathelement path=../../../../../../../Program
 Files/eclipse 3.0.2/eclipse/plugins/org.eclipse.osgi_3.0.1/core.jar/
 .
 .
 .
 pathelement path=../FR - Plugin Core/arpcore.jar/
 pathelement path=../NL - Plugin
 Core/arpcoreus.jar/
   /classpath
   src path=src//
 /javac

 instead of ?
   pathelement path=${pluginTemp}/FR - Plugin
 Core/arpcore.jar/
   pathelement path=${pluginTemp}/NL - Plugin
 Core/arpcoreus.jar/


 --
 View this message in context:
 http://www.nabble.com/included-features-with-PDE-maven-plugin-tf3356596s177.html#a9335496
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 

-- 
View this message in context: 
http://www.nabble.com/included-features-with-PDE-maven-plugin-tf3356596s177.html#a9370916
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Best practices for using mvn release, then releasing against the branch

2007-03-08 Thread Erik Drolshammer

neil hart wrote:

When we use the release plugin it works well by:

  - Changing our x.x-SNAPSHOT to x.x
  - Checks in and tags our code with the x.x version number
  - Changes x.x to x.x+1.

We would like to have some way of starting a branch from the tagged code 
and

have it change our x.x to x.x.1-SNAPSHOT so we can release using the
branched version number.  Does something like this exist?  Should we do the
release step differently?  Is there a better way of handling this?


We are currently trying to simplify and automate our deployment 
procedures, and are interested in some elaboration.


I suggest the following procedure:

Assume trunk is x.y-SNAPSHOT and that Xstream's versioning scheme [1] is 
used.


1. Create a new branch named release-x.y from trunk and set version to 
x.y in the pom of this new branch.


2. Change trunk version to x.y+1-SNAPSHOT

(Trunk is now ready for further development and you have a 
release-branch to create releases from.)


3. Create a tag x.y.z from release-x.y branch and deploy artifact


_Questions_:
a. Is this the procedure you want?
b. Is this procedure supported by the release-plugin?
c. Is this best practice? If not, what's wrong or should be changed?


[1] http://xstream.codehaus.org/versioning.html

--
Regards
Erik Drolshammer

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



RE: continuum error after killing the application

2007-03-08 Thread Tilman.Rossmy
well apart from the jdo warnings (like schema sa not found which seem to appear 
all the time anyway) there is this fatal error:
2007-03-07 18:07:27,372 INFO  [STDOUT] [FATAL ERROR] 
2007-03-07 18:07:27,372 INFO  [STDOUT] EnvironmentCheck Failure.
==
 ENVIRONMENT FAILURE !! 

xwork.xml - Missing named result success in action account in package 
/security.
xwork.xml - Missing named result success in action login in package 
/security.
xwork.xml - Expected method attribute value of show but got logout instead, 
on action logout in package /security.
xwork.xml - Missing named result input in action logout in package 
/security.
xwork.xml - Missing named result error in action logout in package 
/security.
xwork.xml - Missing named result success in action logout in package 
/security.
xwork.xml - Missing named result success in action register in package 
/security.
xwork.xml - Expected method attribute value of edit but got show instead, 
on action usercreate in package /security.
xwork.xml - Expected method attribute value of show but got list instead, 
on action roles in package /security.
xwork.xml - Missing named result input in action roles in package 
/security.
xwork.xml - Missing named result error in action roles in package 
/security.
xwork.xml - Missing named result success in action roles in package 
/security.
xwork.xml - Expected method attribute value of show but got list instead, 
on action permissions in package /security.
xwork.xml - Missing named result input in action permissions in package 
/security.
xwork.xml - Missing named result error in action permissions in package 
/security.
xwork.xml - Missing named result success in action permissions in package 
/security.
Missing [16] xwork.xml configuration elements.

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 10:02 AM
To: continuum-users@maven.apache.org
Subject: Re: continuum error after killing the application

do you have an error or something in your logs when continuum start?

Emmanuel

[EMAIL PROTECTED] a écrit :
 I had to kill the container process, that hosts the continuum webapp, 
 now after a reboot continuum does not find the the old derby schema 
 anymore (no admin user, no project groups nothing). Is there a file 
 lock that I have to remove? Or a database table record that locks the schema?
 I?ve checked the database with sqlsquirrel, seems ok
 
 Tilman Rossmy
 MC-TO-CPT-POA-IMD
 Swisscom Mobile
 Waldeggstrasse 51
 3097  Liebefeld  BE
 Phone: +41795932871
 
 



Re: continuum error after killing the application

2007-03-08 Thread Emmanuel Venisse

It's a wrong fatal error, this message isn't important and not related to 
your db pb.

[EMAIL PROTECTED] a écrit :

well apart from the jdo warnings (like schema sa not found which seem to appear 
all the time anyway) there is this fatal error:
2007-03-07 18:07:27,372 INFO  [STDOUT] [FATAL ERROR] 
2007-03-07 18:07:27,372 INFO  [STDOUT] EnvironmentCheck Failure.

==
 ENVIRONMENT FAILURE !! 


xwork.xml - Missing named result success in action account in package 
/security.
xwork.xml - Missing named result success in action login in package 
/security.
xwork.xml - Expected method attribute value of show but got logout instead, on action 
logout in package /security.
xwork.xml - Missing named result input in action logout in package 
/security.
xwork.xml - Missing named result error in action logout in package 
/security.
xwork.xml - Missing named result success in action logout in package 
/security.
xwork.xml - Missing named result success in action register in package 
/security.
xwork.xml - Expected method attribute value of edit but got show instead, on action 
usercreate in package /security.
xwork.xml - Expected method attribute value of show but got list instead, on action 
roles in package /security.
xwork.xml - Missing named result input in action roles in package 
/security.
xwork.xml - Missing named result error in action roles in package 
/security.
xwork.xml - Missing named result success in action roles in package 
/security.
xwork.xml - Expected method attribute value of show but got list instead, on action 
permissions in package /security.
xwork.xml - Missing named result input in action permissions in package 
/security.
xwork.xml - Missing named result error in action permissions in package 
/security.
xwork.xml - Missing named result success in action permissions in package 
/security.
Missing [16] xwork.xml configuration elements.

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 10:02 AM

To: continuum-users@maven.apache.org
Subject: Re: continuum error after killing the application

do you have an error or something in your logs when continuum start?

Emmanuel

[EMAIL PROTECTED] a écrit :
I had to kill the container process, that hosts the continuum webapp, 
now after a reboot continuum does not find the the old derby schema 
anymore (no admin user, no project groups nothing). Is there a file 
lock that I have to remove? Or a database table record that locks the schema?

I?ve checked the database with sqlsquirrel, seems ok

Tilman Rossmy
MC-TO-CPT-POA-IMD
Swisscom Mobile
Waldeggstrasse 51
3097  Liebefeld  BE
Phone: +41795932871











Re: continuum error after killing the application

2007-03-08 Thread Emmanuel Venisse

maybe you can use an external derby server instead of the embedded derby db so 
when you'll stop your container, the db will continue to work.

[EMAIL PROTECTED] a écrit :

well apart from the jdo warnings (like schema sa not found which seem to appear 
all the time anyway) there is this fatal error:
2007-03-07 18:07:27,372 INFO  [STDOUT] [FATAL ERROR] 
2007-03-07 18:07:27,372 INFO  [STDOUT] EnvironmentCheck Failure.

==
 ENVIRONMENT FAILURE !! 


xwork.xml - Missing named result success in action account in package 
/security.
xwork.xml - Missing named result success in action login in package 
/security.
xwork.xml - Expected method attribute value of show but got logout instead, on action 
logout in package /security.
xwork.xml - Missing named result input in action logout in package 
/security.
xwork.xml - Missing named result error in action logout in package 
/security.
xwork.xml - Missing named result success in action logout in package 
/security.
xwork.xml - Missing named result success in action register in package 
/security.
xwork.xml - Expected method attribute value of edit but got show instead, on action 
usercreate in package /security.
xwork.xml - Expected method attribute value of show but got list instead, on action 
roles in package /security.
xwork.xml - Missing named result input in action roles in package 
/security.
xwork.xml - Missing named result error in action roles in package 
/security.
xwork.xml - Missing named result success in action roles in package 
/security.
xwork.xml - Expected method attribute value of show but got list instead, on action 
permissions in package /security.
xwork.xml - Missing named result input in action permissions in package 
/security.
xwork.xml - Missing named result error in action permissions in package 
/security.
xwork.xml - Missing named result success in action permissions in package 
/security.
Missing [16] xwork.xml configuration elements.

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 10:02 AM

To: continuum-users@maven.apache.org
Subject: Re: continuum error after killing the application

do you have an error or something in your logs when continuum start?

Emmanuel

[EMAIL PROTECTED] a écrit :
I had to kill the container process, that hosts the continuum webapp, 
now after a reboot continuum does not find the the old derby schema 
anymore (no admin user, no project groups nothing). Is there a file 
lock that I have to remove? Or a database table record that locks the schema?

I?ve checked the database with sqlsquirrel, seems ok

Tilman Rossmy
MC-TO-CPT-POA-IMD
Swisscom Mobile
Waldeggstrasse 51
3097  Liebefeld  BE
Phone: +41795932871











RE: classpath order

2007-03-08 Thread Jörg Schaible
Jagan Padmanabha Pillai -X (jpadmana - Insight wrote on Thursday, March 08, 
2007 1:28 AM:

 The order of classpaths/dependencies seems to change when different
 people are working. Everyone is using the same pom.xml file,
 no changes.
 
 Does anyone know why this is happening.
 Its the same pom.xml file. Nothing is changed. Because some classes
 are available in different jars there are some classpath issue
 and build is
 failing for me.
 
 Also is there anyway we can control the order the
 dependencies added to
 the classpath.

Different JDK ?

- Jörg

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



Re: Status of maven dependency analysis mojo?

2007-03-08 Thread Mark Hobson

That exception would occur if the build directory didn't exist or is
not a directory - in your case:

/media/sda8/someuser/p4/depot/someproject/MAIN/com.somecompany.someproject/target

Does that directory exist?  What's your environment?

Cheers,

Mark

On 08/03/07, Steinar Bang [EMAIL PROTECTED] wrote:

mvn dependency:analyze seemed like a good guess.  And that goal
actually seems to be there.

Unfortunately I'm getting a FATAL ERROR (see stack trace below).
Could it be because we're using a flattened directory structure on our
hierarchical maven project?

(the flattened structure is more eclipse friendly.  That's why we're
using it)


/media/sda8/someuser/p4/depot/someproject/MAIN/com.somecompany.someproject$ mvn 
dependency:analyze
[INFO] Scanning for projects...
[INFO] Reactor build order:
[snip! ...]
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] 

[INFO] Building Somecompany Someproject
[INFO]task-segment: [dependency:analyze]
[INFO] 

[INFO] Preparing dependency:analyze
[INFO] No goals needed for project - skipping
[INFO] [dependency:analyze]
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Cannot accept visitor on URL: 
file:/media/sda8/someuser/p4/depot/someproject/MAIN/com.somecompany.someproject/target
[INFO] 
[INFO] Trace
java.lang.IllegalArgumentException: Cannot accept visitor on URL: 
file:/media/sda8/someuser/p4/depot/someproject/MAIN/com.somecompany.someproject/target
at 
org.apache.maven.shared.dependency.analyzer.ClassFileVisitorUtils.accept(ClassFileVisitorUtils.java:74)
at 
org.apache.maven.shared.dependency.analyzer.asm.ASMDependencyAnalyzer.analyze(ASMDependencyAnalyzer.java:49)
at 
org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.buildDependencyClasses(DefaultProjectDependencyAnalyzer.java:141)
at 
org.apache.maven.shared.dependency.analyzer.DefaultProjectDependencyAnalyzer.analyze(DefaultProjectDependencyAnalyzer.java:72)
at 
org.apache.maven.plugin.dependency.AnalyzeMojo.execute(AnalyzeMojo.java:74)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
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] 
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Mar 08 09:53:35 CET 2007
[INFO] Final Memory: 12M/21M
[INFO] 


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



Re: findbugs plugin

2007-03-08 Thread Rémy Sanlaville

Hi,

I just try it now and it works well.
Did you add the repository section for the codehaus repository in your pom ?

   repository
 idcodehaus/id
 nameCodehaus Repository/name
 url http://repository.codehaus.org//url
 releases
   enabledtrue/enabled
 /releases
 snapshots
   enabledfalse/enabled
 /snapshots
   /repository


Otherwise you can also use the 1.0-SNAPSHOT [1].
In this case you need the codehaus snapshot repository

   repository
 idcodehaus.snapshot/id
 nameCodehaus Snapshot Repository/name
 url http://snapshots.repository.codehaus.org//url
 releases
   enabledfalse/enabled
 /releases
 snapshots
   enabledtrue/enabled
 /snapshots
   /repository

Rémy

[1] http://mojo.codehaus.org/findbugs-maven-plugin/changes-report.html


Re: derby error

2007-03-08 Thread Robert Dale

java.lang.OutOfMemoryError: Java heap space

Increase your heap, add to your jvm options: +mxSIZEm
where SIZE is in mb

If it's running the default size, ie. you're not specifying a size,
then try 128.  if you are specifying a size, try adding 20% or so.

--
Robert Dale

On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

Maybe someone can help me with this derby error (from the derby.log
file):


2007-02-27 07:10:05.092 GMT:
 Booting Derby version The Apache Software Foundation - Apache Derby -
10.1.3.1 - (417277): instance c013800d-0111-0208-d32b-04ec1290
on database directory /opt/sp/jboss-4.0.1sp1/bin/database/continuum

Database Class Loader started - derby.database.classpath=''

2007-02-27 07:21:37.796 GMT:
 Booting Derby version The Apache Software Foundation - Apache Derby -
10.1.3.1 - (417277): instance aaeec04e-0111-0208-d32b-04ec1290
on database directory /opt/sp/jboss-4.0.1sp1/bin/database/users

Database Class Loader started - derby.database.classpath=''
2007-03-07 15:37:52.853 GMT Thread[JCA PoolFiller,5,jboss] Cleanup
action starting
java.lang.OutOfMemoryError: Java heap space
Cleanup action completed
2007-03-07 15:45:48.355 GMT Thread[pool-1-thread-1,5,jboss] (XID =
286431), (SESSIONID = 8782), (DATABASE = database/continuum), (DRDAID =
null), Cleanup action starting
2007-03-07 15:45:52.712 GMT Thread[pool-1-thread-1,5,jboss] (XID =
286431), (SESSIONID = 8782), (DATABASE = database/continuum), (DRDAID =
null), Failed Statement is: SELECT
THIS.CHANGEFILE_ID,THIS.MODEL_ENCODING,THIS.NAME,THIS.REVISION,THIS.ST
ATUS,THIS.FILES_INTEGER_IDX AS JPOXORDER0 FROM CHANGEFILE THIS WHERE ? =
THIS.FILES_CHANGESET_ID_OID AND THIS.FILES_INTEGER_IDX = ? ORDER BY
JPOXORDER0
java.lang.OutOfMemoryError: Java heap space
Cleanup action completed
2007-03-07 15:45:48.745 GMT Thread[JCA PoolFiller,5,jboss] Cleanup
action starting
java.lang.NoClassDefFoundError: org/apache/derby/impl/jdbc/Util
at
org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Un
known Source)
at
org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unkno
wn Source)
at
org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedConnection.init(Unknown
Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.init(Unknown
Source)
at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Unknown
Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at
org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.crea
teManagedConnection(LocalManagedConnectionFactory.java:151)
at
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.creat
eConnectionEventListener(InternalManagedConnectionPool.java:508)
at
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillT
oMin(InternalManagedConnectionPool.java:455)
at
org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:70)
at java.lang.Thread.run(Thread.java:595)
Cleanup action completed






Re: [m2] [ANN] Artifactory - new Maven 2 proxy repository

2007-03-08 Thread Yoav Landman

We have just released a minor version update for Artifactory (1.2.0.1) which
fixes a couple of known reported issues, so you are welcome to use it.
Release notes are here:
http://sourceforge.net/project/shownotes.php?release_id=491127group_id=175347


Yoav  Landman wrote:
 
 Hi all,
 
 We would like to announce the immediate availability of Artifactory, a
 Maven 2 enterprise proxy.
 
 Artifactory offers advanced proxying, caching and security facilities to
 answer the needs of a robust, reproducible and independent build
 environment using Maven 2.
 It uses a JSR-170 Java Content Repository (JCR) for storage, which makes
 it extremely easy to manage searchable metadata, and provide extended
 features such as security, transacted operations, auditing, locking, etc.
 
 Artifactory is distributed under APLv2 at
 http://artifactory.sourceforge.net.
 It is currently available as a downloadable archive, that can be run out
 of the box (with default settings). An install script to run it as a Linux
 service is also provided.
 A (limited) guest live demo is available at
 http://www.jfrog.org/artifactory/
 
 You are welcome to give it a go!
 
 Cheers,
 
 Yoav Landman,
 The Artifactory Team
 
 

-- 
View this message in context: 
http://www.nabble.com/-ANN--Artifactory---new-Maven-2-proxy-repository-tf3344299s177.html#a9372267
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Status of maven dependency analysis mojo?

2007-03-08 Thread Steinar Bang
 Mark Hobson [EMAIL PROTECTED]:

 That exception would occur if the build directory didn't exist or is
 not a directory - in your case:

 /media/sda8/someuser/p4/depot/someproject/MAIN/com.somecompany.someproject/target

 Does that directory exist? 

Yes.  It contains a file called mvn-eclipse-cache.properties
(presumably generated by mvn eclipse:eclipse...?).

com.somecompany.someproject/pom.xml is the top POM for the
hierarchical project, and has packagingpom/packaging.

 What's your environment?

Ubuntu Dapper Drake (on Intel arch)
maven 2.0.4
Sun Java 2 SDK 1.5.0_06-b05


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



[m2] tomcat-maven-plugin [Virus checked]

2007-03-08 Thread Wolfgang . Schrecker
Hi all,

I have a problem with tomcat-maven-plugin:

it seems to load from http://snapshots.maven.codehaus.org , as I can find
it in my local repository,
but all
mvn tomcat: ...

result in:

[ERROR] BUILD ERROR
[INFO]

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

while I am referencing:

groupIdorg.codehaus.mojo/groupId
artifactIdtomcat-maven-plugin/artifactId
version1.0-SNAPSHOT/version

in my dependecies. What am I missing here ?

mit freundlichen Grüßen/best regards

Wolfgang Schrecker

... writing code is to interaction design as pouring concrete is to
building architecture. ... the effect of design will be negligible if the
code is underway.
 --  Alan Cooper in: The inmates are running the asylum p. 204
--

--

Atos Worldline Processing GmbH
Hahnstrasse 25
60528 Frankfurt/Main
Germany
Phone: +49 69/6657-1176
Fax :
mailto: [EMAIL PROTECTED]
http://www.atosworldline.de

Geschäftsführer: Erik Munk Koefoed
Aufsichtsratsvorsitzender: Dominique Illien
Sitz der Gesellschaft: Frankfurt/Main
Handelsregister: Frankfurt/Main HRB 40 417


* * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *
This e-mail is destined for the above mentioned recipient. In case you
received this e-mail by accident, we would appreciate it if you could
contact the sender and delete all copies stored on your computer.
Please be aware that the security and confidentiality of electronic data
transmitted by e-mail is not completely guaranteed and that data may be seen,
copied, downloaded or changed by third persons during transmission.
Atos Origin accepts no liability for the security and confidentiality of
data and documents sent by e-mail. Please make sure that all important
messages will be confirmed in writing by means of a telefax or a letter.
* * * * * * * * L E G A LD I S C L A I M E R * * * * * * * *


Re: [m2] disappearing dependency

2007-03-08 Thread Jerome Lacoste

On 3/6/07, Guillaume Lederrey [EMAIL PROTECTED] wrote:

  Might be ... but it did work correctly before I added the dependency
on ojdbc ... strange ... I'll check and let you know.


what does happen if you build your web module only (after installing
your root pom using mvn -N if necessary) ?

Does it solve your problem ?

I am currently troubleshooting a similar problem where I've moved some
dependency declarations in a dependencyManagement section in a root
pom, and now one dependency disappeared from the maven classpath in
the sub module build although the dependency is listed in the
sub-module POM !!

So my build fails.

Yet if I go in the sub-module, the dependency is resolved correctly
and my build works.

I am reviewing the mvn -X install log of the full build and find
nothing particular yet.

Strange...

Jerome

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



Re: [m2] disappearing dependency

2007-03-08 Thread Jerome Lacoste

On 3/8/07, Jerome Lacoste [EMAIL PROTECTED] wrote:

On 3/6/07, Guillaume Lederrey [EMAIL PROTECTED] wrote:
   Might be ... but it did work correctly before I added the dependency
 on ojdbc ... strange ... I'll check and let you know.


[...]

I am reviewing the mvn -X install log of the full build and find
nothing particular yet.


Just forget it...

J

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



JNI shared libs: attachments or separate artifacts?

2007-03-08 Thread Steinar Bang
I'm trying to use maven to distribute .so/DLL files used by a JNI
class.  The plan was to use dependency:unpack to drop the .so files
and DLLs into a directory in LD_LIBRARY_PATH (or PATH on Win32).

The questions are:
 1. should the DLLs be separate artifacts, or can they be attachments
to the JNI jar artifact?  (if so, how are they referenced from an
artfactItem in the artifactItems list of dependency:unpack?  I
only know how to do sources here...)

 2. can dependency:unpack handle .tar or .tar.gz or .tgz files?

Thanx!


- Steinar

PS the plan was to use ${os.name} and ${os.arch} in the artifactId for
the case where each platform's DLL gets a separate artifact.  How to
do it if the DLLs becomes attachments I have no idea.


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



RE: continuum error after killing the application

2007-03-08 Thread Tilman.Rossmy
found the solution to my problem, rather trivial:
Started the JBoss that hosts our Continuum from $JBOSS_HOME/bin thus the 
Continuum database was installed  at $JBOSS_HOME/bin/database. After I had to 
kill the JBoss Instance I restarted it with the following script from 
$USER_HOME:

#!/bin/sh
nohup $JBOSS_HOME/bin/./run.sh 0- 

thus a new database was created at $USER_HOME/database

Now I changed my JBoss start script to 

#!/bin/sh
cd $JBOSS_HOME/bin
nohup ./run.sh 0- 

and I got my old Continuum database back


-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 10:28 AM
To: continuum-users@maven.apache.org
Subject: Re: continuum error after killing the application

maybe you can use an external derby server instead of the embedded derby db so 
when you'll stop your container, the db will continue to work.

[EMAIL PROTECTED] a écrit :
 well apart from the jdo warnings (like schema sa not found which seem to 
 appear all the time anyway) there is this fatal error:
 2007-03-07 18:07:27,372 INFO  [STDOUT] [FATAL ERROR]
 2007-03-07 18:07:27,372 INFO  [STDOUT] EnvironmentCheck Failure.
 ==
  ENVIRONMENT FAILURE !! 
 
 xwork.xml - Missing named result success in action account in package 
 /security.
 xwork.xml - Missing named result success in action login in package 
 /security.
 xwork.xml - Expected method attribute value of show but got logout 
 instead, on action logout in package /security.
 xwork.xml - Missing named result input in action logout in package 
 /security.
 xwork.xml - Missing named result error in action logout in package 
 /security.
 xwork.xml - Missing named result success in action logout in package 
 /security.
 xwork.xml - Missing named result success in action register in package 
 /security.
 xwork.xml - Expected method attribute value of edit but got show instead, 
 on action usercreate in package /security.
 xwork.xml - Expected method attribute value of show but got list instead, 
 on action roles in package /security.
 xwork.xml - Missing named result input in action roles in package 
 /security.
 xwork.xml - Missing named result error in action roles in package 
 /security.
 xwork.xml - Missing named result success in action roles in package 
 /security.
 xwork.xml - Expected method attribute value of show but got list instead, 
 on action permissions in package /security.
 xwork.xml - Missing named result input in action permissions in package 
 /security.
 xwork.xml - Missing named result error in action permissions in package 
 /security.
 xwork.xml - Missing named result success in action permissions in package 
 /security.
 Missing [16] xwork.xml configuration elements.
 
 -Original Message-
 From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 08, 2007 10:02 AM
 To: continuum-users@maven.apache.org
 Subject: Re: continuum error after killing the application
 
 do you have an error or something in your logs when continuum start?
 
 Emmanuel
 
 [EMAIL PROTECTED] a écrit :
 I had to kill the container process, that hosts the continuum webapp, 
 now after a reboot continuum does not find the the old derby schema 
 anymore (no admin user, no project groups nothing). Is there a file 
 lock that I have to remove? Or a database table record that locks the schema?
 I?ve checked the database with sqlsquirrel, seems ok

 Tilman Rossmy
 MC-TO-CPT-POA-IMD
 Swisscom Mobile
 Waldeggstrasse 51
 3097  Liebefeld  BE
 Phone: +41795932871


 
 
 
 



Re: Running surefire for test and integration-test and producing two reports

2007-03-08 Thread Pete

Steve,

I've had the same issue myself regarding the integration test JUnits
not appearing in the site,  what I found was it doesn't matter what is
put in the reporting section of the pom regarding configuring the
'maven-surefire-plugin' itself.

Instead Maven seems to use the 'maven-surefire-plugin' configuration
from the build section EVEN when doing a 'site' goal.

So I did have the build configuration like this, meaning Test.java
get run during 'test' phase and ITTest.java only get run for
'integration-test' phase. This works fine during build but not for
'site'.

So the only hack I can find is to
make the exclude alterable during 'site' or 'test' , see 2nd example

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.3/version
!--  default configuration for default 'test' phase  bindings --
configuration
reportFormatxml/reportFormat
forkModenone/forkMode

includes
include**/*Test.java/include
/includes
excludes
exclude${exclude.pattern.it.tests}/exclude
/excludes
/configuration
!-- special configuration to pick up src/it/java during
integration-test phase --
executions
execution
idsurefire-it/id
phaseintegration-test/phase
configuration
includes
include**/*ITTest.java/include
/includes
/configuration
goals
goaltest/goal
/goals
/execution
/executions
/plugin

What follows in a 2nd version to make site work, with
${exclude.pattern.it.tests} set by default in pom to

exclude.pattern.it.tests**/*ITTest.java/exclude.pattern.it.tests

so this is used to exclude during a normal 'mvn test'

but when site is run I have to include the above e.g

mvn site -Dexclude.pattern.it.tests=anyoldstring

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.3/version
!--  default configuration for default 'test' phase  bindings --
configuration
reportFormatxml/reportFormat
forkModenone/forkMode

includes
include**/*Test.java/include
/includes
excludes
exclude${exclude.pattern.it.tests}/exclude   !-- 
to exclude
'**/*ITTest.java' during 'test' but not during 'site' so this is
variable --
/excludes
/configuration
!-- special configuration to pick up src/it/java during
integration-test phase --
executions
execution
idsurefire-it/id
phaseintegration-test/phase
configuration
includes
include**/*ITTest.java/include
/includes
/configuration
goals
goaltest/goal
/goals
/execution
/executions
/plugin

However this means the integration tests get run during the 'test'
phase when running 'site' instead of 'integration-test' so it's not
ideal.

Anyone else help ?

Pete

On 05/03/07, Steve Hayes [EMAIL PROTECTED] wrote:

Hi,

I have just started using Maven2, and I think that I am missing
something fundamental. I am trying to create a build that:

1) Runs some tests as unit tests during the test phase;
2) Runs some other tests as integration tests during the integration-
test phase;
3) Produces two surefire reports on the site

I have tried a number of different approaches, and all of them have
had something wrong. I have tried using the executions to bind the
unit and integration tests to different phases and goals, but there
also seems to be some default behaviour invoked which executes all my
tests, without reference to the executions, when the surefire:test
target in invoked as a dependency. I would like to see two test runs,
but I always end up seeing more than that.

And when I run the site goal, the unit tests are executed but the
integration tests are not.

I'm working with a simple project with just dummy code and tests in
it, so the problem is unlikely to be the complexity of my project.

Can anyone point me to an example that does something like that I'm
after?

Regards,
Steve Hayes

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





RE: Using the POM classpath for integration testing

2007-03-08 Thread Philippe Kernevez
Hi,

I just had the mechanism to the plugin.

Had this parameter to use Maven POM instead of FitNesse classpath.
classPathProvidermaven/classPathProvider

The default value is fitnesse.

The new SNAPSHOT is available in the repository.

There is an example there:
http://mojo.codehaus.org/fitnesse-maven-plugin/examples/multiproject.html 

For the implementation I use a mixed of your example and Better Builds With
Maven §5.5.2. I can't use 100% of the book code, because Maven API changed.

Hope it helps,
Philippe

-Original Message-
From: Eric Torreborre [mailto:[EMAIL PROTECTED] 
Sent: mardi 6 mars 2007 01:24
To: Maven Users List
Subject: RE: Using the POM classpath for integration testing

[Please refer to the fitnesse thread regarding the fitnesse usage
questions]

Coming back to Maven2,... 

Since I would like to keep my acceptance pages along with my source
files, I think I am going to need a way to launch my mojo with the
project (recursive) dependencies in the classpath. Anyone knows how to
do that easily?

The only resource I have found that looked like that was:
http://blogs.webtide.com/janb/2006/03/24/114323400.html

I hope there's an easiest way, isn't?

Thanks,

Eric.

-Original Message-
From: Philippe Kernevez [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 05, 2007 7:44 PM
To: [EMAIL PROTECTED]; Eric Torreborre
Subject: RE: Using the POM classpath for integration testing

This is a thread that starts on Maven list.
I transfer it because it more a debate about our use/pros/cons of
fitnesse than a Maven2 discussion.

Our process is:
Before iteration
* BA take stories for the next iteration, and write test data (only data
tables and comments ).

During iteration
* dev take a story and try to implement corresponding code. For doing
this
they:
** develop some code
** interact with BA if they discover some conflict
** enrich FitNesse page with Fixture names, parameters, etc.
* CI: integrate and deploy to a shared Fitnesse server
* HML (homologation)/BA re-run tests.

All work on the server pages that are our tests referential. 

In your case the tests referential is Svn.

In fact we prefer (and try to think about) to have the tests referential
at the same place/tools than the code. But, we choose to keep an always
available centralized server. All people (including non team member) can
see the tests implementation advancement.
We add few troubles with the centralizer fitnesse server.

The drawbacks I see with this approach are:
* We don't have the same referential for code and tests
* we need to manage release/tags manually with FitNesse wiki copy.
* We can't easily (without a dev help) replay older revision tests.

In fact, these drawbacks are acceptable for us while we work on small
iterations; most of the effort is on the trunk. 
I we had long time branch development; I may prefer your approach.

My paradise would be to substitute the FitNesse version mechanism with
Subversion revision. ;-)

 

-Original Message-
From: Eric Torreborre [mailto:[EMAIL PROTECTED]
Sent: lundi 5 mars 2007 06:09
To: Maven Users List
Subject: RE: Using the POM classpath for integration testing

Hi Philippe,

Here is the setup I have in mind. Not only in mind, this is what I
previously did, excepted that we were using Ant.

c:/.../project/src/main/java: production code
c:/.../project/src/test/java/fixtures: fitnesse fixtures
c:/.../project/src/test/resources/specs: fitnesse pages

c:/.../tools/fitnesse/run_project.bat using fitnesse.jar from the maven
repository and having FIT_SPECS=c:/.../project/src/test/resources/specs

Then we can work like that:

-developers: 
-develop the fixtures, 
-use Fitnesse locally to modify Fitnesse pages as necessary and
commit
-use the FitnesseRunner class to debug their fixtures
-use maven-fitnesse-plugin to do a mvn install passing the
acceptance tests

-business analysts: 
-run Fitnesse locally against a proper version tag from the VCS
(usually HEAD) and commit new pages if necessary
-use a deployment server with the latest version (SNAPSHOT or
production release) to play with the latest soft. But nothing written
here is ever committed to the VCS

-continuous integration server: 
-use maven-fitnesse-plugin to run the acceptance tests against
the last version 
-updates the deployment server with the latest ok-release

The important point is that there can be a shared Fitnesse server but
only as a sandbox environment to play with the latest release. If
business analysts need to commit pages, they have to test them first on
their private Fitnesse server.

The overall process that I would use is:

-BA+dev: take a story
-BA: create (or update) a Fitnesse page for it
-BA: commit it (don't integrate it yet to the executed acceptance tests)
-Dev: code the fixtures, test the page, commit (add the page to the
acceptance test suite) -CI env: integrate and deploy to a shared
Fitnesse server
-BA: 

Add compilation date in the manifest

2007-03-08 Thread MATHUS Baptiste
Hi all,

I'm looking for the variable that could be used to declare an additional 
property compilationDate in the manifest. I've been looking at this page as a 
starting point : http://maven.apache.org/guides/mini/guide-manifest.html 

But I can't find anywhere on the net how the variable corresponding to when the 
compilation process was started is called.

Thanks in advance.

-- 
Baptiste MATHUS - [EMAIL PROTECTED]
Systèmes  Méthodes
MIPIH - Midi Pyrénées Informatique Hospitalière

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



How to change the invoked goals at runtime

2007-03-08 Thread Daniel Beland

Hi,


I am trying to migrate our projects to maven 2.0.5 (have been using maven 1
for 2 years now).

I would like to know how I can invoke maven to package the artifact only
when the version does not contain SNAPSHOT, and install it if it contains
SNAPSHOT.
In maven 1 I was using a goal like this:

   goal name=jar:cruisecontrol
   j:if test=${not(pom.currentVersion.endsWith('SNAPSHOT'))}
   ant:echo message=Create jar only/
   attainGoal name=jar/
   /j:if

   j:if test=${pom.currentVersion.endsWith('SNAPSHOT')}
   ant:echo message=Install SNAPSHOT jar/
   attainGoal name=jar:install/
   /j:if
   /goal


This is because I do not want cruise control to install an artifact if it is
not a SNAPSHOT. (Released version should always be downloaded from our
central repository).
It happened too many times that developers forget to change the version to
SNAPSHOT after a release, and we overwrite the local artifact and break the
build of other modules.


Profiles cannot be called based on ${pom.version} ending with SNAPSHOT.
I checked the plugin development, but I didn't find how we can alter the
goals from a plugin.


Someone has an idea how I can attain this?

Thanks,
Daniel


Re: How to change the invoked goals at runtime

2007-03-08 Thread Jerome Lacoste

On 3/8/07, Daniel Beland [EMAIL PROTECTED] wrote:

Hi,


I am trying to migrate our projects to maven 2.0.5 (have been using maven 1
for 2 years now).

I would like to know how I can invoke maven to package the artifact only
when the version does not contain SNAPSHOT, and install it if it contains
SNAPSHOT.
In maven 1 I was using a goal like this:

goal name=jar:cruisecontrol
j:if test=${not(pom.currentVersion.endsWith('SNAPSHOT'))}
ant:echo message=Create jar only/
attainGoal name=jar/
/j:if

j:if test=${pom.currentVersion.endsWith('SNAPSHOT')}
ant:echo message=Install SNAPSHOT jar/
attainGoal name=jar:install/
/j:if
/goal


This is because I do not want cruise control to install an artifact if it is
not a SNAPSHOT. (Released version should always be downloaded from our
central repository).


install will only happen under the local repository of the user
running your cruisecontrol instance. Why is that affecting you ?


It happened too many times that developers forget to change the version to
SNAPSHOT after a release, and we overwrite the local artifact and break the
build of other modules.


If that's the root of your problem, use the release plugin and it
should disappear.

J

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



Load properties from file/url to pom.xml

2007-03-08 Thread Rahamim, Zvi \(Zvi\)
Hi,
I know that inside pom.xml there is a section that I can define
properties.
Is there a way to load properties from a property file / url?
I need this because I have a couple of pom.xml files that should load
the same property file.
Thanks!

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



Re: How to change the invoked goals at runtime

2007-03-08 Thread Daniel Beland

Ok let me explin it with more details.

I have projects A, B and C, giving artifacts a-1.0.jar, b-1.0.war and
c-1.0.war.

B as a dependency on a-1.0.jar
C as a dependency on a-1.0.jar.


We modify A and B only = (A version should become a-1.1-SNAPSHOT.jar)
But the developer commit it and forget to change the version, the local lib
a-1.0.jar is installed over with what should have been a-1.1-SNAPSHOT.jar.

The build of B breaks because a-1.1-SNAPSHOT.jar cannot be found, he
realizes it and change it. Everything seems ok from now on, no harms done.

We make a modification to C later, build of C breaks, we don't understand
why and can spend a long time trying to find out the reason (because the
local lib a-1.0.jar is not the same as on the central repository). We have
to delete it from the local repository to make sure it is downloaded
properly next time.


To make sure this kind of situation does not happen again, I would like to
install the artifacts only when the version is SNAPSHOT. With cruise control
I cannot configure it to build the project only when the version is
SNAPSHOT. I need to find a way to do it within the maven build lifecycle.



On 08/03/07, Jerome Lacoste [EMAIL PROTECTED] wrote:


On 3/8/07, Daniel Beland [EMAIL PROTECTED] wrote:
 Hi,


 I am trying to migrate our projects to maven 2.0.5 (have been using
maven 1
 for 2 years now).

 I would like to know how I can invoke maven to package the artifact only
 when the version does not contain SNAPSHOT, and install it if it
contains
 SNAPSHOT.
 In maven 1 I was using a goal like this:

 goal name=jar:cruisecontrol
 j:if test=${not(pom.currentVersion.endsWith('SNAPSHOT'))}
 ant:echo message=Create jar only/
 attainGoal name=jar/
 /j:if

 j:if test=${pom.currentVersion.endsWith('SNAPSHOT')}
 ant:echo message=Install SNAPSHOT jar/
 attainGoal name=jar:install/
 /j:if
 /goal


 This is because I do not want cruise control to install an artifact if
it is
 not a SNAPSHOT. (Released version should always be downloaded from our
 central repository).

install will only happen under the local repository of the user
running your cruisecontrol instance. Why is that affecting you ?

 It happened too many times that developers forget to change the version
to
 SNAPSHOT after a release, and we overwrite the local artifact and break
the
 build of other modules.

If that's the root of your problem, use the release plugin and it
should disappear.

J

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




Re: minijar bombs out when found duplicate classes

2007-03-08 Thread Dan Tran

On 3/8/07, Torsten Curdt [EMAIL PROTECTED] wrote:



On 08.03.2007, at 08:36, Dan Tran wrote:

 My project with minijar:minijars gives this error


 Embedded error: duplicate entry: org/xml/sax/SAXException.class
 [INFO]
 --
 --
 [INFO] For more information, run Maven with the -e switch


 is it possible for minijar to ignore it?

Well, I am on it to make it better handled ...but what do you suggest
should minijar do?

...only one will be active in you classpath.




This case, can you display a message showing the bad jars? is it possible
to pickup the first one?
(very much depending on how maven setup the order of classpath )


There are a couple of jars containing the same class in my project.

That's bad :)



Yeah, those are my dependency jars :(

cheers

--
Torsten



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




Re: How to change the invoked goals at runtime

2007-03-08 Thread Jerome Lacoste

On 3/8/07, Daniel Beland [EMAIL PROTECTED] wrote:

Ok let me explin it with more details.

I have projects A, B and C, giving artifacts a-1.0.jar, b-1.0.war and
c-1.0.war.

B as a dependency on a-1.0.jar
C as a dependency on a-1.0.jar.


We modify A and B only = (A version should become a-1.1-SNAPSHOT.jar)
But the developer commit it and forget to change the version, the local lib
a-1.0.jar is installed over with what should have been a-1.1-SNAPSHOT.jar.

The build of B breaks because a-1.1-SNAPSHOT.jar cannot be found, he
realizes it and change it. Everything seems ok from now on, no harms done.

We make a modification to C later, build of C breaks, we don't understand
why and can spend a long time trying to find out the reason (because the
local lib a-1.0.jar is not the same as on the central repository). We have
to delete it from the local repository to make sure it is downloaded
properly next time.


To make sure this kind of situation does not happen again, I would like to
install the artifacts only when the version is SNAPSHOT. With cruise control
I cannot configure it to build the project only when the version is
SNAPSHOT. I need to find a way to do it within the maven build lifecycle.


OK got it.

If you use the release plugin then your developpers won't make the
mistake again as the version change in the pom will happen
automatically.

I personally empty the local repository under my profile (and CC's
one) every now and then because I want to avoid caching issues.

J

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



Re: [m2] Best Practice for Deploying an Application w/Dependencies

2007-03-08 Thread John J. Franey


mark_in_gr wrote:
 
 
 
 What would be the most efficient way to format my executable jar
 application, though? 
 

Depends on your apps requirements.  I think unpacked leads to less of a
burden on host filesystem.  jar-with-dependencies is easiest to configure,
for sure.




Using the maven assembly plugin's
jar-with-dependencies, I can bundle up all the jar's dependencies in
unpacked form in one jar file and easily distribute the app that way.
However, is this the most practical approach as opposed to including ONLY my
internal application dependencies(classes our organization has written)
within the jar along w/manifest classpath references to external
dependencies in a lib directory relative to the location of the executable
jar?



I think the answer to this question depends on your application's deployment
requirements.  Maven doesn't enforce one or the other.  It would be less
work in maven configuration if you can choose the former.



I understand the concept and relationships between the maven package
phase(which builds artifacts to a developer's local file system target
directory), install phase(copying the target artifacts to the local
repository) and finally the deploy phase(which takes the local repo artifact
and sends it to a specified location based on a given transfer protocol).
However, is this concept only applicable to artifacts which are meant to be
components to be shared, or full fledged applications as well? 



Full fledged applications.  The full fledged application known as maven is
an example.  Check out its source code and look into the module
'maven-core'.  You will find use of the assembly plugin to build the maven
application.


And if the
later is true, how does one structure the executable jar application in
regards to it's external dependencies so it may be used in an automated
build and testing process?



You can create an application jar using some combination of the assembly and
dependency plugins.  The assembly plugin may do all for you, but maybe the
dependency plugin could be useful in your situation.   Note that the
documentation on the maven web page for the assembly plugin refers to
2.2-SNAPSHOT, not 2.1 release.  

Regards,
John
-- 
View this message in context: 
http://www.nabble.com/Best-Practice-for-Deploying-an-Application-w-Dependencies-tf3366937s177.html#a9374201
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Load properties from file/url to pom.xml

2007-03-08 Thread Wayne Fay

The use of externally properties files was purposefully abandoned in M2.

In your case, I'd make a single shared parent pom and have the other poms use 
it as their parent, so you will inherit the properties set in the parent. Or 
utilize profiles.xml or settings.xml to share the properties.

Otherwise, you will need to write a plugin to access the properties file and 
read the contents etc.

Wayne

On 3/8/07, Rahamim, Zvi (Zvi) [EMAIL PROTECTED] wrote:

Hi,
I know that inside pom.xml there is a section that I can define
properties.
Is there a way to load properties from a property file / url?
I need this because I have a couple of pom.xml files that should load
the same property file.
Thanks!

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




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



Re: Best practices for using mvn release, then releasing against the branch

2007-03-08 Thread neil hart

On 3/8/07, Erik Drolshammer [EMAIL PROTECTED] wrote:

snip

_Questions_:

a. Is this the procedure you want?


b. Is this procedure supported by the release-plugin?

c. Is this best practice? If not, what's wrong or should be changed?




The release plugin will  create the  tag/branch for you.  The pom.xml in the
tag will have the version at x.y.  The plugin will then change the
pom.xmlon the trunk to have version
x.y+1-SNAPSHOT.  Which is great.  It handles all of the -SNAPSHOT references
you may have in other sub projects.

The process I'm trying to understand is post-release.  It is easy to
continue to develop on the trunk and then run the release plugin again, but
how do we do development on the branch and then use the release plugin.  It
would seem we need to manually update the version numbers in the poms.  Once
that is done, the release plugin can do it's job again.

I'm looking to see if someone has a repeatable process for doing this with
the help of maven tools.  Maven may not cover everything in our process,
but, if it can do something, I want to use it.

Neil


Re: [m2] included features with PDE-maven-plugin

2007-03-08 Thread Dan Tran

strange it should work since each feature is independently built. do you
know some opensource that
has similar set up that I can repoduce this issue?

-D


On 3/8/07, Magali Helene [EMAIL PROTECTED] wrote:



Yes, it has his own feature.xml, which includes the first one with the
includes/ tag.
Here is this feature.xml :

?xml version=1.0 encoding=UTF-8?
feature
 id=com.arcadsoftware.skipper.features
 label=ARCAD Plugin For Changer
 version=2.0.0.2
 provider-name=ARCAD Software
 plugin=com.arcadsoftware.core
 image=images/Arcad.gif
 primary=true

  description
...
  /description

  copyright
 ...
  /copyright

  license url=licence.txt
  ...
  /license

  url
...
  /url

  includes
id=com.arcadsoftware.core.features
version=2.0.0.2
name=ARCAD Plug-in Core/

  requires
 import plugin=org.eclipse.ui.ide/
 import plugin=org.eclipse.ui.views/
 import plugin=org.eclipse.jface.text/
 import plugin=org.eclipse.ui.workbench.texteditor/
 import plugin=org.eclipse.ui.editors/
 import plugin=org.eclipse.core.resources/
 import plugin=org.eclipse.ui/
 import plugin=com.ibm.etools.iseries.core/
 import plugin=com.ibm.etools.iseries.toolbox/
 import plugin=com.ibm.etools.systems.core/
 import plugin=com.ibm.etools.systems.dstore.core/
 import plugin=com.ibm.etools.systems.logging/
 import plugin=com.ibm.etools.systems.dstore.extra/
 import plugin=com.ibm.etools.systems.editor/
 import plugin=com.arcadsoftware.core.ui version=2.0.0.2
match=equivalent/
 import plugin=com.arcadsoftware.core version=2.0.0.2
match=equivalent/
 import plugin=com.ibm.lpex/
 import plugin=org.eclipse.core.runtime/
  /requires

  plugin
id=com.arcadsoftware.skipper
download-size=0
install-size=0
version=2.0.0.2/

  plugin
id=com.arcadsoftware.skipper.nl
download-size=0
install-size=0
version=2.0.0.2
fragment=true/

/feature

Magali





dan tran wrote:

 Does the second plugin has its own feature.xml?

 On 3/6/07, Magali Helene [EMAIL PROTECTED] wrote:


 Hello

 I am using the PDE-maven plugin to build plugins.
 I have a first core plugin. I placed a pom.xml in the features
repository
 and the build is ok. It takes into account the features and all the
 plugins
 listed in it.
 Then I have a second plugin, which features includes my first core
 plugin's
 features. The PDE-maven plugin detects correctly this dependency and
 places
 the needed first plugins in the temprorary repository of the second
 features
 plugin. So it seems ok. Then it builds the second plugin itself, and
this
 build failed because it can't find the first plugins ! Actually, when I
 am
 looking in the build.xml file, I see that the javac classpath pointed
to
 the
 /plugins repositories instead of the temp repository of the features,
 where,
 juste before, the right plugins have been placed !
 I don't know if I am clear enough, but it is really a problem for me
 because
 I can't build plugins that depends on others plugins.

 If someone has any ideas...

 Magali Helene
 --
 in my build.xml of the plugin:

 javac destdir=${temp.folder}/arpchangerclient.jar.bin
 failonerror=${javacFailOnError} verbose=${javacVerbose}
 debug=${javacDebugInfo} includeAntRuntime=no
 bootclasspath=${bootclasspath} source=${javacSource}
 target=${javacTarget}
   compilerarg line=${compilerArg}/
   classpath
   pathelement path=../../../../../../../Program
 Files/eclipse
 3.0.2/eclipse/plugins/org.eclipse.core.runtime_3.0.2/runtime.jar/
   pathelement path=../../../../../../../Program
 Files/eclipse 3.0.2/eclipse/plugins/org.eclipse.osgi_3.0.1/core.jar/
 .
 .
 .
 pathelement path=../FR - Plugin
Core/arpcore.jar/
 pathelement path=../NL - Plugin
 Core/arpcoreus.jar/
   /classpath
   src path=src//
 /javac

 instead of ?
   pathelement path=${pluginTemp}/FR - Plugin
 Core/arpcore.jar/
   pathelement path=${pluginTemp}/NL - Plugin
 Core/arpcoreus.jar/


 --
 View this message in context:

http://www.nabble.com/included-features-with-PDE-maven-plugin-tf3356596s177.html#a9335496
 Sent from the Maven - Users mailing list archive at Nabble.com.


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





--
View this message in context:
http://www.nabble.com/included-features-with-PDE-maven-plugin-tf3356596s177.html#a9370916
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Re: How to change the invoked goals at runtime

2007-03-08 Thread Daniel Beland

I had a look at the new release plugin, saw what you mean, It will update
the version back to SNAPSHOT, nice little feature that was missing in maven
1.


Thanks for your help



On 08/03/07, Daniel Beland [EMAIL PROTECTED] wrote:



Hi,


I am trying to migrate our projects to maven 2.0.5 (have been using maven
1 for 2 years now).

I would like to know how I can invoke maven to package the artifact only
when the version does not contain SNAPSHOT, and install it if it contains
SNAPSHOT.
In maven 1 I was using a goal like this:

goal name=jar:cruisecontrol
j:if test=${not(pom.currentVersion.endsWith('SNAPSHOT'))}
ant:echo message=Create jar only/
attainGoal name=jar/
/j:if

j:if test=${pom.currentVersion.endsWith('SNAPSHOT')}
ant:echo message=Install SNAPSHOT jar/
attainGoal name=jar:install/
/j:if
/goal


This is because I do not want cruise control to install an artifact if it
is not a SNAPSHOT. (Released version should always be downloaded from our
central repository).
It happened too many times that developers forget to change the version to
SNAPSHOT after a release, and we overwrite the local artifact and break the
build of other modules.


Profiles cannot be called based on ${ pom.version} ending with SNAPSHOT.
I checked the plugin development, but I didn't find how we can alter the
goals from a plugin.


Someone has an idea how I can attain this?

Thanks,
Daniel





Re: JNI shared libs: attachments or separate artifacts?

2007-03-08 Thread Dan Tran

On 3/8/07, Steinar Bang [EMAIL PROTECTED] wrote:


I'm trying to use maven to distribute .so/DLL files used by a JNI
class.  The plan was to use dependency:unpack to drop the .so files
and DLLs into a directory in LD_LIBRARY_PATH (or PATH on Win32).

The questions are:
1. should the DLLs be separate artifacts, or can they be attachments
   to the JNI jar artifact?  (if so, how are they referenced from an
   artfactItem in the artifactItems list of dependency:unpack?  I
   only know how to do sources here...)



I would have dll to depend on the jar, then use dependency:copy to place
those artifact on your footprint/workspace

2. can dependency:unpack handle .tar or .tar.gz or .tgz files?


Yes

Thanx!



- Steinar

PS the plan was to use ${os.name} and ${os.arch} in the artifactId for
the case where each platform's DLL gets a separate artifact.  How to
do it if the DLLs becomes attachments I have no idea.


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




RE: Continuum reports

2007-03-08 Thread Morgovsky, Alexander \(US - Glen Mills\)
Thank you.  May you please send me the instructions for building this client?  
Perhaps this client is already built and I could download it from somewhere.  
If this is the case, please let me know the location of such a distributable.  
Also, are there any documents with instructions or screenshots for this?  Thank 
you much. 

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 3:37 AM
To: continuum-users@maven.apache.org
Subject: Re: Continuum reports

you can look at the rpc client. if you use 1.1, a new version (that will be 
merge in trunk) is available in sandbox : 
http://svn.apache.org/viewvc/maven/sandbox/trunk/continuum/continuum-client/

Emmanuel

Morgovsky, Alexander (US - Glen Mills) a écrit :
 I am very happy with the way that Continuum is functioning.  I need to
 be able to create build metrics of project, build start time, build end
 time, build duration and success/failure status.  Beside doing parsing
 of the source of the generated Continuum builds page for each project,
 what is currently available that I could use to achieve this?  Thank
 you. 
 
 
 This message (including any attachments) contains confidential information 
 intended for a specific individual and purpose, and is protected by law.  If 
 you are not the intended recipient, you should delete this message. 
 
 
 Any disclosure, copying, or distribution of this message, or the taking of 
 any action based on it, is strictly prohibited. [v.E.1]
 



RE: Load properties from file/url to pom.xml

2007-03-08 Thread Rahamim, Zvi \(Zvi\)
The problem is that the couple of pom.xml file already have different
parents...
Can you give me a hint of how to implement this?(I need that when
loading - before build time - the properties will be available)
Thanks!

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 5:22 PM
To: Maven Users List
Subject: Re: Load properties from file/url to pom.xml

The use of externally properties files was purposefully abandoned in M2.

In your case, I'd make a single shared parent pom and have the other
poms use it as their parent, so you will inherit the properties set in
the parent. Or utilize profiles.xml or settings.xml to share the
properties.

Otherwise, you will need to write a plugin to access the properties file
and read the contents etc.

Wayne

On 3/8/07, Rahamim, Zvi (Zvi) [EMAIL PROTECTED] wrote:
 Hi,
 I know that inside pom.xml there is a section that I can define 
 properties.
 Is there a way to load properties from a property file / url?
 I need this because I have a couple of pom.xml files that should load 
 the same property file.
 Thanks!
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



Re: How to change the invoked goals at runtime

2007-03-08 Thread Jerome Lacoste

On 3/8/07, Daniel Beland [EMAIL PROTECTED] wrote:

I had a look at the new release plugin, saw what you mean, It will update
the version back to SNAPSHOT, nice little feature that was missing in maven
1.


Thanks for your help


and another thing that might help you is the dependency plugin.
In particular:  dependency:purge-local-repository

http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html

(I've never used it)

J

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



Re: RE: Load properties from file/url to pom.xml

2007-03-08 Thread Thorsten Heit
 The problem is that the couple of pom.xml file already have different
 parents...

What prevents you to let these pom.xml files be children of a common pom.xml 
that contains your properties?


Cheers

Thorsten

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



Re: Code coverage with AspectJ?

2007-03-08 Thread Michael Waluk

Hi,

I can't find much else regarding using AspectJ with Clover.  Were you able
to get it working with an example AspectJ project?

Has anyone been successful with this yet?  We have it to the point where we
are getting 0% coverage for some reason, but I haven't spent much time on
it.  I'd bother if there were some success stories out there.

Thanks for any info,
Michael


On 7/26/06, Vincent Massol [EMAIL PROTECTED] wrote:




 -Original Message-
 From: Kaare Nilsen [mailto:[EMAIL PROTECTED]
 Sent: mercredi 26 juillet 2006 19:53
 To: Maven Users List
 Subject: Re: Code coverage with AspectJ?

 On 26/07/06, Jason Chaffee [EMAIL PROTECTED] wrote:
  I use cobetura and load-time weaving during unit-tests to do this.  To
 use load-time weaving you must fork at least once and provide the
 javaagent as an argline
 
  -Original Message-
  From: Vincent Massol [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 26, 2006 8:42 AM
  To: 'Maven Users List'
  Subject: RE: Code coverage with AspectJ?
 
 
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 Carlos
   Sanchez
   Sent: mercredi 26 juillet 2006 17:29
   To: Maven Users List
   Subject: Re: Code coverage with AspectJ?
  
   On 7/26/06, Howard Lewis Ship [EMAIL PROTECTED] wrote:
Does anyone know how to generate a code coverage report when using
AspectJ in a project?
   
The Clover plugin wants to rewrite and recompile the code, which
probably won't play well with all things aspect.
  
   seems not possible:
  
   [quote]
   Indeed running AspectJ AFTER Clover works. I'm using that for now,
so
   that I at least have SOME Clover data.
   The thing I would like though, is to run AspectJ BEFORE Clover runs,
   so I also have Clover data on the AspectJ-sources!
   As I see it, there are 2 ways to do this:
  
   1) AspectJ weaves his new files and writes them out as sources so
   Clover can work on them. The problem here will be that
   Clover can't show the reports on AspectJ-files, but rather on the
   weaved files.
 
  Why not? If you point the Clover plugin to the generated sources it
 should
  work fine, no? I guess I'd need to try it.
 
   It's a solution, but what would be really great
   is:
   2) Clover examines the AspectJ sources and adds his statements to
   those files. Then AspectJ can do his normal thing and
   Clover's reports should show the coverage in the correct files and
   calculate the EXACT amount of times the statements have
   been called.
 
  I don't understand this solution. Is clover running before aspectj in
 this
  case? If so then we're back to the first solution above, no?
 
   Unfortunately I already heard from Cenqua that atm Clover doesn't
know
   how to handle AspectJ sources... So I think that the
   plugin will have the same problems...
 
  Ah maybe there's some issue. If someone could show me a very simple
 aspectj
  project (one simple class, one aspect, one test and a POM using the
 aspectj
  plugin) then I could add it to the clover plugin's test suite and try
it
  out.

 You will find some here :
 http://svn.codehaus.org/mojo/trunk/mojo/aspectj-maven-
 plugin/src/test/projects/

 But as Carlos mentioned. Clover and aspectJ is not really compatible

Thanks for the link. Could you elaborate just a little more about the
incompatibility before I spend too much time looking into it? :-)

Thanks
-Vincent

Is there a Maven2 plugin for emma or cobetura?
  
   cobertura, and it plays well with aspectj afaik, you have to make
sure
   the aspectj plugin doesn't recompile from sources for what I read in
   the cobertura mailing list
  
   
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
   
Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com
   
   

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

__
 _
  Découvrez un nouveau moyen de poser toutes vos questions quelque soit
le
 sujet !
  Yahoo! Questions/Réponses pour partager vos connaissances, vos
opinions
 et vos expériences.
  http://fr.answers.yahoo.com
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  

Re: Load properties from file/url to pom.xml

2007-03-08 Thread Wayne Fay

Since you can't use a shared parent, I'd go the settings.xml route
then with a single profile that you share between multiple projects.

You can activate multiple profiles during a build so I don't think
this will have any undesired effects on your process, and is probably
the best way forward for you.

Wayne

On 3/8/07, Rahamim, Zvi (Zvi) [EMAIL PROTECTED] wrote:

The problem is that the couple of pom.xml file already have different
parents...
Can you give me a hint of how to implement this?(I need that when
loading - before build time - the properties will be available)
Thanks!

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 08, 2007 5:22 PM
To: Maven Users List
Subject: Re: Load properties from file/url to pom.xml

The use of externally properties files was purposefully abandoned in M2.

In your case, I'd make a single shared parent pom and have the other
poms use it as their parent, so you will inherit the properties set in
the parent. Or utilize profiles.xml or settings.xml to share the
properties.

Otherwise, you will need to write a plugin to access the properties file
and read the contents etc.

Wayne

On 3/8/07, Rahamim, Zvi (Zvi) [EMAIL PROTECTED] wrote:
 Hi,
 I know that inside pom.xml there is a section that I can define
 properties.
 Is there a way to load properties from a property file / url?
 I need this because I have a couple of pom.xml files that should load
 the same property file.
 Thanks!

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



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



-
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: Load properties from file/url to pom.xml

2007-03-08 Thread Rahamim, Zvi \(Zvi\)
My problem is that the property file should be used by users that are in
different countries... 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 6:24 PM
To: Maven Users List
Subject: Re: Load properties from file/url to pom.xml

Since you can't use a shared parent, I'd go the settings.xml route then
with a single profile that you share between multiple projects.

You can activate multiple profiles during a build so I don't think this
will have any undesired effects on your process, and is probably the
best way forward for you.

Wayne

On 3/8/07, Rahamim, Zvi (Zvi) [EMAIL PROTECTED] wrote:
 The problem is that the couple of pom.xml file already have different 
 parents...
 Can you give me a hint of how to implement this?(I need that when 
 loading - before build time - the properties will be available) 
 Thanks!

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 08, 2007 5:22 PM
 To: Maven Users List
 Subject: Re: Load properties from file/url to pom.xml

 The use of externally properties files was purposefully abandoned in
M2.

 In your case, I'd make a single shared parent pom and have the other 
 poms use it as their parent, so you will inherit the properties set in

 the parent. Or utilize profiles.xml or settings.xml to share the 
 properties.

 Otherwise, you will need to write a plugin to access the properties 
 file and read the contents etc.

 Wayne

 On 3/8/07, Rahamim, Zvi (Zvi) [EMAIL PROTECTED] wrote:
  Hi,
  I know that inside pom.xml there is a section that I can define 
  properties.
  Is there a way to load properties from a property file / url?
  I need this because I have a couple of pom.xml files that should 
  load the same property file.
  Thanks!
 
  
  - To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



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



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



seeing what phase a plugin is bound to

2007-03-08 Thread EJ Ciramella
Is there any way to see what lifecycle goal the ear plugin is bound to?


Next release????

2007-03-08 Thread kentlam

When is the next release of continuum coming out? Is it even in active
development? The bugs are so annoying in continuum I am about to ditch it
and use Bamboo instead.  
-- 
View this message in context: 
http://www.nabble.com/Next-release-tf3369141.html#a9374229
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Next release????

2007-03-08 Thread Emmanuel Venisse

we have some discussion on dev list to release a first alpha in few days. Even 
if it's an alpha, this version will be stable and we want to add more features 
to the final version.

Emmanuel

kentlam a écrit :

When is the next release of continuum coming out? Is it even in active
development? The bugs are so annoying in continuum I am about to ditch it
and use Bamboo instead.  




Re: Code coverage with AspectJ?

2007-03-08 Thread Howard Lewis Ship

Hey, do you know what happened to the training I was supposed to be
coming out for? Bal has dropped off the map.

On 3/8/07, Michael Waluk [EMAIL PROTECTED] wrote:

Hi,

I can't find much else regarding using AspectJ with Clover.  Were you able
to get it working with an example AspectJ project?

Has anyone been successful with this yet?  We have it to the point where we
are getting 0% coverage for some reason, but I haven't spent much time on
it.  I'd bother if there were some success stories out there.

Thanks for any info,
Michael


On 7/26/06, Vincent Massol [EMAIL PROTECTED] wrote:



  -Original Message-
  From: Kaare Nilsen [mailto:[EMAIL PROTECTED]
  Sent: mercredi 26 juillet 2006 19:53
  To: Maven Users List
  Subject: Re: Code coverage with AspectJ?
 
  On 26/07/06, Jason Chaffee [EMAIL PROTECTED] wrote:
   I use cobetura and load-time weaving during unit-tests to do this.  To
  use load-time weaving you must fork at least once and provide the
  javaagent as an argline
  
   -Original Message-
   From: Vincent Massol [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, July 26, 2006 8:42 AM
   To: 'Maven Users List'
   Subject: RE: Code coverage with AspectJ?
  
  
  
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
  Carlos
Sanchez
Sent: mercredi 26 juillet 2006 17:29
To: Maven Users List
Subject: Re: Code coverage with AspectJ?
   
On 7/26/06, Howard Lewis Ship [EMAIL PROTECTED] wrote:
 Does anyone know how to generate a code coverage report when using
 AspectJ in a project?

 The Clover plugin wants to rewrite and recompile the code, which
 probably won't play well with all things aspect.
   
seems not possible:
   
[quote]
Indeed running AspectJ AFTER Clover works. I'm using that for now,
 so
that I at least have SOME Clover data.
The thing I would like though, is to run AspectJ BEFORE Clover runs,
so I also have Clover data on the AspectJ-sources!
As I see it, there are 2 ways to do this:
   
1) AspectJ weaves his new files and writes them out as sources so
Clover can work on them. The problem here will be that
Clover can't show the reports on AspectJ-files, but rather on the
weaved files.
  
   Why not? If you point the Clover plugin to the generated sources it
  should
   work fine, no? I guess I'd need to try it.
  
It's a solution, but what would be really great
is:
2) Clover examines the AspectJ sources and adds his statements to
those files. Then AspectJ can do his normal thing and
Clover's reports should show the coverage in the correct files and
calculate the EXACT amount of times the statements have
been called.
  
   I don't understand this solution. Is clover running before aspectj in
  this
   case? If so then we're back to the first solution above, no?
  
Unfortunately I already heard from Cenqua that atm Clover doesn't
 know
how to handle AspectJ sources... So I think that the
plugin will have the same problems...
  
   Ah maybe there's some issue. If someone could show me a very simple
  aspectj
   project (one simple class, one aspect, one test and a POM using the
  aspectj
   plugin) then I could add it to the clover plugin's test suite and try
 it
   out.
 
  You will find some here :
  http://svn.codehaus.org/mojo/trunk/mojo/aspectj-maven-
  plugin/src/test/projects/
 
  But as Carlos mentioned. Clover and aspectJ is not really compatible

 Thanks for the link. Could you elaborate just a little more about the
 incompatibility before I spend too much time looking into it? :-)

 Thanks
 -Vincent

 Is there a Maven2 plugin for emma or cobetura?
   
cobertura, and it plays well with aspectj afaik, you have to make
 sure
the aspectj plugin doesn't recompile from sources for what I read in
the cobertura mailing list
   

 --
 Howard M. Lewis Ship
 TWD Consulting, Inc.
 Independent J2EE / Open-Source Java Consultant
 Creator and PMC Chair, Apache Tapestry
 Creator, Apache HiveMind

 Professional Tapestry training, mentoring, support
 and project work.  http://howardlewisship.com


 
  -
 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]
  
  
  
  
  
  
  
 
 __
  _
   Découvrez un nouveau moyen de poser toutes vos questions quelque soit
 le
  sujet !
   Yahoo! Questions/Réponses pour partager vos 

Re: seeing what phase a plugin is bound to

2007-03-08 Thread Wayne Fay

Maven-Ear-Plugin consists of 2 goals:
http://maven.apache.org/plugins/maven-ear-plugin/plugin-info.html

ear:ear is bound to package phase.
ear:generate-application-xml is bound to generate-resources phase.

Wayne

On 3/8/07, EJ Ciramella [EMAIL PROTECTED] wrote:

Is there any way to see what lifecycle goal the ear plugin is bound to?



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



mvn clean problems

2007-03-08 Thread Ben Tatham
I am having a problem that was reported last year, but the workaround 
they mentioned doesn't seem to be working. 

Here was the original posting:  
http://mail-archives.apache.org/mod_mbox/maven-dev/200603.mbox/[EMAIL PROTECTED]


Basically, I am getting a java.lang.NoClassDefFoundError for  
org/apache/maven/shared/model/fileset/SetBase


Internal error in the plugin manager executing goal 
'org.apache.maven.plugins:maven-clean-plugin:2.1.1-maestro-1.1:clean': 
Unable to find the mojo 
'org.apache.maven.plugins:maven-clean-plugin:2.1.1-maestro-1.1:clean' in 
the plugin 'org.apache.maven.plugins:maven-clean-plugin'

org/apache/maven/shared/model/fileset/SetBase

The original work around was to make sure that central 
pluginRepository was not in your pom.xml.  Well, its not in my case, 
although the help:effective-pom does have it (but I assume that comes 
from the Super POM). 

Please help.  This is working for some of our team, but not for others.  
This problems blocks use from doing mvn release as well, because that 
does a mvn clean internally.


Thanks in advance,
Ben

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



Re: JNI shared libs: attachments or separate artifacts?

2007-03-08 Thread Steinar Bang

 On 3/8/07, Steinar Bang [EMAIL PROTECTED] wrote:

 The questions are:
 1. should the DLLs be separate artifacts, or can they be attachments
 to the JNI jar artifact?  (if so, how are they referenced from an
 artfactItem in the artifactItems list of dependency:unpack?  I
 only know how to do sources here...)


 I would have dll to depend on the jar, then use dependency:copy to place
 those artifact on your footprint/workspace

Good idea.  Thanx!

This implictly means that separate artifacts for the DLLs for each
platform, is the right way to go?

Is the attachment approach workable at all?  Google finds me very
little information on maven artifact attachments.

 2. can dependency:unpack handle .tar or .tar.gz or .tgz files?

Ok. Thanx for the info!


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



conditions in profiles.xml

2007-03-08 Thread Rodrigo M. G.
Hi...

I'd like to declare some conditional properties in my profiles.xml,
I'd like to set the value of a property depending of the value of another.
Something that I can do in ant, like this:

condition property=var1 value=true
contains string=${var2_STR} substring=http /
/condition

condition property=var3 value=*.*
equals arg1=true arg2=${var1} /
/condition

Any ideas, or things behind the scenes that I could do will be welcome...




THX !!!





 

Need Mail bonding?
Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=listsid=396546091

RE: seeing what phase a plugin is bound to

2007-03-08 Thread EJ Ciramella
So why would an ear try and get built during mvn compile? 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 11:52 AM
To: Maven Users List
Subject: Re: seeing what phase a plugin is bound to

Maven-Ear-Plugin consists of 2 goals:
http://maven.apache.org/plugins/maven-ear-plugin/plugin-info.html

ear:ear is bound to package phase.
ear:generate-application-xml is bound to generate-resources phase.

Wayne

On 3/8/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 Is there any way to see what lifecycle goal the ear plugin is bound
to?


-
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: JNI shared libs: attachments or separate artifacts?

2007-03-08 Thread Steinar Bang
 Steinar Bang [EMAIL PROTECTED]:

 Dan Tran [EMAIL PROTECTED]:

 I would have dll to depend on the jar, then use dependency:copy to place
 those artifact on your footprint/workspace

 Good idea.  Thanx!

Note that I don't build the DLLs with maven.  They are built on build
servers for each artifacts, and deployed as maven artifacts from
there.

So to be able to make the DLLs depend on the jar, I would probably
have to make a maven module with packagingpom/packaging that
depends on the jar, and use dependency:unpack to dump the DLLs into
a directory into LD_LIBRARY_PATH/PATH.


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



Re: Changing the goal of a project

2007-03-08 Thread Thierry Lach

I've just added this to JIRA (http://jira.codehaus.org/browse/CONTINUUM-1207).
I'm willing to work on this, but I'd need a little bit of guidance since I'm
not familiar with plexus etc. as it is used for database access.

On 2/27/07, Wendy Smoak [EMAIL PROTECTED] wrote:


On 2/27/07, Morgovsky, Alexander (US - Glen Mills)
[EMAIL PROTECTED] wrote:

 Hi.  How can I set the goal of the project to always be deploy and
 have the argument be -P dev-111?  This way, when I add a new project,
 this will be the configuration by default.  Thanks.

The default build definition of clean install --batch-mode
--non-recursive is hard coded in DefaultContinuum.java [1].  I don't
see why it couldn't be made configurable, though.

You can open a JIRA issue if you'd like:
http://jira.codehaus.org/browse/CONTINUUM

[1]
http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java?revision=506479view=markup

--
Wendy



Re: [m2] Tools.jar Apple

2007-03-08 Thread jsolderitsch

Question -- Which pom file under .m2?

I find myself in exactly the same situation and error condition trying to
use the jax-ws plug-in on Mac OS X?

Ryan Cuprak wrote:
 
 
   Managed to get around the problem. I edited the pom file under .m2  
 to point directly at the classes.jar file on MacOS X. A bit of a hack  
 but it worked.
 
   -Ryan
 
 On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:
 

 The error message is:
 Missing:
 --
 1) sun.jdk:tools:jar:1.5.0

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=sun.jdk -DartifactId=tools \
   -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0- 
 beta-1-20070203.171044-8
 2) sun.jdk:tools:jar:1.5.0


  On the mac, the classes that comprise the tools are located in:
  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/ 
 classes.jar
  Googling I come across postings where it is recommend that I alter  
 the systempath to point to classes.jar.

  -Ryan

 On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:

 jaxws is capable of automatically pickup tools.jar from
 ${java.home}/lib/tools.jar
 ( MacOS specific)

 What is the error?

 you may need to get the latest source and build your self.


 -D


 On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:

 Hello,
 I am trying to get the jaxws-maven-plugin up and running on my
 box. Evidently Apple has been kind enough to stick tools.jar  
 elsewhere.

 Any reason why the snippet below wouldn't work?

 -Ryan

 Snippet:

 plugins
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 version1.0-beta-1-SNAPSHOT/version
 executions
 execution
 goals
 goalwsgen/goal
 /goals
 /execution
 /executions
 configuration
 seinet.cuprak.ryanportal/sei
 genWsdltrue/genWsdl

 /configuration
 dependencies
 dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.5.0/version
 systemPath/System/Library/Frameworks/
 JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
 scopesystem/scope
 /dependency
 /dependencies
 /plugin

 /plugins

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




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

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

-- 
View this message in context: 
http://www.nabble.com/Tools.jar---Apple-tf3357700s177.html#a9378680
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Maven uberjar plugin

2007-03-08 Thread Mykel Alvis

Not that it's all that difficult to do now, but has anyone actually worked
on extending the functionality of the assembly plugin to produce an actual
uberjar in addition to the things it does now?


Fails to build archiva

2007-03-08 Thread Raphaël Piéroni

Hi,

I have some problem to build archiva from sources:

First the maven-meeper subproject don't have a pom.

second, (after created a dummy pom for it) i have

[INFO] Result of /home/local/jdk1.6.0/jre/../bin/jarsigner -keystore
src/keystore/keystore -storepass ** -keypass **
/home/users/rafale/projects/maven/archiva/archiva-applet/target/archiva-
applet-1.0-SNAPSHOT.jar mykey execution is: '1'.
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Result of
/home/local/jdk1.6.0/jre/../bin/jarsigner -keystore src/keystore/keystore
-storepass ** -keypass **
/home/users/rafale/projects/maven/archiva/archiva-applet/target/archiva-
applet-1.0-SNAPSHOT.jar mykey execution is: '1'.

Is there an already built archiva ?
or how do i build it ,

Thanks in advance for any help


Re: Maven uberjar plugin

2007-03-08 Thread Torsten Curdt


On 08.03.2007, at 19:55, Mykel Alvis wrote:

Not that it's all that difficult to do now, but has anyone actually  
worked
on extending the functionality of the assembly plugin to produce an  
actual

uberjar in addition to the things it does now?


http://mojo.codehaus.org/minijar-maven-plugin/plugin-info.html ;)

cheers
--
Torsten

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



Re: [m2] Tools.jar Apple

2007-03-08 Thread Ryan Cuprak


I edited:
/Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven-plugin/ 
1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom


 However, I hit another roadblock once I got past that problem. The  
plugin can't find the class file for the Webservice annotation tag.  
Plan to download the source and tinker with it later today.


 -Ryan

On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:



Question -- Which pom file under .m2?

I find myself in exactly the same situation and error condition  
trying to

use the jax-ws plug-in on Mac OS X?

Ryan Cuprak wrote:



  Managed to get around the problem. I edited the pom file under .m2
to point directly at the classes.jar file on MacOS X. A bit of a hack
but it worked.

  -Ryan

On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:



The error message is:
Missing:
--
1) sun.jdk:tools:jar:1.5.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=sun.jdk - 
DartifactId=tools \

  -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
beta-1-20070203.171044-8
2) sun.jdk:tools:jar:1.5.0


 On the mac, the classes that comprise the tools are located in:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/
classes.jar
 Googling I come across postings where it is recommend that I alter
the systempath to point to classes.jar.

 -Ryan

On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:


jaxws is capable of automatically pickup tools.jar from
${java.home}/lib/tools.jar
( MacOS specific)

What is the error?

you may need to get the latest source and build your self.


-D


On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:


Hello,
I am trying to get the jaxws-maven-plugin up and running on my
box. Evidently Apple has been kind enough to stick tools.jar
elsewhere.

Any reason why the snippet below wouldn't work?

-Ryan

Snippet:

plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjaxws-maven-plugin/artifactId
version1.0-beta-1-SNAPSHOT/version
executions
execution
goals
goalwsgen/goal
/goals
/execution
/executions
configuration
seinet.cuprak.ryanportal/sei
genWsdltrue/genWsdl

/configuration
dependencies
dependency
groupIdsun.jdk/groupId
artifactIdtools/artifactId
version1.5.0/version
systemPath/System/Library/Frameworks/
JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
scopesystem/scope
/dependency
/dependencies
/plugin

/plugins

-- 
--

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





 
-

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




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





--
View this message in context: http://www.nabble.com/Tools.jar--- 
Apple-tf3357700s177.html#a9378680

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


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




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



Re: Fails to build archiva

2007-03-08 Thread Brett Porter


On 08/03/2007, at 11:09 AM, Raphaël Piéroni wrote:


Hi,

I have some problem to build archiva from sources:

First the maven-meeper subproject don't have a pom.


http://svn.apache.org/viewvc/maven/archiva/trunk/maven-meeper/pom.xml? 
view=log




second, (after created a dummy pom for it) i have

[INFO] Result of /home/local/jdk1.6.0/jre/../bin/jarsigner -keystore
src/keystore/keystore -storepass ** -keypass **
/home/users/rafale/projects/maven/archiva/archiva-applet/target/ 
archiva-

applet-1.0-SNAPSHOT.jar mykey execution is: '1'.
[INFO]
-- 
--

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Result of
/home/local/jdk1.6.0/jre/../bin/jarsigner -keystore src/keystore/ 
keystore

-storepass ** -keypass **
/home/users/rafale/projects/maven/archiva/archiva-applet/target/ 
archiva-

applet-1.0-SNAPSHOT.jar mykey execution is: '1'.


Not sure what the problem is here - might need to try and get more  
output from jarsigner or run it manually to test.


- Brett


Re: minijar bombs out when found duplicate classes

2007-03-08 Thread Torsten Curdt

Well, I am on it to make it better handled ...but what do you suggest
should minijar do?

...only one will be active in you classpath.


This case, can you display a message showing the bad jars? is it  
possible

to pickup the first one?
(very much depending on how maven setup the order of classpath )


Someone provided a patch for this - yesterday :) I've now taken this  
to the mojo dev list to discuss how to handle such situations in  
detail. Would be good if you could join us over there.


cheers
--
Torsten




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



Re: [m2] Tools.jar Apple

2007-03-08 Thread Dan Tran

what is the location of classes.jar relative to java.home under OS X?

On 3/8/07, Ryan Cuprak [EMAIL PROTECTED] wrote:



I edited:
/Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven-plugin/
1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom

However, I hit another roadblock once I got past that problem. The
plugin can't find the class file for the Webservice annotation tag.
Plan to download the source and tinker with it later today.

-Ryan

On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:


 Question -- Which pom file under .m2?

 I find myself in exactly the same situation and error condition
 trying to
 use the jax-ws plug-in on Mac OS X?

 Ryan Cuprak wrote:


   Managed to get around the problem. I edited the pom file under .m2
 to point directly at the classes.jar file on MacOS X. A bit of a hack
 but it worked.

   -Ryan

 On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:


 The error message is:
 Missing:
 --
 1) sun.jdk:tools:jar:1.5.0

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=sun.jdk -
 DartifactId=tools \
   -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
 beta-1-20070203.171044-8
 2) sun.jdk:tools:jar:1.5.0


  On the mac, the classes that comprise the tools are located in:
  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/
 classes.jar
  Googling I come across postings where it is recommend that I alter
 the systempath to point to classes.jar.

  -Ryan

 On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:

 jaxws is capable of automatically pickup tools.jar from
 ${java.home}/lib/tools.jar
 ( MacOS specific)

 What is the error?

 you may need to get the latest source and build your self.


 -D


 On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:

 Hello,
 I am trying to get the jaxws-maven-plugin up and running on my
 box. Evidently Apple has been kind enough to stick tools.jar
 elsewhere.

 Any reason why the snippet below wouldn't work?

 -Ryan

 Snippet:

 plugins
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 version1.0-beta-1-SNAPSHOT/version
 executions
 execution
 goals
 goalwsgen/goal
 /goals
 /execution
 /executions
 configuration
 seinet.cuprak.ryanportal/sei
 genWsdltrue/genWsdl

 /configuration
 dependencies
 dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.5.0/version
 systemPath/System/Library/Frameworks/
 JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
 scopesystem/scope
 /dependency
 /dependencies
 /plugin

 /plugins

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




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



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




 --
 View this message in context: http://www.nabble.com/Tools.jar---
 Apple-tf3357700s177.html#a9378680
 Sent from the Maven - Users mailing list archive at Nabble.com.


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



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




Re: Maven uberjar plugin

2007-03-08 Thread Mykel Alvis

Yep. Found it about 30 seconds after I posted that.

On 3/8/07, Torsten Curdt [EMAIL PROTECTED] wrote:



On 08.03.2007, at 19:55, Mykel Alvis wrote:

 Not that it's all that difficult to do now, but has anyone actually
 worked
 on extending the functionality of the assembly plugin to produce an
 actual
 uberjar in addition to the things it does now?

http://mojo.codehaus.org/minijar-maven-plugin/plugin-info.html ;)

cheers
--
Torsten

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





--
I'm just an unfrozen caveman software developer.  I don't understand your
strange, modern ways.


Re: minijar bombs out when found duplicate classes

2007-03-08 Thread Wayne Fay

 There are a couple of jars containing the same class in my project.

 That's bad :)

Yeah, those are my dependency jars :(


Dan, can you not use exclusions etc to get rid of the
artifacts/dependencies which are bringing in these duplicated classes?
I've seen some ugly runtime issues resulting from duplicated classes.

Wayne

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



lifecycle phase is restarting over

2007-03-08 Thread Dave Maung

I have the following life cycle set up
in compile phase, I have some ant task running, and in package phase, I
have assembly plugin  set up.

The problem is if I execute mvn package, it is calling compile lifecycle
phase twice. Is there way to stop occuring it? I am using Maven 2.0.5?

Dave


Re: [m2] Tools.jar Apple

2007-03-08 Thread Ryan Cuprak


It is:
 ../../System/Library/Frameworks/JavaVM.framework/Versions/1.5/ 
Classes/classes.jar


On Mar 8, 2007, at 2:43 PM, Dan Tran wrote:


what is the location of classes.jar relative to java.home under OS X?

On 3/8/07, Ryan Cuprak [EMAIL PROTECTED] wrote:



I edited:
/Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven- 
plugin/

1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom

However, I hit another roadblock once I got past that problem. The
plugin can't find the class file for the Webservice annotation tag.
Plan to download the source and tinker with it later today.

-Ryan

On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:


 Question -- Which pom file under .m2?

 I find myself in exactly the same situation and error condition
 trying to
 use the jax-ws plug-in on Mac OS X?

 Ryan Cuprak wrote:


   Managed to get around the problem. I edited the pom file  
under .m2
 to point directly at the classes.jar file on MacOS X. A bit of  
a hack

 but it worked.

   -Ryan

 On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:


 The error message is:
 Missing:
 --
 1) sun.jdk:tools:jar:1.5.0

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=sun.jdk -
 DartifactId=tools \
   -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
 beta-1-20070203.171044-8
 2) sun.jdk:tools:jar:1.5.0


  On the mac, the classes that comprise the tools are located in:
  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/ 
Classes/

 classes.jar
  Googling I come across postings where it is recommend that I  
alter

 the systempath to point to classes.jar.

  -Ryan

 On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:

 jaxws is capable of automatically pickup tools.jar from
 ${java.home}/lib/tools.jar
 ( MacOS specific)

 What is the error?

 you may need to get the latest source and build your self.


 -D


 On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:

 Hello,
 I am trying to get the jaxws-maven-plugin up and running  
on my

 box. Evidently Apple has been kind enough to stick tools.jar
 elsewhere.

 Any reason why the snippet below wouldn't work?

 -Ryan

 Snippet:

 plugins
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 version1.0-beta-1-SNAPSHOT/version
 executions
 execution
 goals
 goalwsgen/goal
 /goals
 /execution
 /executions
 configuration
 seinet.cuprak.ryanportal/sei
 genWsdltrue/genWsdl

 /configuration
 dependencies
 dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.5.0/version
 systemPath/System/Library/Frameworks/
 JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
 scopesystem/scope
 /dependency
 /dependencies
 /plugin

 /plugins

  
--

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




  


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



  
-

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




 --
 View this message in context: http://www.nabble.com/Tools.jar---
 Apple-tf3357700s177.html#a9378680
 Sent from the Maven - Users mailing list archive at Nabble.com.


  
-

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



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





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



Re: [m2] Tools.jar Apple

2007-03-08 Thread jsolderitsch

Yes -- I found two plug-in poms in my .m2 -- this one and
jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom

I changed the latter one first and that didn't help and then I changed the
one you mentioned and I was past the tools.jar block.

And I was able to build a deployable war file based on a pojo with some
JAX-WS annotations.

I did need to use the legacy repository:
https://maven-repository.dev.java.net/nonav/repository and this seemed to
let me compile all the way. At one point I did also do a mvn install:file
for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1 build. But
this was before I switched to the legacy repo from
https://maven2-repository.dev.java.net/nonav/repository which is supposedly
the preferred one.

Good luck.

Jim


Ryan Cuprak wrote:
 
 
 I edited:
 /Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven-plugin/ 
 1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom
 
   However, I hit another roadblock once I got past that problem. The  
 plugin can't find the class file for the Webservice annotation tag.  
 Plan to download the source and tinker with it later today.
 
   -Ryan
 
 On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:
 

 Question -- Which pom file under .m2?

 I find myself in exactly the same situation and error condition  
 trying to
 use the jax-ws plug-in on Mac OS X?

 Ryan Cuprak wrote:


   Managed to get around the problem. I edited the pom file under .m2
 to point directly at the classes.jar file on MacOS X. A bit of a hack
 but it worked.

   -Ryan

 On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:


 The error message is:
 Missing:
 --
 1) sun.jdk:tools:jar:1.5.0

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=sun.jdk - 
 DartifactId=tools \
   -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
 beta-1-20070203.171044-8
 2) sun.jdk:tools:jar:1.5.0


  On the mac, the classes that comprise the tools are located in:
  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/
 classes.jar
  Googling I come across postings where it is recommend that I alter
 the systempath to point to classes.jar.

  -Ryan

 On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:

 jaxws is capable of automatically pickup tools.jar from
 ${java.home}/lib/tools.jar
 ( MacOS specific)

 What is the error?

 you may need to get the latest source and build your self.


 -D


 On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:

 Hello,
 I am trying to get the jaxws-maven-plugin up and running on my
 box. Evidently Apple has been kind enough to stick tools.jar
 elsewhere.

 Any reason why the snippet below wouldn't work?

 -Ryan

 Snippet:

 plugins
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 version1.0-beta-1-SNAPSHOT/version
 executions
 execution
 goals
 goalwsgen/goal
 /goals
 /execution
 /executions
 configuration
 seinet.cuprak.ryanportal/sei
 genWsdltrue/genWsdl

 /configuration
 dependencies
 dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.5.0/version
 systemPath/System/Library/Frameworks/
 JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
 scopesystem/scope
 /dependency
 /dependencies
 /plugin

 /plugins

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




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



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




 -- 
 View this message in context: http://www.nabble.com/Tools.jar--- 
 Apple-tf3357700s177.html#a9378680
 Sent from the Maven - Users mailing list archive at Nabble.com.


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

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

-- 
View this message in context: 

Re: lifecycle phase is restarting over

2007-03-08 Thread Kai Uwe Bachmann

Hello,

I think you use the assembly goal of the plugin. When you take a look 
at the documentation you will
see that this goal calls the package phase by itself. If you use the 
attach goal it wouldn't call an other

goal.

Best Regards

Kai Uwe Bachmann
Am 08.03.2007 um 20:56 schrieb Dave Maung:


I have the following life cycle set up
in compile phase, I have some ant task running, and in package phase, I
have assembly plugin  set up.

The problem is if I execute mvn package, it is calling compile 
lifecycle

phase twice. Is there way to stop occuring it? I am using Maven 2.0.5?

Dave



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



Re: [m2] Tools.jar Apple

2007-03-08 Thread Ryan Cuprak


 Any chance you could send me your pom.xml file? I am a little  
baffled why the JAXWS plugin is failing on what appears to be a  
classpath issue with the annotations.


 How did using a legacy repository affect things?

 Thanks,
 -Ryan

On Mar 8, 2007, at 3:08 PM, jsolderitsch wrote:



Yes -- I found two plug-in poms in my .m2 -- this one and
jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom

I changed the latter one first and that didn't help and then I  
changed the

one you mentioned and I was past the tools.jar block.

And I was able to build a deployable war file based on a pojo with  
some

JAX-WS annotations.

I did need to use the legacy repository:
https://maven-repository.dev.java.net/nonav/repository and this  
seemed to
let me compile all the way. At one point I did also do a mvn  
install:file
for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1  
build. But

this was before I switched to the legacy repo from
https://maven2-repository.dev.java.net/nonav/repository which is  
supposedly

the preferred one.

Good luck.

Jim


Ryan Cuprak wrote:



I edited:
/Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven- 
plugin/

1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom

  However, I hit another roadblock once I got past that problem. The
plugin can't find the class file for the Webservice annotation tag.
Plan to download the source and tinker with it later today.

  -Ryan

On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:



Question -- Which pom file under .m2?

I find myself in exactly the same situation and error condition
trying to
use the jax-ws plug-in on Mac OS X?

Ryan Cuprak wrote:



  Managed to get around the problem. I edited the pom file  
under .m2
to point directly at the classes.jar file on MacOS X. A bit of a  
hack

but it worked.

  -Ryan

On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:



The error message is:
Missing:
--
1) sun.jdk:tools:jar:1.5.0

  Try downloading the file manually from the project website.

  Then, install it using the command:
  mvn install:install-file -DgroupId=sun.jdk -
DartifactId=tools \
  -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

  Path to dependency:
1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
beta-1-20070203.171044-8
2) sun.jdk:tools:jar:1.5.0


 On the mac, the classes that comprise the tools are located in:
 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/
classes.jar
 Googling I come across postings where it is recommend that I  
alter

the systempath to point to classes.jar.

 -Ryan

On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:


jaxws is capable of automatically pickup tools.jar from
${java.home}/lib/tools.jar
( MacOS specific)

What is the error?

you may need to get the latest source and build your self.


-D


On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:


Hello,
I am trying to get the jaxws-maven-plugin up and running on my
box. Evidently Apple has been kind enough to stick tools.jar
elsewhere.

Any reason why the snippet below wouldn't work?

-Ryan

Snippet:

plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdjaxws-maven-plugin/artifactId
version1.0-beta-1-SNAPSHOT/version
executions
execution
goals
goalwsgen/goal
/goals
/execution
/executions
configuration
seinet.cuprak.ryanportal/sei
genWsdltrue/genWsdl

/configuration
dependencies
dependency
groupIdsun.jdk/groupId
artifactIdtools/artifactId
version1.5.0/version
systemPath/System/Library/Frameworks/
JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
scopesystem/scope
/dependency
/dependencies
/plugin

/plugins

 
--

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





-- 
--

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




--- 
--

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





--
View this message in context: http://www.nabble.com/Tools.jar---
Apple-tf3357700s177.html#a9378680
Sent from the Maven - Users mailing list archive at Nabble.com.


 
-

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





Inter module dependencies with release plugin

2007-03-08 Thread Paul Gier

I have a multi-module project where some modules depend on others.
 parent
  |--module1
  |--module2
  `--module3
And module 2 depends on the current snapshot version of module 1.  I
would like to release them all at the same time, but the problem is that
the release plugin tells me that module 2 is dependent on a snapshot
version of module 1 so it cannot run.

How can I get around this issue?



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



Re: Next release????

2007-03-08 Thread kentlam

Thanks Emmanuel, looking forward to the new version.




Emmanuel Venisse wrote:
 
 we have some discussion on dev list to release a first alpha in few days.
 Even if it's an alpha, this version will be stable and we want to add more
 features to the final version.
 
 Emmanuel
 
 kentlam a écrit :
 When is the next release of continuum coming out? Is it even in active
 development? The bugs are so annoying in continuum I am about to ditch it
 and use Bamboo instead.  
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Next-release-tf3369141.html#a9381470
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: lifecycle phase is restarting over

2007-03-08 Thread Dave Maung

thanks for answering my question. I did attached goal, however, it seems
to failed to asseble

The error that I am getting is

[INFO]

[INFO] Error adding file 'C:\webapps\targe
t\classes' to archive: C:\webapps\target\c
lasses isn't a file.

If I used assembly goal, I was able to assemble without any problem except
compile phase executed twice.

Dave

On 3/8/07, Kai Uwe Bachmann [EMAIL PROTECTED] wrote:


Hello,

I think you use the assembly goal of the plugin. When you take a look
at the documentation you will
see that this goal calls the package phase by itself. If you use the
attach goal it wouldn't call an other
goal.

Best Regards

Kai Uwe Bachmann
Am 08.03.2007 um 20:56 schrieb Dave Maung:

 I have the following life cycle set up
 in compile phase, I have some ant task running, and in package phase, I
 have assembly plugin  set up.

 The problem is if I execute mvn package, it is calling compile
 lifecycle
 phase twice. Is there way to stop occuring it? I am using Maven 2.0.5?

 Dave


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




Re: [m2] Maven Archetypes

2007-03-08 Thread Jason Melnick

I don't believe that this currently exists, but it would make archetype
infinitely more useful. I would like to be able to populate different items
in an archetype by either reading a database or parsing out other xml files
for use in an enterprise setting. An example would be populating the scm
section with a URL from the enterprise SCM provisioning system... Or filling
in the distributionManagement section with information from a project
management system, etc...


hermod.opstvedt wrote:
 
 Hi
 
 I am working on an archetype that is going to set up a special development
 environment, and I have the following question: Is it possible to specify
 an execution entry for archetypes. What I mean is that I want an Ant
 script or maybe a Mojo to execute during the archetype execution
 lifecycle. The reason beeing that I amongst other stuff want to get the
 latest version of a project from Subversion as an example.
 
 
 Hermod
 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 
 This email with attachments is solely for the use of the individual or
 entity to whom it is addressed. Please also be aware that the DnB NOR
 Group
 cannot accept any payment orders or other legally binding correspondence
 with
 customers as a part of an email. 
 
 This email message has been virus checked by the anti virus programs used
 in the DnB NOR Group.
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-Archetypes-tf1667150s177.html#a9381474
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Installing 3rd party jar to remote repository with sources jar

2007-03-08 Thread Hayes, Peter
Is it possible to use the deploy:deploy-file target to deploy a 3rd
party jar into a remote repostory while including an attached sources
jar?  I don't see any parameters on
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.htm
l that would indicate that this is possible.

Peter Hayes
Architecture  Shared Technology Services | Fidelity Investments
Management Technology



Re: Installing 3rd party jar to remote repository with sources jar

2007-03-08 Thread Wendy Smoak

On 3/8/07, Hayes, Peter [EMAIL PROTECTED] wrote:


Is it possible to use the deploy:deploy-file target to deploy a 3rd
party jar into a remote repostory while including an attached sources
jar?  I don't see any parameters on
http://maven.apache.org/plugins/maven-deploy-plugin/deploy-file-mojo.htm
l that would indicate that this is possible.


Try deploying the sources jar separately, using -Dclassifier=sources.

--
Wendy

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



maven dependency classpath

2007-03-08 Thread Jagan Padmanabha Pillai -X \(jpadmana - Insight Solutions, Inc. at Cisco\)
 
Does anyone know how maven creates the classpath from the dependencies.
 
Whats the order it creates ? How can we control the order  ?
 
Thanks!!


Re: [m2] Archetype Plugin parameters and templates

2007-03-08 Thread Jason Melnick

maven-archetype-quickstart source has no velocity templates - and neither do
any of the other projects of the maven-archetype-bundles. Is the archetype
plugin not extensible via new archetype-bundles?


allan ramirez-4 wrote:
 
 
 Eric Jacob wrote:
 
Hi Jason,

Thanks for your fast answer. However, I took a look at the 
maven-archetype-quickstart-1.0-alpha-3.jar in my local repository and I
saw
no velocity templates... Here where I looked:

%USER_HOME%\.m2\repository\org\apache\maven\archetypes\maven-archetype-quickstart\1.0-alpha-3
  

 
 If you have the source copy,  you can able to see that 
 maven-archetype-quickstart is a velocity template.
 
Is it possible to provide a sample or a link to a velocity template on the
online source repository?
  

 
 Im not really sure about this, but I think its not possible.
 
Thank you in advance,

Eric

On 9/27/05, Jason van Zyl [EMAIL PROTECTED] wrote:
  

On Mon, 2005-09-26 at 21:49 -0400, Eric Jacob wrote:


Hi,

The M1 Genapp plugin offers the possibility to define custom parameters
  

and


templates... So here my questions about the M2 Archetype plugin:

(1) Does it offer the same possibilities?
  

Yes, the templates for a archetype are actually velocity templates so
more flexible then what's in genapp.



(2) Is it possible to prompt the user for the parameter's value?
  

Archetypes were designed to do that. The parameters can come from
anywhere as long they end up in a Map. The Map is used when rendering
the velocity templates to parameterize the output.

I would like to do more work on the archetypes in order to provide some
metadata about the parameters for a particular archetype so that better
UI tools can be made. But even with that being the case there is reason
why you couldn't make a UI for the generation of a project from an
archetype.



(3) Where should I start to build my own template?
  

You can look at the existing archetypes which are simply JARs that
contain velocity templates and some metadata about what is actually in
the archetype. I will add some doco to the getting started guide about
archetypes as I think there is little known about them but they are
going to be highly useful.

If you follow the current getting started guide and create a project:

m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app

This will actually download the archetype to your local maven repository
and you can take a look at it. It will be in:

$repo/org/apache/maven/archetypes/maven-archetype-quickstart/1.0-alpha-3



(4) Finally, how to add a specific script/behaviour to a template in
  

M2?

The templates are velocity templates so you get the directives that
velocity provides and you can make your own velocity macros or tools. A
tool is simply a Java object that you drop into a velocity context so
you can really do whatever you want. I would think velocity itself would
give you enough flexibility.



Thanks,

Eric
  

--
jvz.

Jason van Zyl
jason at maven.org http://maven.org
http://maven.apache.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.

-- Jacques Ellul, The Technological Society


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





  



No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.7/112 - Release Date: 9/26/2005
  

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

-- 
View this message in context: 
http://www.nabble.com/-m2--Archetype-Plugin-parameters-and-templates-tf348981s177.html#a9381482
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: maven dependency classpath

2007-03-08 Thread Rod Mclaughlin
That's a good question! If we can control the classpath order, we can 
avoid the 'cglib-full' issue (the issue is that class x.y.Z is on the 
classpath twice, our code requires method a(), and the first example of 
x.y.Z on the classpath does not have a method a() but the second does, 
so if we could reverse the classpath order, our code will build using 
Maven).


Jagan Padmanabha Pillai -X (jpadmana - Insight Solutions, Inc. at Cisco) 
wrote:
 
Does anyone know how maven creates the classpath from the dependencies.
 
Whats the order it creates ? How can we control the order  ?
 
Thanks!!


  



--
Rod McLaughlin
[EMAIL PROTECTED]
.m2/repository/cglib/cglib-full/2.0.2/cglib-full-2.0.2.jar



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



Local modules

2007-03-08 Thread Michal Palička
Hello all,

is there a way to specify a module as local, so that the module could not be 
deployed 
to shared repository? The module should be able to install to my local 
repository though.

Perhaps I should describe our use case:

In our project, we use a separate module that contains configuration files for 
the whole application.
The configuration files are stored in a version control system and they are 
modified during the build 
process using profiles and settings.xml.

Each member of the team can build a specific variant of the web application,
that contains the desired configuration (development, test, production, etc).

The problem is, that the configuration module should not be deployed to the 
shared
repository, because it would then break configurations of other team members.

We need some way to include the configuration module to the final application 
(war),
but at the same time the configuration artifact must be disallowed to deploy
(it must remain local).



Does Maven support the described use-case?
Is there any official method for solving such scenario?

Thank you in advance
Michal Palicka


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



Re: seeing what phase a plugin is bound to

2007-03-08 Thread Wayne Fay

A good question, which I really cannot answer.

Let me run my EAR project in debug mode and see if anything pops out...

Wayne

On 3/8/07, EJ Ciramella [EMAIL PROTECTED] wrote:

So why would an ear try and get built during mvn compile?

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 08, 2007 11:52 AM
To: Maven Users List
Subject: Re: seeing what phase a plugin is bound to

Maven-Ear-Plugin consists of 2 goals:
http://maven.apache.org/plugins/maven-ear-plugin/plugin-info.html

ear:ear is bound to package phase.
ear:generate-application-xml is bound to generate-resources phase.

Wayne

On 3/8/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 Is there any way to see what lifecycle goal the ear plugin is bound
to?


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


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




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



Re: seeing what phase a plugin is bound to

2007-03-08 Thread Wayne Fay

I think you must have something misconfigured, EJ...

[INFO] Building myproj-ear
[INFO]task-segment: [package]
[INFO] 

[INFO] [ear:generate-application-xml]
[INFO] [resources:resources]
[INFO] [ear:ear]

During the build of my ear module, the compile phase is completely
skipped. I would check the effective-pom in your ear module, and make
sure you don't have a compile plugin somehow attaching itself etc.

Wayne

On 3/8/07, Wayne Fay [EMAIL PROTECTED] wrote:

A good question, which I really cannot answer.

Let me run my EAR project in debug mode and see if anything pops out...

Wayne

On 3/8/07, EJ Ciramella [EMAIL PROTECTED] wrote:
 So why would an ear try and get built during mvn compile?

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 08, 2007 11:52 AM
 To: Maven Users List
 Subject: Re: seeing what phase a plugin is bound to

 Maven-Ear-Plugin consists of 2 goals:
 http://maven.apache.org/plugins/maven-ear-plugin/plugin-info.html

 ear:ear is bound to package phase.
 ear:generate-application-xml is bound to generate-resources phase.

 Wayne

 On 3/8/07, EJ Ciramella [EMAIL PROTECTED] wrote:
  Is there any way to see what lifecycle goal the ear plugin is bound
 to?
 

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


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





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



[apt] How to center text or figure ?

2007-03-08 Thread Eddy Caron

Hello all,

	I hope it's right mailing for this question. I can't found a  
specific mailing for trivial question about apt. Do you know how to  
center text or figure with apt syntax ?


Regards,
Eddy
 
--

Eddy Caron. Mcf ENS Lyon
ENS Lyon - LIP - Projet GRAAL
46 Allee d'Italie, 69364 Lyon Cedex 07, France
E-Mail : [EMAIL PROTECTED]
[ Tel : 04.72.72.84.96 ][ Web page : http://graal.ens-lyon.fr/~ecaron ]
 





Re: minijar bombs out when found duplicate classes

2007-03-08 Thread Dan Tran

the problem is I dont know which jar files has duplicate classes and I have
49 jars in my dep list ;-)

On 3/8/07, Wayne Fay [EMAIL PROTECTED] wrote:


  There are a couple of jars containing the same class in my project.
 
  That's bad :)

 Yeah, those are my dependency jars :(

Dan, can you not use exclusions etc to get rid of the
artifacts/dependencies which are bringing in these duplicated classes?
I've seen some ugly runtime issues resulting from duplicated classes.

Wayne

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




Re: minijar bombs out when found duplicate classes

2007-03-08 Thread Rod Mclaughlin
I have written a couple of small shell scripts which search Maven for a 
given class, eg.
mvngrep.sh ClassVisitor will find all those jars containing class 
org.objectweb.asm.ClassVisitor.
The next step is to write a java program which searches for an example 
of the class which contains a particular method signature, and put that 
jar first in the classpath. Some of our code depends on code that calls the
|*visit 
http://asm.objectweb.org/current/doc/javadoc/user/org/objectweb/asm/ClassVisitor.html#visit%28int,%20int,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String%5B%5D%29*(int, 
int, String 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true, 
String 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true, 
String 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true, 
String 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true[])| 
method of ClassVisitor as opposed to the
|*visit 
http://asm.objectweb.org/current/doc/javadoc/user/org/objectweb/asm/ClassVisitor.html#visit%28int,%20int,%20java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String%5B%5D%29*(int, 
int, String 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true, 
String 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true, 
String 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true[], 
String 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html?is-external=true)| 
method. But if java or javac finds the old version first, it will try to 
use it, and won't find the method it needs. The scripts are as follows 
(if you are using Windows, run them in a CYGWIN shell). The first script 
calls the second:

--- mvngrep.sh:
#!/bin/sh
if [  == $1 ] ; then
   echo Usage: $0 class/package: searches Maven's downloaded jars
   exit 1
fi
mkdir ~/tmp 2/dev/null
mkdir ~/tmp/allmvnjars/ 2/dev/null
rm -f ~/tmp/allmvnjars/*jar
find ~/.m2 -name *jar -exec cp -f {} ~/tmp/allmvnjars \;
wargrep.sh ~/tmp/allmvnjars $1
--- wargrep.sh:
#!/bin/sh
if [  == $1 ] || [  == $2 ] ; then
   echo Usage: $0 folder class/package: searches contents of wars 
and jars

   exit 1
fi

JARS=`ls $1/*.?ar`
for WAR in $JARS ; do
RESULT=`jar tvf $WAR | grep $2`
if [  != $RESULT ] ; then
   echo $WAR
#   echo $RESULT
fi
done





Dan Tran wrote:
the problem is I dont know which jar files has duplicate classes and I 
have

49 jars in my dep list ;-)

On 3/8/07, Wayne Fay [EMAIL PROTECTED] wrote:


  There are a couple of jars containing the same class in my project.
 
  That's bad :)

 Yeah, those are my dependency jars :(

Dan, can you not use exclusions etc to get rid of the
artifacts/dependencies which are bringing in these duplicated classes?
I've seen some ugly runtime issues resulting from duplicated classes.

Wayne

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



Solved: Fails to build archiva

2007-03-08 Thread Raphaël Piéroni

Sorry for the noise, a fresh checkout solved the problem


2007/3/8, Brett Porter [EMAIL PROTECTED]:



On 08/03/2007, at 11:09 AM, Raphaël Piéroni wrote:

 Hi,

 I have some problem to build archiva from sources:

 First the maven-meeper subproject don't have a pom.

http://svn.apache.org/viewvc/maven/archiva/trunk/maven-meeper/pom.xml?
view=log



Delete + checkout solve this.



 second, (after created a dummy pom for it) i have

 [INFO] Result of /home/local/jdk1.6.0/jre/../bin/jarsigner -keystore
 src/keystore/keystore -storepass ** -keypass **
 /home/users/rafale/projects/maven/archiva/archiva-applet/target/
 archiva-
 applet-1.0-SNAPSHOT.jar mykey execution is: '1'.
 [INFO]
 --
 --
 [DEBUG] Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Result of
 /home/local/jdk1.6.0/jre/../bin/jarsigner -keystore src/keystore/
 keystore
 -storepass ** -keypass **
 /home/users/rafale/projects/maven/archiva/archiva-applet/target/
 archiva-
 applet-1.0-SNAPSHOT.jar mykey execution is: '1'.

Not sure what the problem is here - might need to try and get more
output from jarsigner or run it manually to test.



[debug] Executing: /home/local/jdk1.6.0/jre/../bin/jarsigner -verify
/home/users/rafale/projects/maven/archiva/archiva-applet/target/archiva-
applet-1.0-SNAPSHOT.jar
[info] jar is unsigned. (signatures missing or not parsable)
[DEBUG] jarsigner executable=[/home/local/jdk1.6.0/jre/../bin/jarsigner]
[DEBUG] Signing JAR in-place (overwritting original JAR).
[DEBUG] Executing: /home/local/jdk1.6.0/jre/../bin/jarsigner -keystore
src/keystore/keystore -storepass ** -keypass **
/home/users/rafale/projects/maven/archiva/archiva-applet/target/archiva-
applet-1.0-SNAPSHOT.jar mykey
[INFO] jarsigner error: java.lang.RuntimeException: keystore load:
/home/users/rafale/projects/maven/archiva/archiva-applet/src/keystore/keystore
(No such file or directory)


- Brett




Re: minijar bombs out when found duplicate classes

2007-03-08 Thread Torsten Curdt


On 08.03.2007, at 23:02, Rod Mclaughlin wrote:

I have written a couple of small shell scripts which search Maven  
for a given class, eg.
mvngrep.sh ClassVisitor will find all those jars containing class  
org.objectweb.asm.ClassVisitor.


Actually once I had the idea to index the whole maven repo and  
provide a service to search for methods signature, classes etc.  
Writing IDE plugins would be the next step. *shrug*


...nice little project - just wasn't sure whether that would be worth  
the effort. Would that be useful?


cheers
--
Torsten



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



RE: seeing what phase a plugin is bound to

2007-03-08 Thread EJ Ciramella
What about the compile phase, does it try to do anything ear related? 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 08, 2007 4:30 PM
To: Maven Users List
Subject: Re: seeing what phase a plugin is bound to

I think you must have something misconfigured, EJ...

[INFO] Building myproj-ear
[INFO]task-segment: [package]
[INFO]


[INFO] [ear:generate-application-xml]
[INFO] [resources:resources]
[INFO] [ear:ear]

During the build of my ear module, the compile phase is completely
skipped. I would check the effective-pom in your ear module, and make
sure you don't have a compile plugin somehow attaching itself etc.

Wayne

On 3/8/07, Wayne Fay [EMAIL PROTECTED] wrote:
 A good question, which I really cannot answer.

 Let me run my EAR project in debug mode and see if anything pops
out...

 Wayne

 On 3/8/07, EJ Ciramella [EMAIL PROTECTED] wrote:
  So why would an ear try and get built during mvn compile?
 
  -Original Message-
  From: Wayne Fay [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 08, 2007 11:52 AM
  To: Maven Users List
  Subject: Re: seeing what phase a plugin is bound to
 
  Maven-Ear-Plugin consists of 2 goals:
  http://maven.apache.org/plugins/maven-ear-plugin/plugin-info.html
 
  ear:ear is bound to package phase.
  ear:generate-application-xml is bound to generate-resources phase.
 
  Wayne
 
  On 3/8/07, EJ Ciramella [EMAIL PROTECTED] wrote:
   Is there any way to see what lifecycle goal the ear plugin is
bound
  to?
  
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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


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



FW: jcoverage

2007-03-08 Thread vinay.hegde1


 
please mail users@maven.apache.org

On 08/03/2007, at 2:34 AM, [EMAIL PROTECTED] wrote:


hi 
 
i m Vinay
 
i m developing project in maven.
 
i want to use jcoverage as report.
 
can u plz tell me how should i write pom.xml and setting.xml.
 
otherwise send me an demo project .
 
waiting for u r reply, it urgent
 
Vinay Hegde
   WIPRO Technologies
Banagalore
9845663261
 

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

Re: MAVEN 2.0 and SCM-SVN

2007-03-08 Thread Dan Tran

By convention, any thing generated by the build execution should be placed
under ${project.build.directory) ( ie target)

scm:checkout is not the exception either.

A good use case of this, maven release:perform which checkouts a know tag
into target/checkout and performs the build from there.
After that user can freely remove target dir ( ie mvn clean )

But there are cases you will want override the checkoutDirectory.  May be
this is what you want, rather than calling it useless :)


-D


On 3/8/07, Phill Moran [EMAIL PROTECTED] wrote:


This could be a dumb questions but why does maven SCM default to checkout
to
/target/checkout? I would expect it to go to a dir under src/java. It also
seems
that the SCM plug-in does not allow this to be overridden. I have tried
setting
sourceDirectory and the others to no avail. I am using the standard
MAVEN dir
structure.
Unless I am missing something fundamental this issue makes the plug-in a
little
useless





Re: [m2] Tools.jar Apple

2007-03-08 Thread Ryan Cuprak
Hello,

Got my jaxws stuff working!

 Added the repository:
 repository
idjava.net/id
urlhttps://maven-repository.dev.java.net/nonav/repository/url
layoutlegacy/layout
/repository
(deleted entries javax entries and .m2 and re-downloaded - only had to download 
the jsr 181 jar separately. - think I installed the wrong jar previously)

 and the dependency (for webservice annotations):
dependency
groupIdjavax.jws/groupId
artifactIdjsr181-api/artifactId
version1.0-MR1/version
scopecompile/scope
/dependency

 That seemed to do the trick.

 Also, kinda wondering if mvnrepository.com indexes the java.net stuff.

 -Ryan
 
On Thursday, March 08, 2007, at 12:17PM, Ryan Cuprak [EMAIL PROTECTED] 
wrote:

  Any chance you could send me your pom.xml file? I am a little  
baffled why the JAXWS plugin is failing on what appears to be a  
classpath issue with the annotations.

  How did using a legacy repository affect things?

  Thanks,
  -Ryan

On Mar 8, 2007, at 3:08 PM, jsolderitsch wrote:


 Yes -- I found two plug-in poms in my .m2 -- this one and
 jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom

 I changed the latter one first and that didn't help and then I  
 changed the
 one you mentioned and I was past the tools.jar block.

 And I was able to build a deployable war file based on a pojo with  
 some
 JAX-WS annotations.

 I did need to use the legacy repository:
 https://maven-repository.dev.java.net/nonav/repository and this  
 seemed to
 let me compile all the way. At one point I did also do a mvn  
 install:file
 for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1  
 build. But
 this was before I switched to the legacy repo from
 https://maven2-repository.dev.java.net/nonav/repository which is  
 supposedly
 the preferred one.

 Good luck.

 Jim


 Ryan Cuprak wrote:


 I edited:
 /Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven- 
 plugin/
 1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom

   However, I hit another roadblock once I got past that problem. The
 plugin can't find the class file for the Webservice annotation tag.
 Plan to download the source and tinker with it later today.

   -Ryan

 On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:


 Question -- Which pom file under .m2?

 I find myself in exactly the same situation and error condition
 trying to
 use the jax-ws plug-in on Mac OS X?

 Ryan Cuprak wrote:


   Managed to get around the problem. I edited the pom file  
 under .m2
 to point directly at the classes.jar file on MacOS X. A bit of a  
 hack
 but it worked.

   -Ryan

 On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:


 The error message is:
 Missing:
 --
 1) sun.jdk:tools:jar:1.5.0

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=sun.jdk -
 DartifactId=tools \
   -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
 beta-1-20070203.171044-8
 2) sun.jdk:tools:jar:1.5.0


  On the mac, the classes that comprise the tools are located in:
  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/
 classes.jar
  Googling I come across postings where it is recommend that I  
 alter
 the systempath to point to classes.jar.

  -Ryan

 On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:

 jaxws is capable of automatically pickup tools.jar from
 ${java.home}/lib/tools.jar
 ( MacOS specific)

 What is the error?

 you may need to get the latest source and build your self.


 -D


 On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:

 Hello,
 I am trying to get the jaxws-maven-plugin up and running on my
 box. Evidently Apple has been kind enough to stick tools.jar
 elsewhere.

 Any reason why the snippet below wouldn't work?

 -Ryan

 Snippet:

 plugins
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 version1.0-beta-1-SNAPSHOT/version
 executions
 execution
 goals
 goalwsgen/goal
 /goals
 /execution
 /executions
 configuration
 seinet.cuprak.ryanportal/sei
 genWsdltrue/genWsdl

 /configuration
 dependencies
 dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.5.0/version
 systemPath/System/Library/Frameworks/
 JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
 scopesystem/scope
 /dependency
 /dependencies
 

Re: [m2] Tools.jar Apple

2007-03-08 Thread Dan Tran

Ryan, I should have said this out loud early so you dont have to go thru
this

any way, if maven folk willing to fix

http://jira.codehaus.org/browse/MEV-498

an all will be okie

-Dan


On 3/8/07, Ryan Cuprak [EMAIL PROTECTED] wrote:


Hello,

Got my jaxws stuff working!

Added the repository:
repository
   idjava.net/id
   urlhttps://maven-repository.dev.java.net/nonav/repository
/url
   layoutlegacy/layout
   /repository
(deleted entries javax entries and .m2 and re-downloaded - only had to
download the jsr 181 jar separately. - think I installed the wrong jar
previously)

and the dependency (for webservice annotations):
   dependency
   groupIdjavax.jws/groupId
   artifactIdjsr181-api/artifactId
   version1.0-MR1/version
   scopecompile/scope
   /dependency

That seemed to do the trick.

Also, kinda wondering if mvnrepository.com indexes the java.net stuff.

-Ryan

On Thursday, March 08, 2007, at 12:17PM, Ryan Cuprak [EMAIL PROTECTED]
wrote:

  Any chance you could send me your pom.xml file? I am a little
baffled why the JAXWS plugin is failing on what appears to be a
classpath issue with the annotations.

  How did using a legacy repository affect things?

  Thanks,
  -Ryan

On Mar 8, 2007, at 3:08 PM, jsolderitsch wrote:


 Yes -- I found two plug-in poms in my .m2 -- this one and
 jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom

 I changed the latter one first and that didn't help and then I
 changed the
 one you mentioned and I was past the tools.jar block.

 And I was able to build a deployable war file based on a pojo with
 some
 JAX-WS annotations.

 I did need to use the legacy repository:
 https://maven-repository.dev.java.net/nonav/repository and this
 seemed to
 let me compile all the way. At one point I did also do a mvn
 install:file
 for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1
 build. But
 this was before I switched to the legacy repo from
 https://maven2-repository.dev.java.net/nonav/repository which is
 supposedly
 the preferred one.

 Good luck.

 Jim


 Ryan Cuprak wrote:


 I edited:
 /Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven-
 plugin/
 1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom

   However, I hit another roadblock once I got past that problem. The
 plugin can't find the class file for the Webservice annotation tag.
 Plan to download the source and tinker with it later today.

   -Ryan

 On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:


 Question -- Which pom file under .m2?

 I find myself in exactly the same situation and error condition
 trying to
 use the jax-ws plug-in on Mac OS X?

 Ryan Cuprak wrote:


   Managed to get around the problem. I edited the pom file
 under .m2
 to point directly at the classes.jar file on MacOS X. A bit of a
 hack
 but it worked.

   -Ryan

 On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:


 The error message is:
 Missing:
 --
 1) sun.jdk:tools:jar:1.5.0

   Try downloading the file manually from the project website.

   Then, install it using the command:
   mvn install:install-file -DgroupId=sun.jdk -
 DartifactId=tools \
   -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

   Path to dependency:
 1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
 beta-1-20070203.171044-8
 2) sun.jdk:tools:jar:1.5.0


  On the mac, the classes that comprise the tools are located in:
  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/
 classes.jar
  Googling I come across postings where it is recommend that I
 alter
 the systempath to point to classes.jar.

  -Ryan

 On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:

 jaxws is capable of automatically pickup tools.jar from
 ${java.home}/lib/tools.jar
 ( MacOS specific)

 What is the error?

 you may need to get the latest source and build your self.


 -D


 On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:

 Hello,
 I am trying to get the jaxws-maven-plugin up and running on my
 box. Evidently Apple has been kind enough to stick tools.jar
 elsewhere.

 Any reason why the snippet below wouldn't work?

 -Ryan

 Snippet:

 plugins
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdjaxws-maven-plugin/artifactId
 version1.0-beta-1-SNAPSHOT/version
 executions
 execution
 goals
 goalwsgen/goal
 /goals
 /execution
 /executions
 configuration
 seinet.cuprak.ryanportal/sei
 genWsdltrue/genWsdl

 /configuration
 dependencies
 dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.5.0/version
 

Re: [m2] Tools.jar Apple

2007-03-08 Thread Dan Tran

also, what did you change in the plugin's pom?  If it is valid, i will fix
the plugin

-D


On 3/8/07, Dan Tran [EMAIL PROTECTED] wrote:


Ryan, I should have said this out loud early so you dont have to go thru
this

any way, if maven folk willing to fix

http://jira.codehaus.org/browse/MEV-498

an all will be okie

-Dan


 On 3/8/07, Ryan Cuprak [EMAIL PROTECTED] wrote:

 Hello,

 Got my jaxws stuff working!

 Added the repository:
 repository
id java.net/id
urlhttps://maven-repository.dev.java.net/nonav/repository
 /url
layoutlegacy/layout
/repository
 (deleted entries javax entries and .m2 and re-downloaded - only had to
 download the jsr 181 jar separately. - think I installed the wrong jar
 previously)

 and the dependency (for webservice annotations):
dependency
groupIdjavax.jws/groupId
artifactIdjsr181-api/artifactId
version1.0-MR1/version
scopecompile/scope
/dependency

 That seemed to do the trick.

 Also, kinda wondering if mvnrepository.com indexes the java.net stuff.

 -Ryan

 On Thursday, March 08, 2007, at 12:17PM, Ryan Cuprak [EMAIL PROTECTED]
 wrote:
 
   Any chance you could send me your pom.xml file? I am a little
 baffled why the JAXWS plugin is failing on what appears to be a
 classpath issue with the annotations.
 
   How did using a legacy repository affect things?
 
   Thanks,
   -Ryan
 
 On Mar 8, 2007, at 3:08 PM, jsolderitsch wrote:
 
 
  Yes -- I found two plug-in poms in my .m2 -- this one and
  jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom
 
  I changed the latter one first and that didn't help and then I
  changed the
  one you mentioned and I was past the tools.jar block.
 
  And I was able to build a deployable war file based on a pojo with
  some
  JAX-WS annotations.
 
  I did need to use the legacy repository:
  https://maven-repository.dev.java.net/nonav/repository and this
  seemed to
  let me compile all the way. At one point I did also do a mvn
  install:file
  for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1
  build. But
  this was before I switched to the legacy repo from
  https://maven2-repository.dev.java.net/nonav/repository which is
  supposedly
  the preferred one.
 
  Good luck.
 
  Jim
 
 
  Ryan Cuprak wrote:
 
 
  I edited:
  /Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven-
  plugin/
  1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom
 
However, I hit another roadblock once I got past that problem. The
  plugin can't find the class file for the Webservice annotation tag.
  Plan to download the source and tinker with it later today.
 
-Ryan
 
  On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:
 
 
  Question -- Which pom file under .m2?
 
  I find myself in exactly the same situation and error condition
  trying to
  use the jax-ws plug-in on Mac OS X?
 
  Ryan Cuprak wrote:
 
 
Managed to get around the problem. I edited the pom file
  under .m2
  to point directly at the classes.jar file on MacOS X. A bit of a
  hack
  but it worked.
 
-Ryan
 
  On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:
 
 
  The error message is:
  Missing:
  --
  1) sun.jdk:tools:jar:1.5.0
 
Try downloading the file manually from the project website.
 
Then, install it using the command:
mvn install:install-file -DgroupId=sun.jdk -
  DartifactId=tools \
-Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file
 
Path to dependency:
  1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
  beta-1-20070203.171044-8
  2) sun.jdk:tools:jar:1.5.0
 
 
   On the mac, the classes that comprise the tools are located in:
   /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/

  classes.jar
   Googling I come across postings where it is recommend that I
  alter
  the systempath to point to classes.jar .
 
   -Ryan
 
  On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:
 
  jaxws is capable of automatically pickup tools.jar from
  ${java.home}/lib/tools.jar
  ( MacOS specific)
 
  What is the error?
 
  you may need to get the latest source and build your self.
 
 
  -D
 
 
  On 3/6/07, Ryan Cuprak [EMAIL PROTECTED] wrote:
 
  Hello,
  I am trying to get the jaxws-maven-plugin up and running on
 my
  box. Evidently Apple has been kind enough to stick tools.jar
  elsewhere.
 
  Any reason why the snippet below wouldn't work?
 
  -Ryan
 
  Snippet:
 
  plugins
  plugin
  groupId org.codehaus.mojo/groupId
  artifactIdjaxws-maven-plugin/artifactId
  version1.0-beta-1-SNAPSHOT /version
  executions
  execution
  goals
  goalwsgen/goal
  /goals
  /execution
  /executions
  configuration
  seinet.cuprak.ryanportal /sei
  

Re: [m2] Tools.jar Apple

2007-03-08 Thread Ryan Cuprak

 The only change to a plugin (plugin itself) that I made was to 
jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom and the sun.jdk section now looks 
like:

 dependency
  groupIdsun.jdk/groupId
  artifactIdtools/artifactId
  version1.5.0/version
  scopesystem/scope
  
systemPath/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
/dependency

 Specifying this as the dependency for the plugin in my pom file didn't work.

 Haven't figured out a non-hack approach yet.

 -Ryan

 
On Thursday, March 08, 2007, at 08:45PM, Dan Tran [EMAIL PROTECTED] wrote:
also, what did you change in the plugin's pom?  If it is valid, i will fix
the plugin

-D


On 3/8/07, Dan Tran [EMAIL PROTECTED] wrote:

 Ryan, I should have said this out loud early so you dont have to go thru
 this

 any way, if maven folk willing to fix

 http://jira.codehaus.org/browse/MEV-498

 an all will be okie

 -Dan


  On 3/8/07, Ryan Cuprak [EMAIL PROTECTED] wrote:
 
  Hello,
 
  Got my jaxws stuff working!
 
  Added the repository:
  repository
 id java.net/id
 urlhttps://maven-repository.dev.java.net/nonav/repository
  /url
 layoutlegacy/layout
 /repository
  (deleted entries javax entries and .m2 and re-downloaded - only had to
  download the jsr 181 jar separately. - think I installed the wrong jar
  previously)
 
  and the dependency (for webservice annotations):
 dependency
 groupIdjavax.jws/groupId
 artifactIdjsr181-api/artifactId
 version1.0-MR1/version
 scopecompile/scope
 /dependency
 
  That seemed to do the trick.
 
  Also, kinda wondering if mvnrepository.com indexes the java.net stuff.
 
  -Ryan
 
  On Thursday, March 08, 2007, at 12:17PM, Ryan Cuprak [EMAIL PROTECTED]
  wrote:
  
Any chance you could send me your pom.xml file? I am a little
  baffled why the JAXWS plugin is failing on what appears to be a
  classpath issue with the annotations.
  
How did using a legacy repository affect things?
  
Thanks,
-Ryan
  
  On Mar 8, 2007, at 3:08 PM, jsolderitsch wrote:
  
  
   Yes -- I found two plug-in poms in my .m2 -- this one and
   jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom
  
   I changed the latter one first and that didn't help and then I
   changed the
   one you mentioned and I was past the tools.jar block.
  
   And I was able to build a deployable war file based on a pojo with
   some
   JAX-WS annotations.
  
   I did need to use the legacy repository:
   https://maven-repository.dev.java.net/nonav/repository and this
   seemed to
   let me compile all the way. At one point I did also do a mvn
   install:file
   for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1
   build. But
   this was before I switched to the legacy repo from
   https://maven2-repository.dev.java.net/nonav/repository which is
   supposedly
   the preferred one.
  
   Good luck.
  
   Jim
  
  
   Ryan Cuprak wrote:
  
  
   I edited:
   /Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven-
   plugin/
   1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom
  
 However, I hit another roadblock once I got past that problem. The
   plugin can't find the class file for the Webservice annotation tag.
   Plan to download the source and tinker with it later today.
  
 -Ryan
  
   On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:
  
  
   Question -- Which pom file under .m2?
  
   I find myself in exactly the same situation and error condition
   trying to
   use the jax-ws plug-in on Mac OS X?
  
   Ryan Cuprak wrote:
  
  
 Managed to get around the problem. I edited the pom file
   under .m2
   to point directly at the classes.jar file on MacOS X. A bit of a
   hack
   but it worked.
  
 -Ryan
  
   On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:
  
  
   The error message is:
   Missing:
   --
   1) sun.jdk:tools:jar:1.5.0
  
 Try downloading the file manually from the project website.
  
 Then, install it using the command:
 mvn install:install-file -DgroupId=sun.jdk -
   DartifactId=tools \
 -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file
  
 Path to dependency:
   1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
   beta-1-20070203.171044-8
   2) sun.jdk:tools:jar:1.5.0
  
  
On the mac, the classes that comprise the tools are located in:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/
 
   classes.jar
Googling I come across postings where it is recommend that I
   alter
   the systempath to point to classes.jar .
  
-Ryan
  
   On Mar 6, 2007, at 2:30 PM, Dan Tran wrote:
  
   jaxws is capable of automatically pickup tools.jar from
   ${java.home}/lib/tools.jar
   ( MacOS specific)
  
   What is the error?
  
   you may need to get the latest source and build your self.
  
  
   -D
  
  
   On 3/6/07, Ryan Cuprak [EMAIL 

Re: FW: jcoverage

2007-03-08 Thread Wayne Fay

There is no JCoverage report available in Maven2. This plugin is only
available with Maven1.

(Since you mention pom.xml, I assume you are using M2 and not M1.)

Wayne

On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:




please mail users@maven.apache.org

On 08/03/2007, at 2:34 AM, [EMAIL PROTECTED] wrote:


hi

i m Vinay

i m developing project in maven.

i want to use jcoverage as report.

can u plz tell me how should i write pom.xml and setting.xml.

otherwise send me an demo project .

waiting for u r reply, it urgent

Vinay Hegde
   WIPRO Technologies
Banagalore
9845663261


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com


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



Re: [m2] Tools.jar Apple

2007-03-08 Thread Dan Tran

From the source, jaxws-maven-plugin should should pickup your classes.jar if

you have it as your denpendecy.

Also, and latest source and snapshot seems to be out of sync, could you
fetch the source and build it and test it
with your build.

-D


On 3/8/07, Ryan Cuprak [EMAIL PROTECTED] wrote:



The only change to a plugin (plugin itself) that I made was to
jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom and the sun.jdk section now
looks like:

dependency
 groupIdsun.jdk/groupId
 artifactIdtools/artifactId
 version1.5.0/version
 scopesystem/scope

systemPath/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/classes.jar/systemPath
   /dependency

Specifying this as the dependency for the plugin in my pom file didn't
work.

Haven't figured out a non-hack approach yet.

-Ryan


On Thursday, March 08, 2007, at 08:45PM, Dan Tran [EMAIL PROTECTED]
wrote:
also, what did you change in the plugin's pom?  If it is valid, i will
fix
the plugin

-D


On 3/8/07, Dan Tran [EMAIL PROTECTED] wrote:

 Ryan, I should have said this out loud early so you dont have to go
thru
 this

 any way, if maven folk willing to fix

 http://jira.codehaus.org/browse/MEV-498

 an all will be okie

 -Dan


  On 3/8/07, Ryan Cuprak [EMAIL PROTECTED] wrote:
 
  Hello,
 
  Got my jaxws stuff working!
 
  Added the repository:
  repository
 id java.net/id
 url
https://maven-repository.dev.java.net/nonav/repository
  /url
 layoutlegacy/layout
 /repository
  (deleted entries javax entries and .m2 and re-downloaded - only had
to
  download the jsr 181 jar separately. - think I installed the wrong
jar
  previously)
 
  and the dependency (for webservice annotations):
 dependency
 groupIdjavax.jws/groupId
 artifactIdjsr181-api/artifactId
 version1.0-MR1/version
 scopecompile/scope
 /dependency
 
  That seemed to do the trick.
 
  Also, kinda wondering if mvnrepository.com indexes the java.netstuff.
 
  -Ryan
 
  On Thursday, March 08, 2007, at 12:17PM, Ryan Cuprak 
[EMAIL PROTECTED]
  wrote:
  
Any chance you could send me your pom.xml file? I am a little
  baffled why the JAXWS plugin is failing on what appears to be a
  classpath issue with the annotations.
  
How did using a legacy repository affect things?
  
Thanks,
-Ryan
  
  On Mar 8, 2007, at 3:08 PM, jsolderitsch wrote:
  
  
   Yes -- I found two plug-in poms in my .m2 -- this one and
   jaxws-maven-plugin-1.0-beta-1-20070203.171044-8.pom
  
   I changed the latter one first and that didn't help and then I
   changed the
   one you mentioned and I was past the tools.jar block.
  
   And I was able to build a deployable war file based on a pojo with
   some
   JAX-WS annotations.
  
   I did need to use the legacy repository:
   https://maven-repository.dev.java.net/nonav/repository and this
   seemed to
   let me compile all the way. At one point I did also do a mvn
   install:file
   for the jar jaxws-rt.jar that I got from the nightly JAX-WS 2.1
   build. But
   this was before I switched to the legacy repo from
   https://maven2-repository.dev.java.net/nonav/repository which is
   supposedly
   the preferred one.
  
   Good luck.
  
   Jim
  
  
   Ryan Cuprak wrote:
  
  
   I edited:
   /Users/username/.m2/repository/org/codehaus/mojo/jaxws-maven-
   plugin/
   1.0-beta-1-SNAPSHOT/jaxws-maven-plugin-1.0-beta-1-SNAPSHOT.pom
  
 However, I hit another roadblock once I got past that problem.
The
   plugin can't find the class file for the Webservice annotation
tag.
   Plan to download the source and tinker with it later today.
  
 -Ryan
  
   On Mar 8, 2007, at 1:43 PM, jsolderitsch wrote:
  
  
   Question -- Which pom file under .m2?
  
   I find myself in exactly the same situation and error condition
   trying to
   use the jax-ws plug-in on Mac OS X?
  
   Ryan Cuprak wrote:
  
  
 Managed to get around the problem. I edited the pom file
   under .m2
   to point directly at the classes.jar file on MacOS X. A bit of
a
   hack
   but it worked.
  
 -Ryan
  
   On Mar 6, 2007, at 2:37 PM, Ryan Cuprak wrote:
  
  
   The error message is:
   Missing:
   --
   1) sun.jdk:tools:jar:1.5.0
  
 Try downloading the file manually from the project website.
  
 Then, install it using the command:
 mvn install:install-file -DgroupId=sun.jdk -
   DartifactId=tools \
 -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file
  
 Path to dependency:
   1)
org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.0-
   beta-1-20070203.171044-8
   2) sun.jdk:tools:jar:1.5.0
  
  
On the mac, the classes that comprise the tools are located
in:
 
  /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Classes/
 
   classes.jar
Googling I come across postings where it is recommend that I
   alter
   the systempath to point to classes.jar .
  
-Ryan
  
   On Mar 6, 2007, 

Re: FW: jcoverage

2007-03-08 Thread Subhash Chandran

Use cobertura instead.

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

Subhash.

On 3/9/07, Wayne Fay [EMAIL PROTECTED] wrote:

There is no JCoverage report available in Maven2. This plugin is only
available with Maven1.

(Since you mention pom.xml, I assume you are using M2 and not M1.)

Wayne

On 3/8/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



 please mail users@maven.apache.org

 On 08/03/2007, at 2:34 AM, [EMAIL PROTECTED] wrote:


 hi

 i m Vinay

 i m developing project in maven.

 i want to use jcoverage as report.

 can u plz tell me how should i write pom.xml and setting.xml.

 otherwise send me an demo project .

 waiting for u r reply, it urgent

 Vinay Hegde
WIPRO Technologies
 Banagalore
 9845663261


 The information contained in this electronic message and any attachments
 to this message are intended for the exclusive use of the addressee(s)
 and may contain proprietary, confidential or privileged information. If
 you are not the intended recipient, you should not disseminate,
 distribute or copy this e-mail. Please notify the sender immediately and
 destroy all copies of this message and any attachments.

 WARNING: Computer viruses can be transmitted via email. The recipient
 should check this email and any attachments for the presence of viruses.
 The company accepts no liability for any damage caused by any virus
 transmitted by this email.

 www.wipro.com






 The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

 WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this email.

 www.wipro.com

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





--
Regards,
Subhash Chandran S

http://wizcrypt.wiztools.org/

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



  1   2   >