Question regarding modular project

2007-08-16 Thread Boryan Yotov
Hi,

I'm playing around adding a Maven 2.0 project, which contains of a
parent projects and few child projects (defined as modules in the parent
POM) into Continuum 1.0.3.

Initially the number of modules is limited to one. If I a add the parent
POM into Continuum, it also successfully resolves the child POM, appends
it to the projects list and assigns it to the same group as its parent.

The problem arise when I add another child (module) to the project
tree *after* its parent was already added into the Continuum's project
list. I found no way to tell Continuum to automatically add the new
module to its list of projects, although if I trigger a build of the
parent POM (--non-recursive is disabled), then Maven builds the new
child project as well.

If I add the child project manually, Continuum allocates it into a group
named after the child's name and not after its parent name, which
probably seems correct but makes no successful way for adding new
modules later on.

Is there a way to tell Continuum 1.0.3 to reread the modules list of a
certain project POM (without manually removing the project definition
and adding it again) and to add all new entries to its list of projects?

Thank you in advance.

Best regards,
Boryan


Where to find build logging?

2007-08-16 Thread Gert Vanthienen

L.S.,


I have downloaded and installed Continuum (version 1.1-beta-1) and succeeded
in adding a Maven 2 project.  It has been checked out of the SVN repository
successfully, but whenever it builds, I get this message on the Continuum
console:

jvm 1| 2007-08-16 15:13:42,653 [Thread-6] WARN 
TaskQueueExecutor:build-project - Task
[EMAIL PROTECTED] didn't
complete within time, cancelling it.

When I execute the same build manually on that machine, it finishes in less
than 30 seconds.  Where can I find additional information about what's going
wrong?


Regards,

Gert
-- 
View this message in context: 
http://www.nabble.com/Where-to-find-build-logging--tf4279731.html#a12181666
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: Question regarding modular project

2007-08-16 Thread Boryan Yotov
Hi,

please ignore my question. I've just found the related key issue at:
http://jira.codehaus.org/browse/CONTINUUM-798

Regards,
Boryan

Am 16.08.2007 15:39, Boryan Yotov schrieb:
 Hi,
 
 I'm playing around adding a Maven 2.0 project, which contains of a
 parent projects and few child projects (defined as modules in the parent
 POM) into Continuum 1.0.3.
 
 Initially the number of modules is limited to one. If I a add the parent
 POM into Continuum, it also successfully resolves the child POM, appends
 it to the projects list and assigns it to the same group as its parent.
 
 The problem arise when I add another child (module) to the project
 tree *after* its parent was already added into the Continuum's project
 list. I found no way to tell Continuum to automatically add the new
 module to its list of projects, although if I trigger a build of the
 parent POM (--non-recursive is disabled), then Maven builds the new
 child project as well.
 
 If I add the child project manually, Continuum allocates it into a group
 named after the child's name and not after its parent name, which
 probably seems correct but makes no successful way for adding new
 modules later on.
 
 Is there a way to tell Continuum 1.0.3 to reread the modules list of a
 certain project POM (without manually removing the project definition
 and adding it again) and to add all new entries to its list of projects?
 
 Thank you in advance.
 
 Best regards,
 Boryan
 
 


Re: Continuum build has out of memory exceptions but wont die

2007-08-16 Thread Cla Emanuel Monsch

hi skip

this information could be interesting for you:

http://mail-archives.apache.org/mod_mbox/maven-continuum-users/200705.mbox/[EMAIL
 PROTECTED]

cheers
cla

SkipWalker wrote:

With no solution forthcoming, here's an update.  I let the server alone while
I went to lunch.  When I came back, it's still running the build.  We're
up to 3 hours now.  


Attempting to delete the build from continuum doesn't work.  The delete just
hangs and never completes.  I assume its because it still thinks the build
I'm trying to remove is still running.

Restarting doesn't work either.  It just resumes with the build.  


Building all doesn't work, as the existing build causes a new instance of
that build to fail straightaway.

In any case, looks like I'm going to have re-migrate from my 1.0.2 db from a
couple months ago.

We'll see if it happens again.


--
Cla Emanuel Monsch | [EMAIL PROTECTED]
phone +41-44-247 79 06 | fax +41-44-247 70 75
Netcetera AG | 8040 Zürich | Switzerland | http://netcetera.ch



Re: Question regarding modular project

2007-08-16 Thread Erik Drolshammer

Boryan Yotov wrote:


Is there a way to tell Continuum 1.0.3 to reread the modules list of a
certain project POM (without manually removing the project definition
and adding it again) and to add all new entries to its list of projects?


I use 1.1-beta-1 and have a similar question;
When I add or remove a child project, these changes are not detected by 
Continuum. Is this normal behavior?


If not, how to fix it?


Currently it seems my only options are to
a. add/remove modules manually (they are put in the correct group)
or
b. remove the whole project and re-add it.

None of these are especially enticing.


--
Thanks,
Erik Drolshammer





Re: Generating EJB home/remote interfaces with maven

2007-08-16 Thread Tim Kettler
Ok. I just made a quick test: 1.0-alpha-1 (as shown in the examples) 
seems to be to old and doesn't work with the current maven version.


I found a snapshot version 1.0-beta-1-SNAPSHOT deployed on the codehaus 
snapshot repository [1]. This version seems to work. To be able to use 
the snapshot you need to declare the snapshot repository somewhere as 
shown here [2].


Hope this helps
-Tim

[1] 
http://snapshots.repository.codehaus.org/org/codehaus/mojo/xdoclet-maven-plugin/1.0-beta-1-SNAPSHOT/

[2] http://mojo.codehaus.org/using-sandbox-plugins.html

Vaidya, Supriya A (US - Chicago) schrieb:

Thanks Tim!

I modified by EJB's pom.xml to contain the following - 


 plugin
  artifactIdxdoclet-maven-plugin/artifactId
  groupIdorg.codehaus.mojo/groupId
  version1.0-alpha-1/version
  executions
   execution
goals
 goalxdoclet/goal
/goals
phasegenerate-sources/phase
   /execution
  /executions
 /plugin



However, when I run the mvn xdoclet:xdoclet command, I get the following
error:

[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.AbstractMethodError
at
org.codehaus.plexus.component.configurator.converters.ComponentValueS
etter.configure(ComponentValueSetter.java:247)
at
org.codehaus.plexus.component.configurator.converters.composite.Objec
tWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java
:137)
at
org.codehaus.plexus.component.configurator.BasicComponentConfigurator
.configureComponent(BasicComponentConfigurator.java:56)

I visited a few posts and find that users in '05 when the plugin was
first released, had to modify the xdoclet's POM in the respository. Is
this still the case? Or am I using the wrong version? Also, WHICH POM
should I be modifying if necessary in the respository? There are loads
of subdirectories of the xdoclet repository... 


-Original Message-
From: Tim Kettler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 15, 2007 9:51 AM

To: Maven Users List
Subject: Re: Generating EJB home/remote interfaces with maven

Hi,

the maven-ejb-plugin doesn't help you to generate your home/remote 
interfaces. It is just for packaging your poject to a valid ejb jar.


As far as I know, there is no ejbgen-plugin for maven 2. The only one 
I'm aware of [1] is for maven 1. However, you should be able to use 
xdoclet [2] and the xdoclet-plugin [3] to do what you want.


-Tim

[1] http://www.codeczar.com/products/maven-ejbgen-plugin/
[2] http://xdoclet.sourceforge.net/xdoclet/index.html
[3] http://mojo.codehaus.org/xdoclet-maven-plugin/overview.html

Vaidya, Supriya A (US - Chicago) schrieb:

Hi:
 
Is there an equivalent to ejbGen in Maven-ejb plugins? How do I use

it?

If you could point me to any available documentation, that would be

fine

too... I tried the following:
 
1. In my EJB's pom.xml - I use the maven-ejb-plugin.

2. My resources directory in teh EJB project contains the ejb-jar.xml
and teh weblogic-ejb-jar.xml, which mentions the home and remote
interface names.
3. In my project root, I run the mvn install command
 
This command creates teh EAR with teh EJB jar and the WAR files, but
does not generate any EJB stubs. How do I trigger this? 



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]


-
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: Buildnumber plugin and svn

2007-08-16 Thread DCVer

I've made a mistake, sorry. On the Continuum server there is version 1.1.4 of
the svn, not 1.4.4..


ben short-2 wrote:
 
 I would ofr started by typing svn --version on you continuum server,
 to get the version. If your using a redhat box then chances are its
 svn version 1 or something.
 
 But it seem that somewhere between svn version 1.2 [1] and current [2]
 the --non-interactive flag of the info command was introduced.
 
 Regards
 
 Ben
 
 [1] http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.info.html
 [2] http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.info.html
 
 On 8/15/07, DCVer [EMAIL PROTECTED] wrote:

 Nobody knows? ...


 DCVer wrote:
 
  I use the maven buildnumber plugin and it works fine on my local pc.
 But
  on the Continuum server (checked out from the same svn repository) i
  receive an error (in fact Continuum/Maven2 generates it):
 
  [INFO] [buildnumber:create {execution: default}]
  Provider message:
  The svn command failed.
  Command output:
  Subcommand 'info' doesn't accept option '--non-interactive'
  Type 'svn help info' for usage.
 
  I deleted --batch-mode from Continuum arguments (which means
  non-interactive I believe), but received the same error message. I've
 read
  about similar problems and it may look like the svn version is too old
 on
  the Continuum server (there is 1.4.4 from April 2005 and on my local pc
 I
  have version 1.4.4). Is it svn version problem?
 
  Regards.
 

 --
 View this message in context:
 http://www.nabble.com/Buildnumber-plugin-and-svn-tf4267375s177.html#a12171061
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/Buildnumber-plugin-and-svn-tf4267375s177.html#a12176490
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: Buildnumber plugin and svn

2007-08-16 Thread ben short
Right so it dosent support that flag. Time for an upgrade :)

On 8/16/07, DCVer [EMAIL PROTECTED] wrote:

 I've made a mistake, sorry. On the Continuum server there is version 1.1.4 of
 the svn, not 1.4.4..


 ben short-2 wrote:
 
  I would ofr started by typing svn --version on you continuum server,
  to get the version. If your using a redhat box then chances are its
  svn version 1 or something.
 
  But it seem that somewhere between svn version 1.2 [1] and current [2]
  the --non-interactive flag of the info command was introduced.
 
  Regards
 
  Ben
 
  [1] http://svnbook.red-bean.com/nightly/en/svn.ref.svn.c.info.html
  [2] http://svnbook.red-bean.com/en/1.2/svn.ref.svn.c.info.html
 
  On 8/15/07, DCVer [EMAIL PROTECTED] wrote:
 
  Nobody knows? ...
 
 
  DCVer wrote:
  
   I use the maven buildnumber plugin and it works fine on my local pc.
  But
   on the Continuum server (checked out from the same svn repository) i
   receive an error (in fact Continuum/Maven2 generates it):
  
   [INFO] [buildnumber:create {execution: default}]
   Provider message:
   The svn command failed.
   Command output:
   Subcommand 'info' doesn't accept option '--non-interactive'
   Type 'svn help info' for usage.
  
   I deleted --batch-mode from Continuum arguments (which means
   non-interactive I believe), but received the same error message. I've
  read
   about similar problems and it may look like the svn version is too old
  on
   the Continuum server (there is 1.4.4 from April 2005 and on my local pc
  I
   have version 1.4.4). Is it svn version problem?
  
   Regards.
  
 
  --
  View this message in context:
  http://www.nabble.com/Buildnumber-plugin-and-svn-tf4267375s177.html#a12171061
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/Buildnumber-plugin-and-svn-tf4267375s177.html#a12176490
 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: customized Site Skin/Template for use in different projects

2007-08-16 Thread fuvo

Hello Wayne and Dennis,

of course, we have our own parent pom which is the parent for all our
projects. And of Course, I have found the documentation of the site plugin.
But I cant see there, how and where I have to configure the use of our own
site. 

Ok, I can change the site.xml to format the date and so on. But where do I
have to announce it, so that all 'child' projects can inherit it just like
the parent pom? 
If i put a changed site.xml (only the date changed as mentioned on the
examples page of the site plugin) in a src/site dir of our parent pom, then
it will be deployed in the repository parallel to our company.pom. But if i
generate the reports, it has no effect to the generated site.

Can anybody tell me how I can get this to work?

regards, Volker



Wayne Fay wrote:
 
 Put the configuration in a parent and make all your projects derive
 from it. Your skin has to be declared *somewhere* otherwise the
 default is used.
 
 Wayne
 
 On 8/15/07, fuvo [EMAIL PROTECTED] wrote:

 Hi,

 I searching for a way to make my own template/skin and use this in
 different
 projects as default skin. As I understand, I have to put my created
 template/skin in every project. But thats really not what I want.

 What I want is:
 my own skin jar (like
 http://svn.apache.org/viewvc/maven/skins/trunk/maven-classic-skin/) which
 will automatically used whenever I calll 'mvn site' on any project
 without
 configuring this in every project. Generating the skin jar is no problem,
 but I have no idea what I have to do that maven uses my skin instead of
 the
 maven default skin.

 Can anybody help me with this?

 regards,

 Volker
 --
 View this message in context:
 http://www.nabble.com/customized-Site-Skin-Template-for-use-in-different-projects-tf4273529s177.html#a12163346
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

-- 
View this message in context: 
http://www.nabble.com/customized-Site-Skin-Template-for-use-in-different-projects-tf4273529s177.html#a12176989
Sent from the Maven - Users mailing list archive at Nabble.com.


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



NullPointerException with mvn dependency:sources

2007-08-16 Thread SamImari

Hello

I got a NPE when I use mvn dependency:sources to download all the sources

Any hints?

Regards,

SAM

$ mvn -e -U dependency:sources
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] org.apache.maven.plugins: checking for updates from appfuse
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from appfuse
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-dependency-plugin: checking
for updates from appfuse
[INFO] artifact org.apache.maven.plugins:maven-dependency-plugin: checking
for updates from central
[INFO]

[INFO] Building AppFuse Struts 2 Application
[INFO]task-segment: [dependency:sources]
[INFO]

Downloading:
http://repo1.maven.org/maven2/org/codehaus/xfire/bcprov-jdk15/133/bcprov-jdk15-133.pom
Downloading:
http://static.appfuse.org/repository/org/codehaus/xfire/bcprov-jdk15/133/bcprov-jdk15-133.pom
Downloading:
http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://static.appfuse.org/repository/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading: http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://static.appfuse.org/repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
Downloading:
http://static.appfuse.org/repository/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
[INFO] [dependency:sources]
Downloading: http://repo1.maven.org/maven2/ant/ant/1.5/ant-1.5-sources.jar
Downloading:
http://static.appfuse.org/repository/ant/ant/1.5/ant-1.5-sources.jar
Downloading:
http://repo1.maven.org/maven2/asm/asm/1.5.3/asm-1.5.3-sources.jar
Downloading:
http://static.appfuse.org/repository/asm/asm/1.5.3/asm-1.5.3-sources.jar
Downloading:
http://repo1.maven.org/maven2/asm/asm-attrs/1.5.3/asm-attrs-1.5.3-sources.jar
Downloading:
http://static.appfuse.org/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3-sources.jar
Downloading:
http://repo1.maven.org/maven2/aspectj/aspectjweaver/1.5.3/aspectjweaver-1.5.3-sources.jar
Downloading:
http://static.appfuse.org/repository/aspectj/aspectjweaver/1.5.3/aspectjweaver-1.5.3-sources.jar
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:92)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:73)
at
org.apache.maven.plugin.dependency.utils.resolvers.DefaultArtifactsResolver.resolve(DefaultArtifactsResolver.java:81)
at
org.apache.maven.plugin.dependency.AbstractDependencyFilterMojo.getClassifierTranslatedDependencies(AbstractDependencyFilterMojo.java:308)
at
org.apache.maven.plugin.dependency.AbstractDependencyFilterMojo.getDependencySets(AbstractDependencyFilterMojo.java:265)
at
org.apache.maven.plugin.dependency.resolvers.ResolveDependencySourcesMojo.execute(ResolveDependencySourcesMojo.java:69)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
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 

Re: Rulesets on PMD site report

2007-08-16 Thread Joakim Erdfelt

There's been DNS issues at apache in the past 2 days.
I've seen duplicate posts in other apache mailing lists too.

As for listing the pmd rules in the report ...
* the checkstyle plugin does this already.
* the pmd plugin does not have this functionality right now.
* there is no jira issue to request this functionality.
* and there is no patch to add this functionality.

- Joakim


Wayne Fay wrote:

We got your email ~3 hrs ago. No need to send it again so quickly.

If someone knows the answer, they will respond. It is also rather
likely that the answer is no.

Wayne

On 8/15/07, Bruce Alspaugh [EMAIL PROTECTED] wrote:
  

Is there a way to configure the PMD site report to show which rulesets
were used to check the source code?

Bruce



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



Invoke a plug-in/goal configured in a pom.xml from cmd line

2007-08-16 Thread Farhan Sarwar
Hi All,



Is there a way I can invoke a plug-in/goal (not linked with any phase)
configured in a project's pom.xml (within an execution tag) from the command
line directly, also the idea is to invoke the goal irrespective of the maven
build cycle.



To be more precise let's say if I have a maven-ant-run: run (plug-in:goal)
configured (as below) with 2 executions (i.e. execution1 associated with
validate phase and execution2 not linked to any phase) how can I invoke the
configuration as configured in id=execution2 from command line directly e.g.
something like mvn antrun:run execution2 so that it gets executed
independent of maven phase(s)/build-cycle.



build

  plugins

plugin

  artifactIdmaven-antrun-plugin/artifactId

  executions

execution

  idexecution1/id

  phasevalidate/phase

  configuration

tasks

  delete file=lib/test1.txt/

/tasks

  /configuration

  goals

goalrun/goal

  /goals

/execution

execution

  idexecution2/id

  configuration

tasks

  delete file=lib/test2.txt/

/tasks

  /configuration

  goals

goalrun/goal

  /goals

/execution

  /executions

/plugin

  /plugins

/build



Thanks and Regards,



Farhan.


Maven2 newbie help: getting cobertura reports

2007-08-16 Thread NORTH, Dan, GBM
Hi folks.
 
I have a simple build across a few modules and I want to get the following
sequence of events:
 
- compile sources
- instrument them with cobertura
- compile junit tests
- run junit tests against instrumented classes
- generate junit failure report if any tests fail
- generate cobertura report
- package up the non-instrumented classes for deployment
- ...
 
I can't see any obvious way to weave cobertura into the build (or junit
report for that matter), even for a single module. Using the site goal seems
to compile at least twice and run the unit tests twice. Maven2 doesn't
remember that they were already compiled. Also, I can't see how to use just
a subset of the site functionality (the reporting) inside the main build
sequence.
 
Am I missing something obvious here?
 
Thanks,
Dan

***
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered 
Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorised and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The 
Royal Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
www.rbs.com
www.rbs.com/gbm
www.rbsgc.com
***


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

RE: Generating EJB home/remote interfaces with maven

2007-08-16 Thread Jörg Schaible

use 1.0-alpha-2: 
http://www.mvnrepository.com/artifact/org.codehaus.mojo/xdoclet-maven-plugin

Tim Kettler wrote on Thursday, August 16, 2007 8:47 AM:

 Ok. I just made a quick test: 1.0-alpha-1 (as shown in the examples)
 seems to be to old and doesn't work with the current maven version.
 
 I found a snapshot version 1.0-beta-1-SNAPSHOT deployed on
 the codehaus
 snapshot repository [1]. This version seems to work. To be
 able to use
 the snapshot you need to declare the snapshot repository somewhere as
 shown here [2]. 
 
 Hope this helps
 -Tim
 
 [1]
 http://snapshots.repository.codehaus.org/org/codehaus/mojo/xdo
 clet-maven-plugin/1.0-beta-1-SNAPSHOT/
 [2] http://mojo.codehaus.org/using-sandbox-plugins.html
 
 Vaidya, Supriya A (US - Chicago) schrieb:
 Thanks Tim!
 
 I modified by EJB's pom.xml to contain the following -
 
  plugin
   artifactIdxdoclet-maven-plugin/artifactId
   groupIdorg.codehaus.mojo/groupId
   version1.0-alpha-1/version
   executions
execution
 goals
  goalxdoclet/goal
 /goals
 phasegenerate-sources/phase
/execution
   /executions
  /plugin
 
 
 
 However, when I run the mvn xdoclet:xdoclet command, I get the
 following error: 
 
 [INFO]
 
 --
 --
 [ERROR] FATAL ERROR
 [INFO]
 
 --
 --
 [INFO] null
 [INFO]
 
 --
 --
 [INFO] Trace
 java.lang.AbstractMethodError
 at
 
 org.codehaus.plexus.component.configurator.converters.ComponentValueS
 etter.configure(ComponentValueSetter.java:247)
 at
 
 org.codehaus.plexus.component.configurator.converters.composite.Objec
 
 tWithFieldsConverter.processConfiguration(ObjectWithFieldsConv
 erter.java
 137)
 at
 
 org.codehaus.plexus.component.configurator.BasicComponentConfigurator
 .configureComponent(BasicComponentConfigurator.java:56)
 
 I visited a few posts and find that users in '05 when the plugin was
 first released, had to modify the xdoclet's POM in the respository.
 Is this still the case? Or am I using the wrong version? Also, WHICH
 POM should I be modifying if necessary in the respository? There are
 loads of subdirectories of the xdoclet repository...
 
 -Original Message-
 From: Tim Kettler [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 15, 2007 9:51 AM
 To: Maven Users List
 Subject: Re: Generating EJB home/remote interfaces with maven
 
 Hi,
 
 the maven-ejb-plugin doesn't help you to generate your home/remote
 interfaces. It is just for packaging your poject to a valid ejb jar.
 
 As far as I know, there is no ejbgen-plugin for maven 2. The only one
 I'm aware of [1] is for maven 1. However, you should be able to use
 xdoclet [2] and the xdoclet-plugin [3] to do what you want.
 
 -Tim
 
 [1] http://www.codeczar.com/products/maven-ejbgen-plugin/
 [2] http://xdoclet.sourceforge.net/xdoclet/index.html
 [3] http://mojo.codehaus.org/xdoclet-maven-plugin/overview.html
 
 Vaidya, Supriya A (US - Chicago) schrieb:
 Hi:
 
 Is there an equivalent to ejbGen in Maven-ejb plugins? How do I use
 it? If you could point me to any available documentation, that
 would be fine too... I tried the following: 
 
 1. In my EJB's pom.xml - I use the maven-ejb-plugin.
 2. My resources directory in teh EJB project contains the
 ejb-jar.xml and teh weblogic-ejb-jar.xml, which mentions the home
 and remote interface names. 
 3. In my project root, I run the mvn install command
 
 This command creates teh EAR with teh EJB jar and the WAR files, but
 does not generate any EJB stubs. How do I trigger this?
 
 
 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]
 
 
 
 -
 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]



More than one test source directory

2007-08-16 Thread Vihung Marathe
Am I missing something, or is it not possible to specify more then one
directory as a test source directory?

I am working with an existing project that has two separate
directories for tests - one for unit tests and one for integration
tests

-- Vihung
_

This e-mail may contain confidential information and/or copyright material. 
This e-mail is intended for the use of the addressee only. Any unauthorised use 
may be unlawful.

If you receive this e-mail by mistake please advise the sender immediately by 
using the reply facility in your e-mail software.

The Friends Provident group of companies includes these Friends Provident plc 
subsidiary companies:

Friends Provident Life and Pensions Limited. Registered number 4096141.
Friends Provident Life Assurance Limited. Registered number 782698.
Friends Provident Pensions Limited. Registered number 475201.
Friends Provident Marketing Limited. Registered number 5059179.

Each of the above subsidiary companies is authorised and regulated by the 
Financial Services Authority.

Friends Provident Management Services Limited. Registered number 983330

The ultimate holding company is Friends Provident plc. Registered number 
4113107.

All are incorporated companies limited by shares and registered in England.
Registered and Head Office: Pixham End, Dorking, Surrey RH4 1QA.

www.friendsprovident.com

_

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



Site plugin: internationalization - css and image resource duplication

2007-08-16 Thread Alexander Hars

Hi,

I am trying to use the site plugin with several languages.

Unfortunately, the site plugin copies all its css files and image 
resources into each locale. This is inefficient, furthermore I run into 
a problem when I use my own css files or image resources to override the 
default maven files. I then have to manage some master files (e.g. 
site.css) in the src tree and make sure that I copy them to all locale 
subdirectories in the src tree when I make a change. I also can't see 
why it is important to copy all small maven icons (e.g. ok 
collapsed.gif, expanded.gif, icon_info.gif etc.),  over and over into 
each locale subdirectory.
Is there a way to get around this behavior and have all locales use the 
same .css file and image resources?


Or is there a variable which velocity can access to detect which locale 
we are dealing with? Then I could simply change the velocity template so 
that it points to the topmost css directory always.


Thanks for your help,

Alexander








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



Version Management

2007-08-16 Thread Hemant Ved
Hi

Can Maven be used as a Version mangement tool? Is it possible to automate
the Version management using Maven?


Thanks and Regards
Hemant Ved


manifest classpath

2007-08-16 Thread robert . egan
I've looked through the examples for this and it seems simple enough. 
However, I'd really like to have my classpath as a series of path elements 
for the sake of legibility and future maintnance, i.e.

classpath
entrypath1/entry
entrypath2/entry
entrypath3/entry
/classpath

instead of 

manifest
classpathpath1 path2 path3/classpath
/manifest

It may not seem like much in the simple example given here, but here's a 
class path from one of our production jars:

Class-Path: plugins/framework plugins/checkservices plugins/transferse
 rvices plugins/alerts plugins/pr plugins/pr/achapps plugins/pr/wireap
 ps wcmPrincipals-hotfix.jar wcmPrincipals.jar securityUtil-hotfix.jar
  securityUtil.jar wcmCache-hotfix.jar wcmCache.jar  lib/apache/jakart
 a-commons/commons-cli-1.0.jar lib/apache/jakarta-commons/commons-coll
 ections-3.1.jar lib/apache/jakarta-commons/commons-dbcp-1.2.1.jar lib
 /apache/jakarta-commons/commons-lang-2.1.jar lib/apache/jakarta-commo
 ns/commons-pool-1.2.jar lib/apache/jakarta-commons/commons-logging-1.
 0.4/commons-logging.jar lib/apache/JCS/jcs-1.2.6.8.jar lib/oswego.edu
 /util-concurrent-1.3.4.jar lib/jradius/jradius.jar lib/jradius/jradiu
 s-dictionary.jar lib/gnu/gnu-crypto.jar lib/httpclient/commons-codec-
 1.3.jar lib/httpclient/commons-httpclient-3.0.jar lib/emory.edu/backp
 ort-util-concurrent-2.2/backport-util-concurrent.jar lib/oracle/jdbc-
 10.2.0.1.0/ojdbc14.jar lib/oracle/jdbc-10.2.0.1.0/jdbc_rowset_tiger1.
 0.1mrel-ri/rowset.jar lib/jdom/jdom-1.0/jdom.jar lib/rsa/authapi.jar 
 lib/apache/log4j/log4j-1.2.8.jar

So I'm sure you can see why I'd like the former approach. Any ideas would 
be welcome.


Thanks
Robert Egan

This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.

RE: Version Management

2007-08-16 Thread Vaishali.Pande


Yes, Maven can be used as a Version management tool.

The first time written POM file should have the version number and all
other file can include a relative path for the versions later on.

Thanks and Regards
Vaishali G.P. | Cognizant Technology Solutions, Pune-India | PSTN: +9120
40051735 | VNet: 203735 |
| Your duty is to Be And not to be this or that |





-Original Message-
From: Hemant Ved [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 16, 2007 4:29 PM
To: [EMAIL PROTECTED]
Subject: Version Management

Hi

Can Maven be used as a Version mangement tool? Is it possible to
automate
the Version management using Maven?


Thanks and Regards
Hemant Ved

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly
prohibited and may be unlawful.

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



spaces in java.library.path in pom.xml

2007-08-16 Thread bgik

Hi All
Although this must be a common problem I can't find a satisfactory answer
anywhere.

I am looking to run junits using the surefire plug in. These junits rely on
a dll so I am supplying the location of this dll in my pom.xml as follows

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 version2.3/version
 configuration
 forkModepertest/forkMode
 trimStackTracefalse/trimStackTrace

argLine-Djava.library.path=${java.library.path}/argLine
 /configuration
 /plugin

This is fine until the location of the dll is in a directory with spaces eg
'C:\Program Files'. I can't do any form of hard coding because different
users have their dll's in different locations.

I have read many things online about surrounding the java.library.path with
quotes etc, but what exactly should my pom.xml look to overcome this
problem?

Or is there a way of doing this without referencing  java.library.path in
pom.xml?

Any suggestions must appreciated

many thanks
Bruce
-- 
View this message in context: 
http://www.nabble.com/spaces-in-java.library.path-in-pom.xml-tf4278975s177.html#a12179311
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: Tests fail (class not found) when running against non-standard local repository location

2007-08-16 Thread Vihung Marathe
That is a brilliant example of lateral thinking, and a horrible
horrible hack!

But it works.

Thanks for that

-- Vihung

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 15, 2007 5:58 PM
To: Maven Users List
Subject: Re: Tests fail (class not found) when running against
non-standard local repository location


I would try using the MS-DOS command subst to set up a fake M: drive
or something that is actually pointing at your current project. Then
tell settings.xml that your repo is at M:\repository which will
actually be c:\your-projects\project1\repository.

If this works, make a set.bat file to automate the process, and copy
the batch file into each of your projects.

Wayne

On 8/15/07, Vihung Marathe [EMAIL PROTECTED]
wrote:
 I agree that the normal Maven way of doing things is to have a
 settings.xml per seat *(i.e. a user on a machine) that will apply to
 all projects.

 I am working on a project where, for reasons out of my control for
 now, we would like to have a repository per project, and hence a
 settings file per project too.

 I understand that I am working 'against' Maven in doing so, however,
 most of maven's functionality works fine with this arrangement. The
 only issue I am having is with the surefire plugin.

 To summarise, almost all of Maven's core functionality works with a
 relative repository location. The surefire plugin does not.

 Perhaps working with a relative repository location is not part of
the
 'spec', and therefore a failure to do so is not a bug.

 However,
 a) Maven has not prevented me from specifying a relative location
for
 the repository, and
 b) the other plugins seem to work with it fine,

 so following the principle of least surprises, I would expect the
 surefire plugin to work with it too

 -- Vihung

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 08, 2007 7:57 PM
 To: Maven Users List
 Subject: Re: Tests fail (class not found) when running against
 non-standard local repository location


 I don't consider it to be a bug. Settings.xml is supposed to have
 values that apply to all projects, so by definition, relative
paths
 should not be acceptable.

 Wayne

 On 8/8/07, Vihung Marathe [EMAIL PROTECTED]
 wrote:
  The problem appears to be when the custom location is a relative
 path.
 
  As soon as I change the localRepository value in my settings.xml
to
 an
  absolute path - in any form* - it seems to work.
 
  Any ideas? Is this a bug - possibly with Surefire? All the other
 goals
  work fine with a relative repository location.
 
  -- Vihung
 
  * I am on Windows, and all of the following values seem to work
  - C:\workspace\myproject\repository
  - \workspace\myproject\repository
  - C:/workspace/myproject/repository
  - /workspace/myproject/repository
 
  However, assuming I am running maven from C:\workspace\myproject,
 none
  of the following values work
  - .\repository
  - ./repository
  - repository
 
 
  -Original Message-
  From: Vihung Marathe
  Sent: Wednesday, August 01, 2007 5:56 PM
  To: 'Maven Users List'
  Subject: RE: Tests fail (class not found) when running against
  non-standard local repository location
 
 
  No.
 
  Actually in the case that works, the command line is longer
(because
  the default repository location includes the Documents and
 Settings
  directory on Windows).
 
  -- Vihung
 
  -Original Message-
  From: Wayne Fay [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 01, 2007 4:47 PM
  To: Maven Users List
  Subject: Re: Tests fail (class not found) when running against
  non-standard local repository location
 
 
  Off the top of my head, the only thing I could think would be if,
by
  redirecting the localRepo, you're running into max lengths of
paths
 on
  Windows, or maxing out the -classpath argument length.
 
  It is certainly an odd problem, and I've never seen it myself, nor
  seen it reported on this list. In fact, I know many people are
using
  localRepo setting to utilize a different location very
successfully.
  So I'd expect the problem is specific to your environment somehow.
 
  Wayne
  _
 
  This e-mail may contain confidential information and/or copyright
 material. This e-mail is intended for the use of the addressee only.
 Any unauthorised use may be unlawful.
 
  If you receive this e-mail by mistake please advise the sender
 immediately by using the reply facility in your e-mail software.
 
  The Friends Provident group of companies includes these Friends
 Provident plc subsidiary companies:
 
  Friends Provident Life and Pensions Limited. Registered number
 4096141.
  Friends Provident Life Assurance Limited. Registered number
782698.
  Friends Provident Pensions Limited. Registered number 475201.
  Friends Provident Marketing Limited. Registered number 5059179.
 
  Each of the above subsidiary companies is authorised and 

Re: Why does Maven2 by default generate Java 1.1 byte code?

2007-08-16 Thread Gisbert Amm

Wayne Fay wrote:

This has been discussed several times on this list.


Sorry, I haven't found these discussions, neihter by searching for 
compiler defaults nor by searching for byte code [version]



IMO, the default compilation target being 1.1 (or another hard-defined
version) meets the rule of least surprise. You can argue that you
don't like 1.1 and you'd prefer 1.3 or even 1.5 but that is another
discussion.

In contrast, the rule of most surprise would be my build changes when
I change my JDK or my build changes when I build things on different
machines. This is the absolute worst thing you can run into when
trying to standardize and control your build process.


I disagree on that. For me it is not surprising at all that my build 
changes when I use a different compiler. At the contrary, under certain 
cirumstances I'd expect this and would be surprised if the build (or the 
result) would not change.
When the build produces the same results in different environments, this 
can lead to hard-to-find problems later on. I still think it would be 
better if the Maven compiler would produce byte code matching the 
version of the JDK Maven is running with. That's what I expect when I do 
a javac call and I don't see why Maven should silently change this 
behaviour.
While this is not such a big issue (any JVM equal to or greater than 1.1 
can indeed exectute JVM 1.1 byte code and the cases where real problems 
occur might be rare) the source=1.3 default really surprises the user. 
When I create a new project and build it on Maven with a 1.5 JDK 
expecting Java 5 features to work, I get error messages like generics 
are not supported in -source 1.3 and do not know where that comes from. 
At least that is not very user friendly and I suppose Maven wants to be 
user friendly and easy to use.



If you want to target a specific JDK, then simply add the compiler
configuration in your poms. If you feel this has not been documented
sufficiently, 


I did not say that *this* is not documented sufficiently, I did say that 
the defaults aren't documented at all.



then post a RFE in Jira and someone will add some text
to the proper page(s) on the site.


Done. http://jira.codehaus.org/browse/MCOMPILER-57

--
Gisbert Amm
Softwareentwickler Infrastruktur

WEB.DE GmbH
Brauerstraße 48 · D-76135 Karlsruhe
Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
[EMAIL PROTECTED] · http://www.web.de/

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



RE: Version Management

2007-08-16 Thread Arne Styve
Hi Hermant,

No, Maven cannot be used as a Version management tool. Maven is a build
tool, an advanced build tool. You can, however, interact with a version
management tool (like Subversion) from within Maven, so that Maven
performs checking in and checking out (commit and update) to and from
Subversion for you as part of the automated build process.

Regards
Arne 

 -Original Message-
 From: Hemant Ved [mailto:[EMAIL PROTECTED] 
 Sent: 16. august 2007 12:59
 To: [EMAIL PROTECTED]
 Subject: Version Management
 
 Hi
 
 Can Maven be used as a Version mangement tool? Is it possible 
 to automate the Version management using Maven?
 
 
 Thanks and Regards
 Hemant Ved
 

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



RE: expand war deps

2007-08-16 Thread John Coleman
Hi Stephane,

I grafted an example off the dependency plugin site, but it didn't go too well 
as you can see below! I just want to unpack that JAR instead of add it to lib 
directory.

Any ideas what is wrong? I'm a bit concerned that I have both a declared 
dependency at the top of my pom and then this plugin configuration - could that 
lead to version conflicts, will the plugin config default to the previously 
declared version?

TIA
John



plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
execution
idunpack/id
phasepackage/phase
goals
goalunpack/goal
/goals
configuration
artifactItems
artifactItem
groupIdcom.eurobase/groupId
artifactIdcommon-wac/artifactId
!--version1.3-SNAPSHOT/version--
typejar/type
overWritefalse/overWrite

outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory
includes**/*.class,**/*.xml/includes
excludes**/*test.class/excludes
/artifactItem
/artifactItems
includes**/*.java/includes
excludes**/*.properties/excludes

outputDirectory${project.build.directory}/wars/outputDirectory
overWriteReleasesfalse/overWriteReleases
overWriteSnapshotstrue/overWriteSnapshots
/configuration
/execution
/executions
/plugin

[INFO]Failed to configure plugin parameters for: 
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4



Cause: Cannot find setter nor field in 
org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem for 'includes'
[INFO]
[DEBUG]Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: 
org.apache.maven.plugins:maven-dependency-plugin. Reason: Unable to parse the 
created DOM for plugin configuration

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:639)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:551)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:530)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:309)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:276)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:760)
at 
org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:257)
at 
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)



-Original Message-
From: Stephane Nicoll [mailto:[EMAIL PROTECTED] 
Sent: 15 August 2007 19:26
To: Maven Users List
Subject: Re: expand war deps

Hi,

Yep you'll need to setup resources:unpack in the generate-resources
phase. Next version of the WAR plugin has a new overlay handling but
we do not consider handling jars for the moment.

Regards,
Stéphane

On 8/15/07, John Coleman [EMAIL PROTECTED] wrote:
 Hi,



 I have a WAR project that depends on a JAR.



 Can I expand the contents of the JAR dependency into my webapps classes
 directory automatically with a setting, or do I have to do something
 more manual like setting up a dependency:unpack? Anyone got an example
 pls.



 TIA

 John




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

 Privileged / confidential information may be contained in this message and 
 /or any attachments. This E-mail is intended for the use of the addressee(s) 
 only and may contain confidential 

Re: Had to manually install artifact which was already in the repository

2007-08-16 Thread Yuen Chi Lian
Hi Deng,

Yea, I copied the missing JAR from my repo to a directory then install it
manually, for my case, it was 'D:\repository\maven2-downloaded-jars'. I then
noticed that the modified date of the origin is changed after executing the
installation manually.

In another way:

foo/A copied to bar/B
bar/B replaced foo/A via mvn install:install-file

Cheers.

On 8/15/07, Maria Odea Ching [EMAIL PROTECTED] wrote:

 Are you certain the jar you saw in the repo when you first checked was
 the same jar file not being found by Maven? (e.g. same path
 groupId/artifactId/version and same filename)? :)

 -Deng

 Yuen-Chi Lian wrote:
  Hi guys,
 
  I had a strange problem yesterday, Maven was complaining about an
  artifact/dependency in the repository did not exist:
 
  C:\src\mule-2.0-M1\examplesmvn eclipse:eclipse -Dmaven.test.skip=true
  -Denforcer.skip=true -o -e
  + Error stacktraces are turned on.
  ...
  [INFO] A required plugin was not found: Plugin could not be found -
  check that the goal name is correct: System is offline.
 
  Try downloading the file manually from the project website.
 
  Then, install it using the command:
  mvn install:install-file -DgroupId=org.apache.felix
  -DartifactId=maven-bundle-plugin \
  -Dversion=0.9.0-mule-SNAPSHOT -Dpackaging=maven-plugin
  -Dfile=/path/to/file
  Alternatively, if you host your own repository you can deploy the file
  there: mvn deploy:deploy-file -DgroupId=org.apache.felix
  -DartifactId=maven-bundle-pl
  ugin \
  -Dversion=0.9.0-mule-SNAPSHOT -Dpackaging=maven-plugin
  -Dfile=/path/to/file \
   -Durl=[url] -DrepositoryId=[id]
 
 
org.apache.felix:maven-bundle-plugin:maven-plugin:0.9.0-mule-SNAPSHOT
 
 
org.apache.felix:maven-bundle-plugin:maven-plugin:0.9.0-mule-SNAPSHOT
 
 
  I found that the JAR file was actually already in the repository, so I
  copied it to a location and installed it manually:
 
  D:\repository\maven2-downloaded-jarsmvn install:install-file
  -DgroupId=org.apache.felix -DartifactId=maven-bundle-plugin
  -Dversion=0.9.0-mule-SNAPSHOT -Dpackag
  ing=maven-plugin -Dfile=maven-bundle-plugin-0.9.0-mule-SNAPSHOT.jar
 
  And that fixed my problem. So my question is, why did Maven behave in
  such a way?
 
  Cheers.
 


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




-- 
Cheers,
Yuen-Chi Lian

I do not seek; I find. - Pablo Picasso


Can you have Maven create a jar and a war for an artifact

2007-08-16 Thread David Williams
Hi Eveyone,

We currently create a war file for a certain artifact.  Now another group
has created an application that requires the first artifact to be a jar not
a war.  Is there any way to have maven create both a jar and a war for a
single artifact?

Thanks,

David


Re: Tests fail (class not found) when running against non-standard local repository location

2007-08-16 Thread Wayne Fay
I only thought of it because I've used it previously for similar
reasons with another piece of software. In my experience, it usually
works. Glad to hear it helped! ;-)

On *nix, we have ln.
On Windows, we have subst.

Wayne

On 8/16/07, Vihung Marathe [EMAIL PROTECTED] wrote:
 That is a brilliant example of lateral thinking, and a horrible
 horrible hack!

 But it works.

 Thanks for that

 -- Vihung

 -Original Message-
 From: Wayne Fay [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 15, 2007 5:58 PM
 To: Maven Users List
 Subject: Re: Tests fail (class not found) when running against
 non-standard local repository location


 I would try using the MS-DOS command subst to set up a fake M: drive
 or something that is actually pointing at your current project. Then
 tell settings.xml that your repo is at M:\repository which will
 actually be c:\your-projects\project1\repository.

 If this works, make a set.bat file to automate the process, and copy
 the batch file into each of your projects.

 Wayne

 On 8/15/07, Vihung Marathe [EMAIL PROTECTED]
 wrote:
  I agree that the normal Maven way of doing things is to have a
  settings.xml per seat *(i.e. a user on a machine) that will apply to
  all projects.
 
  I am working on a project where, for reasons out of my control for
  now, we would like to have a repository per project, and hence a
  settings file per project too.
 
  I understand that I am working 'against' Maven in doing so, however,
  most of maven's functionality works fine with this arrangement. The
  only issue I am having is with the surefire plugin.
 
  To summarise, almost all of Maven's core functionality works with a
  relative repository location. The surefire plugin does not.
 
  Perhaps working with a relative repository location is not part of
 the
  'spec', and therefore a failure to do so is not a bug.
 
  However,
  a) Maven has not prevented me from specifying a relative location
 for
  the repository, and
  b) the other plugins seem to work with it fine,
 
  so following the principle of least surprises, I would expect the
  surefire plugin to work with it too
 
  -- Vihung
 
  -Original Message-
  From: Wayne Fay [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 08, 2007 7:57 PM
  To: Maven Users List
  Subject: Re: Tests fail (class not found) when running against
  non-standard local repository location
 
 
  I don't consider it to be a bug. Settings.xml is supposed to have
  values that apply to all projects, so by definition, relative
 paths
  should not be acceptable.
 
  Wayne
 
  On 8/8/07, Vihung Marathe [EMAIL PROTECTED]
  wrote:
   The problem appears to be when the custom location is a relative
  path.
  
   As soon as I change the localRepository value in my settings.xml
 to
  an
   absolute path - in any form* - it seems to work.
  
   Any ideas? Is this a bug - possibly with Surefire? All the other
  goals
   work fine with a relative repository location.
  
   -- Vihung
  
   * I am on Windows, and all of the following values seem to work
   - C:\workspace\myproject\repository
   - \workspace\myproject\repository
   - C:/workspace/myproject/repository
   - /workspace/myproject/repository
  
   However, assuming I am running maven from C:\workspace\myproject,
  none
   of the following values work
   - .\repository
   - ./repository
   - repository
  
  
   -Original Message-
   From: Vihung Marathe
   Sent: Wednesday, August 01, 2007 5:56 PM
   To: 'Maven Users List'
   Subject: RE: Tests fail (class not found) when running against
   non-standard local repository location
  
  
   No.
  
   Actually in the case that works, the command line is longer
 (because
   the default repository location includes the Documents and
  Settings
   directory on Windows).
  
   -- Vihung
  
   -Original Message-
   From: Wayne Fay [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, August 01, 2007 4:47 PM
   To: Maven Users List
   Subject: Re: Tests fail (class not found) when running against
   non-standard local repository location
  
  
   Off the top of my head, the only thing I could think would be if,
 by
   redirecting the localRepo, you're running into max lengths of
 paths
  on
   Windows, or maxing out the -classpath argument length.
  
   It is certainly an odd problem, and I've never seen it myself, nor
   seen it reported on this list. In fact, I know many people are
 using
   localRepo setting to utilize a different location very
 successfully.
   So I'd expect the problem is specific to your environment somehow.
  
   Wayne
   _
  
   This e-mail may contain confidential information and/or copyright
  material. This e-mail is intended for the use of the addressee only.
  Any unauthorised use may be unlawful.
  
   If you receive this e-mail by mistake please advise the sender
  immediately by using the reply facility in your e-mail software.
  
   The Friends Provident 

Re: Can you have Maven create a jar and a war for an artifact

2007-08-16 Thread John Casey
Typically, we recommend you split out the webapp-specific files into  
another project that depends on the first. Then, you can set the  
packaging of the first project to 'jar' and to 'war' for the second.  
Now, your other group can simply depend on the jar artifact.


-john

On Aug 16, 2007, at 10:09 AM, David Williams wrote:


Hi Eveyone,

We currently create a war file for a certain artifact.  Now another  
group
has created an application that requires the first artifact to be a  
jar not
a war.  Is there any way to have maven create both a jar and a war  
for a

single artifact?

Thanks,

David


---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john




Re: Can you have Maven create a jar and a war for an artifact

2007-08-16 Thread Mel Riffe
Hi David,

I think the Maven Way suggests you have a project for the Jar and a
project for the War.

However, executing 'jar:jar' within the project should produce the desired
results.

HTH
Mel

On 8/16/07, David Williams [EMAIL PROTECTED] wrote:

 Hi Eveyone,

 We currently create a war file for a certain artifact.  Now another group
 has created an application that requires the first artifact to be a jar
 not
 a war.  Is there any way to have maven create both a jar and a war for a
 single artifact?

 Thanks,

 David



Re: Proxying central repo

2007-08-16 Thread John J. Franey





John J. Franey wrote:
 
 
 Wendy Smoak-3 wrote:
 
   1.0-alpha-2 comes pre-configured to proxy
 the central repo.
 
 
 -- 
 Wendy
 
 
 
 I'm using Beta-1.
 
 
 How do I add a caching proxy?  The admin menu does not include 'proxy
 repositories'.  This item is available in a version I have been using for
 a long time.  The version is way-back pre-alpha untagged SNAPSHOT.
 
 

Found the answer to this question: the menu item is 'Proxy Connectors'. 
Don't know why I missed it before.



-- 
View this message in context: 
http://www.nabble.com/Proxying-central-repo-tf4100176.html#a12182597
Sent from the archiva-users mailing list archive at Nabble.com.



Re: How to include the artfact/extraFiles/dependency in assembly (single module)

2007-08-16 Thread Bryan Noll

Thanks for following up and letting us know John.  Good info.

John Casey wrote:
BTW, this problem is fixed in the latest snapshots of the assembly 
plugin, where there is a new flag in the assembly descriptor's 
dependencySet: useProjectArtifacttrue|false/useProjectArtifact. 
For compatibility with the 2.1 release of maven-assembly-plugin, this 
flag is set to true by default.


I know it's just trivia right now, but someday we'll get this next 
release out, and it'll be useful to know. :-)


-john

On Aug 12, 2007, at 7:21 AM, Zarick Lau wrote:

Alright, I got an answer myself. The solution is the add one more 
'fileSet'

to include the artifact produced the jar plugin.

  fileSet
includes
  include${artifactId}-*.jar/include
/includes
directory${basedir}/target/directory
outputDirectorylib/outputDirectory
lineEndingkeep/lineEnding
fileMode0664/fileMode
  /fileSet

Btw, I think that, assembly plugin should include this setup as one 
of the

default assembly descriptor (as I think it is common enough, isn't it?)

On 8/9/07, Zarick Lau [EMAIL PROTECTED] wrote:

Dear users and developers,

I have a single module project, is it possible to create an assembly
such that, it include the normal project artifact, extra files 
(scripts/sql)

and dependency in the assembly output?

I can use an descriptor to include the scripts and dependencies
included in the output, but the module itself is not included.

For example:

After mvn package (I use assembly:inline),
I found the followings files in target/sample-1.0-SNAPSHOT-binary.dir:
bin/start.sh
lib/commons-logging-1.1.jar
lib/commons-lang-2.1.jar
[... some more other commonly used jar ...]


However, the sample-1.0-SNAPSHOT.jar is not appear in the directory.

How can I managed the sample-1.0-SNAPSHOT.jar appear in the directory?

== the following is my descriptor ==
assembly
idbinary/id
formats
formatzip/format
/formats
baseDirectory${artifactId}-${version}/baseDirectory
includeBaseDirectorytrue/includeBaseDirectory

fileSets
fileSet
directorysrc/main/script/directory
filteredfalse/filtered
lineEndingkeep/lineEnding
outputDirectoryscripts/outputDirectory
useStrictFilteringfalse/useStrictFiltering
useDefaultExcludestrue/useDefaultExcludes
fileMode0555/fileMode
directoryMode0755/directoryMode
/fileSet
/fileSets

dependencySets
dependencySet
outputDirectorylib/outputDirectory
/dependencySet
/dependencySets

/assembly


Thanks!!

Zarick Lau



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



---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john





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



Hibernate and resources

2007-08-16 Thread Mathias P.W Nilsson

Ahhh I'm tearing hair out. I've set up maven, mysql, c3p0 and hibernate. 
Actually I want to use spring but I don't know how. Anyway when I test the
application the testcase can't find hibernate.cfg.xml?

I've read that all files,images should be in the src/main/java/resources.
But for me to get it to work I have to put the hibernate.cfg.xml in
src/main/java. 

Can anyone help me with this?
-- 
View this message in context: 
http://www.nabble.com/Hibernate-and-resources-tf4280221s177.html#a12183032
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: Why does Maven2 by default generate Java 1.1 byte code?

2007-08-16 Thread Wayne Fay
I haven't performed a complete, in-depth historical analysis of every
thread involving compiler defaults to find all the discussions of this
issue, but here are 2 email threads you can refer to...

from   David Smith 
to   users@maven.apache.org
date  May 4, 2007 9:46 AM
subject  Maven 2.0.6 using JDK 1.3
(specifically, my email to paul g)

from   Brett Porter 
to   [EMAIL PROTECTED]
date  Jul 6, 2006 8:36 PM
subject  [discuss] Java 5
(a lengthy discussion on moving Maven2 to Jdk5 -- note this is the dev list)

When considering the compiler defaults should be my current JDK
version issue, there are a lot of other things to consider. Please
read my response to Paul in particular and think about all the issues
before simply assuming Maven should work the way you expected.

Wayne

On 8/16/07, Gisbert Amm [EMAIL PROTECTED] wrote:
 Wayne Fay wrote:
  This has been discussed several times on this list.

 Sorry, I haven't found these discussions, neihter by searching for
 compiler defaults nor by searching for byte code [version]

  IMO, the default compilation target being 1.1 (or another hard-defined
  version) meets the rule of least surprise. You can argue that you
  don't like 1.1 and you'd prefer 1.3 or even 1.5 but that is another
  discussion.
 
  In contrast, the rule of most surprise would be my build changes when
  I change my JDK or my build changes when I build things on different
  machines. This is the absolute worst thing you can run into when
  trying to standardize and control your build process.

 I disagree on that. For me it is not surprising at all that my build
 changes when I use a different compiler. At the contrary, under certain
 cirumstances I'd expect this and would be surprised if the build (or the
 result) would not change.
 When the build produces the same results in different environments, this
 can lead to hard-to-find problems later on. I still think it would be
 better if the Maven compiler would produce byte code matching the
 version of the JDK Maven is running with. That's what I expect when I do
 a javac call and I don't see why Maven should silently change this
 behaviour.
 While this is not such a big issue (any JVM equal to or greater than 1.1
 can indeed exectute JVM 1.1 byte code and the cases where real problems
 occur might be rare) the source=1.3 default really surprises the user.
 When I create a new project and build it on Maven with a 1.5 JDK
 expecting Java 5 features to work, I get error messages like generics
 are not supported in -source 1.3 and do not know where that comes from.
 At least that is not very user friendly and I suppose Maven wants to be
 user friendly and easy to use.

  If you want to target a specific JDK, then simply add the compiler
  configuration in your poms. If you feel this has not been documented
  sufficiently,

 I did not say that *this* is not documented sufficiently, I did say that
 the defaults aren't documented at all.

  then post a RFE in Jira and someone will add some text
  to the proper page(s) on the site.

 Done. http://jira.codehaus.org/browse/MCOMPILER-57

 --
 Gisbert Amm
 Softwareentwickler Infrastruktur

 WEB.DE GmbH
 Brauerstraße 48 · D-76135 Karlsruhe
 Tel. +49-721-91374-4224 · Fax +49-721-91374-2740
 [EMAIL PROTECTED] · http://www.web.de/

 -
 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: Remote respository

2007-08-16 Thread Mathias P.W Nilsson

Thank you all!

But if maven should upload to respository I need login because the jars is
just for internal projects not for external. And I need to reach the remote
respository from home.


-- 
View this message in context: 
http://www.nabble.com/Remote-respository-tf4273892s177.html#a12183034
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: Hibernate and resources

2007-08-16 Thread Wayne Fay
Not s/m/j/resources, simply src/main/resources. Try that and see if it works.

And if this is simply for testing, put your file in src/test/resources.

Wayne

On 8/16/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:

 Ahhh I'm tearing hair out. I've set up maven, mysql, c3p0 and hibernate.
 Actually I want to use spring but I don't know how. Anyway when I test the
 application the testcase can't find hibernate.cfg.xml?

 I've read that all files,images should be in the src/main/java/resources.
 But for me to get it to work I have to put the hibernate.cfg.xml in
 src/main/java.

 Can anyone help me with this?
 --
 View this message in context: 
 http://www.nabble.com/Hibernate-and-resources-tf4280221s177.html#a12183032
 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: spaces in java.library.path in pom.xml

2007-08-16 Thread Wayne Fay
Perhaps not ideal, but one possible work-around is to use the MS-DOS
command subst to create a new virtual drive M:\ which is actually
c:\program files\your\app\.

Then the path is simply M:\lib which has no spaces.

Wayne

On 8/16/07, bgik [EMAIL PROTECTED] wrote:

 Hi All
 Although this must be a common problem I can't find a satisfactory answer
 anywhere.

 I am looking to run junits using the surefire plug in. These junits rely on
 a dll so I am supplying the location of this dll in my pom.xml as follows

 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 version2.3/version
 configuration
 forkModepertest/forkMode
 trimStackTracefalse/trimStackTrace

 argLine-Djava.library.path=${java.library.path}/argLine
 /configuration
 /plugin

 This is fine until the location of the dll is in a directory with spaces eg
 'C:\Program Files'. I can't do any form of hard coding because different
 users have their dll's in different locations.

 I have read many things online about surrounding the java.library.path with
 quotes etc, but what exactly should my pom.xml look to overcome this
 problem?

 Or is there a way of doing this without referencing  java.library.path in
 pom.xml?

 Any suggestions must appreciated

 many thanks
 Bruce
 --
 View this message in context: 
 http://www.nabble.com/spaces-in-java.library.path-in-pom.xml-tf4278975s177.html#a12179311
 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: Can you have Maven create a jar and a war for an artifact

2007-08-16 Thread John Casey
Sure. The problem you're going to have with this is, both jar:jar and  
war:war (if that's the right mojo name) will set the main project  
artifact to their respective output...leaving you with the question  
Which one will be installed in the local repository and the more  
important question Which one will get RELEASED?


To me, this is a question of decomposition. You have common code used  
by two projects, so factor it out into a separate project. The fact  
that one of the projects only decorates this common code with as-yet- 
uncompiled JSP or similar doesn't change that fact.


Just my $0.02.

-john

On Aug 16, 2007, at 10:27 AM, Mel Riffe wrote:


Hi David,

I think the Maven Way suggests you have a project for the Jar and a
project for the War.

However, executing 'jar:jar' within the project should produce the  
desired

results.

HTH
Mel

On 8/16/07, David Williams [EMAIL PROTECTED] wrote:


Hi Eveyone,

We currently create a war file for a certain artifact.  Now  
another group
has created an application that requires the first artifact to be  
a jar

not
a war.  Is there any way to have maven create both a jar and a war  
for a

single artifact?

Thanks,

David



---
John Casey
Committer and PMC Member, Apache Maven
mail: jdcasey at commonjava dot org
blog: http://www.ejlife.net/blogs/john




Re: Hibernate and resources

2007-08-16 Thread Mathias P.W Nilsson

Yes! I did that and it worked! Thanks :)
-- 
View this message in context: 
http://www.nabble.com/Hibernate-and-resources-tf4280221s177.html#a12183535
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: manifest classpath

2007-08-16 Thread Wayne Fay
Are you asking about a Maven2 pom configuration entry, or the actual
Class-Path line in your MANIFEST.MF file generated by Maven?

If you're asking about Maven, please file a RFE in JIRA and someone
will take a look at your issue. I'd suggest filing under MJAR:
http://jira.codehaus.org/browse/MJAR

If you're asking about the MANIFEST.MF file itself, you are welcome to
take this up with Sun and/or the JCP. Until then, the Jar
specification requires that we continue to use the current formatting
of the classpath:
http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html

Wayne

On 8/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I've looked through the examples for this and it seems simple enough.
 However, I'd really like to have my classpath as a series of path elements
 for the sake of legibility and future maintnance, i.e.

 classpath
entrypath1/entry
entrypath2/entry
entrypath3/entry
 /classpath

 instead of

 manifest
classpathpath1 path2 path3/classpath
 /manifest

 It may not seem like much in the simple example given here, but here's a
 class path from one of our production jars:

 Class-Path: plugins/framework plugins/checkservices plugins/transferse
  rvices plugins/alerts plugins/pr plugins/pr/achapps plugins/pr/wireap
  ps wcmPrincipals-hotfix.jar wcmPrincipals.jar securityUtil-hotfix.jar
  securityUtil.jar wcmCache-hotfix.jar wcmCache.jar  lib/apache/jakart
  a-commons/commons-cli-1.0.jar lib/apache/jakarta-commons/commons-coll
  ections-3.1.jar lib/apache/jakarta-commons/commons-dbcp-1.2.1.jar lib
  /apache/jakarta-commons/commons-lang-2.1.jar lib/apache/jakarta-commo
  ns/commons-pool-1.2.jar lib/apache/jakarta-commons/commons-logging-1.
  0.4/commons-logging.jar lib/apache/JCS/jcs-1.2.6.8.jar lib/oswego.edu
  /util-concurrent-1.3.4.jar lib/jradius/jradius.jar lib/jradius/jradiu
  s-dictionary.jar lib/gnu/gnu-crypto.jar lib/httpclient/commons-codec-
  1.3.jar lib/httpclient/commons-httpclient-3.0.jar lib/emory.edu/backp
  ort-util-concurrent-2.2/backport-util-concurrent.jar lib/oracle/jdbc-
  10.2.0.1.0/ojdbc14.jar lib/oracle/jdbc-10.2.0.1.0/jdbc_rowset_tiger1.
  0.1mrel-ri/rowset.jar lib/jdom/jdom-1.0/jdom.jar lib/rsa/authapi.jar
  lib/apache/log4j/log4j-1.2.8.jar

 So I'm sure you can see why I'd like the former approach. Any ideas would
 be welcome.


 Thanks
 Robert Egan

 This email message and any attachments may contain confidential,
 proprietary or non-public information.  The information is intended solely
 for the designated recipient(s).  If an addressing or transmission error
 has misdirected this email, please notify the sender immediately and
 destroy this email.  Any review, dissemination, use or reliance upon this
 information by unintended recipients is prohibited.  Any opinions
 expressed in this email are those of the author personally.

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



Date and time processing

2007-08-16 Thread robert . egan
Does Maven or one of it's plugins support date/time stamping? In 
particular, I'd like to add the build date to my Manifests with something 
like

plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  configuration
archive
  manifestEntries
...
Build-Time${now}/Build-Time
...
  /manifestEntries
/archive
  /configuration
/plugin

Thanks
Robert Egan

This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.

Re: manifest classpath

2007-08-16 Thread robert . egan
The former, and thanks for the link. I'll bring the issue there (if it 
hasn't been raised already).


Robert Egan





Wayne Fay [EMAIL PROTECTED] 
16-Aug-2007 11:27 AM
Please respond to
Maven Users List users@maven.apache.org


To
Maven Users List users@maven.apache.org
cc

Subject
Re: manifest classpath






Are you asking about a Maven2 pom configuration entry, or the actual
Class-Path line in your MANIFEST.MF file generated by Maven?

If you're asking about Maven, please file a RFE in JIRA and someone
will take a look at your issue. I'd suggest filing under MJAR:
http://jira.codehaus.org/browse/MJAR

If you're asking about the MANIFEST.MF file itself, you are welcome to
take this up with Sun and/or the JCP. Until then, the Jar
specification requires that we continue to use the current formatting
of the classpath:
http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html

Wayne

On 8/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 I've looked through the examples for this and it seems simple enough.
 However, I'd really like to have my classpath as a series of path 
elements
 for the sake of legibility and future maintnance, i.e.

 classpath
entrypath1/entry
entrypath2/entry
entrypath3/entry
 /classpath

 instead of

 manifest
classpathpath1 path2 path3/classpath
 /manifest

 It may not seem like much in the simple example given here, but here's a
 class path from one of our production jars:

 Class-Path: plugins/framework plugins/checkservices plugins/transferse
  rvices plugins/alerts plugins/pr plugins/pr/achapps plugins/pr/wireap
  ps wcmPrincipals-hotfix.jar wcmPrincipals.jar securityUtil-hotfix.jar
  securityUtil.jar wcmCache-hotfix.jar wcmCache.jar  lib/apache/jakart
  a-commons/commons-cli-1.0.jar lib/apache/jakarta-commons/commons-coll
  ections-3.1.jar lib/apache/jakarta-commons/commons-dbcp-1.2.1.jar lib
  /apache/jakarta-commons/commons-lang-2.1.jar lib/apache/jakarta-commo
  ns/commons-pool-1.2.jar lib/apache/jakarta-commons/commons-logging-1.
  0.4/commons-logging.jar lib/apache/JCS/jcs-1.2.6.8.jar lib/oswego.edu
  /util-concurrent-1.3.4.jar lib/jradius/jradius.jar lib/jradius/jradiu
  s-dictionary.jar lib/gnu/gnu-crypto.jar lib/httpclient/commons-codec-
  1.3.jar lib/httpclient/commons-httpclient-3.0.jar lib/emory.edu/backp
  ort-util-concurrent-2.2/backport-util-concurrent.jar lib/oracle/jdbc-
  10.2.0.1.0/ojdbc14.jar lib/oracle/jdbc-10.2.0.1.0/jdbc_rowset_tiger1.
  0.1mrel-ri/rowset.jar lib/jdom/jdom-1.0/jdom.jar lib/rsa/authapi.jar
  lib/apache/log4j/log4j-1.2.8.jar

 So I'm sure you can see why I'd like the former approach. Any ideas 
would
 be welcome.


 Thanks
 Robert Egan

 This email message and any attachments may contain confidential,
 proprietary or non-public information.  The information is intended 
solely
 for the designated recipient(s).  If an addressing or transmission error
 has misdirected this email, please notify the sender immediately and
 destroy this email.  Any review, dissemination, use or reliance upon 
this
 information by unintended recipients is prohibited.  Any opinions
 expressed in this email are those of the author personally.

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




Re: Invoke a plug-in/goal configured in a pom.xml from cmd line

2007-08-16 Thread Steven Rowe
Hi Farhan,

I don't know how to do exactly what you want, but you can do something
close with a profile.

If you put the antrun execution (or any other execution) in a profile
with no explicit activation spec, and bind it to a really early phase
(say, the initialize phase), then you can invoke it from the command
line like this:

   mvn -P profile-id initialize

Steve

Farhan Sarwar wrote:
 Hi All,
 
 
 
 Is there a way I can invoke a plug-in/goal (not linked with any phase)
 configured in a project's pom.xml (within an execution tag) from the command
 line directly, also the idea is to invoke the goal irrespective of the maven
 build cycle.
 
 
 
 To be more precise let's say if I have a maven-ant-run: run (plug-in:goal)
 configured (as below) with 2 executions (i.e. execution1 associated with
 validate phase and execution2 not linked to any phase) how can I invoke the
 configuration as configured in id=execution2 from command line directly e.g.
 something like mvn antrun:run execution2 so that it gets executed
 independent of maven phase(s)/build-cycle.
 
 
 
 build
 
   plugins
 
 plugin
 
   artifactIdmaven-antrun-plugin/artifactId
 
   executions
 
 execution
 
   idexecution1/id
 
   phasevalidate/phase
 
   configuration
 
 tasks
 
   delete file=lib/test1.txt/
 
 /tasks
 
   /configuration
 
   goals
 
 goalrun/goal
 
   /goals
 
 /execution
 
 execution
 
   idexecution2/id
 
   configuration
 
 tasks
 
   delete file=lib/test2.txt/
 
 /tasks
 
   /configuration
 
   goals
 
 goalrun/goal
 
   /goals
 
 /execution
 
   /executions
 
 /plugin
 
   /plugins
 
 /build
 
 
 
 Thanks and Regards,
 
 
 
 Farhan.
 


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



Strange Behaviors in Continuum 1.1-betas as windows service

2007-08-16 Thread Dan Tran
Hello,
I am seeing some strange behaviors in alpha, beta-1, and beta-2 (
still instaging area), that I hope someone can explain and/or confirm.

  - Unable to sync the project source when Continuum runs under NT
service with a known admin user id.

the build log shows
Provider message: The svn command failed.
Command output:

---
'svn' is not recognized as an internal or external command,
operable program or batch file.

---

here is log/continuum.log fragment

89674 [pool-1-thread-1] INFO
org.apache.maven.scm.manager.ScmManager:default  - Executing: cmd.exe
/X /C 'svn --non-interactive update'
89674 [pool-1-thread-1] INFO
org.apache.maven.scm.manager.ScmManager:default  - Working directory:
C:\dev\continuum\working-directory\1.1\1
89736 [pool-1-thread-1] WARN
org.apache.maven.continuum.scm.ContinuumScm:default  - Error while
updating the code for project: 'Sentinel', id: '1' to
'C:\dev\continuum\working-directory\1.1\1'.
89736 [pool-1-thread-1] WARN
org.apache.maven.continuum.scm.ContinuumScm:default  - Command output:
'svn' is not recognized as an internal or external command,
operable program or batch file.


  However, there is no build problem when starting Continuum from
commandline ( with the same login account)

  the SVN.exe definitely is in the SYSTEM path

 - There is no build problem when use with local SYSTEM account. The
local repo ends up at c:\.m2\repository. This is not a viable
workaround since my InstallAnywhere Installer requires a valid account
due to licensing.


Any suggestion is greatly appreciated.

-D


Re: More than one test source directory

2007-08-16 Thread Steven Rowe
Hi Vihung,

What you want is build-helper-maven-plugin:add-test-source

http://mojo.codehaus.org/build-helper-maven-plugin/

Steve

Vihung Marathe wrote:
 Am I missing something, or is it not possible to specify more then one
 directory as a test source directory?
 
 I am working with an existing project that has two separate
 directories for tests - one for unit tests and one for integration
 tests
 
 -- Vihung
 _
 
 This e-mail may contain confidential information and/or copyright material. 
 This e-mail is intended for the use of the addressee only. Any unauthorised 
 use may be unlawful.
 
 If you receive this e-mail by mistake please advise the sender immediately by 
 using the reply facility in your e-mail software.
 
 The Friends Provident group of companies includes these Friends Provident plc 
 subsidiary companies:
 
 Friends Provident Life and Pensions Limited. Registered number 4096141.
 Friends Provident Life Assurance Limited. Registered number 782698.
 Friends Provident Pensions Limited. Registered number 475201.
 Friends Provident Marketing Limited. Registered number 5059179.
 
 Each of the above subsidiary companies is authorised and regulated by the 
 Financial Services Authority.
 
 Friends Provident Management Services Limited. Registered number 983330
 
 The ultimate holding company is Friends Provident plc. Registered number 
 4113107.
 
 All are incorporated companies limited by shares and registered in England.
 Registered and Head Office: Pixham End, Dorking, Surrey RH4 1QA.
 
 www.friendsprovident.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]



Can the Maven Assembly Plugin create an exe file

2007-08-16 Thread David Williams
Can the Maven Assembly Plugin create an exe file?

Thanks,

David


hibernate3-maven-plugin not running

2007-08-16 Thread Mathias P.W Nilsson

I try to get a db schema out of maven. Here is my configuration

build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version2.0-alpha-2/version
configuration
components
component
namehbm2ddl/name

implementationannotationconfiguration/implementation

/component
component
namehbm2hbmxml/name

outputDirectorysrc/main/resources/outputDirectory

/component
/components
componentProperties
droptrue/drop
createtrue/create

configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile

outputfilenameschema.sql/outputfilename
/componentProperties
/configuration
/plugin
/plugins
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources
  /build

this does not produce any result? When does this run and how can I run the
plugin?
-- 
View this message in context: 
http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12183982
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: Buildnumber plugin and svn

2007-08-16 Thread Julian Wood
If you run maven with the -X flag, you can see the commands that the  
buildnumber plugin creates.


For example when doCheck=false and doUpdate=true, the buildnumber  
plugin executes


svn --non-interactive update

So you should login to your server and try the same command from the  
appropriate directory to see if you can reproduce the problem.


You can work around it by configuring buildnumber doUpdate=false

HTH,

J

On 14-Aug-07, at 7:49 AM, DCVer wrote:



I use the maven buildnumber plugin and it works fine on my local  
pc. But on
the Continuum server (checked out from the same svn repository) i  
receive an

error (in fact Continuum/Maven2 generates it):

[INFO] [buildnumber:create {execution: default}]
Provider message:
The svn command failed.
Command output:
Subcommand 'info' doesn't accept option '--non-interactive'
Type 'svn help info' for usage.

I deleted --batch-mode from Continuum arguments (which means non- 
interactive
I believe), but received the same error message. I've read about  
similar
problems and it may look like the svn version is too old on the  
Continuum
server (there is 1.4.4 from April 2005 and on my local pc I have  
version

1.4.4). Is it svn version problem?

Regards.
--
View this message in context: http://www.nabble.com/Buildnumber- 
plugin-and-svn-tf4267375s177.html#a12144761

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


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




--
Julian Wood
Web, E-Mail, and Middleware Services
University of Calgary Information Technologies,
2500 University Drive, Calgary, Alberta, Canada T2N 1N4
(403) 220-5868



Re: Date and time processing

2007-08-16 Thread Wayne Fay
This comes up pretty often, in fact, it has come up at least once a week lately.

Search the list archives for timestamp.

Wayne

On 8/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Does Maven or one of it's plugins support date/time stamping? In
 particular, I'd like to add the build date to my Manifests with something
 like

 plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-jar-plugin/artifactId
  configuration
archive
  manifestEntries
...
Build-Time${now}/Build-Time
...
  /manifestEntries
/archive
  /configuration
 /plugin

 Thanks
 Robert Egan

 This email message and any attachments may contain confidential,
 proprietary or non-public information.  The information is intended solely
 for the designated recipient(s).  If an addressing or transmission error
 has misdirected this email, please notify the sender immediately and
 destroy this email.  Any review, dissemination, use or reliance upon this
 information by unintended recipients is prohibited.  Any opinions
 expressed in this email are those of the author personally.

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



Re: hibernate3-maven-plugin not running

2007-08-16 Thread Wayne Fay
You didn't attach the plugin to any goals/phases, so it doesn't know
when to run. Fortunately, this is covered in the documentation:
http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/examples/phase_embedding.html

Wayne

On 8/16/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:

 I try to get a db schema out of maven. Here is my configuration

 build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version2.0-alpha-2/version
configuration
components
component
namehbm2ddl/name

 implementationannotationconfiguration/implementation

/component
component
namehbm2hbmxml/name

 outputDirectorysrc/main/resources/outputDirectory

/component
/components
componentProperties
droptrue/drop
createtrue/create

 configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile

 outputfilenameschema.sql/outputfilename
/componentProperties
/configuration
/plugin
/plugins
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources
  /build

 this does not produce any result? When does this run and how can I run the
 plugin?
 --
 View this message in context: 
 http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12183982
 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: Can the Maven Assembly Plugin create an exe file

2007-08-16 Thread Wayne Fay
I'm not certain, but the NMaven team might have something you'd find useful:
http://incubator.apache.org/nmaven/index.html

Wayne

On 8/16/07, David Williams [EMAIL PROTECTED] wrote:
 Can the Maven Assembly Plugin create an exe file?

 Thanks,

 David


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



Re: Can the Maven Assembly Plugin create an exe file

2007-08-16 Thread Mark Donszelmann

Or use the freehep-nar-plugin see:

http://java.freehep.org/freehep-nar-plugin

Regards
Mark

On Aug 16, 2007, at 9:43 AM, Wayne Fay wrote:

I'm not certain, but the NMaven team might have something you'd  
find useful:

http://incubator.apache.org/nmaven/index.html

Wayne

On 8/16/07, David Williams [EMAIL PROTECTED] wrote:

Can the Maven Assembly Plugin create an exe file?

Thanks,

David



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



[m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly

2007-08-16 Thread Mick Knutson
I want to filter the resources that I am adding to my assembly, but I get a
read-only parameter error.

plugin
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-1/version
configuration
  filters

filtersrc/main/filters/filter.properties/filter
/filters
descriptors
descriptorsrc/main/resources/assembly-
descriptor.xml/descriptor
/descriptors
/configuration
/plugin



error:
--

[DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for
project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
[DEBUG]
org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime(selected
for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.reporting:maven-reporting::2.0.4 for project:
null:maven-reporting-api:jar:2.0.4 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project:
org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository.
[DEBUG] 
org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime(selected
for runtime)
[DEBUG]   
org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected
for runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed - nearer
found: 2.0.4)
[DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected for
runtime)
[DEBUG]   org.apache.maven:maven-model:jar:2.0.4:runtime (removed -
nearer found: 2.0)
[DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed - nearer
found: 2.0.4)
[DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project:
null:maven-error-diagnostics:jar:2.0.4 from the repository.
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime(selected
for runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed -
nearer found: 2.0)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project:
org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository.
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected
for runtime)
[DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project:
null:wagon-ssh-external:jar:1.0-alpha-6 from the repository
.
[DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for
project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
[DEBUG]
org.apache.maven.wagon:wagon-ssh-external:jar:1.0-alpha-6:runtime (selected
for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.1)
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.4:runtime(selected
for runtime)
[DEBUG]
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime(selected
for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project:
org.apache.maven:maven-monitor:jar:2.0.4 from the repository.
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.4:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project:
null:wagon-ssh:jar:1.0-alpha-7 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for
project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
[DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-7:runtime(selected
for runtime)
[DEBUG]   com.jcraft:jsch:jar:0.1.24:runtime (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
nearer found: 1.1)
[DEBUG] classworlds:classworlds:jar:1.1:runtime (removed - nearer found:
1.1-alpha-2)
[DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (removed - nearer
found: 2.0.4)
[DEBUG]   org.apache.maven:maven-project:jar:2.0.4:runtime (selected for
runtime)
[DEBUG]
org.apache.maven.shared:maven-common-artifact-filters:jar:1.0-alpha-1:runtime(selected
for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.2:runtime (removed -
nearer found: 2.0.4)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Error configuring: org.apache.maven.plugins:maven-assembly-plugin.
Reason: ERROR: Cannot override read-only parameter: filters in goal:
assembly:ass
embly
[INFO]

[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring:
org.apache.maven.plugins:maven-assembly-plugin. Reason: ERROR: Cannot
override read-only parameter: filters in goal: 

Maven - selective inclusion of testcases in a package

2007-08-16 Thread Vaidya, Supriya A \(US - Chicago\)
Hi:
 
I have the following situation:
 
com/mycompany/mypackage/application/ has my class files, while
com/mycompany/testcases has my test cases (Cactus).
 
In creating the WAR file, I want to be able to exclude the testcases
package. I understand that I can use the warSourceExcludes tag for
this. However, the comma separated (or ; separated) list does not seem
to work. So for example, if I have:
 
warSourceExcludesWEB-INF/lib/*.jar,com/mycompany/testcases/*/warSourc
eExcludes
 
it does not work... but if I have each of the above statements
individually, it does. 
 
I notice that there are a few posts regarding the fact that comma
separated lists don't work - but this was reported way back in '05 and
'06, so was thinking that it should have been fixed by now... if not,
does anyone know of a workaround?
 
Also, and here's another point: How do I do this conditionally?!? For
example, in some bundles, I want to be able to include this testcases
directory, and in some - not. Can I do this based on a property value
(for example) and if this property is set to true, only then exclude the
testcases? 


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]


Performance issues with multiple continuum instances on single server

2007-08-16 Thread Eric Roberts
I am currently running 2 instances of continuum as windows services on a
single Windows 2003 server (running as a VMware virtual machine).  The
first instance was installed about 6 months ago and has run pretty well.
I just installed a second instance and have noticed a problem with its
performance and availability.  When a build is running on the first
instance, this generally causes the second instance to become
unresponsive almost every time (i.e. I get a 404 not found message when
I try to access it in my browser).  The service will eventually come
back on its own after a few minutes but If I look in the wrapper.log I
see messages like the following
 
ERROR  | wrapper  | 2007/08/09 09:27:50 | JVM appears hung: Timed out
waiting for signal from JVM.
ERROR  | wrapper  | 2007/08/09 09:27:50 | JVM did not exit on request,
terminated
STATUS | wrapper  | 2007/08/09 09:27:55 | Launching a JVM...
INFO   | jvm 5| 2007/08/09 09:27:57 | Wrapper (Version 3.1.2)
http://wrapper.tanukisoftware.org

Another issue that has been occurring on the second server is that
builds often run indefinitely.  It's almost as if the build process has
died somehow but continuum never noticed so the clock just keeps
ticking.  I am able to clean these builds up directly in the database
but I can't figure out why it keeps happening.  
 
A little background about the environment.  I have set up all projects
in both continuum instances as shell projects but the builds themselves
use Maven 2.  We were unable to get the Maven 2.0 project type to work
correctly and the shell project type worked so we went with it.  The
maven build is executing some python scripts which are used to process
and transform XML documentation using XSLT (a little convoluted I know
but I inherited it).  The transformation is done using the Java Saxon
library which tends to require a lot of memory and CPU.  I have a strong
hunch that both of my issues are somehow interrelated but am not sure
where to start.
 
Java 1.5.0_10
Maven 2.0.4
Python 2.4.1
Saxon 6.5.5
Windows 2003 server running as a VMWare virtual machine on Intel Xeon
3GHz CPU w/ 3.75G RAM
 
Any help or suggestions are greatly appreciated,
 
Eric


Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly

2007-08-16 Thread Wayne Fay
Apparently the filters parameter is readonly in the mojo:
https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java

The default value is ${project.build.filters} which means the assembly
plugin inherits its filters from the build section.

Wayne

On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
 I want to filter the resources that I am adding to my assembly, but I get a
 read-only parameter error.

plugin
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-1/version
configuration
  filters

 filtersrc/main/filters/filter.properties/filter
/filters
descriptors
descriptorsrc/main/resources/assembly-
 descriptor.xml/descriptor
/descriptors
/configuration
/plugin



 error:
 --

 [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for
 project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
 [DEBUG]
 org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime(selected
 for runtime)
 [DEBUG] Retrieving parent-POM:
 org.apache.maven.reporting:maven-reporting::2.0.4 for project:
 null:maven-reporting-api:jar:2.0.4 from the repository.
 [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project:
 org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the repository.
 [DEBUG] 
 org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime(selected
 for runtime)
 [DEBUG]   
 org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected
 for runtime)
 [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed - nearer
 found: 2.0.4)
 [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected for
 runtime)
 [DEBUG]   org.apache.maven:maven-model:jar:2.0.4:runtime (removed -
 nearer found: 2.0)
 [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed - nearer
 found: 2.0.4)
 [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected for
 runtime)
 [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project:
 null:maven-error-diagnostics:jar:2.0.4 from the repository.
 [DEBUG] 
 org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime(selected
 for runtime)
 [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed -
 nearer found: 2.0)
 [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project:
 org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository.
 [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected
 for runtime)
 [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for runtime)
 [DEBUG] Retrieving parent-POM:
 org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project:
 null:wagon-ssh-external:jar:1.0-alpha-6 from the repository
 .
 [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for
 project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
 [DEBUG]
 org.apache.maven.wagon:wagon-ssh-external:jar:1.0-alpha-6:runtime (selected
 for runtime)
 [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
 nearer found: 1.1)
 [DEBUG] 
 org.apache.maven:maven-plugin-descriptor:jar:2.0.4:runtime(selected
 for runtime)
 [DEBUG]
 org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime(selected
 for runtime)
 [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for project:
 org.apache.maven:maven-monitor:jar:2.0.4 from the repository.
 [DEBUG] org.apache.maven:maven-monitor:jar:2.0.4:runtime (selected for
 runtime)
 [DEBUG] Retrieving parent-POM:
 org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project:
 null:wagon-ssh:jar:1.0-alpha-7 from the repository.
 [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6 for
 project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
 [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-7:runtime(selected
 for runtime)
 [DEBUG]   com.jcraft:jsch:jar:0.1.24:runtime (selected for runtime)
 [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed -
 nearer found: 1.1)
 [DEBUG] classworlds:classworlds:jar:1.1:runtime (removed - nearer found:
 1.1-alpha-2)
 [DEBUG]   org.apache.maven:maven-project:jar:2.0:runtime (removed - nearer
 found: 2.0.4)
 [DEBUG]   org.apache.maven:maven-project:jar:2.0.4:runtime (selected for
 runtime)
 [DEBUG]
 org.apache.maven.shared:maven-common-artifact-filters:jar:1.0-alpha-1:runtime(selected
 for runtime)
 [DEBUG] org.apache.maven:maven-artifact:jar:2.0.2:runtime (removed -
 nearer found: 2.0.4)
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 

Re: hibernate3-maven-plugin not running

2007-08-16 Thread Wayne Fay
Try mvn hibernate3:hbm2ddl compile.

Wayne

On 8/16/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:

 That didn't work.

 I sat an execution and a goal but it didn't work.
 --
 View this message in context: 
 http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12185558
 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]



Maven Assembly Plugin Error

2007-08-16 Thread David Williams
I've create a basic descriptor for the maven assembly plugin.  Which works
fine if I don't try to filter dependencies.  However when I try to add some
include lines, I get the following error.

[WARNING] The following patterns were never triggered in this artifact
inclusion filter:
o  'commons-beanutils-1.7.0.jar'
o  'commons-collections-3.1.jar'
o  'commons-lang-2.0.jar'
o  'commons-logging-1.0.4.jar'

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to create assembly: Error creating assembly archive: You must
set at least one file.

Here is my descriptor file.

assembly
idzip/id
formats
formatzip/format
/formats
baseDirectoryAdminDesktop/baseDirectory
dependencySets
dependencySet
outputDirectorylib/outputDirectory
includes
includecommons-beanutils-1.7.0.jar/include
includecommons-collections-3.1.jar/include
includecommons-lang-2.0.jar/include
includecommons-logging-1.0.4.jar/include
/includes
/dependencySet
/dependencySets
/assembly

Thanks,

David


Re: Maven Assembly Plugin Error

2007-08-16 Thread David Williams
I guess what I really want to do is filter out certain dependencies.

Thanks Again,

David

On 8/16/07, David Williams [EMAIL PROTECTED] wrote:

 I've create a basic descriptor for the maven assembly plugin.  Which works
 fine if I don't try to filter dependencies.  However when I try to add some
 include lines, I get the following error.

 [WARNING] The following patterns were never triggered in this artifact
 inclusion filter:
 o  'commons-beanutils-1.7.0.jar'
 o  'commons-collections-3.1.jar'
 o  'commons-lang-2.0.jar'
 o  'commons-logging-1.0.4.jar'

 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to create assembly: Error creating assembly archive: You
 must set at least one file.

 Here is my descriptor file.

 assembly
 idzip/id
 formats
 formatzip/format
 /formats
 baseDirectoryAdminDesktop/baseDirectory
 dependencySets
 dependencySet
 outputDirectorylib/outputDirectory
 includes
 includecommons-beanutils-1.7.0.jar/include
 include commons-collections-3.1.jar/include
 includecommons-lang-2.0.jar/include
 includecommons-logging-1.0.4.jar/include
 /includes
 /dependencySet
 /dependencySets
 /assembly

 Thanks,

 David



Re: hibernate3-maven-plugin not running

2007-08-16 Thread Mathias P.W Nilsson

That didn't work. 

I sat an execution and a goal but it didn't work.
-- 
View this message in context: 
http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12185558
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: Auto incrementing a build identifier

2007-08-16 Thread Julian Wood

Hi,

I'm the author of the maven-buildnumber-plugin and have a few questions.

On 5-Aug-07, at 4:42 AM, Antony Stubbs wrote:



The problem with Mavin buildnumber plugin, is that it isn't synced  
with the

build number repository.


Can you clarify? I'm not sure what you mean at all. Do you mean you  
can't get the source code for the plugin, for the released versions?  
Or do you mean that the buildnumber isn't the same as the one in your  
own svn repo? Maybe you don't have doUpdate=true specified in your  
config (I can assure you will it grab the desired revision number if  
configured correctly).






Also you can use
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/  
plugin but

seems having it working requires a lot of manual work, due missing
versions on the repositories of the components listed in the
dependencies.


Again, can you specify which ones? I'm not aware of any. It should  
work exactly as it says in the docs, without any manual dependency  
work whatsoever. But if you let me know the problems, I can fix them.  
(There were some problems of this nature before it's first release,  
but that was in January).


Here is the correct URL, btw.

http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/index.html

Thanks and best,

J



--
Julian Wood
Web, E-Mail, and Middleware Services
University of Calgary Information Technologies,
2500 University Drive, Calgary, Alberta, Canada T2N 1N4
(403) 220-5868



Re: hibernate3-maven-plugin not running

2007-08-16 Thread Mathias P.W Nilsson

I got 

Failed to configure plugin parameters for:
org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2

here are the pom.xml


build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version2.0-alpha-2/version
configuration
components
executions
execution

phasegenerate-sources/phase
goals

goalhbm2ddl/goal
/goals
/execution
/executions
component
namehbm2ddl/name

implementationannotationconfiguration/implementation
/component
component
namehbm2hbmxml/name

outputDirectorysrc/main/resources/outputDirectory
/component
/components
componentProperties
droptrue/drop
createtrue/create

configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile

outputfilenameschema.sql/outputfilename
/componentProperties
/configuration
/plugin
/plugins
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources
  /build
...
-- 
View this message in context: 
http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12186181
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 Assembly Plugin Error

2007-08-16 Thread David Williams
Nevermind.  I figured it out.

On 8/16/07, David Williams [EMAIL PROTECTED] wrote:

 I guess what I really want to do is filter out certain dependencies.

 Thanks Again,

 David

 On 8/16/07, David Williams  [EMAIL PROTECTED] wrote:
 
  I've create a basic descriptor for the maven assembly plugin.  Which
  works fine if I don't try to filter dependencies.  However when I try to add
  some include lines, I get the following error.
 
  [WARNING] The following patterns were never triggered in this artifact
  inclusion filter:
  o  'commons-beanutils-1.7.0.jar'
  o  'commons-collections-3.1.jar'
  o  'commons-lang-2.0.jar'
  o  'commons-logging-1.0.4.jar'
 
  [INFO]
  
  [ERROR] BUILD ERROR
  [INFO]
  
  [INFO] Failed to create assembly: Error creating assembly archive: You
  must set at least one file.
 
  Here is my descriptor file.
 
  assembly
  idzip/id
  formats
  formatzip/format
  /formats
  baseDirectoryAdminDesktop/baseDirectory
  dependencySets
  dependencySet
  outputDirectorylib/outputDirectory
  includes
  includecommons-beanutils-1.7.0.jar/include
  include commons-collections-3.1.jar/include
  includecommons-lang-2.0.jar/include
  includecommons-logging-1.0.4.jar/include
  /includes
  /dependencySet
  /dependencySets
  /assembly
 
  Thanks,
 
  David
 




annotations are not supported in -source 1.3

2007-08-16 Thread Mathias P.W Nilsson

I get this error message when I run mvn compile

annotations are not supported in -source 1.3
(try -source 1.5 to enable annotations)

How is that? When I check java -version I get

java version 1.5.0_07
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)

Why can't I compile? 
-- 
View this message in context: 
http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tf4281106s177.html#a12186205
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: hibernate3-maven-plugin not running

2007-08-16 Thread Wayne Fay
The executions node goes inside configuration and outside of components.

Wayne

On 8/16/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:

 I got

 Failed to configure plugin parameters for:
 org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2

 here are the pom.xml

 
 build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version2.0-alpha-2/version
configuration
components
executions
execution

 phasegenerate-sources/phase
goals

 goalhbm2ddl/goal
/goals
/execution
/executions
component
namehbm2ddl/name

 implementationannotationconfiguration/implementation
/component
component
namehbm2hbmxml/name

 outputDirectorysrc/main/resources/outputDirectory
/component
/components
componentProperties
droptrue/drop
createtrue/create

 configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile

 outputfilenameschema.sql/outputfilename
/componentProperties
/configuration
/plugin
/plugins
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources
  /build
 ...
 --
 View this message in context: 
 http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12186181
 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 Assembly Plugin Error

2007-08-16 Thread Mick Knutson
So post the fix

On 8/16/07, David Williams [EMAIL PROTECTED] wrote:

 Nevermind.  I figured it out.

 On 8/16/07, David Williams [EMAIL PROTECTED] wrote:
 
  I guess what I really want to do is filter out certain dependencies.
 
  Thanks Again,
 
  David
 
  On 8/16/07, David Williams  [EMAIL PROTECTED] wrote:
  
   I've create a basic descriptor for the maven assembly plugin.  Which
   works fine if I don't try to filter dependencies.  However when I try
 to add
   some include lines, I get the following error.
  
   [WARNING] The following patterns were never triggered in this artifact
   inclusion filter:
   o  'commons-beanutils-1.7.0.jar'
   o  'commons-collections-3.1.jar'
   o  'commons-lang-2.0.jar'
   o  'commons-logging-1.0.4.jar'
  
   [INFO]
  
 
   [ERROR] BUILD ERROR
   [INFO]
  
 
   [INFO] Failed to create assembly: Error creating assembly archive: You
   must set at least one file.
  
   Here is my descriptor file.
  
   assembly
   idzip/id
   formats
   formatzip/format
   /formats
   baseDirectoryAdminDesktop/baseDirectory
   dependencySets
   dependencySet
   outputDirectorylib/outputDirectory
   includes
   includecommons-beanutils-1.7.0.jar/include
   include commons-collections-3.1.jar/include
   includecommons-lang-2.0.jar/include
   includecommons-logging-1.0.4.jar/include
   /includes
   /dependencySet
   /dependencySets
   /assembly
  
   Thanks,
  
   David
  
 
 




-- 

Thanks,
Mick Knutson

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


Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly

2007-08-16 Thread Mick Knutson
OK, I have the following filter and resources attribultes in my master
pom.xml:


filters
filter${basedir}/src/main/filters/filter.properties/filter
/filters
resources
resource
directory${basedir}/src/main/resources/directory
filteringtrue/filtering
/resource
/resources
/build


Then the filter.properties has:

filter.application.name=DAP
filter.application.version=1.0.0.9





Then I have these 2 lines and nothing is filtered:



#java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin
oc4jadmin -deploy -file /tmp/bl/dap-${project.version}/logging-${
project.version}.ear -deploymentname LoggingService -bindAllWebApps

#java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home oc4jadmin
oc4jadmin -deploy -file /tmp/bl/dap-${filter.application.version}/logging-${
filter.application.version}.ear -deploymentname LoggingService
-bindAllWebApps








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

 Apparently the filters parameter is readonly in the mojo:

 https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java

 The default value is ${project.build.filters} which means the assembly
 plugin inherits its filters from the build section.

 Wayne

 On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
  I want to filter the resources that I am adding to my assembly, but I
 get a
  read-only parameter error.
 
 plugin
 artifactIdmaven-assembly-plugin/artifactId
 version2.2-beta-1/version
 configuration
   filters
 
  filtersrc/main/filters/filter.properties/filter
 /filters
 descriptors
 descriptorsrc/main/resources/assembly-
  descriptor.xml/descriptor
 /descriptors
 /configuration
 /plugin
 
 
 
  error:
  --
 
  [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6for
  project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
  [DEBUG]
  org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime
 (selected
  for runtime)
  [DEBUG] Retrieving parent-POM:
  org.apache.maven.reporting:maven-reporting::2.0.4 for project:
  null:maven-reporting-api:jar:2.0.4 from the repository.
  [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
 project:
  org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the
 repository.
  [DEBUG]
 org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime(selected
  for runtime)
  [DEBUG]
 org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected
  for runtime)
  [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed -
 nearer
  found: 2.0.4)
  [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected
 for
  runtime)
  [DEBUG]   org.apache.maven:maven-model:jar:2.0.4:runtime (removed -
  nearer found: 2.0)
  [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed -
 nearer
  found: 2.0.4)
  [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected for
  runtime)
  [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
 project:
  null:maven-error-diagnostics:jar:2.0.4 from the repository.
  [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime
 (selected
  for runtime)
  [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed -
  nearer found: 2.0)
  [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
 project:
  org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository.
  [DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime
 (selected
  for runtime)
  [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for
 runtime)
  [DEBUG] Retrieving parent-POM:
  org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project:
  null:wagon-ssh-external:jar:1.0-alpha-6 from the repository
  .
  [DEBUG] Retrieving parent-POM: org.apache.maven.wagon:wagon::1.0-alpha-6for
  project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
  [DEBUG]
  org.apache.maven.wagon:wagon-ssh-external:jar:1.0-alpha-6:runtime(selected
  for runtime)
  [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime(removed -
  nearer found: 1.1)
  [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.4:runtime
 (selected
  for runtime)
  [DEBUG]
  org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:runtime
 (selected
  for runtime)
  [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
 project:
  org.apache.maven:maven-monitor:jar:2.0.4 from the repository.
  [DEBUG] org.apache.maven:maven-monitor:jar:2.0.4:runtime (selected
 for
  runtime)
  [DEBUG] Retrieving parent-POM:
  

Re: hibernate3-maven-plugin not running

2007-08-16 Thread Mathias P.W Nilsson

Thanks for you pation but it still doesn't work

I get this for all my classes. I'm using annotations. Worked perfectly when
I was using ant.

org.hibernate.MappingException: Unable to load class declared as mapping
class=se.digitalsupport.ftc.dto.Customer/ in the configuration:
at
org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:545)


-- 
View this message in context: 
http://www.nabble.com/hibernate3-maven-plugin-not-running-tf4280489s177.html#a12186381
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: annotations are not supported in -source 1.3

2007-08-16 Thread Wayne Fay
Google.com maven compile source target

Wayne

On 8/16/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:

 I get this error message when I run mvn compile

 annotations are not supported in -source 1.3
 (try -source 1.5 to enable annotations)

 How is that? When I check java -version I get

 java version 1.5.0_07
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
 Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)

 Why can't I compile?
 --
 View this message in context: 
 http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tf4281106s177.html#a12186205
 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: annotations are not supported in -source 1.3

2007-08-16 Thread Mathias P.W Nilsson

Yes thanks I read it in a thread on this forum.

I do't get this maven thing. My respository is full of hibernate all all
that need to be there. When I compile

package javax.persistence does not exist and every other package as well
I see the javax.presistence in my M2_REPO variable in eclipse and can expand
it but not compile. Life where easier with ant :,(
-- 
View this message in context: 
http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tf4281106s177.html#a12186976
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: NullPointerException with mvn dependency:sources

2007-08-16 Thread Brian E. Fox
Can you write a jira and attach a pom to reproduce it? Also note which
version of maven you have, since the NPE is in the core.

-Original Message-
From: SamImari [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 16, 2007 4:06 AM
To: users@maven.apache.org
Subject: NullPointerException with mvn dependency:sources


Hello

I got a NPE when I use mvn dependency:sources to download all the
sources

Any hints?

Regards,

SAM

$ mvn -e -U dependency:sources
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] org.apache.maven.plugins: checking for updates from appfuse
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from appfuse
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-dependency-plugin:
checking
for updates from appfuse
[INFO] artifact org.apache.maven.plugins:maven-dependency-plugin:
checking
for updates from central
[INFO]


[INFO] Building AppFuse Struts 2 Application
[INFO]task-segment: [dependency:sources]
[INFO]


Downloading:
http://repo1.maven.org/maven2/org/codehaus/xfire/bcprov-jdk15/133/bcprov
-jdk15-133.pom
Downloading:
http://static.appfuse.org/repository/org/codehaus/xfire/bcprov-jdk15/133
/bcprov-jdk15-133.pom
Downloading:
http://repo1.maven.org/maven2/xml-security/xmlsec/1.3.0/xmlsec-1.3.0.pom
Downloading:
http://static.appfuse.org/repository/xml-security/xmlsec/1.3.0/xmlsec-1.
3.0.pom
Downloading:
http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://static.appfuse.org/repository/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom
Downloading:
http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom
Downloading:
http://static.appfuse.org/repository/xfire/saaj-impl/1.3/saaj-impl-1.3.p
om
[INFO] [dependency:sources]
Downloading:
http://repo1.maven.org/maven2/ant/ant/1.5/ant-1.5-sources.jar
Downloading:
http://static.appfuse.org/repository/ant/ant/1.5/ant-1.5-sources.jar
Downloading:
http://repo1.maven.org/maven2/asm/asm/1.5.3/asm-1.5.3-sources.jar
Downloading:
http://static.appfuse.org/repository/asm/asm/1.5.3/asm-1.5.3-sources.jar
Downloading:
http://repo1.maven.org/maven2/asm/asm-attrs/1.5.3/asm-attrs-1.5.3-source
s.jar
Downloading:
http://static.appfuse.org/repository/asm/asm-attrs/1.5.3/asm-attrs-1.5.3
-sources.jar
Downloading:
http://repo1.maven.org/maven2/aspectj/aspectjweaver/1.5.3/aspectjweaver-
1.5.3-sources.jar
Downloading:
http://static.appfuse.org/repository/aspectj/aspectjweaver/1.5.3/aspectj
weaver-1.5.3-sources.jar
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau
ltArtifactResolver.java:92)
at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(Defau
ltArtifactResolver.java:73)
at
org.apache.maven.plugin.dependency.utils.resolvers.DefaultArtifactsResol
ver.resolve(DefaultArtifactsResolver.java:81)
at
org.apache.maven.plugin.dependency.AbstractDependencyFilterMojo.getClass
ifierTranslatedDependencies(AbstractDependencyFilterMojo.java:308)
at
org.apache.maven.plugin.dependency.AbstractDependencyFilterMojo.getDepen
dencySets(AbstractDependencyFilterMojo.java:265)
at
org.apache.maven.plugin.dependency.resolvers.ResolveDependencySourcesMoj
o.execute(ResolveDependencySourcesMojo.java:69)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:143)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

RE: expand war deps

2007-08-16 Thread Brian E. Fox
Hi John, 

I see two issues below. The first is that the includes/excludes is only 
available in 2.0-alpha-5-SNAPSHOT. The second is more to your question. You can 
skip specifying a version in the artifactItems if you put that dependency 
version in your dependencyManagement section. Then you can also omit it in your 
dependencies declaration and have only one place to control the version.

--Brian

-Original Message-
From: John Coleman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 16, 2007 8:09 AM
To: Maven Users List
Subject: RE: expand war deps

Hi Stephane,

I grafted an example off the dependency plugin site, but it didn't go too well 
as you can see below! I just want to unpack that JAR instead of add it to lib 
directory.

Any ideas what is wrong? I'm a bit concerned that I have both a declared 
dependency at the top of my pom and then this plugin configuration - could that 
lead to version conflicts, will the plugin config default to the previously 
declared version?

TIA
John



plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-dependency-plugin/artifactId
executions
execution
idunpack/id
phasepackage/phase
goals
goalunpack/goal
/goals
configuration
artifactItems
artifactItem
groupIdcom.eurobase/groupId
artifactIdcommon-wac/artifactId
!--version1.3-SNAPSHOT/version--
typejar/type
overWritefalse/overWrite

outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory
includes**/*.class,**/*.xml/includes
excludes**/*test.class/excludes
/artifactItem
/artifactItems
includes**/*.java/includes
excludes**/*.properties/excludes

outputDirectory${project.build.directory}/wars/outputDirectory
overWriteReleasesfalse/overWriteReleases
overWriteSnapshotstrue/overWriteSnapshots
/configuration
/execution
/executions
/plugin

[INFO]Failed to configure plugin parameters for: 
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4



Cause: Cannot find setter nor field in 
org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem for 'includes'
[INFO]
[DEBUG]Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: 
org.apache.maven.plugins:maven-dependency-plugin. Reason: Unable to parse the 
created DOM for plugin configuration

at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:639)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:551)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:530)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:309)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:276)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:760)
at 
org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:257)
at 
org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)



-Original Message-
From: Stephane Nicoll [mailto:[EMAIL PROTECTED] 
Sent: 15 August 2007 19:26
To: Maven Users List
Subject: Re: expand war deps

Hi,

Yep you'll need to setup resources:unpack in the generate-resources
phase. Next version of the WAR plugin has a new overlay handling but
we do not consider handling jars for the moment.

Regards,
Stéphane

On 8/15/07, John Coleman [EMAIL PROTECTED] wrote:
 Hi,



 I have a WAR project that depends on a JAR.



 Can I expand the contents of the JAR dependency into my webapps classes
 directory automatically with a setting, or do I have to do something
 more manual like setting up a dependency:unpack? Anyone got an example
 pls.



 TIA


Building MDB's with Maven

2007-08-16 Thread Mark Eramo

Hello,
 I have a question. A few of the jars I currently build with Any also 
produce mdb's (message driven beans). I did not see a plugin for this 
but was wondering

if anyone has accomplished this with Maven.

If not, I might just end up calling an Ant script from the Maven build 
to do it.


Thanks,
Mark



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



Re: Building MDB's with Maven

2007-08-16 Thread Alexander Sack
What are you trying to do?  MDBs are just Java files that get jared up.  You
need to be more specific.

-aps

On 8/16/07, Mark Eramo [EMAIL PROTECTED] wrote:

 Hello,
   I have a question. A few of the jars I currently build with Any also
 produce mdb's (message driven beans). I did not see a plugin for this
 but was wondering
 if anyone has accomplished this with Maven.

 If not, I might just end up calling an Ant script from the Maven build
 to do it.

 Thanks,
 Mark



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




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


Re: Building MDB's with Maven

2007-08-16 Thread Mick Knutson
it is an ejb project..



groupIdorg.delta.esp.dap.c2.business-services/groupId
version1.0.0.0/version
artifactIdTransformXEServerToC2-mdb/artifactId
packagingejb/packaging





On 8/16/07, Mark Eramo [EMAIL PROTECTED] wrote:

 Hello,
   I have a question. A few of the jars I currently build with Any also
 produce mdb's (message driven beans). I did not see a plugin for this
 but was wondering
 if anyone has accomplished this with Maven.

 If not, I might just end up calling an Ant script from the Maven build
 to do it.

 Thanks,
 Mark



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




-- 

Thanks,
Mick Knutson

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


Re: annotations are not supported in -source 1.3

2007-08-16 Thread Wayne Fay
Simply having the files in your repo is not sufficient. You must add
dependencies in your pom for each artifact that your project
requires at compile, test, or runtime.

I highly recommend you read one of the free pdf/ebooks on Maven -- one
is from www.devzuz.com and another is from www.sonatype.com.

Wayne

On 8/16/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:

 Yes thanks I read it in a thread on this forum.

 I do't get this maven thing. My respository is full of hibernate all all
 that need to be there. When I compile

 package javax.persistence does not exist and every other package as well
 I see the javax.presistence in my M2_REPO variable in eclipse and can expand
 it but not compile. Life where easier with ant :,(
 --
 View this message in context: 
 http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tf4281106s177.html#a12186976
 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: Building MDB's with Maven

2007-08-16 Thread Alan D. Salewski
On Thu, Aug 16, 2007 at 03:05:56PM -0400, Mark Eramo spake thus:
 Hello,
  I have a question. A few of the jars I currently build with Any also 
 produce mdb's (message driven beans). I did not see a plugin for this 
 but was wondering
 if anyone has accomplished this with Maven.[...]

We use the maven-ejb-plugin for this. Here's an example snippet for an
MDB subproject's pom.xml:
...
build
  ...
  plugins
...
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-ejb-plugin/artifactId
  configuration
ejbVersion2.1/ejbVersion
generateClientfalse/generateClient
archive
  manifest
addClasspathtrue/addClasspath
classpathPrefixlib//classpathPrefix
  /manifest
/archive
  /configuration
/plugin
...
  /plugins
/build
...

For more info, check out the site for the maven-ejb-plugin:

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

HTH,
-Al

-- 
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
::
Alan D. Salewski
Software Developer
Health Market Science, Inc.
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
:: 

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



Re: annotations are not supported in -source 1.3

2007-08-16 Thread Mathias P.W Nilsson

But I have? I've posted my pom and hibernate is in the dependency!
-- 
View this message in context: 
http://www.nabble.com/annotations-are-not-supported-in--source-1.3-tf4281106s177.html#a12187764
Sent from the Maven - Users mailing list archive at Nabble.com.


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



[m2] Can I add a jar, inside a Jar in Maven?

2007-08-16 Thread Mick Knutson
I have a jar dependency I need to include inside my module jar I am
creating. Can I accomplish this?

-- 

Thanks,
Mick Knutson

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


Can't compile

2007-08-16 Thread Mathias P.W Nilsson

Ok this is very strange. I can't use mvn compile. I've tried it all. Delete
all files in respository and try again.

I then tried the mvn -e compile:compile and got the following error

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

When I look in my respository the folder only contains a xml. I tried to
download the maven-compile-plugin but i doesn't exist. It's only the
maven-compiler-plugin notice the COMPILER and not COMPILE

why is compile used? Why is it trying to download compile when I have sat
compiler. Look at this POM file

I'm near crying here.

project xmlns=http://maven.apache.org/POM/4.0.0;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdse.digitalsupport.ftc/groupId
  artifactIdFTC/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  nameFTC/name
  urlhttp://maven.apache.org/url
  dependencies

dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scoperuntime/scope
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate/artifactId
  version3.2.5.ga/version
  scoperuntime/scope
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-annotations/artifactId
  version3.3.0.ga/version
  scoperuntime/scope
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-entitymanager/artifactId
  version3.3.1.ga/version
  scoperuntime/scope
/dependency
  dependency
  groupIdjboss/groupId
  artifactIdjboss-common-core/artifactId
  version2.2.0.GA/version
  scoperuntime/scope
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-commons-annotations/artifactId
  version3.3.0.ga/version
  scoperuntime/scope
/dependency
   dependency
  groupIdmysql/groupId
  artifactIdmysql-connector-java/artifactId
  version5.0.5/version
  scoperuntime/scope
/dependency
 
dependency
  groupIdc3p0/groupId
  artifactIdc3p0/artifactId
  version0.9.0/version
  scoperuntime/scope
/dependency
  /dependencies
  build
  pluginManagement
plugins
  plugin 
groupIdorg.apache.maven.plugins/groupId 
artifactIdmaven-compiler-plugin/artifactId 
configuration 
source1.5/source 
target1.5/target 
/configuration 
/plugin 
plugin

groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version2.0-alpha-2/version
configuration
executions
execution

phasegenerate-sources/phase
goals

goalhbm2ddl/goal
/goals
/execution
/executions
components

component
namehbm2ddl/name

implementationannotationconfiguration/implementation

/component
component
namehbm2hbmxml/name

outputDirectorysrc/main/resources/outputDirectory

/component
/components
componentProperties
droptrue/drop
createtrue/create

configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile

outputfilenameschema.sql/outputfilename
/componentProperties
/configuration
/plugin
/plugins
/pluginManagement
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering
/resource
/resources
  /build
  
/project

-- 
View this message in context: 

Re: Can't compile

2007-08-16 Thread Wayne Fay
Try mvn compile.

The name of the plugin is compiler. The method you're executing is
named compile. So the long way would be mvn compiler:compile.
Note the r in the first one. But mvn compile is a short-cut.

Wayne

On 8/16/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:

 Ok this is very strange. I can't use mvn compile. I've tried it all. Delete
 all files in respository and try again.

 I then tried the mvn -e compile:compile and got the following error

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

 When I look in my respository the folder only contains a xml. I tried to
 download the maven-compile-plugin but i doesn't exist. It's only the
 maven-compiler-plugin notice the COMPILER and not COMPILE

 why is compile used? Why is it trying to download compile when I have sat
 compiler. Look at this POM file

 I'm near crying here.

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
  groupIdse.digitalsupport.ftc/groupId
  artifactIdFTC/artifactId
  packagingjar/packaging
  version1.0-SNAPSHOT/version
  nameFTC/name
  urlhttp://maven.apache.org/url
  dependencies

dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scoperuntime/scope
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate/artifactId
  version3.2.5.ga/version
  scoperuntime/scope
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-annotations/artifactId
  version3.3.0.ga/version
  scoperuntime/scope
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-entitymanager/artifactId
  version3.3.1.ga/version
  scoperuntime/scope
/dependency
  dependency
  groupIdjboss/groupId
  artifactIdjboss-common-core/artifactId
  version2.2.0.GA/version
  scoperuntime/scope
/dependency
dependency
  groupIdorg.hibernate/groupId
  artifactIdhibernate-commons-annotations/artifactId
  version3.3.0.ga/version
  scoperuntime/scope
/dependency
   dependency
  groupIdmysql/groupId
  artifactIdmysql-connector-java/artifactId
  version5.0.5/version
  scoperuntime/scope
/dependency

dependency
  groupIdc3p0/groupId
  artifactIdc3p0/artifactId
  version0.9.0/version
  scoperuntime/scope
/dependency
  /dependencies
  build
  pluginManagement
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
plugin

groupIdorg.codehaus.mojo/groupId
artifactIdhibernate3-maven-plugin/artifactId
version2.0-alpha-2/version
configuration
executions
execution

 phasegenerate-sources/phase
goals

 goalhbm2ddl/goal
/goals
/execution
/executions
components

component
namehbm2ddl/name

 implementationannotationconfiguration/implementation

/component
component
namehbm2hbmxml/name

 outputDirectorysrc/main/resources/outputDirectory

/component
/components
componentProperties
droptrue/drop
createtrue/create

 configurationfilesrc/main/resources/hibernate.cfg.xml/configurationfile

 outputfilenameschema.sql/outputfilename
/componentProperties
/configuration
/plugin
/plugins
/pluginManagement
resources
resource
directorysrc/main/resources/directory
filteringtrue/filtering

Re: [m2] Can I add a jar, inside a Jar in Maven?

2007-08-16 Thread Wayne Fay
Assembly plugin using configuration jar-with-dependencies or create
your own custom assembly descriptor.

Wayne

On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
 I have a jar dependency I need to include inside my module jar I am
 creating. Can I accomplish this?

 --

 Thanks,
 Mick Knutson

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


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



Re: Question regarding modular project

2007-08-16 Thread Wendy Smoak
On 8/16/07, Erik Drolshammer [EMAIL PROTECTED] wrote:

 I use 1.1-beta-1 and have a similar question;
 When I add or remove a child project, these changes are not detected by
 Continuum. Is this normal behavior?

That's the way it works in the current version.  There is an
enhancement request open, please vote/comment if you have suggestions.

http://jira.codehaus.org/browse/CONTINUUM-798

-- 
Wendy


Re: Building MDB's with Maven

2007-08-16 Thread Mark Eramo
Great! This is what I needed to know and it helps me out. Thanks for 
this info.


Regards,
Mark


Alan D. Salewski wrote:

On Thu, Aug 16, 2007 at 03:05:56PM -0400, Mark Eramo spake thus:
  

Hello,
 I have a question. A few of the jars I currently build with Any also 
produce mdb's (message driven beans). I did not see a plugin for this 
but was wondering

if anyone has accomplished this with Maven.[...]



We use the maven-ejb-plugin for this. Here's an example snippet for an
MDB subproject's pom.xml:
...
build
  ...
  plugins
...
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-ejb-plugin/artifactId
  configuration
ejbVersion2.1/ejbVersion
generateClientfalse/generateClient
archive
  manifest
addClasspathtrue/addClasspath
classpathPrefixlib//classpathPrefix
  /manifest
/archive
  /configuration
/plugin
...
  /plugins
/build
...

For more info, check out the site for the maven-ejb-plugin:

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

HTH,
-Al

  


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



Re: Can't compile

2007-08-16 Thread Mathias P.W Nilsson

getting exactly the same error.. I going mad here. Can't even
compile. 

/Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[11,25]
package javax.persistence does not exist

/Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[12,25]
package javax.persistence does not exist

/Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[13,25]
package javax.persistence does not exist

/Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[3,25]
package javax.persistence does not exist

/Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[4,25]
package javax.persistence does not exist

/Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[5,25]
package javax.persistence does not exist

/Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[6,25]
package javax.persistence does not exist

/Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[7,25]
package javax.persistence does not exist



AND 1000 more lines. How come. In the eclipse everything looks fine. No
errors but I can't compile it. 
-- 
View this message in context: 
http://www.nabble.com/Can%27t-compile-tf4281613s177.html#a12188034
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: Can't compile

2007-08-16 Thread Wayne Fay
Apparently, you have not declared a dependency (probably want
provided scope) against an artifact that contains javax.persistence
classes.

Again, Google is your friend (mvn hibernate jpa):
http://rupeal.wordpress.com/2007/02/14/maven-2-and-hibernate-annotations/

Wayne

On 8/16/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:

 getting exactly the same error.. I going mad here. Can't even
 compile.

 /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[11,25]
 package javax.persistence does not exist

 /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[12,25]
 package javax.persistence does not exist

 /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/User.java:[13,25]
 package javax.persistence does not exist

 /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[3,25]
 package javax.persistence does not exist

 /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[4,25]
 package javax.persistence does not exist

 /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[5,25]
 package javax.persistence does not exist

 /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[6,25]
 package javax.persistence does not exist

 /Users/mathias/Documents/workspace/FTC/src/main/java/se/digitalsupport/ftc/dto/UserMapping.java:[7,25]
 package javax.persistence does not exist



 AND 1000 more lines. How come. In the eclipse everything looks fine. No
 errors but I can't compile it.
 --
 View this message in context: 
 http://www.nabble.com/Can%27t-compile-tf4281613s177.html#a12188034
 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: Date and time processing

2007-08-16 Thread Ken Tanaka
I was thinking the same thing myself. I searched at the archive 
http://www.nabble.com/Maven---Users-f178.html

for timestamp and the one of the better threads seems to be
http://www.nabble.com/Can-I-get-a-timestamp--tf3183791s177.html#a8836362

-Ken

Wayne Fay wrote:

This comes up pretty often, in fact, it has come up at least once a week lately.

Search the list archives for timestamp.

Wayne

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

Does Maven or one of it's plugins support date/time stamping? In
particular, I'd like to add the build date to my Manifests with something
like

plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-jar-plugin/artifactId
 configuration
   archive
 manifestEntries
   ...
   Build-Time${now}/Build-Time
   ...
 /manifestEntries
   /archive
 /configuration
/plugin

Thanks
Robert Egan

This email message and any attachments may contain confidential,
proprietary or non-public information.  The information is intended solely
for the designated recipient(s).  If an addressing or transmission error
has misdirected this email, please notify the sender immediately and
destroy this email.  Any review, dissemination, use or reliance upon this
information by unintended recipients is prohibited.  Any opinions
expressed in this email are those of the author personally.



-
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]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly

2007-08-16 Thread Mick Knutson
Is there something I am missing to just filter resources for an assembly?

I can filter just fine for my modules (wars), but not creating an assembly.





On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:

 OK, I have the following filter and resources attribultes in my master
 pom.xml:


 filters
 filter${basedir}/src/main/filters/filter.properties/filter
 /filters
 resources
 resource
 directory${basedir}/src/main/resources/directory
 filteringtrue/filtering
 /resource
 /resources
 /build


 Then the filter.properties has:

 filter.application.name=DAP
 filter.application.version=1.0.0.9





 Then I have these 2 lines and nothing is filtered:



 #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home
 oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version}/logging-
 ${project.version}.ear -deploymentname LoggingService -bindAllWebApps

 #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home
 oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${filter.application.version
 }/logging-${filter.application.version} .ear -deploymentname
 LoggingService -bindAllWebApps








 On 8/16/07, Wayne Fay [EMAIL PROTECTED]  wrote:
 
  Apparently the filters parameter is readonly in the mojo:
 
  https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java
 
  The default value is ${project.build.filters} which means the assembly
  plugin inherits its filters from the build section.
 
  Wayne
 
  On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
   I want to filter the resources that I am adding to my assembly, but I
  get a
   read-only parameter error.
  
  plugin
  artifactIdmaven-assembly-plugin/artifactId
  version2.2-beta-1/version
  configuration
filters
  
   filtersrc/main/filters/filter.properties/filter
  /filters
  descriptors
  descriptorsrc/main/resources/assembly-
   descriptor.xml/descriptor
  /descriptors
  /configuration
  /plugin
  
  
  
   error:
   --
  
   [DEBUG] Retrieving parent-POM:
  org.apache.maven.wagon:wagon::1.0-alpha-6 for
   project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
   [DEBUG]
   org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime
  (selected
   for runtime)
   [DEBUG] Retrieving parent-POM:
   org.apache.maven.reporting:maven-reporting::2.0.4 for project:
   null:maven-reporting-api:jar:2.0.4 from the repository.
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
  project:
   org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the
  repository.
   [DEBUG]
  org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime
  (selected
   for runtime)
   [DEBUG]
  org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime (selected
   for runtime)
   [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed -
  nearer
   found: 2.0.4)
   [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected
  for
   runtime)
   [DEBUG]   org.apache.maven:maven-model:jar:2.0.4:runtime (removed
  -
   nearer found: 2.0)
   [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed -
  nearer
   found: 2.0.4 )
   [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected
  for
   runtime)
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
  project:
   null:maven-error-diagnostics:jar: 2.0.4 from the repository.
   [DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime
  (selected
   for runtime)
   [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed
  -
   nearer found: 2.0)
   [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
  project:
   org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository.
   [DEBUG] 
   org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected
   for runtime)
   [DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for
  runtime)
   [DEBUG] Retrieving parent-POM:
   org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project:
   null:wagon-ssh-external:jar:1.0-alpha-6 from the repository
   .
   [DEBUG] Retrieving parent-POM:
  org.apache.maven.wagon:wagon::1.0-alpha-6 for
   project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
   [DEBUG]
   org.apache.maven.wagon:wagon-ssh-external:jar:1.0-alpha-6:runtime(selected
   for runtime)
   [DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime(removed -
   nearer found: 1.1)
   [DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.4:runtime
  (selected
   for runtime)
   [DEBUG]
   

Re: [m2]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly

2007-08-16 Thread Wayne Fay
I don't really have an answer for you. I'm not a big user of assembly
plugin. Perhaps someone else who uses assembly + filters will respond.

It is also possible that you've found a bug. Make a small test case
and post it in JIRA if you're reasonably convinced its a bug.

Wayne

On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
 Is there something I am missing to just filter resources for an assembly?

 I can filter just fine for my modules (wars), but not creating an assembly.





 On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
 
  OK, I have the following filter and resources attribultes in my master
  pom.xml:
 
 
  filters
  filter${basedir}/src/main/filters/filter.properties/filter
  /filters
  resources
  resource
  directory${basedir}/src/main/resources/directory
  filteringtrue/filtering
  /resource
  /resources
  /build
 
 
  Then the filter.properties has:
 
  filter.application.name=DAP
  filter.application.version=1.0.0.9
 
 
 
 
 
  Then I have these 2 lines and nothing is filtered:
 
 
 
  #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home
  oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version}/logging-
  ${project.version}.ear -deploymentname LoggingService -bindAllWebApps
 
  #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home
  oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${filter.application.version
  }/logging-${filter.application.version} .ear -deploymentname
  LoggingService -bindAllWebApps
 
 
 
 
 
 
 
 
  On 8/16/07, Wayne Fay [EMAIL PROTECTED]  wrote:
  
   Apparently the filters parameter is readonly in the mojo:
  
  
 https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java
  
   The default value is ${project.build.filters} which means the assembly
   plugin inherits its filters from the build section.
  
   Wayne
  
   On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
I want to filter the resources that I am adding to my assembly, but I
   get a
read-only parameter error.
   
   plugin
   artifactIdmaven-assembly-plugin/artifactId
   version2.2-beta-1/version
   configuration
 filters
   
filtersrc/main/filters/filter.properties/filter
   /filters
   descriptors
   descriptorsrc/main/resources/assembly-
descriptor.xml/descriptor
   /descriptors
   /configuration
   /plugin
   
   
   
error:
--
   
[DEBUG] Retrieving parent-POM:
   org.apache.maven.wagon:wagon::1.0-alpha-6 for
project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
[DEBUG]
org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime
   (selected
for runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.reporting:maven-reporting::2.0.4 for project:
null:maven-reporting-api:jar:2.0.4 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
   project:
org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the
   repository.
[DEBUG]
   org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime
   (selected
for runtime)
[DEBUG]
   org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (removed -
   nearer
found: 2.0.4)
[DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime (selected
   for
runtime)
[DEBUG]   org.apache.maven:maven-model:jar:2.0.4:runtime (removed
   -
nearer found: 2.0)
[DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed -
   nearer
found: 2.0.4 )
[DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime (selected
   for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
   project:
null:maven-error-diagnostics:jar: 2.0.4 from the repository.
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime
   (selected
for runtime)
[DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime (removed
   -
nearer found: 2.0)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
   project:
org.apache.maven:maven-plugin-registry:jar:2.0.4 from the repository.
[DEBUG]
 org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected
for runtime)
[DEBUG] commons-cli:commons-cli:jar:1.0:runtime (selected for
   runtime)
[DEBUG] Retrieving parent-POM:
org.apache.maven.wagon:wagon-providers::1.0-alpha-6 for project:
null:wagon-ssh-external:jar:1.0-alpha-6 from the repository
.
[DEBUG] Retrieving parent-POM:

[m2] ant-contrib in Maven?

2007-08-16 Thread Mick Knutson
I want to use the ant-run plugin and my ant task relies upon ant-contrib but
I can seem to find it in ibiblio in a way that I can get it into my project
this does not work:


dependency
groupIdant-contrib/groupId
artifactIdjars/artifactId
version1.0b3/version
/dependency


-- 

Thanks,
Mick Knutson

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


Re: clover issue when executing from a high level multi modules pom.xml?

2007-08-16 Thread Baz
Anyone? I try to add ${basedir} in various places but still not working.
What changes should I make?

On 8/15/07, Baz [EMAIL PROTECTED] wrote:

 It seems like the paths are set in the parent pom.xml for clover
 implementation:

 include implementation=java.lang.String
 build/clover/src/**/*.java/include
 include 
 implementation=java.lang.Stringbuild/clover/src/something/**/*.java/include


 build directory is the local output directory - product_A/module/build
 directory

 So my guess is: When executing in a few directories level up, the clover
 is still looking for ./build directory and hence it failed.

 What can i do so that the clover is looking for relative path? So that it
 will work locally or using high level multi modules pom file?

 Thanks.

 B.


  On 8/15/07, Baz [EMAIL PROTECTED] wrote:
 
  All,
 
  I am having issues when running clover through a high level multi module
  pom.xml.
 
  Here are the directory structure:
 
  products/
 pom.xml
 /product_A/module/pom.xml
 /product_B/module/pom.xml
 
  Here are the symptoms:
 
  1. products/pom.xml will run mvn clean install with
  product_A/module/pom.xml and product_B/module/pom.xml. It works fine.
 
  2. If I change the command to mvn clean install -Dclover.skip=false
  then it will failed.
 
  3. If I go into product_A/module/ and product_B/module individually and
  type mvn clean install -Dclover.skip=false then it works fine.
 
  Error message:
 
  [INFO] [clover:instrumentInternal]
 
*** ERROR: No source files specified
 
USAGE: com.cenqua.clover.CloverInstr [OPTIONS] PARAMS [FILES...]
 
PARAMS:
  -i, --initstring file  Clover initstring. This is the path to
  the dbfi
  le that
 
  Blah blah blah...
 
  Can anyone help? I suspect is the path of the source files mixed up
  since I am not executing in the local directory anymore. But how can i fix
  it?
 
  Thanks.
 
 
 
 




Re: Can't compile

2007-08-16 Thread Mathias P.W Nilsson

Thanks! You a lifesaver. By supplying provided instead of runtime it
worked. 

Thanks again! :clap:
-- 
View this message in context: 
http://www.nabble.com/Can%27t-compile-tf4281613s177.html#a12188842
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: [m2] ant-contrib in Maven?

2007-08-16 Thread Steven Rowe
Hi Mick,

According to the Sonatype book
http://www.sonatype.com/book/lifecycle.html#a_structure_for_goal_execution,
the artifactId should be ant-contrib.

Steve


Mick Knutson wrote:
 I want to use the ant-run plugin and my ant task relies upon ant-contrib but
 I can seem to find it in ibiblio in a way that I can get it into my project
 this does not work:
 
 
 dependency
 groupIdant-contrib/groupId
 artifactIdjars/artifactId
 version1.0b3/version
 /dependency


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



Re: [m2] ant-contrib in Maven?

2007-08-16 Thread Wayne Fay
In the future, search for your artifact at http://mvnrepository.com/
for the correct dependency declaration.

Wayne

On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
 Perfect. I just had to add:

 taskdef resource=net/sf/antcontrib/antcontrib.properties/

 and then

 dependencies
   dependency
 groupIdant-contrib/groupId
 artifactIdant-contrib/artifactId
 version1.0b2/version
   /dependency
 /dependencies


 and it worked like a charm. Thanks

 On 8/16/07, Steven Rowe [EMAIL PROTECTED] wrote:
 
  Hi Mick,
 
  According to the Sonatype book
  
  http://www.sonatype.com/book/lifecycle.html#a_structure_for_goal_execution
  ,
  the artifactId should be ant-contrib.
 
  Steve
 
 
  Mick Knutson wrote:
   I want to use the ant-run plugin and my ant task relies upon ant-contrib
  but
   I can seem to find it in ibiblio in a way that I can get it into my
  project
   this does not work:
  
  
   dependency
   groupIdant-contrib/groupId
   artifactIdjars/artifactId
   version1.0b3/version
   /dependency
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --

 Thanks,
 Mick Knutson

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


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



Re: Can't compile

2007-08-16 Thread Tom Huybrechts
On 8/16/07, Wayne Fay [EMAIL PROTECTED] wrote:
 Try mvn compile.

 The name of the plugin is compiler. The method you're executing is
 named compile. So the long way would be mvn compiler:compile.
 Note the r in the first one. But mvn compile is a short-cut.

It's not really a shortcut (they are not identical)

'mvn compiler:compile executes one goal in the compiler plugin. 'mvn
compile' executes all the phases in your lifecycle up to compile. So
that would include generating sources, resources etc. The
compiler:compile goal is included in the compile phase.

Unless you know what you're doing, better use 'mvn compile...

Tom


 Wayne

 On 8/16/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote:
 
  Ok this is very strange. I can't use mvn compile. I've tried it all. Delete
  all files in respository and try again.
 
  I then tried the mvn -e compile:compile and got the following error
 
  The plugin 'org.apache.maven.plugins:maven-compile-plugin' does not exist or
  no valid version could be found
 
  When I look in my respository the folder only contains a xml. I tried to
  download the maven-compile-plugin but i doesn't exist. It's only the
  maven-compiler-plugin notice the COMPILER and not COMPILE
 
  why is compile used? Why is it trying to download compile when I have sat
  compiler. Look at this POM file
 
  I'm near crying here.
 
  project xmlns=http://maven.apache.org/POM/4.0.0;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdse.digitalsupport.ftc/groupId
   artifactIdFTC/artifactId
   packagingjar/packaging
   version1.0-SNAPSHOT/version
   nameFTC/name
   urlhttp://maven.apache.org/url
   dependencies
 
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
   version3.8.1/version
   scoperuntime/scope
 /dependency
 dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate/artifactId
   version3.2.5.ga/version
   scoperuntime/scope
 /dependency
 dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate-annotations/artifactId
   version3.3.0.ga/version
   scoperuntime/scope
 /dependency
 dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate-entitymanager/artifactId
   version3.3.1.ga/version
   scoperuntime/scope
 /dependency
   dependency
   groupIdjboss/groupId
   artifactIdjboss-common-core/artifactId
   version2.2.0.GA/version
   scoperuntime/scope
 /dependency
 dependency
   groupIdorg.hibernate/groupId
   artifactIdhibernate-commons-annotations/artifactId
   version3.3.0.ga/version
   scoperuntime/scope
 /dependency
dependency
   groupIdmysql/groupId
   artifactIdmysql-connector-java/artifactId
   version5.0.5/version
   scoperuntime/scope
 /dependency
 
 dependency
   groupIdc3p0/groupId
   artifactIdc3p0/artifactId
   version0.9.0/version
   scoperuntime/scope
 /dependency
   /dependencies
   build
   pluginManagement
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 configuration
 source1.5/source
 target1.5/target
 /configuration
 /plugin
 plugin
 
 groupIdorg.codehaus.mojo/groupId
 artifactIdhibernate3-maven-plugin/artifactId
 version2.0-alpha-2/version
 configuration
 executions
 execution
 
  phasegenerate-sources/phase
 goals
 
  goalhbm2ddl/goal
 /goals
 /execution
 /executions
 components
 
 component
 namehbm2ddl/name
 
  implementationannotationconfiguration/implementation
 
 /component
 component
 namehbm2hbmxml/name
 
  outputDirectorysrc/main/resources/outputDirectory
 
 /component
 /components
 componentProperties
 droptrue/drop
 

Re: [m2] ant-contrib in Maven?

2007-08-16 Thread Mick Knutson
Perfect. I just had to add:

taskdef resource=net/sf/antcontrib/antcontrib.properties/

and then

dependencies
  dependency
groupIdant-contrib/groupId
artifactIdant-contrib/artifactId
version1.0b2/version
  /dependency
/dependencies


and it worked like a charm. Thanks

On 8/16/07, Steven Rowe [EMAIL PROTECTED] wrote:

 Hi Mick,

 According to the Sonatype book
 
 http://www.sonatype.com/book/lifecycle.html#a_structure_for_goal_execution
 ,
 the artifactId should be ant-contrib.

 Steve


 Mick Knutson wrote:
  I want to use the ant-run plugin and my ant task relies upon ant-contrib
 but
  I can seem to find it in ibiblio in a way that I can get it into my
 project
  this does not work:
 
 
  dependency
  groupIdant-contrib/groupId
  artifactIdjars/artifactId
  version1.0b3/version
  /dependency


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




-- 

Thanks,
Mick Knutson

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


Profiles in maven - help!

2007-08-16 Thread Vaidya, Supriya A \(US - Chicago\)
HI:
 
I have a profiles.xml in my project root folder, that has the following
structure:
 
settings
profiles
profile
iddevelopment/id
activation
activeByDefaulttrue/activeByDefault
/activation
properties
prop1value1/prop1
prop2value2/prop2
 
:
:
:
:
 
 
Now the project contains a EAR/WAR and a JAR. In my WAR file, I have a
resources/spring directory, containing an xml with the following:
 
key
valueproperty1/value
/key
value${prop1}/value
 
 
and so on.
 
In my command prompt, when I run the mvn clean install -P development -
everything runs fine, but the XML remains with the unprocessed property
values {prop}.
 
I tried running the mvn help:active-profiles,and when I do this - it sez
that the following profiles are active: - development
but then goes on to say that no profiles are active for the POJO, the
WAR or the EAR... hwo do I active the profile for teh WAR??
 

Supriya A Vaidya 
Technology Integration 
Deloitte Consulting LLP 
Tel: +1 312 486 4835 
Fax: +1 312 247 4835
Mobile: + 1 414 736 8157 
www.deloitte.com http://www.deloitte.com/ 


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: maven plugin for ckjm ...

2007-08-16 Thread Giovanni Azua
Wow cool! That was fast :) so we would get xml but no html or?

Many many thanks! Good job!

Regards,
Giovanni 

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 16, 2007 5:23 AM
To: Maven Users List
Subject: Re: maven plugin for ckjm ...

I got bored and wrote the plugin tonight... ;-)

For now, it simply outputs a ckjm.xml file (or plain text file) in ./target.
If you want to do the full run ckjm, then make a report with it and add it
to the site then you will really need to handle that bit yourself. At
least, if you want that report in any reasonable time period...

For now, I'll propose this plugin at Codehaus (Mojo project) and, assuming
its accepted, you'll see it in the sandbox shortly. I also built a test
project so you can see it working.

Wayne

On 8/15/07, Wayne Fay [EMAIL PROTECTED] wrote:
 If you want to get ckjm functionality in Maven, I'd encourage you to 
 look into creating the plugin yourself. Its really not that tough in 
 general.

 Wayne

 On 8/15/07, Giovanni Azua [EMAIL PROTECTED] wrote:
  ckjm and Jdepend have overlapping only couple of same metrics e.g. 
  AC but Jdepend misses the most important ones e.g. WMC, RFC and 
  LCOM.
 
  -Original Message-
  From: Mick Knutson [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 15, 2007 8:40 PM
  To: Maven Users List
  Subject: Re: maven plugin for ckjm ...
  
  this sounds like JDepend and there is a plugin for that
  
  On 8/15/07, Giovanni Azua [EMAIL PROTECTED] wrote:
  
   Hi all,
  
   Any existing plugin around ckjm?
  
   http://www.spinellis.gr/sw/ckjm/
  
   regards,
   Giovanni
  
  
 
 
 
  
  - 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]Error creating assembly with filtering ERROR: Cannot override read-only parameter: filters in goal: assembly:assembly

2007-08-16 Thread Mick Knutson
So has anyone out there ever gotten any filter example to work with
assemblies?


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

 I don't really have an answer for you. I'm not a big user of assembly
 plugin. Perhaps someone else who uses assembly + filters will respond.

 It is also possible that you've found a bug. Make a small test case
 and post it in JIRA if you're reasonably convinced its a bug.

 Wayne

 On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
  Is there something I am missing to just filter resources for an
 assembly?
 
  I can filter just fine for my modules (wars), but not creating an
 assembly.
 
 
 
 
 
  On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
  
   OK, I have the following filter and resources attribultes in my master
   pom.xml:
  
  
   filters
  
 filter${basedir}/src/main/filters/filter.properties/filter
   /filters
   resources
   resource
   directory${basedir}/src/main/resources/directory
   filteringtrue/filtering
   /resource
   /resources
   /build
  
  
   Then the filter.properties has:
  
   filter.application.name=DAP
   filter.application.version=1.0.0.9
  
  
  
  
  
   Then I have these 2 lines and nothing is filtered:
  
  
  
   #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home
   oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${project.version
 }/logging-
   ${project.version}.ear -deploymentname LoggingService -bindAllWebApps
  
   #java -jar admin_client.jar deployer:oc4j:opmn://rc-hp19:6003/home
   oc4jadmin oc4jadmin -deploy -file /tmp/bl/dap-${
 filter.application.version
   }/logging-${filter.application.version} .ear -deploymentname
   LoggingService -bindAllWebApps
  
  
  
  
  
  
  
  
   On 8/16/07, Wayne Fay [EMAIL PROTECTED]  wrote:
   
Apparently the filters parameter is readonly in the mojo:
   
   
 
 https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-1/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.java
   
The default value is ${project.build.filters} which means the
 assembly
plugin inherits its filters from the build section.
   
Wayne
   
On 8/16/07, Mick Knutson [EMAIL PROTECTED] wrote:
 I want to filter the resources that I am adding to my assembly,
 but I
get a
 read-only parameter error.

plugin
artifactIdmaven-assembly-plugin/artifactId
version2.2-beta-1/version
configuration
  filters

 filtersrc/main/filters/filter.properties/filter
/filters
descriptors
   
 descriptorsrc/main/resources/assembly-
 descriptor.xml/descriptor
/descriptors
/configuration
/plugin



 error:
 --

 [DEBUG] Retrieving parent-POM:
org.apache.maven.wagon:wagon::1.0-alpha-6 for
 project: null:wagon-providers:pom:1.0-alpha-6 from the repository.
 [DEBUG]

 org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-6:runtime
(selected
 for runtime)
 [DEBUG] Retrieving parent-POM:
 org.apache.maven.reporting:maven-reporting::2.0.4 for project:
 null:maven-reporting-api:jar:2.0.4 from the repository.
 [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project:
 org.apache.maven.reporting:maven-reporting:pom:2.0.4 from the
repository.
 [DEBUG]
org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:runtime
(selected
 for runtime)
 [DEBUG]
org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:runtime(selected
 for runtime)
 [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime(removed -
nearer
 found: 2.0.4)
 [DEBUG] org.apache.maven:maven-profile:jar:2.0.4:runtime(selected
for
 runtime)
 [DEBUG]   org.apache.maven:maven-model:jar:2.0.4:runtime(removed
-
 nearer found: 2.0)
 [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (removed
 -
nearer
 found: 2.0.4 )
 [DEBUG] org.apache.maven:maven-model:jar:2.0.4:runtime(selected
for
 runtime)
 [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project:
 null:maven-error-diagnostics:jar: 2.0.4 from the repository.
 [DEBUG]
 org.apache.maven:maven-error-diagnostics:jar:2.0.4:runtime
(selected
 for runtime)
 [DEBUG] org.apache.maven:maven-project:jar:2.0.4:runtime(removed
-
 nearer found: 2.0)
 [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.4 for
project:
 org.apache.maven:maven-plugin-registry:jar:2.0.4 from the
 repository.
 [DEBUG]
  org.apache.maven:maven-plugin-registry:jar:2.0.4:runtime(selected
 for runtime)
 [DEBUG] 

Re: Profiles in maven - help!

2007-08-16 Thread Federico Schroder
Have you enabled filtering for this?

Federico.

On Thu, 2007-08-16 at 16:10 -0500, Vaidya, Supriya A (US - Chicago)
wrote:
 HI:
  
 I have a profiles.xml in my project root folder, that has the following
 structure:
  
 settings
 profiles
 profile
 iddevelopment/id
 activation
 activeByDefaulttrue/activeByDefault
 /activation
 properties
 prop1value1/prop1
 prop2value2/prop2
  
 :
 :
 :
 :
  
 
 Now the project contains a EAR/WAR and a JAR. In my WAR file, I have a
 resources/spring directory, containing an xml with the following:
  
 key
 valueproperty1/value
 /key
 value${prop1}/value
  
 
 and so on.
  
 In my command prompt, when I run the mvn clean install -P development -
 everything runs fine, but the XML remains with the unprocessed property
 values {prop}.
  
 I tried running the mvn help:active-profiles,and when I do this - it sez
 that the following profiles are active: - development
 but then goes on to say that no profiles are active for the POJO, the
 WAR or the EAR... hwo do I active the profile for teh WAR??
  
 
 Supriya A Vaidya 
 Technology Integration 
 Deloitte Consulting LLP 
 Tel: +1 312 486 4835 
 Fax: +1 312 247 4835
 Mobile: + 1 414 736 8157 
 www.deloitte.com http://www.deloitte.com/ 
 
 
 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]


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



Re: expand war deps

2007-08-16 Thread Stephane Nicoll
Anyway an ArtifactItem does not need the version, the plugin is able
to detect it automatically from the project's dependencies. You only
need to specify all parameters if you want to act on an artifact that
is not a dependency of the project.

Stéphane

On 8/16/07, Brian E. Fox [EMAIL PROTECTED] wrote:
 Hi John,

 I see two issues below. The first is that the includes/excludes is only 
 available in 2.0-alpha-5-SNAPSHOT. The second is more to your question. You 
 can skip specifying a version in the artifactItems if you put that dependency 
 version in your dependencyManagement section. Then you can also omit it in 
 your dependencies declaration and have only one place to control the version.

 --Brian

 -Original Message-
 From: John Coleman [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 16, 2007 8:09 AM
 To: Maven Users List
 Subject: RE: expand war deps

 Hi Stephane,

 I grafted an example off the dependency plugin site, but it didn't go too 
 well as you can see below! I just want to unpack that JAR instead of add it 
 to lib directory.

 Any ideas what is wrong? I'm a bit concerned that I have both a declared 
 dependency at the top of my pom and then this plugin configuration - could 
 that lead to version conflicts, will the plugin config default to the 
 previously declared version?

 TIA
 John



 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-dependency-plugin/artifactId
 executions
 execution
 idunpack/id
 phasepackage/phase
 goals
 goalunpack/goal
 /goals
 configuration
 artifactItems
 artifactItem
 groupIdcom.eurobase/groupId
 artifactIdcommon-wac/artifactId
 !--version1.3-SNAPSHOT/version--
 typejar/type
 overWritefalse/overWrite
 
 outputDirectory${project.build.directory}/${project.build.finalName}/WEB-INF/classes/outputDirectory
 includes**/*.class,**/*.xml/includes
 excludes**/*test.class/excludes
 /artifactItem
 /artifactItems
 includes**/*.java/includes
 excludes**/*.properties/excludes
 
 outputDirectory${project.build.directory}/wars/outputDirectory
 overWriteReleasesfalse/overWriteReleases
 overWriteSnapshotstrue/overWriteSnapshots
 /configuration
 /execution
 /executions
 /plugin

 [INFO]Failed to configure plugin parameters for: 
 org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4



 Cause: Cannot find setter nor field in 
 org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem for 
 'includes'
 [INFO]
 [DEBUG]Trace
 org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: 
 org.apache.maven.plugins:maven-dependency-plugin. Reason: Unable to parse the 
 created DOM for plugin configuration

 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:639)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:551)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:530)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:309)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:276)
 at 
 org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393)
 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182)
 at 
 org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:760)
 at 
 org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:257)
 at 
 org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)



 -Original Message-
 From: Stephane Nicoll [mailto:[EMAIL PROTECTED]
 Sent: 15 August 2007 19:26
 To: Maven Users List
 Subject: Re: expand war deps

 Hi,

 Yep you'll need to setup resources:unpack in the generate-resources
 phase. Next version of the WAR plugin has a new overlay handling but
 we do 

  1   2   >