Re: Proxying central repo

2007-07-17 Thread Wendy Smoak

On 7/17/07, Paul Smith [EMAIL PROTECTED] wrote:


I think I might have buggered something somewhere.  When trying to do
a test of proxying the central repo with Archive, I'm getting this in
the archiva logs:


What version are you using?  1.0-alpha-2 comes pre-configured to proxy
the central repo.


http://forge.engr.acx:8080/repository/central

Which I'm assuming is the base of the proxy gives me a 404 error.


Try http://.../repository/internal (unless you configured 'central'
yourself... )


I've setup the Guest account with all the Repository Observer roles


Sounds good.

Let us know what version and what additional configuration you've
done.  Maybe paste your archiva.xml if you're still having trouble.

--
Wendy


Re: [1.0.3] how do i resume/abort a stuck build

2007-07-17 Thread Michael Meyer

Hi
If you have restarted the server the build has stopped. It's just the 
icon that is wrong. If you click on Build all a new build should start 
imediately.


With the private key I'm takeing a guess. Did you ever login manually to 
the remote server with the user that runs continuum (from the machine 
that runs continuum)? Normally when you open a ssh connection for the 
first time you get a message asking you to add the remote server to your 
local cache. So if you haven't done so allreay login to your continuum 
machine with the continuum user and open a ssh connection to the remote 
machine.


Cheers, michael

CodingPlayer wrote:

Hi,

i'm using Continuum 1.0.3 (as continuous integration).


after creating a new project the first build stuck during the
site:deploy-phase.

last lines of the build output:

   [INFO] [site:deploy]
   Using private key: /home/continuum/.ssh/id_dsa


now the build is stuck.

How do i reset the build? (Stopping and restarting the continuum server
didn't help.)

How can i abort a running build process??


What could be the problem? Do i need to create the directories manually (at
the server).
Is it possible that some user rights are missing?

thx 4 help
R.C.




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



Re: Continuum+archiva in same application

2007-07-17 Thread Arnaud Bailly
Arnaud Bailly [EMAIL PROTECTED] writes:

 hello,
 I am trying to run continuum and archiva in the same plexus component
 but I ran into some problems. Using both latest builds result in some
 conflicts in libs as I got an exception Method does not exist
 Collections.isNotEmpty(). 

 Does anybody has had success with that and can give me some advices ?


I managed to get the two apps working quite easily indeed, but I did
initially the copy in the wrong direction :) Informally, you need to 
 1. unpack archiva-tar.gz
 2. unpack continuum.tar.gz 
 3. Copy apps/continuum.jar to archiva/apps (and not the other way
 round as archiva users newer versions of common libs) 
 4. start the container /unpack the jars 
 5. change the ports to prevent conflicts (not sure this is actually
 needed ?) 

Regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


Re: Maven2 release process in Continuum

2007-07-17 Thread Jesse McConnell

at the moment I think you need to make sure the underlying project
that you are going to try and release is 'clean' for the release.
that means that all dependencies that you are going to release ave
been resolved into released and available artifacts.

the continuum release mechanism makes use of the same release
mechanism as the maven-release-plugin so if you interested in playing
around with it I am a fan of just using the maven-release-plugin
directly, personally.

in your example to release your project and the core and webapp
subprojects at once,  will basically need to release the company pom
initially and then edit the project pom by hand and set the company
parent pom to the released version.  Then check through your pom.xml's
of the project and the two subprojects to locate and resolve any
SNAPSHOT dependencies that are not the three you are immediately
releasing.

its really pretty straight forward once you get into the swing of it.

jesse

On 7/17/07, James Abley [EMAIL PROTECTED] wrote:

Hi,

We have a Continuum instance and would like to cut a release of a
product which uses a Maven2  as the build system. Currently, it takes
around a day to release a product, which feels like longer than it
should.

We were hoping that using Continuum would save a lot of time versus
the current release process, which involves mvn release:prepare
-D. and mvn releaes:perform -D... for a lot of modules.

I haven't found much documentation about the release feature, so would
appreciate any pointers.

First time through, I just followed it to try to see how intuitive it was.

Release is only available at a Project Group level (unless the user
account that I am using is missing some roles?). I created and
selected a small project group, that only contains a parent module and
two sub-modules. The parent pom inherits from our general company-wide
POM (common profiles, repositories, scm, etc.) The two sub-module poms
both inherit from the parent pom, for dependency management
reasons.One sub-module depends on the other one. The dependency flow
is illustrated below

  Common Company POM
 |
V
 Project Group POM
  | |
 VV
Core module POMWeb app module (depends on Core)


1) I clicked on Release from the project group page.
2) Select the prepare release option.
3) Submit the form.

org.apache.maven.shared.release.versions.VersionParseException: Unable
to parse the version string: ${project.parent.version}
at 
org.apache.maven.shared.release.versions.DefaultVersionInfo.init(DefaultVersionInfo.java:156)
at 
org.apache.maven.continuum.web.action.ReleasePrepareAction.setProperties(ReleasePrepareAction.java:294)
at 
org.apache.maven.continuum.web.action.ReleasePrepareAction.processProject(ReleasePrepareAction.java:273)
at 
org.apache.maven.continuum.web.action.ReleasePrepareAction.processProject(ReleasePrepareAction.java:277)
at 
org.apache.maven.continuum.web.action.ReleasePrepareAction.input(ReleasePrepareAction.java:119)
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 
com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:364)
at 
com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:216)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190)
at 
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:88)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)
at 
com.opensymphony.xwork.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:88)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)
at 
org.apache.maven.continuum.web.interceptor.ForceContinuumConfigurationInterceptor.intercept(ForceContinuumConfigurationInterceptor.java:73)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)
at 
org.codehaus.plexus.redback.xwork.interceptor.PolicyEnforcementInterceptor.intercept(PolicyEnforcementInterceptor.java:103)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)
at 
org.codehaus.plexus.redback.xwork.interceptor.SecureActionInterceptor.intercept(SecureActionInterceptor.java:178)
at 
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)
at 

Julia Vilke/Moscow/Canon/FI is out of the office.

2007-07-17 Thread Julia . Vilke

I will be out of the office starting  16.05.2007 and will not return until
08.01.2008.

I'm on maternity leave till January 2008.
In case of Canon Consumable business, please contact Mikhail Popov, in case
of Paper business - Maria Bondarenko.


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



[WARNING] Unable to load parent project from repository: Could not find the model file....

2007-07-17 Thread Michael Meyer

Hi
four our company I want to set up a parent pom that defines default 
versions for plugins (pluginManagement), repository locations and so on.


The idea is that I make new releases of this project ever so often. 
Other people should be able to use this pom in their project by 
including the following in their top level pom:


parent
  groupIdcom.company/groupId
  artifactIdroot-pom/artifactId
  version7/version
/parent


When I try to put this all together I get the following warning in a 
project that references my root-pom module:


[INFO] [site:attach-descriptor]
[WARNING] Unable to load parent project from repository: Could not find 
the model file 'D:\checkout\some-app\..\pom.xml'. for project unknown


I read about the relativePath tag but I don't want the people to 
actually checkout the root-pom.


Am I using the parent tag for the wrong thing or have I misconfigured 
something?


Cheers, michael

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



changelog and perforce

2007-07-17 Thread Jackson, Brian R
I'm trying to use the changelog with Perforce but after some
investigation it appear that the SCM provider for Perforce in not
creating the necessary client.  The changelog plugin executes this
command:

 

p4 -p perforce:1666 -c
JACKSBRR-LW-CT-JACKSBRR-MavenSCM-C:\Projects\SuperPOMs\espn filelog -t
-l ...

 

It must be failing silently because when I try to execute the same
command I get this error:

 

... - must create client
'JACKSBRR-LW-CT-JACKSBRR-MavenSCM-C:\Projects\SuperPOMs\espn' to access
local files.

 

 

My changelog config is:

 

plugin

artifactIdmaven-changelog-plugin/artifactId

version2.0-SNAPSHOT/version

reportSets

reportSet

idperforce-report/id

configuration

typerange/type

range10/range

properties

 
maven.changelog.factoryorg.apache.maven.perforcelib.PerforceChangeLogF
actory/maven.changelog.factory

/properties

dateFormat/MM/dd HH:mm:ss/dateFormat

basedir${basedir}/basedir

/configuration

reports

reportchangelog/report

reportfile-activity/report

reportdev-activity/report

/reports

/reportSet

/reportSets

/plugin



Do we have any issues with release plug-in with perforce?

2007-07-17 Thread Baz

All,

Do we have issues with using release plug-in with perforce as scm tool?

Thanks.

A.


Build failure out of the blue

2007-07-17 Thread Jeff Mutonho

My maven builds have been working without issue and  now all of a
sudden they've started failing with the message :

started
$ java -cp 
/app/maven/apache-tomcat-6.0.10/webapps/hudson/WEB-INF/lib/maven-agent-1.113.jar:/app/maven/M2/maven-2.0.4/core/boot/classworlds-1.1.jar
hudson.maven.agent.Main /app/maven/M2/maven-2.0.4
/app/maven/apache-tomcat-6.0.10/webapps/hudson/WEB-INF/lib/remoting-1.113.jar
/app/maven/apache-tomcat-6.0.10/webapps/hudson/WEB-INF/lib/maven-interceptor-1.113.jar
Native maven support requires Java 1.5 or later, but this Maven is
using /usr/j2se/jre
FATAL: unexpected stream termination
java.io.EOFException: unexpected stream termination
at hudson.remoting.Channel.init(Channel.java:142)
at hudson.Launcher$LocalLauncher$1.init(Launcher.java:183)
at hudson.Launcher$LocalLauncher.launchChannel(Launcher.java:182)
at hudson.maven.MavenBuild$RunnerImpl.newProcess(MavenBuild.java:296)
at hudson.maven.ProcessCache.get(ProcessCache.java:166)
at hudson.maven.MavenBuild$RunnerImpl.doRun(MavenBuild.java:265)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)
at hudson.model.Run.run(Run.java:559)
at hudson.maven.MavenBuild.run(MavenBuild.java:128)
at hudson.model.Executor.run(Executor.java:59)


Doing an echo on $JAVA_HOME  shows it is set correctly to
/app/maven/java/java6/jdk1.6.0_01

What could be causing this?

--

Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



Re: [m2] Can I have a user specific plugin?

2007-07-17 Thread Maria Odea Ching
No, you can't add a build plugin into the settings.xml. That can only be 
done in the pom.
You need to use profiles in the pom.xml of the project. Please see the 
link in the previous email ('Profiles in pom.xml' section) for the pom 
elements which you can add in a profile in the pom.xml.


-Deng

Mick Knutson wrote:

I can't find any reference to adding a build plugin into my settings.xml

On 7/13/07, Maria Odea Ching [EMAIL PROTECTED] wrote:


Hi,

I think you can use profiles in the project's pom instead of at the
settings.xml as it allows you to modify the plugins and dependencies of
the project while you cannot do that in settings.xml

Please see
http://maven.apache.org/guides/introduction/introduction-to-profiles.html 


(Profiles in pom.xml)

HTH,
Deng

Mick Knutson wrote:
 I want to have one integration user have a custom plugin, yet not the
 other
 team member. So, can I add a build plugin dependency into my
 settings.xmlfor just one user?



-
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: Build failure out of the blue

2007-07-17 Thread Maria Odea Ching

Hi,

Try executing 'which java' from the command line and trace from this 
which java (the one displayed may be an alternate only) is being 
executed to verify if the java you're using is really 1.6. It might not 
exactly be a Maven problem :-)


HTH,
Deng

Jeff Mutonho wrote:

My maven builds have been working without issue and  now all of a
sudden they've started failing with the message :

started
$ java -cp 
/app/maven/apache-tomcat-6.0.10/webapps/hudson/WEB-INF/lib/maven-agent-1.113.jar:/app/maven/M2/maven-2.0.4/core/boot/classworlds-1.1.jar 


hudson.maven.agent.Main /app/maven/M2/maven-2.0.4
/app/maven/apache-tomcat-6.0.10/webapps/hudson/WEB-INF/lib/remoting-1.113.jar 

/app/maven/apache-tomcat-6.0.10/webapps/hudson/WEB-INF/lib/maven-interceptor-1.113.jar 


Native maven support requires Java 1.5 or later, but this Maven is
using /usr/j2se/jre
FATAL: unexpected stream termination
java.io.EOFException: unexpected stream termination
at hudson.remoting.Channel.init(Channel.java:142)
at hudson.Launcher$LocalLauncher$1.init(Launcher.java:183)
at hudson.Launcher$LocalLauncher.launchChannel(Launcher.java:182)
at hudson.maven.MavenBuild$RunnerImpl.newProcess(MavenBuild.java:296)
at hudson.maven.ProcessCache.get(ProcessCache.java:166)
at hudson.maven.MavenBuild$RunnerImpl.doRun(MavenBuild.java:265)
at 
hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:127)

at hudson.model.Run.run(Run.java:559)
at hudson.maven.MavenBuild.run(MavenBuild.java:128)
at hudson.model.Executor.run(Executor.java:59)


Doing an echo on $JAVA_HOME  shows it is set correctly to
/app/maven/java/java6/jdk1.6.0_01

What could be causing this?




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



Re: Build failure out of the blue

2007-07-17 Thread Jeff Mutonho

On 7/17/07, Maria Odea Ching [EMAIL PROTECTED] wrote:

Hi,

Try executing 'which java' from the command line and trace from this
which java (the one displayed may be an alternate only) is being
executed to verify if the java you're using is really 1.6. It might not
exactly be a Maven problem :-)


You're absolutely right.The output is :
bash-2.05$ which java
/usr/bin/java
bash-2.05$ java -version
java version 1.4.2_05
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
bash-2.05$

The system wide java executable is pointing to that 1.4 runtime as
there are other applications that are using 1.4.How can I override and
force maven to use the 1.6 one?



--

Don't take the name of root in vain.

Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042

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



I must be doing something dumb, surely

2007-07-17 Thread Paul Smith
I tried the archiva alpha-2 distribution and trunk, but I'm having  
trouble do a simple 'mvn deploy' to an Archiva snapshot repo that has  
been freshly setup with just the admin user.


I get this output:


[INFO] [deploy:deploy]
altDeploymentRepository = null
[INFO] Retrieving previous build number from aconex.snapshots
Uploading: http://forge.engr.acx:9091/archiva/repository/snapshots/ 
com/aconex/tomcat/SessionPersistence/1.0.1-SNAPSHOT/ 
SessionPersistence-1.0.1-20070717.080731-1.jar

4K uploaded
[INFO]  


[ERROR] BUILD ERROR
[INFO]  

[INFO] Error deploying artifact: Failed to transfer file: http:// 
forge.engr.acx:9091/archiva/repository/snapshots/com/aconex/tomcat/ 
SessionPersistence/1.0.1-SNAPSHOT/ 
SessionPersistence-1.0.1-20070717.080731-1.jar. Return code is: 405



What I don't get is any logging output is the Archiva console under a  
'mvn clean jetty:run'.


I have verified with a Windows Webdav client that I can write to the  
repository using the same username/password combo as defined via  
settings.xml, and I'm pretty sure that my distributionManagement  
matches the ones that are intimated (save for the 'dav://' reference,  
I've searched and found it still should be http://) in the Maven  
configuration guide.


Any ideas?  405 is Method not Allowed.

[my pom.xml snippet]
  distributionManagement
repository
  idaconex/id
  nameAconex Internal Repository/name
  urlhttp://forge.engr.acx:9091/archiva/repository/internal/url
/repository
snapshotRepository
  idaconex.snapshots/id
  nameAconex Internal Snapshot Repository/name
  urlhttp://forge.engr.acx:9091/archiva/repository/snapshots/ 
url

/snapshotRepository
  /distributionManagement

[just to verify that I'm using the correct wagon-webdav bit]
..
extensions
  extension
groupIdorg.apache.maven.wagon/groupId
artifactIdwagon-webdav/artifactId
version1.0-beta-2/version
  /extension
/extensions


[my settings.xml snippet]
...
profile
  idAconex Repository Proxy/id
  activation
activeByDefaulttrue/activeByDefault
  /activation
!-- *** --
!-- repositories for jar artifacts --
!-- *** --
  repositories
repository
  idaconex/id
  nameArchiva Managed Internal Repository/name
  urlhttp://forge.engr.acx:9091/archiva/repository/ 
internal/url

  releases
enabledtrue/enabled
  /releases
  snapshots
enabledfalse/enabled
  /snapshots
/repository
repository
  idaconex.snapshots/id
  nameArchiva Managed Snapshot Repository/name
  urlhttp://forge.engr.acx:9091/archiva/repository/ 
snapshots/url

  releases
enabledfalse/enabled
  /releases
  snapshots
enabledtrue/enabled
  /snapshots
/repository
  /repositories
/profile
...
  servers
server
  idaconex/id
  usernameadmin/username
  password*cough*/password
/server
server
  idaconex.snapshots/id
  usernameadmin/username
  password*cough*/password
/server
server
  /servers






webapp plugin

2007-07-17 Thread John Coleman
Hi,

 

I have developed a plugin that filters js and jsp files to customize
them prior to packaging.

 

I was going to bind the plugin to the package phase but it would make
more sense to apply the filtering during the copy of the webapp
directory to the target. If I apply during the package phase then the
plugin will replace the unfiltered files copied in during the earlier
copy phase. This seems a bit wasteful.

 

The plugin also expects 2 parameters, these being the source directory
and the target directory.

 

Which phase should I bind to, and are there any properties that I can
use to default the source and target. I tried ${maven.war.src} and
${maven.war.webapp.dir}, but they are null so perhaps they are Maven1
only?

 

TIA

 

John Coleman, MSTA

Senior Developer Consultant

 

Eurobase Banking Solutions 
Bury House, 31 Bury Street,

London EC3A 5AG, U.K.

Office:  +44 (0)1245 496 706, Fax: +44 (0)20 7626 6203

Mobile: +44 (0)7734 506586

 


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

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

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

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



question as regards properties in maven.

2007-07-17 Thread Nolan, Edell
Hi,
 
I am trying to set a property in maven and I want this to work on both
windows and unix
 
ideally what I want to set is
 
Windows:
 
file:/c:/tmp/service.ior
 
Unix
 
file:/tmp/service.ior
 
I have tried using the java.io.tmpdir but it generates
 
file:/ +  c:\tmp\ + service.ior
 
Is there a way to convert the path to unix format in maven or is there a
way I could even hard code the two properties and then
use one based on os.arch in maven - or is my only option to fork out to
calling an ant task.
 
thanks, Edell.


IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland


Maven does not get latest snapshot from repository

2007-07-17 Thread andreas.ebbert-karroum
Hi,
 
I've a weird (for me) build problem. There's an updated snapshot version
on the repository, but maven is not pulling that down for the build, but
rather uses my local version. Under which conditions can this happen,
and how do I resolve it (except for maybe trashing the whole
.m2/repository).
 
[INFO] snapshot ossj.jsr264:oss_om_ri_xsd:0.11-SNAPSHOT: checking for
updates from JSR264 internal
[DEBUG] repository metadata for: 'snapshot
ossj.jsr264:oss_om_ri_xsd:0.11-SNAPSHOT' could not be found on
repository: JSR264 internal
[INFO] snapshot ossj.jsr264:oss_om_ri_xsd:0.11-SNAPSHOT: checking for
updates from JSR144 internal
[DEBUG] repository metadata for: 'snapshot
ossj.jsr264:oss_om_ri_xsd:0.11-SNAPSHOT' could not be found on
repository: JSR144 internal
[INFO] snapshot ossj.jsr264:oss_om_ri_xsd:0.11-SNAPSHOT: checking for
updates from Codehaus Snapshots
[DEBUG] repository metadata for: 'snapshot
ossj.jsr264:oss_om_ri_xsd:0.11-SNAPSHOT' could not be found on
repository: Codehaus Snapshots
[DEBUG] Skipping disabled repository central
[DEBUG] oss_om_ri_xsd: using locally installed snapshot
[DEBUG] ossj.jsr264:oss_om_ri_xsd:jar:0.11-SNAPSHOT:compile
(selected for compile)
[DEBUG]   xmlbeans:xmlbeans:jar:2.3.0:compile (selected for compile)
[DEBUG] stax:stax-api:jar:1.0.1:compile (selected for compile)
 
What's the repository metadata, that is supposed to be missing?
 
Andreas


Re: Maven does not get latest snapshot from repository

2007-07-17 Thread Wendy Smoak

On 7/17/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:


I've a weird (for me) build problem. There's an updated snapshot version
on the repository, but maven is not pulling that down for the build, but
rather uses my local version. Under which conditions can this happen,
and how do I resolve it (except for maybe trashing the whole
.m2/repository).


Without knowing when you executed builds and when the snapshot was
deployed, it's hard to say exactly what's happening.  My guess is that
the snapshot was not there the first time you built today, and the
default repository update policy of once per day is in effect.

Try adding -U to the command line and see if it downloads.  If that
doesn't work, deleting the directory tree from your local repo
certainly should.  (You don't have to delete the entire thing.)

Before you do that, can you watch network traffic for a build and see
if Maven is really making calls out to the repositories when it
complains that the metadata is missing?

ISTR complaints that Maven would download a snapshot from a repo even
when there is a newer snapshot locally, (which is the reverse of your
situation,) so keep an eye on that as well.

--
Wendy

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



Re: I must be doing something dumb, surely

2007-07-17 Thread Wendy Smoak

On 7/17/07, Paul Smith [EMAIL PROTECTED] wrote:

I tried the archiva alpha-2 distribution and trunk, but I'm having
trouble do a simple 'mvn deploy' to an Archiva snapshot repo that has
been freshly setup with just the admin user.

I get this output:

...

I have verified with a Windows Webdav client that I can write to the
repository using the same username/password combo as defined via
settings.xml, and I'm pretty sure that my distributionManagement
matches the ones that are intimated (save for the 'dav://' reference,
I've searched and found it still should be http://) in the Maven
configuration guide.

Any ideas?  405 is Method not Allowed.


Can you point out where you read that?

Michael is correct.  Right now, it should be dav:http:// for deployment.

--
Wendy


Doxia maven plugin with maven 2.0.7

2007-07-17 Thread Dave Syer

Is it possible to use the doxia maven plugin
(http://maven.apache.org/doxia/book/index.html) with maven 2.0.7.  I have to
specify a snapshot repo to get the plugin to load at all, and then it fails
miserably during mvn site with 

urls[19] = file:/C:/Documents and Settings/David
Syer/.m2/repository/org/apache/
maven/reporting/maven-reporting-impl/2.0.2/maven-reporting-impl-2.0.2.jar
Number of imports: 4
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]


this realm = plexus.core
urls[0] = file:/c:/Programs/maven-2.0.7/lib/maven-core-2.0.7-uber.jar
Number of imports: 4
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
import: [EMAIL PROTECTED]
-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.maven.dox
ia:doxia-maven-plugin:1.0-SNAPSHOT:render-books': Unable to find the mojo
'org.a
pache.maven.doxia:doxia-maven-plugin:1.0-SNAPSHOT:render-books' in the
plugin 'o
rg.apache.maven.doxia:doxia-maven-plugin'
org/apache/maven/doxia/module/xdoc/XdocSink

Anybody using doxia to build a book?
-- 
View this message in context: 
http://www.nabble.com/Doxia-maven-plugin-with-maven-2.0.7-tf4096101s177.html#a11646993
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: Failed to validate POM warning

2007-07-17 Thread Joel COSTIGLIOLA \(Services DPT SYSTEME D INFORMATION METIER\)
I have run validate commands on my projects ObjetTrouveService and Sapiens Core
(ObjetTrouveService depends on Sapiens Core), the result is ok but when I tried 
to compile 
ObjetTrouveService then the warning come back ... (see trace)

[INFO] Scanning for projects...
[INFO] 

[INFO] Building Sapiens Core
[INFO]task-segment: [validate]
[INFO] 

[INFO] No goals needed for project - skipping
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 1 second
[INFO] Finished at: Tue Jul 17 13:08:50 CEST 2007
[INFO] Final Memory: 2M/4M
[INFO] 


[INFO] Scanning for projects...
[INFO] 

[INFO] Building ObjetTrouve Service
[INFO]task-segment: [validate]
[INFO] 

[INFO] No goals needed for project - skipping
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 1 second
[INFO] Finished at: Tue Jul 17 13:09:12 CEST 2007
[INFO] Final Memory: 4M/8M
[INFO] 

D:\bea_dev\ApplicationModele\BAS\ObjetTrouveServicemvn compile
[INFO] Scanning for projects...
[INFO] 

[INFO] Building ObjetTrouve Service
[INFO]task-segment: [compile]
[INFO] 

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'sapiens:SapiensCommonsCore:pom:2.6.0:compile' is invalid. It 
will be ignored for artifact resolution. Reason: Failed to validate POM f
or project sapiens:SapiensCommonsCore at Artifact 
[sapiens:SapiensCommonsCore:pom:2.6.0:compile]
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] BUILD SUCCESSFUL
[INFO] 
[INFO] Total time: 3 seconds
[INFO] Finished at: Tue Jul 17 13:09:20 CEST 2007
[INFO] Final Memory: 6M/11M
[INFO] 

Joël Costigliola

 
-Message d'origine-
De : Rémy Sanlaville [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 16 juillet 2007 11:09
À : Maven Users List
Objet : Re: Failed to validate POM warning


 By the way, is there a tool or plugin to validate a POM ?


mvn validate ?

Rémy

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



Re: webapp plugin

2007-07-17 Thread Jochen Wiedmann

On 7/17/07, John Coleman [EMAIL PROTECTED] wrote:


I have developed a plugin that filters js and jsp files to customize
them prior to packaging.


The filtering possibilities provided by the maven-war-plugin aren't sufficient?

IMO, filtering should be an abstract mechanism, as implemented in Ant,
with customizable filters. That would most possibly have saved you 50%
of the job or more.




I was going to bind the plugin to the package phase but it would make


No, that doesn't make sense. Use the generate-resources phase, write
the filtered result to a directory below target and add that directory
as a resource to the maven-war-plugin's configuration.



The plugin also expects 2 parameters, these being the source directory
and the target directory.


Use meaningful defaults like

   expression=${myplugin.srcdir default=src/main/myplugin
   expression=${myplugin.destdir
default=${project.build.directory}/myplugin

Jochen


--
Besides, manipulating elections is under penalty of law, resulting in
a preventative effect against manipulating elections.

The german government justifying the use of electronic voting machines
and obviously  believing that we don't need a police, because all
illegal actions are forbidden.

http://dip.bundestag.de/btd/16/051/1605194.pdf

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



Version Range issue

2007-07-17 Thread Adrian Shum
Dear all,

I know that I can use version range to identify which range of version my 
application should use.

For example, as a normal practice,  library version with same Major and Minor 
number in version 
are considered as compatible.  How should I set my dependency version range to 
reflect this?
Can I use  [1.2 , 1.3)   to denote I am dependent on 1.2.* version?

However, from the book Better Builds with Maven, I was told that version with 
Qualifier is considered
older than version without.  That means, for the above version range, 1.3-ALPHA 
is considered
fall into the range, am I right?  If so, how should I declare the dependency 
version range?

Thanks a lot


--
AdRiAN ShUM
(-: Don’t worry, Be Happy :-)


This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers (Parties) 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parties do not accept 
liability for any damage caused by this email.


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



webapp plugin/mavenide

2007-07-17 Thread John Coleman
I got my plugin working and want to bind it to prepare-package, but
that's in Maven2.1. Is there way to do this task in Maven2?

TIA

John


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

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

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

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


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



Re: webapp plugin/mavenide

2007-07-17 Thread Milos Kleint

John Coleman wrote:

I got my plugin working and want to bind it to prepare-package, but
that's in Maven2.1. Is there way to do this task in Maven2?

TIA
  


are you using maven support in netbeans? that one by default builds with 
a custom 2.0.4-like maven2 embedder.
allowing to build with any external version of maven2 is TBD. Upgrading 
to a more uptodate version of maven2 embedder is TBD as well. The 
current trunk is not as stable as the version currently used.


Milos

John


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

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


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

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


-
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 does not get latest snapshot from repository

2007-07-17 Thread andreas.ebbert-karroum
Hi,

Thanks for your help. Actually the issue was a little tricky. Someone
thought it might be a good idea to deploy by ftp-ing the directory from
the local repository. That also caused the warning about the missing
repository metadata. 

After I removed the directory from the remote repository and deployed
again, it works as expected.

Andreas 

-Original Message-
From: ext Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: 17 July, 2007 12:36
To: Maven Users List
Subject: Re: Maven does not get latest snapshot from repository

On 7/17/07, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:

 I've a weird (for me) build problem. There's an updated snapshot 
 version on the repository, but maven is not pulling that 
down for the 
 build, but rather uses my local version. Under which conditions can 
 this happen, and how do I resolve it (except for maybe trashing the 
 whole .m2/repository).

Without knowing when you executed builds and when the snapshot 
was deployed, it's hard to say exactly what's happening.  My 
guess is that the snapshot was not there the first time you 
built today, and the default repository update policy of once 
per day is in effect.

Try adding -U to the command line and see if it downloads.  If 
that doesn't work, deleting the directory tree from your local 
repo certainly should.  (You don't have to delete the entire thing.)

Before you do that, can you watch network traffic for a build 
and see if Maven is really making calls out to the 
repositories when it complains that the metadata is missing?

ISTR complaints that Maven would download a snapshot from a 
repo even when there is a newer snapshot locally, (which is 
the reverse of your
situation,) so keep an eye on that as well.

--
Wendy

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



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



[1.0.3] how do i resume/abort a stuck build

2007-07-17 Thread CodingPlayer

Hi,

i'm using Continuum 1.0.3 (as continuous integration).


after creating a new project the first build stuck during the
site:deploy-phase.

last lines of the build output:

   [INFO] [site:deploy]
   Using private key: /home/continuum/.ssh/id_dsa


now the build is stuck.

How do i reset the build? (Stopping and restarting the continuum server
didn't help.)

How can i abort a running build process??


What could be the problem? Do i need to create the directories manually (at
the server).
Is it possible that some user rights are missing?

thx 4 help
R.C.


-- 
View this message in context: 
http://www.nabble.com/-1.0.3--how-do-i-resume-abort-a-stuck-build-tf4096967.html#a11649508
Sent from the Continuum - Users mailing list archive at Nabble.com.



Re: property dependent resources

2007-07-17 Thread Steven Rowe
Hi Severin,

Here's an undocumented profiles trick:

profiles
  profile
idundefined-property-value/id
activation
  property
name!my.property.name/name
  /property
/activation
properties
  my.property.namedefault-value-here/my.property.name
/properties
  /profile
  ...
/profiles

The ! in front of my.property.name in the activation section triggers
the profile if my.property.name is not defined.  This trick also works
with property value-based activation - you can activate a profile when a
named property has some value other than that specified, by prepending
an exclamation point to the value.

Note that profiles in POMs can also have resources sections, so you
could set up your property-based inclusions/execlusions/filtering there.

Steve

Severin Ecker wrote:
 hi,
 
 i was looking for a possibility to include/exclude (and filter) my
 resources depending on the value of a property.
 reading around in different documents and tutorials i found out that i
 can filter my resources using system properties.
 
 so far so good, but what i couldn't find out is, how to set this system
 property to a default value within the pom file if it wasn't specified
 on the command line (afaik one can only specify/create project
 properties but not system properties in the pom file under
 build/properties right?), or fail to execute any lifecycle if said
 property was not specified.
 what i don't want is to have maven look for resources like
 ${failed.to.specify.property}.
 
 is there a way to do this?
 
 oh and a second question.
 how do i exclude all subdirectories of a directory in the resources but
 still include the directory i'm in?
 excludes
 excludemydirwithsubdirs/**/*.*/exclude
 /excludes
 
 also excludes 'mydirwithsubdirs' and all its containing files. problem
 is, i don't know/want to explicitely specify the names of all subdirs in
 the pomfile.
 
 thanks in advance!
 
 cheers,
 severin



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



RE: webapp plugin/mavenide

2007-07-17 Thread John Coleman
Yes Milos, Mavenide2.3 with embedded Maven, no idea what version. I see
Maven2.1 is not available yet anyway. But would just be nice to have
prepare-package available for me now.

The problem is the package goal also does the copy over of webapp
resources I want to tweak, so I can't see a way to fit in my plugin. It
seems I must hack the package plugin for this?

Thanks,
John

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2007 14:14
To: Maven Users List
Subject: Re: webapp plugin/mavenide

John Coleman wrote:
 I got my plugin working and want to bind it to prepare-package, but
 that's in Maven2.1. Is there way to do this task in Maven2?

 TIA
   

are you using maven support in netbeans? that one by default builds with

a custom 2.0.4-like maven2 embedder.
allowing to build with any external version of maven2 is TBD. Upgrading 
to a more uptodate version of maven2 embedder is TBD as well. The 
current trunk is not as stable as the version currently used.

Milos
 John


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

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

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

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


 -
 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: Profile activation - release

2007-07-17 Thread Steven Rowe
Hi Barrett,

Here's what I do in this situation:

plugin
  artifactIdmaven-release-plugin/artifactId
  configuration
...
arguments-Pmy.release.profile/arguments
  /configuration
/plugin

the -Pprofile-id argument activates profile-id when the release:*
goals are run.

Steve

Barrett Nuzum wrote:
 Hi everyone.
  
 I have a plugin that needs to be executed in two different configurations.
 One configuration is for when being released with the release plugin only.
 Another is for all other times.
  
 I've figured out the profiles configuration for the execution of the plugins 
 -- but the
 activation is killing me. 
  
 I noticed the Super POM has a releasePerform activation.
 I tried to copy it, but it did not work.
  
 I also tried just using the existence of a property, but that did not seem to 
 work.
 That is to say --
 profiles
 profile
 id1/id
 activation
 property
name!someProperty
 [...]
 profile
 id2/id
 activation
 property
namesomeProperty
  
 Any suggestions? 
  
 Barrett


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



Choice of implementation language for writing Maven2 Plugins

2007-07-17 Thread Ritu Kedia
Hi,
 
We are currently investigating the implementation language for writing
Maven2 Plugins. 
We have looked at all the 3 options available today in Maven2, namely:
- Java
- Ant Scripting
- Scripting Languages (looked at Beanshell, Groovy, JRuby)
 
Our parameters for evaluation are:
- Maturity of the platform
- Ease of Development 
- Ease of Maintenance
- Performance 
- Available set of tools/libraries required for Plugin development
 
Based on our analysis/requirements we have reduced our choice of
implementation language to:
Java OR Groovy
 
In terms of Performance, Java would beat the scripting options by a big
percentage. However for build activities, which involve heavy Disk IO tasks,
the performance comparisons would have to be looked at differently. For
instance we compared the performance of a pre-compiled Groovy script with
Java where both of them issued 100 Copy statements on a directory containing
10 files of 10KB each and both Groovy and Java used the same Java libraries
to do the Copy. The execution times were almost on par. We would like to
know if others have done similar profiling and have results/experience that
they can share. Performance is an important factor in our decision making
and so any comments on this would be much appreciated.
 
In terms of Maturity, Groovy is yet to come up the mark. But given that it
is in the process of being standardized as the sanctioned scripting language
on Java Platform (JSR-241), I would expect it to be a safe bet.
 
In terms of Ease of Development and Available set of tools/libraries for
Plugin development, Groovy's AntBuilder seems to be a very attractive
option. We have also taken a look at the available Maven Plexus Utilities
for the same. Firstly the documentation for Plexus utilities is poor and
secondly but more importantly the available set of Plexus utilities do not
match up to the Ant utilties/tasks. Secondly we are talking about build
tasks, most of which are already available in Ant and are very well
documented and tested. Thirdly Groovy's AntBuilder provides a declarative
syntax for defining Ant tasks and makes the scripts much more concise and
readable. Finally Groovy provides us the power of a programming language
along with declarative Ant inclusion. These factors coupled with the fact
that we are basically migrating our existing jelly scripts that use ant
heavily and have so far sufficed for all our requirements, to Maven MOJOs
makes Groovy more attractive than Java. I am really interested to know the
views of people on Groovy vs Java for writing build tasks.
 
Also I saw that the Groovy MOJO support is in alpha release. When is it
expected to be available as a stable release? What is Maven team's overall
push and direction in promoting Groovy as the standard scripting language.
 
Thanks in advance,
Ritu
 
 


maven changelog report

2007-07-17 Thread Rajiv Kumar Poddar
Hi,
 I configured maven-changelog-plugin as follows -
reporting
...
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-changelog-plugin/artifactId
   reportSets
 reportSet
 idchange-report/id
 configuration
 typedate/type
 dates
   date
implementation=java.lang.String2007-07-02/date
   date
implementation=java.lang.String2007-07-14/date
 /dates
 dateFormat-MM-dd/dateFormat
/configuration
 reports
  reportchangelog/report
  reportdev-activity/report
  reportfile-activity/report 
 /reports
/reportSet
   /reportSets
 /plugin
/reporting
 
and also put the developers section in the pom.
 
But when I do mvn changelog:dev-activity, developers-activity report is
not generated.
 
Please tell me, where am I making mistake??
 
Thanks.



RE: Profile activation - release

2007-07-17 Thread Barrett Nuzum
Steven:
 
Thanks for the response.
 
That would work -- except the profiles need to be mutually exclusive.
If the my.release.profile is active, the my.snapshot.profile needs to be 
inactive.
 
Anybody got any idea why the exact syntax from the Super POM does nothing?
 
Barrett
 
::   
Barrett Nuzum
Consultant, Skill Development
Direct: 918.640.4414
Fax: 972.789.1340 

Valtech Technologies, Inc.
5080 Spectrum Drive
Suite 700 West
Addison, Texas 75001
www.valtech.com http://www.valtech.com/   
making IT business friendly




From: Steven Rowe [mailto:[EMAIL PROTECTED]
Sent: Tue 7/17/2007 9:03 AM
To: Maven Users List
Subject: Re: Profile activation - release



Hi Barrett,

Here's what I do in this situation:

plugin
  artifactIdmaven-release-plugin/artifactId
  configuration
...
arguments-Pmy.release.profile/arguments
  /configuration
/plugin

the -Pprofile-id argument activates profile-id when the release:*
goals are run.

Steve

Barrett Nuzum wrote:
 Hi everyone.
 
 I have a plugin that needs to be executed in two different configurations.
 One configuration is for when being released with the release plugin only.
 Another is for all other times.
 
 I've figured out the profiles configuration for the execution of the plugins 
 -- but the
 activation is killing me.
 
 I noticed the Super POM has a releasePerform activation.
 I tried to copy it, but it did not work.
 
 I also tried just using the existence of a property, but that did not seem to 
 work.
 That is to say --
 profiles
 profile
 id1/id
 activation
 property
name!someProperty
 [...]
 profile
 id2/id
 activation
 property
namesomeProperty
 
 Any suggestions?
 
 Barrett


-
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: Compilation issues

2007-07-17 Thread jaxzin

The problem (caused by a cut/paste error) was that my packaging in the POM
was 'pom' instead of 'jar'.


jaxzin wrote:
 
 Anyone know why mvn compile runs with no goals needed for project -
 skipping but mvn compiler:compile runs just fine for my project?
 
  
 
 Thanks,
 
 Brian
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Compilation-issues-tf4094474s177.html#a11650504
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Maven Training

2007-07-17 Thread Ferguson, Jason M TSgt 375 CSPTS/SCE
Are questions related to possible commercial training for Maven allowed
on this list? I'm looking for copanies providing training, but don't
want to break any list rules.
 
Jason
 
p.s. I've got a copy of Better Builds With Maven, but I'm looking for
commercial training so that all of the C# developers don't get all of
the training money.


Re: Maven Training

2007-07-17 Thread Kit Plummer

We had Bruce Snyder, from IONA (was LogicBlaze), come in.  Worth it.

I think DevZuz might be worth looking at too...

Ferguson, Jason M TSgt 375 CSPTS/SCE wrote:

Are questions related to possible commercial training for Maven allowed
on this list? I'm looking for copanies providing training, but don't
want to break any list rules.
 
Jason
 
p.s. I've got a copy of Better Builds With Maven, but I'm looking for

commercial training so that all of the C# developers don't get all of
the training money.



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



Re: Maven Training

2007-07-17 Thread Antonio Petrelli

2007/7/17, Ferguson, Jason M TSgt 375 CSPTS/SCE [EMAIL PROTECTED]:

Are questions related to possible commercial training for Maven allowed
on this list? I'm looking for copanies providing training, but don't
want to break any list rules.


http://www.sonatype.com/training/

Antonio

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



Trigger multiple phases in a plugin

2007-07-17 Thread Roland Asmann
Hi,

I'm working on a plugin, that needs the results of the 'install' and 'site' 
phases. However, I can't figure out how to define this in the MOJO.
I can define one of them, which results in too few files being generated, but 
when I define both, the MOJO doesn't run.

Could someone tell me how I can configure my MOJO to trigger multiple phases, 
so that I am sure all the necessary data is available?

Thanks,

-- 
Roland Asmann

CFC Informationssysteme Entwicklungsgesellschaft m.b.H
Bäckerstrasse 1/2/7
A-1010 Wien
FN 266155f, Handelsgericht Wien

Tel.: +43/1/513 88 77 - 27
Fax.: +43/1/513 88 62
Email: [EMAIL PROTECTED]
Web: www.cfc.at

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



RE: maven changelog report

2007-07-17 Thread mac-systems
Actually i face the same Problem. 

I using SVN as Repository.

- Jens

Hi,
 I configured maven-changelog-plugin as follows -
reporting
...
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-changelog-plugin/artifactId
   reportSets
 reportSet
 idchange-report/id
 configuration
 typedate/type
 dates
   date
implementation=java.lang.String2007-07-02/date
   date
implementation=java.lang.String2007-07-14/date
 /dates
 dateFormat-MM-dd/dateFormat
/configuration
 reports
  reportchangelog/report
  reportdev-activity/report
  reportfile-activity/report 
 /reports
/reportSet
   /reportSets
 /plugin
/reporting
 
and also put the developers section in the pom.
 
But when I do mvn changelog:dev-activity, developers-activity report is
not generated.
 
Please tell me, where am I making mistake??
 
Thanks.

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



Re: maven changelog report

2007-07-17 Thread Dennis Lundberg

Hi Rajiv

Please check if the file target/changelog.xml exists. This is an xml 
file that repesents the changes that were collected from your SCM.


If it does, make sure that you have set the developers/developer/id 
element in your pom.xml to the same value as the changelog-entry/author 
(excluding the CDATA wrapper) in changelog.xml.


Rajiv Kumar Poddar wrote:

Hi,
 I configured maven-changelog-plugin as follows -
reporting
...
plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-changelog-plugin/artifactId
   reportSets
 reportSet
 idchange-report/id
 configuration
 typedate/type
 dates
   date
implementation=java.lang.String2007-07-02/date
   date
implementation=java.lang.String2007-07-14/date
 /dates
 dateFormat-MM-dd/dateFormat
/configuration
 reports
  reportchangelog/report
  reportdev-activity/report
  reportfile-activity/report 
 /reports

/reportSet
   /reportSets
 /plugin
/reporting
 
and also put the developers section in the pom.
 
But when I do mvn changelog:dev-activity, developers-activity report is

not generated.
 
Please tell me, where am I making mistake??
 
Thanks.





--
Dennis Lundberg

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



Maven site

2007-07-17 Thread Pat US
Hi,

Please, can anybody help me with this error? I used
often 'maven site' and suddenly it stoped working

I use maven 1.1-RC1-SNAPSHOT and these reports:

reportmaven-jdepend-plugin/report
reportmaven-javadoc-plugin/report
reportmaven-cobertura-plugin/report

Thank you,

Pat

Exception stack traces :
org.apache.maven.werkz.UnattainableGoalException:
Unable to obtain goal [site]
at
org.apache.maven.werkz.Goal.fire(Goal.java:654)
at
org.apache.maven.werkz.Goal.attain(Goal.java:582)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:711)
at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:264)
at
org.apache.maven.cli.App.doMain(App.java:305)
at org.apache.maven.cli.App.main(App.java:218)
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:597)
at
com.werken.forehead.Forehead.run(Forehead.java:551)
at
com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: org.apache.commons.jelly.JellyTagException:
file:/user/Stu/E_12/patricia/.maven/cache/maven-xdoc-plugin-1.9.2/plugin.jelly:618:70:
j:arg [Ljava.lang.Object;
at
org.apache.commons.jelly.tags.core.ArgTag.doTag(ArgTag.java:103)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
at
org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:120)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:82)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:115)
at
org.apache.maven.werkz.Goal.fire(Goal.java:647)
at
org.apache.maven.werkz.Goal.attain(Goal.java:582)
at
org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:494)
at
org.apache.maven.werkz.Goal.attain(Goal.java:580)
at
org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:494)
at
org.apache.maven.werkz.Goal.attain(Goal.java:580)
at
org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:208)
at
org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:82)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:115)
at
org.apache.maven.werkz.Goal.fire(Goal.java:647)
... 11 more
Caused by: java.lang.ClassNotFoundException:
[Ljava.lang.Object;
at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.commons.jelly.tags.core.ArgTag.doTag(ArgTag.java:101)
... 32 more



   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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



Re: Maven site

2007-07-17 Thread Arnaud HERITIER

Don't you have a jar corrupted on your system ?
For example in the JVM ?

Arnaud

On 17/07/07, Pat US [EMAIL PROTECTED] wrote:

Hi,

Please, can anybody help me with this error? I used
often 'maven site' and suddenly it stoped working

I use maven 1.1-RC1-SNAPSHOT and these reports:

reportmaven-jdepend-plugin/report
reportmaven-javadoc-plugin/report
reportmaven-cobertura-plugin/report

Thank you,

Pat

Exception stack traces :
org.apache.maven.werkz.UnattainableGoalException:
Unable to obtain goal [site]
at
org.apache.maven.werkz.Goal.fire(Goal.java:654)
at
org.apache.maven.werkz.Goal.attain(Goal.java:582)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:711)
at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:264)
at
org.apache.maven.cli.App.doMain(App.java:305)
at org.apache.maven.cli.App.main(App.java:218)
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:597)
at
com.werken.forehead.Forehead.run(Forehead.java:551)
at
com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: org.apache.commons.jelly.JellyTagException:
file:/user/Stu/E_12/patricia/.maven/cache/maven-xdoc-plugin-1.9.2/plugin.jelly:618:70:
j:arg [Ljava.lang.Object;
at
org.apache.commons.jelly.tags.core.ArgTag.doTag(ArgTag.java:103)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
at
org.apache.commons.jelly.tags.core.InvokeStaticTag.doTag(InvokeStaticTag.java:120)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:82)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:115)
at
org.apache.maven.werkz.Goal.fire(Goal.java:647)
at
org.apache.maven.werkz.Goal.attain(Goal.java:582)
at
org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:494)
at
org.apache.maven.werkz.Goal.attain(Goal.java:580)
at
org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:494)
at
org.apache.maven.werkz.Goal.attain(Goal.java:580)
at
org.apache.maven.werkz.WerkzProject.attainGoal(WerkzProject.java:208)
at
org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:114)
at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:250)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:82)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:115)
at
org.apache.maven.werkz.Goal.fire(Goal.java:647)
... 11 more
Caused by: java.lang.ClassNotFoundException:
[Ljava.lang.Object;
at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at
java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.apache.commons.jelly.tags.core.ArgTag.doTag(ArgTag.java:101)
... 32 more





Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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





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

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



Maven embedder simple example

2007-07-17 Thread guilherme_silveira

Hello there,

I have searched both users and dev mailing list archive but could not find a
simple example appart from 

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

The problem here is that Configuration, DefaultConfiguration and
DefaultMavenExecutionRequest cannot be found if my pom only includes
maven-core, maven-embedder and maven-project. The example above does not
mention which dependencies should be included for such types (I have tried a
few, 'fishing eye' some of them around)

The found api itself does not contain some of the methods mentioned in such
example. Deprecated tutorial maybe?

Can anyone please point me where to find such dependencies?

Regards

Guilherme
-- 
View this message in context: 
http://www.nabble.com/Maven-embedder-simple-example-tf4099532s177.html#a11657913
Sent from the Maven - Users mailing list archive at Nabble.com.


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



multiple runs of xmlbeans in the same lifecycle

2007-07-17 Thread andreas.ebbert-karroum
Hi,
 
we have a problem with the xml beans plugin. We have to compile a set of XML 
Schema with different configurations (details on request). The problem is that 
the plugin for the second run always reports that everything is up to date and 
nothing needs to be generated. It works fine if I touch a schema and then run 
the mojo, but even on a second run with a clean in between, it's failing again.
 
1) is xmlbeans storing somewhere besides the project, if it needs to generate 
the classes again?
2) is it normal behaviour for a plugin to assume it has nothing to do, if it 
was run already in the previous run?
 
Thanks for your feedback (as always :)
 
Andreas Ebbert-Karroum 
  Senior Software Design Engineer - Nokia Siemens Networks / Operations  
Business Software 
  phone: +49-211-94123928, fax: +49-211-94123838 
  Heltorfer Straße 1, 40472 Düsseldorf, Germany 




Nokia Siemens Networks GmbH  Co. KG * Sitz der Gesellschaft: München / 
Registered office: Munich * Registergericht: München / Commercial registry: 
Munich, HRA 88537 * WEEE-Reg.-Nr.: DE 52984304 

Persönlich haftende Gesellschafterin / General Partner: Nokia Siemens Networks 
Management GmbH * Geschäftsleitung / Board of Directors: Joachim Malterer, 
Lydia Sommer * Sitz der Gesellschaft: München / Registered office: Munich * 
Registergericht: München / Commercial registry: Munich, HRB 163416 



This message is confidential. If you have received this message in error, 
please delete it from your system. You should not copy it for any purpose, or 
disclose its contents to any other person. Internet communications are not 
secure and therefore Nokia Siemens Networks GmbH  Co. KG does not accept legal 
responsibility for the contents of this message as it has been transmitted over 
a public network. Thank you.

Nokia Siemens Networks GmbH  Co. KG is a German Company. Further information 
about the Company is available from its offices at Heltorferstrasse 1, D-40472, 
Düsseldorf, Germany and from the website at http://www.nsn.com/





Re: Maven embedder simple example

2007-07-17 Thread Jason van Zyl


On 17 Jul 07, at 2:14 PM 17 Jul 07, guilherme_silveira wrote:



Hello there,

I have searched both users and dev mailing list archive but could  
not find a

simple example appart from

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

The problem here is that Configuration, DefaultConfiguration and
DefaultMavenExecutionRequest cannot be found if my pom only includes
maven-core, maven-embedder and maven-project. The example above  
does not
mention which dependencies should be included for such types (I  
have tried a

few, 'fishing eye' some of them around)

The found api itself does not contain some of the methods mentioned  
in such

example. Deprecated tutorial maybe?

Can anyone please point me where to find such dependencies?



This only works from trunk, and you need to build it yourself. All  
IDE integration uses it but it's not for the faint of heart. The  
first publicly usable version will be released with 2.1-alpha-1. And  
no, I don't know exactly when we will release that.



Regards

Guilherme
--
View this message in context: http://www.nabble.com/Maven-embedder- 
simple-example-tf4099532s177.html#a11657913

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: I must be doing something dumb, surely

2007-07-17 Thread Paul Smith

Can you point out where you read that?

Michael is correct.  Right now, it should be dav:http:// for  
deployment.




Ok, now I'm starting to think I ate some bad cheese and was  
hallucinating. the dav:http://... works.I had tried dav://...  
and http://; but not dav:http://;.  I was probably just tired when  
reading things.


Thanks for your help peoples.

cheers,

Paul


Re: Maven embedder simple example

2007-07-17 Thread guilherme_silveira

great, thanks for the reply. answers all my questions

regards

guilherme
-- 
View this message in context: 
http://www.nabble.com/Maven-embedder-simple-example-tf4099532s177.html#a11659633
Sent from the Maven - Users mailing list archive at Nabble.com.


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



release:perform - How do I suppress the version prompts

2007-07-17 Thread Max Stepanenko

I would like to wrap my release:prepare and release:perform in some sort of
a script (ant??), so that there is this magical button that someone can
press to prepare and release our software. That said, release:perform,
requires some user input (versions). Is there anyway to avoid/streamline
this? What is the common approach to problem, is writing an ant script that
will call release:prepare and release:perform w the arguments of my choice a
good approach?

Regards,
Max


Re: release:perform - How do I suppress the version prompts

2007-07-17 Thread Dan Tran

mvn release:prepare -B


On 7/17/07, Max Stepanenko [EMAIL PROTECTED] wrote:


I would like to wrap my release:prepare and release:perform in some sort
of
a script (ant??), so that there is this magical button that someone can
press to prepare and release our software. That said, release:perform,
requires some user input (versions). Is there anyway to avoid/streamline
this? What is the common approach to problem, is writing an ant script
that
will call release:prepare and release:perform w the arguments of my choice
a
good approach?

Regards,
Max



Re: release:perform - How do I suppress the version prompts

2007-07-17 Thread Alan D. Salewski
On Tue, Jul 17, 2007 at 02:42:22PM -0700, Max Stepanenko spake thus:
 I would like to wrap my release:prepare and release:perform in some sort of
 a script (ant??), so that there is this magical button that someone can
 press to prepare and release our software. That said, release:perform,
 requires some user input (versions). Is there anyway to avoid/streamline
 this? 

You could probably do this using expect(1), which is tailor-made for
automating program interaction. Check out:

http://expect.nist.gov/

The 'autoexpect' program (linked to from the page at the above URL)
could generate the code to get you most of the way there.


 What is the common approach to problem, is writing an ant script that
 will call release:prepare and release:perform w the arguments of my choice a
 good approach?
 
 Regards,
 Max

I don't know how common it is, but I have all kinds of scripts that
invoke maven in various ways. Others may suggest you try to do this from
within maven...

-Al

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

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



Re: release:perform - How do I suppress the version prompts

2007-07-17 Thread Alan D. Salewski
On Tue, Jul 17, 2007 at 04:57:58PM -0700, Dan Tran spake thus:
 mvn release:prepare -B

Thanks for that, Dan. I didn't realize that batch mode implied that
release:prepare would do The Right Thing.

I was playing around with this a bit (I just happen to be performing a
release tonight), and ended up with the following Bourne shell script
that works for our environment. Maybe this illustration will serve as
documentation to help others, as well.

-Al

---8-
#! /bin/sh

# mvn-release-prepare: Invoke 'mvn release:prepare' in such a way that it will
# not prompt you for version numbers and SCM tags.
#
# Assumes:
# * You are working with CVS (so you must specify the SCM release tag to be
#   something CVS accepts as a tag; the default guessed by the maven
#   release plugin is not valid for CVS)
#
# * You want the release version number to be the same as the value
#   specified in xpath:/project/version in the paremt pom.xml (minus the
#   -SNAPSHOT suffix, of course)
#
# * You want to auto-version subprojects with the same version as the
#   parent pom.xml
#
# * You want the default successive *-SNAPSHOT version number
#
# Usage:
# $ mvn-release-prepare CVS-TAG [ mvn-args ... ]

PROG=$(basename $0)

if test $# -lt 1; then
printf Usage: ${PROG} CVS-TAG\n 12
exit 1
fi

SCM_TAG=$1
shift

set -x
mvn --batch-mode -Dtag=${SCM_TAG} -DautoVersionSubmodules $@ release:prepare

---8-

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

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



[Maven2] Eclipse 3.3 WEB Project integration

2007-07-17 Thread Adrian Shum

Hi all,

I am not sure whether I should put this question in the maven list
but I hope people with similar setup can share their experience.

I am trying to use Eclipse Europa (JEE distribution) + Maven 2.
For normal Java project, it works fine after modifying the project
setting a bit, with the aid of m2eclipse.

However, when I try to create a Dynamic Web Project in eclipse,
things start mess me up.  
1) I cannot enter subdirectory for source folder and WebContent 
folder 
2) I tried edit the project config files afterward to solve 1, in 
order to try to make it sticks to the standard maven directory 
structure.  The real mess come, seems eclipse
dynamic web project only allow 1 directory for web content
which includes WEB-INF/ and META-INF/ etc.
However, maven stardard directory structure is to have
src/main/webapp/ containing the web content, and WEB-INF,
and src/main/resources containing META-INF/.
Is there any way I can make the eclipse project conform to
this?

Or, as the last resort, shall I just sticks to use all plain Java
projects for all of them, and give up the Eclipse functionalities
on that?

--
AdRiAN ShUM
(-: Don’t worry, Be Happy :-)


This email is confidential. If you are not the intended recipient, please 
delete it from your system and notify the sender immediately. Any unauthorized 
use, disclosure, dissemination or copying of this email is prohibited. Taifook 
Securities Group, its group companies and their content providers (Parties) 
shall not be responsible for the accuracy or completeness of this email or its 
attachment, if any, which could contain virus, be corrupted, destroyed, 
incomplete, intercepted, lost or arrive late.   The Parties do not accept 
liability for any damage caused by this email.


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



Re: Build failure out of the blue

2007-07-17 Thread Henry Isidro

Try changing your java alternative setting:

sudo update-alternatives --config java

HTH,
Henry

Jeff Mutonho wrote:

On 7/17/07, Maria Odea Ching [EMAIL PROTECTED] wrote:

Hi,

Try executing 'which java' from the command line and trace from this
which java (the one displayed may be an alternate only) is being
executed to verify if the java you're using is really 1.6. It might not
exactly be a Maven problem :-)


You're absolutely right.The output is :
bash-2.05$ which java
/usr/bin/java
bash-2.05$ java -version
java version 1.4.2_05
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
bash-2.05$

The system wide java executable is pointing to that 1.4 runtime as
there are other applications that are using 1.4.How can I override and
force maven to use the 1.6 one?





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



RE: Surefire includes artifacts with scope 'provided' in the runtime classpath, is this correct?

2007-07-17 Thread Stephen Connolly



frodesto wrote:
 
 
 Jörg Schaible wrote:
 
 
 Why is it a problem for you, that it is available in the classpath for
 the test?
 
 - Jörg
 
 
 
 Hi again. I see your point in that in many (most?) cases you actually
 would like the artifacts with scope 'provided' to be available in the
 classpath for the unit tests.
 
 However, in my case this causes problems since the javaee-api.jar cannot
 be used at runtime. It only provides the interface part of the Java EE
 APIs, but no implementation. If you try to use it at runtime, you will get
 java.lang.ClassFormatError and other weird exceptions.  You have to use a
 real JavaEE implementation at runtime.
 
 In my case I am using the javaee-api to get access to the JMS API
 (javax.jms). I need the API classes to get my code to compile, but I
 cannot include this jar as a compile-time dependency since the
 app-server/JMS provider will provide the real JMS implementation.
 
 I my unit tests I need a real JMS implementation, and I am using
 ActiveMQ.  ActiveMQ also bundles the javax.jms package, and this is the
 one I need to use at test-time. I have included the ActiveMQ jar as
 scope=test dependency. When I run the unit tests, I get a classpath with
 two different versions of the javax.jms package (a dummy implementation
 in javaee-api.jar and a real one in activemq-core.jar), and unfortunately
 it seems like the JVM chooses the wrong one.
 
 I need a way to make Surefire skip the javaee-api.jar from the test-time
 classpath or a way to control which version the JVM will use. 
 
 Frode
 
 
See

http://forums.java.net/jive/thread.jspa?threadID=28648tstart=0

In my opinion, it is that the javaee-api.jar that is being used is borked.
(At least in terms of use cases with Maven)

In the interim, I suggest changing from using the javaee-api.jar with scope
provided to using the individual jsr spec api jars with scope provided. (As
the individual spec jars do not seem to be borked)

-Stephen.
-- 
View this message in context: 
http://www.nabble.com/Surefire-includes-artifacts-with-scope-%27provided%27-in-the-runtime-classpath%2C-is-this-correct--tf4016962s177.html#a11662554
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: Surefire includes artifacts with scope 'provided' in the runtime classpath, is this correct?

2007-07-17 Thread Stephen Connolly



frodesto wrote:
 
 In my case I am using the javaee-api to get access to the JMS API
 (javax.jms). I need the API classes to get my code to compile, but I
 cannot include this jar as a compile-time dependency since the
 app-server/JMS provider will provide the real JMS implementation.
 
 I my unit tests I need a real JMS implementation, and I am using
 ActiveMQ.  ActiveMQ also bundles the javax.jms package, and this is the
 one I need to use at test-time. I have included the ActiveMQ jar as
 scope=test dependency. When I run the unit tests, I get a classpath with
 two different versions of the javax.jms package (a dummy implementation
 in javaee-api.jar and a real one in activemq-core.jar), and unfortunately
 it seems like the JVM chooses the wrong one.
 

Most likely is that the javax.jms references one of the classes which should
be provided by the container (which it has to pull from javaee-api.jar,
which is borked, which causes a classloader error, which [i'm guessing]
causes your problem)

-- 
View this message in context: 
http://www.nabble.com/Surefire-includes-artifacts-with-scope-%27provided%27-in-the-runtime-classpath%2C-is-this-correct--tf4016962s177.html#a11662736
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: diagnosing class version errors

2007-07-17 Thread Mark Derricutt

I did try with -X (and the output was in the original message) - however the
process I see being forked doesn't match that classpath:

[DEBUG] Test Classpath :
[DEBUG]   /Users/amrk/IdeaProjects/dbng/dbng-core/target/classes
[DEBUG]   /Users/amrk/IdeaProjects/dbng/dbng-core/target/test-classes
[DEBUG]
/Users/amrk/.m2/repository/org/springframework/spring-beans/2.0.6/spring-
beans-2.0.6.jar
[DEBUG]
/Users/amrk/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[DEBUG]
/Users/amrk/.m2/repository/org/springframework/spring-dao/2.0.6/spring-
dao-2.0.6.jar
[DEBUG]   /Users/amrk/.m2/repository/junit/junit/3.8.1/junit- 3.8.1.jar
[DEBUG]
/Users/amrk/.m2/repository/commons-logging/commons-logging/1.1/commons-
logging-1.1.jar
[DEBUG]   /Users/amrk/.m2/repository/javax/servlet/servlet-api/2.3/servlet-
api-2.3.jar
[DEBUG]
/Users/amrk/.m2/repository/org/springframework/spring-jdbc/2.0.6/spring-
jdbc-2.0.6.jar
[DEBUG]
/Users/amrk/.m2/repository/commons-collections/commons-collections/2.1/commons-
collections-2.1.jar
[DEBUG]
/Users/amrk/.m2/repository/org/springframework/spring-core/2.0.6/spring-
core-2.0.6.jar
[DEBUG]   /Users/amrk/.m2/repository/logkit/logkit/1.0.1/logkit-1.0.1.jar
[DEBUG]
/Users/amrk/.m2/repository/org/springframework/spring-context/2.0.6/spring-
context-2.0.6.jar
[DEBUG]
/Users/amrk/.m2/repository/avalon-framework/avalon-framework/4.1.3/avalon-
framework-4.1.3.jar
[DEBUG]
/Users/amrk/.m2/repository/commons-dbcp/commons-dbcp/1.2.1/commons-
dbcp-1.2.1.jar
[DEBUG]
/Users/amrk/.m2/repository/org/apache/maven/maven-artifact/2.0.6/maven-
artifact-2.0.6.jar
[DEBUG]   /Users/amrk/.m2/repository/postgresql/postgresql/8.2-504.jdbc4
/postgresql-8.2-504.jdbc4.jar
[DEBUG]   /Users/amrk/.m2/repository/org/testng/testng/5.1/testng-
5.1-jdk15.jar
[DEBUG]   /Users/amrk/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-
apis-1.0.b2.jar
[DEBUG]   /Users/amrk/.m2/repository/xerces/xercesImpl/2.0.2/xercesImpl-
2.0.2.jar
[DEBUG]   /Users/amrk/.m2/repository/commons-pool/commons-pool/1.2/commons-
pool-1.2.jar
[DEBUG]   /Users/amrk/.m2/repository/log4j/log4j/1.2.14/log4j- 1.2.14.jar
[DEBUG] Setting system property
[localRepository]=[/Users/amrk/.m2/repository]
[DEBUG] Setting system property
[basedir]=[/Users/amrk/IdeaProjects/dbng/dbng-core]
[DEBUG] Using JVM:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java
[INFO] Surefire report directory:
/Users/amrk/IdeaProjects/dbng/dbng-core/target/surefire-reports
Forking command line:
/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java
-classpath
/Users/amrk/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-
archiver-1.0-alpha-7.jar:/Users/amrk/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/Users/amrk/.m2/repository/org/apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/Users/amrk/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/Users/amrk/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar:/Users/amrk/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/Users/amrk/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/Users/amrk/.m2/repository/org/apache/maven/surefire/surefire-booter/2.3/surefire-booter-2.3.jar:/Users/amrk/.m2/repository/org/testng/testng/5.1/testng-5.1-jdk15.jar
org.apache.maven.surefire.booter.SurefireBooter /tmp/surefire32297tmp
/tmp/surefire32298tmp

For instance - I see the postgresql driver jar mentioned under Test class
path but its not mentioned in the -classpath parameters for Surefires
forked process.


On 7/17/07, Terala, Satish (IS Consultant) [EMAIL PROTECTED]
wrote:


Try running maven with -X option. This will print out the exact classpath
thats being set at compile/runtime. This seems to be case of an incompatible
jar on JDK5.