Re: Release builds and continuous integration

2005-10-03 Thread Vitaliy Geraymovych
My understanding is that if you are making changes to official release
you really should increment the version (and tag it in CVS/SVN).

Vitaliy

On 10/3/05, Allison, Bob [EMAIL PROTECTED] wrote:
 I really dislike your suggestion for item 1, since that implies that if
 I discover a problem with the release build and have to rebuild it, I
 have to remember to manually remove the release build from the
 repository first.

 -Original Message-
 From: David Jackman [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 03, 2005 10:54
 To: Maven Users List
 Subject: Release builds and continuous integration


 I've just started to get my hands wet with Maven 2, and I must say I
 like what I'm seeing.  Just about every headache we currently have with
 Maven 1 is addressed to some extent by Maven 2.

 One problem we were having around Maven 1 that I'm not too sure about
 for the future is the issue of official release (non-snapshot) builds
 and continuous build tools (like CruiseControl).  When releasing a Maven
 project, the goal is to have as much confidence as possible (a
 guarantee, hopefully) that the release build in the Maven repository
 exactly matches the code that was tagged in source control for that
 project.  The following is a list of potential risks we have in our
 current Maven 1 process that I'm hoping Maven 2 can mitigate.  Can
 anyone respond to these?

 1. In Maven 1, we use the scm:prepare-release goal to start the release
 process.  When it works (see the issues I've logged about it), this goal
 changes the currentVersion to the release version, tags the code in
 source control for the release, and adds a version element indicating
 the release version and its corresponding SCM tag.  Sometimes, the
 developer doing the release will want to build  deploy the official
 release build himself to be sure it matches the tagged code.  When the
 release build is complete, he will (should) change the currentVersion to
 the next snapshot version.
 However, since we use a continuous build tool, there is a risk that
 between the time the developer deploys the release build and checks in
 the project.xml with the next snapshot version, the automated build will
 do its own build using the release version and deploy over the top of
 the official release build.  There are steps the developer can take to
 mitigate this, but it would be better if Maven helped out more.  For
 this scenario, the easiest solution would be for Maven to fail the
 deploy for a release (non-snapshot) version if there is already an
 artifact in the destination repository of the same name.  Is this
 possible?

 2. Ideally, we'd prefer that the build machine (running the continuous
 build tool) do the official release builds because it's more of a
 controlled build environment.  However, there are two risks here.  First
 is that the build tool will do more than one build of the release
 version (before the currentVersion is changed to the next snapshot
 version).  The solution in the previous paragraph would help here as
 well.  The second risk is that someone else will check in a code change
 before the build tool does the official release build, so the release
 artifact does not match the code tagged for that release in source
 control.  Any ideas on how to address this problem?
 One approach would be to have some plugin on the continuous build
 machine that checks the projects before starting the build (but after
 the latest code is obtained from SCM) to see if any projects have a
 release (non-snapshot) currentVersion value.  If so, this plugin would
 use the version element for this version to make sure that the code
 that will be built matches the tag for this release.  Then it lets the
 build go on.  Would this be hard in Maven 2?  Even better would be to
 have a plugin that, once the release build is finished and deployed,
 would change the currentVersion to the next snapshot version.

 What do you think?  Has anyone else had to deal with this risks?  Is
 there a better approach to solve these problems that I'm not seeing?

 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]



SCM plugin 1.5

2005-09-22 Thread Vitaliy Geraymovych
Hi All,

I am using scm:update ( uses CVS ) inside my cruisecontrol build. I
have several directories that were removed (in particular some
Fitnesse tests.) However, the problem is that scm:update always picks
them up and restores them back into the project tree. I could not find
any settings in the SCM plugin that would allow me to prune empty
directories. At the moment scm:update translates into cvs -f -q update
-d command. Is there any way to configure scm:update to prune empty
dirs? or just add -P option to cvs?

Thanks,
Vitaliy

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



Re: custom builds history

2005-09-14 Thread Vitaliy Geraymovych
If I understood you correctly you could use cruisecontrol for your
builds. It will generate a log file for each build with all the
details. You cal also use cruisecontrol.war to view log files.

Vitaliy

On 9/14/05, Vov@ Sadovyy [EMAIL PROTECTED] wrote:
 Hi,
 
 I have interest task...- To collect builds history, to make something like
 builds history storage, with dates, test results etc. I see the only way -
 to create an XML file and add during each build new record. But this
 approach is complicated enough. Maybe somebody know simplest way? :)
 
 Thanks,
 V
 
 _
 Express yourself instantly with MSN Messenger! Download today it's FREE!
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 
 
 -
 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: Cobertura 1.1 for M1.1b1

2005-08-30 Thread Vitaliy Geraymovych
Thanks, I got 1.4 from the JIRA and after adding missing dependencies 
it was running. I didn't tried multiproject:site yet but so far plugin
works for individual project.

Vitaliy

On 8/29/05, Aaron Smuts [EMAIL PROTECTED] wrote:
 http://jira.codehaus.org/browse/MPJCOVERAGE-25
 
 I submitted a version that works fine for me.
 
 Aaron
 
 --- Vitaliy Geraymovych [EMAIL PROTECTED]
 wrote:
 
  I am trying incorporate cobertura into my project
  reports. So far not
  much luck. When I run cobertura on individual
  project it shows
  completion but than report shows 0% coverage. When I
  run
  multiproject:site cobertura fails in test:test
  because of missing
  classpath dependencies. Test:test runs fine by
  itself. I would
  appreciate any help.
 
  Thanks,
  Vitaliy
 
 
 -
  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]



Cobertura 1.1 for M1.1b1

2005-08-29 Thread Vitaliy Geraymovych
I am trying incorporate cobertura into my project reports. So far not
much luck. When I run cobertura on individual project it shows
completion but than report shows 0% coverage. When I run
multiproject:site cobertura fails in test:test because of missing
classpath dependencies. Test:test runs fine by itself. I would
appreciate any help.

Thanks,
Vitaliy

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



m[1] Exception on war:deploy/war:install

2005-08-19 Thread Vitaliy Geraymovych
Hi All,

I am getting this exception while running war:deploy goal (it also
happens on war:install)
I can deploy and install jars without any problem.

Maven 1.1-b1
war-plugin 1.6.1
artifact-plugin 1.6


war:install:
[echo] Installing...
Uploading to **-web-1.0-SNAPSHOT.war:
 (11628K)

BUILD FAILED
java.lang.NoSuchMethodError: org.apache.maven.project.Dependency.setProperties(L
java/util/List;)V
at org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.j
ava:124)
at org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.jav
a:57)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInst
all(DefaultArtifactDeployer.java:174)
at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(De
faultArtifactDeployer.java:143)
at org.apache.maven.artifact.deployer.DeployBean.install(DeployBean.java
:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.jav
a:180)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
a:102)
.(snip).

File.. C:\Documents and Settings\***\.maven\cache\maven-artifact-plugi
-1.5.2\plugin.jelly
Element... artifact:artifact-install
Line.. 62
Column 9
org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
Total time   : 2 minutes 34 seconds
Finished at  : Friday, August 19, 2005 10:46:28 AM EDT

Any help greatly appreciated.

Thanks,
Vitaliy

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



Re: m[1] Exception on war:deploy/war:install

2005-08-19 Thread Vitaliy Geraymovych
Thanks, that solved the issue. I forgot to download new plugin on our
CruiseControl box.

Vitaliy

On 8/19/05, Brett Porter [EMAIL PROTECTED] wrote:
 You need artifact 1.6. I know you said you were using it, but the
 error message says 1.5.2 - check that you don't still have 1.5.2 JAR
 in $MAVEN_HOME/plugins or ~/.maven/plugins.
 
 - Brett
 
 On 8/20/05, Vitaliy Geraymovych [EMAIL PROTECTED] wrote:
  Hi All,
 
  I am getting this exception while running war:deploy goal (it also
  happens on war:install)
  I can deploy and install jars without any problem.
 
  Maven 1.1-b1
  war-plugin 1.6.1
  artifact-plugin 1.6
 
 
  war:install:
  [echo] Installing...
  Uploading to **-web-1.0-SNAPSHOT.war:
   (11628K)
 
  BUILD FAILED
  java.lang.NoSuchMethodError: 
  org.apache.maven.project.Dependency.setProperties(L
  java/util/List;)V
  at 
  org.apache.maven.artifact.PomRewriter.getRewrittenModel(PomRewriter.j
  ava:124)
  at 
  org.apache.maven.artifact.PomRewriter.getRewrittenPom(PomRewriter.jav
  a:57)
  at 
  org.apache.maven.artifact.deployer.DefaultArtifactDeployer.handleInst
  all(DefaultArtifactDeployer.java:174)
  at 
  org.apache.maven.artifact.deployer.DefaultArtifactDeployer.install(De
  faultArtifactDeployer.java:143)
  at 
  org.apache.maven.artifact.deployer.DeployBean.install(DeployBean.java
  :160)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at 
  org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.jav
  a:180)
  at 
  org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.jav
  a:102)
  .(snip).
 
  File.. C:\Documents and 
  Settings\***\.maven\cache\maven-artifact-plugi
  -1.5.2\plugin.jelly
  Element... artifact:artifact-install
  Line.. 62
  Column 9
  org.apache.maven.project.Dependency.setProperties(Ljava/util/List;)V
  Total time   : 2 minutes 34 seconds
  Finished at  : Friday, August 19, 2005 10:46:28 AM EDT
 
  Any help greatly appreciated.
 
  Thanks,
  Vitaliy
 
  -
  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: InvocationTargetException on echo ant:echo in maven.xml

2005-08-11 Thread Vitaliy Geraymovych
I had similar problem when some of my goals and preGoals created
infinite loop as Brett suggested. What interesting it was failing with
StackOverflow on echo command. Check your maven.xml.

Vitaliy

On 8/11/05, Edwin Punzalan [EMAIL PROTECTED] wrote:
 I think Brett's reply is more realistic. ^_^
 
 
 
 Walsh, Richard (Richard) wrote:
 
 Hi Edwin,
 I tried this with no luck. I also tried commenting the echo out, it
 simply moved  to the next ehco and complained about it.
 Thanks,
 Richie.
 
 -Original Message-
 From: Edwin Punzalan [mailto:[EMAIL PROTECTED]
 Sent: 11 August 2005 10:27
 To: Maven Users List
 Subject: Re: InvocationTargetException on echo  ant:echo in maven.xml
 
 Try changing it to:
 
 echomaven.junit.sysproperties=${maven.junit.sysproperties}/echo
 
 
 
 
 Walsh, Richard (Richard) wrote:
 
 
 
 When I do a maven -e I get the following. The line that is causing this
 
 
 
 
 
 is in the maven.xml and is:
 
   echo
 message=maven.junit.sysproperties=${maven.junit.sysproperties}/
 
 ERROR :
 
 C:\maven\dsapi-mx\Dub_MX_Dsapi\sourcecodemaven -e  __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
 
 
 BUILD FAILED
 java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 v
 a:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 r
 Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
 org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:170)
at
 org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
at
 org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at
 org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.
 j
 ava:79)
at
 org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performA
 c
 tion(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at
 org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:67
 1
 )
at
 org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
 v
 a:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
 r
 Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
 Caused by: java.lang.StackOverflowError File..
 C:\maven\dsapi-mx\Dub_MX_Dsapi\sourcecode\maven.xml
 Element... echo
 Line.. 6
 Column 76
 java.lang.reflect.InvocationTargetException
 Total time: 5 seconds
 Finished at: Thu Aug 11 10:12:58 BST 2005
 
 -Original Message-
 From: Walsh, Richard (Richard)
 Sent: 11 August 2005 09:53
 To: users@maven.apache.org
 Subject: InvocationTargetException on echo  ant:echo in maven.xml
 
 Hi,
 I have the following problem with my maven.xml file, it gives the
 following error. I am using maven 1.0.2. It also happens with 1.0-rc3.
 Anyone any ideas,
 Thanks,
 Richie.
 
 C:\maven\dsapi-mx\Dub_MX_Dsapi\sourcecodemaven
 __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
 
 Plugin cache will be regenerated
 
 BUILD FAILED
 File.. C:\maven\dsapi-mx\Dub_MX_Dsapi\sourcecode\maven.xml
 Element... echo
 Line.. 6
 Column 76
 java.lang.reflect.InvocationTargetException
 Total time: 20 seconds
 Finished at: Thu Aug 11 09:27:27 BST 2005
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

Re: InvocationTargetException on echo ant:echo in maven.xml

2005-08-11 Thread Vitaliy Geraymovych
Check if you have multiple preGoals to the same goal. In my case I
accidentally created two preGoals to java:compile. I was running
1.1-b1. Reorganizing to have just one preGoal for java:compile fixed
my problem.

Vitaliy

On 8/11/05, Walsh, Richard (Richard) [EMAIL PROTECTED] wrote:
 Hi,
 I have had no luck with resolving this issue. There are a number of
 weblogs around that suggest changing the version of maven etc but I
 tried this with no luck. It has the same problem under 1.0-rc3 and
 1.0.1. Any Maven Developers monitoring this list. If so, any idea what
 might be wrong. It's a pretty strange bug as this used to work before. I
 am running with ant 1.6.2 and also tried it with ant 1.6.5.
 Thanks,
 Richie.
 
 -Original Message-
 From: Walsh, Richard (Richard)
 Sent: 11 August 2005 10:22
 To: 'Maven Users List'
 Subject: RE: InvocationTargetException on echo  ant:echo in maven.xml
 
 When I do a maven -e I get the following. The line that is causing this
 is in the maven.xml and is:
 
 echo
 message=maven.junit.sysproperties=${maven.junit.sysproperties}/
 
 ERROR :
 
 C:\maven\dsapi-mx\Dub_MX_Dsapi\sourcecodemaven -e  __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
 
 
 BUILD FAILED
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:170)
 at
 org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
 at
 org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
 at
 org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.j
 ava:79)
 at
 org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAc
 tion(MavenGoalTag.java:110)
 at com.werken.werkz.Goal.fire(Goal.java:639)
 at com.werken.werkz.Goal.attain(Goal.java:575)
 at
 org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671
 )
 at
 org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
 at org.apache.maven.cli.App.doMain(App.java:488)
 at org.apache.maven.cli.App.main(App.java:1239)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
 a:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
 Impl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at com.werken.forehead.Forehead.run(Forehead.java:551)
 at com.werken.forehead.Forehead.main(Forehead.java:581)
 Caused by: java.lang.StackOverflowError
 File.. C:\maven\dsapi-mx\Dub_MX_Dsapi\sourcecode\maven.xml
 Element... echo
 Line.. 6
 Column 76
 java.lang.reflect.InvocationTargetException
 Total time: 5 seconds
 Finished at: Thu Aug 11 10:12:58 BST 2005
 
 -Original Message-
 From: Walsh, Richard (Richard)
 Sent: 11 August 2005 09:53
 To: users@maven.apache.org
 Subject: InvocationTargetException on echo  ant:echo in maven.xml
 
 Hi,
 I have the following problem with my maven.xml file, it gives the
 following error. I am using maven 1.0.2. It also happens with 1.0-rc3.
 Anyone any ideas,
 Thanks,
 Richie.
 
 C:\maven\dsapi-mx\Dub_MX_Dsapi\sourcecodemaven
  __  __
 |  \/  |__ _Apache__ ___
 | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
 |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
 
 Plugin cache will be regenerated
 
 BUILD FAILED
 File.. C:\maven\dsapi-mx\Dub_MX_Dsapi\sourcecode\maven.xml
 Element... echo
 Line.. 6
 Column 76
 java.lang.reflect.InvocationTargetException
 Total time: 20 seconds
 Finished at: Thu Aug 11 09:27:27 BST 2005
 
 -
 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]



[m2] Adding ANT task to Maven 2

2005-07-12 Thread Vitaliy Geraymovych
I am in the process of moving Ant scripts to Maven2.

I am looking for an example of how to invoke ant task within a
specific phase of m2. My goal for now is to invoke our custom ant
targets and than later on replace them one by one with maven plugins.

Thanks,
Vitaliy

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



Re: Generate sources example [was: Re: Maven2 and jaxp plugin]

2005-07-07 Thread Vitaliy Geraymovych
Sorry just starting with maven, not sure what accdg or trygvis is :)

I tried both m2 alpha3 and snapshot from yesterday, both behaved
similarly. They would download plugins with group id
org.apache.maven.* but would fail downloading plugins with group id
maven-plugins. The error showed that m2 was looking for plugins in
maven2/plugins/maven-plugins/ which is wrong because these plugins
are in maven2/maven-plugins/. Of course I can get plugins manually and
put them in my local repository but I was just curious if this is an
expected behavior or there is something that I am doing wrong.

Thanks,
Vitaliy

On 7/6/05, Edwin Punzalan [EMAIL PROTECTED] wrote:
 Hi,
 
 Which version are you using? This was fixed accdg to trygvis.  My
 version from svn would download the plugin using the groupId.
 
 Try downloading the svn source and bootstrap your m2.
 
 
 Vitaliy Geraymovych wrote:
 
 Ok, I resolved the issue that I was having. My plugins section was
 outside of the build section
 
 build
 /build
 plugins
  
 /plugins
 
 As soon as I moved plugins inside build m2 started downloading
 plugins.However, m2 could only download plugins defined in
 org/apache/maven/plugins (i.e. maven-antlr-plugin) but m2 could no get
 plugins that are stored in maven-plugins
 i.e.   groupIdmaven-plugins/groupId
artifactIdmaven-jaxb-plugin/artifactId
version1.0/version
 
 Is there a setting in m2 to point it into maven-plugins?
 
 Thanks,
 Vitaliy
 
 
 On 7/6/05, Vitaliy Geraymovych [EMAIL PROTECTED] wrote:
 
 
 Thanks Jason,
 
 I tried your example but without much success. It seems overall my
 problem is that m2 is not downloading any plugins that I specify. The
 only ones I have in my local repository under org/apache/maven are
 maven-archetype, maven-archetype-core, -artifact, -model, plugin-api,
 -project, and plugins and under plugins: maven-archetype-plugin,
 -clean-, -compiler-, -idea-, -install-, -jar-, -plugin-, -resources-,
 -source-, -surefire-
 
 m2 also doesn't show any attempt to download the plugins that I
 specify (i.e. maven-antlr-plugin)
 
 Vitaliy
 
 On 7/5/05, Jason van Zyl [EMAIL PROTECTED] wrote:
 
 
 On Tue, 2005-07-05 at 21:20 -0400, Vitaliy Geraymovych wrote:
 
 
 Thanks, I will definitely post in into the group once I can make it run :)
 
 But right now no matter what I set in execution and goal m2 always
 does nothing in resources phase.
 
 Here is my latest
 
 execution
   phasegenerate-sources/phase
   goals
   goalresources/goal
   /goals
 /execution
 
 m2 shows:
 
 clean:clean
 resources:resources
 compiler:compile
 
 
 Let me run though a short example to try and help. To generate sources
 you must first have a plugin that participates in the generate-sources
 phase like the Antlr plugin:
 
 http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-
 plugins/maven-antlr-
 plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java?
 rev=209381view=markup
 
 Notice the annotations:
 
 /**
  * @goal generate
  * @phase generate-sources
  * @requiresDependencyResolution compile
  * @description Antlr plugin
  */
 
 The first two lines say I want to be fit into the generate-sources
 phase and my 'handle' is generate.
 
 So this is all fine and dandy, we have a plugin that wants to generate
 some sources from a Antlr grammar but how do we use it. You need to
 specify that you want to use it in your POM:
 
 project
   ...
   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antlr-plugin/artifactId
 version1.0-SNAPSHOT/version
 configuration
   grammarsjava.g/grammars
 /configuration
 executions
   execution
 goals
   goalgenerate/goal
 /goals
   /execution
 /executions
   /plugin
 /plugins
   /build
   ...
 /project
 
 If you then type m2 compile m2 will walk through the lifecycle
 (http://maven.apache.org/maven2/lifecycle.html) and will eventually hit
 the generate-sources phase and see you have a plugin configured that
 wants to participate in that phase and the antlr plugin is executed with
 your given configuration.
 
 I just checked in the Antlr plugin and deployed so you can try this out
 by downloading the little example I created to answer your question:
 
 http://www.codehaus.org/~jvanzyl/generate-sources-example.zip
 
 (ps you might have to wait for the antlr plugin to sync to ibiblio)
 
 
 
 Thanks again,
 Vitaliy
 
 
 
 On 7/5/05, Jason van Zyl [EMAIL PROTECTED] wrote:
 
 
 On Tue, 2005-07-05 at 20:51 -0400, Vitaliy Geraymovych wrote:
 
 
 The second I sent email I realized that after following link to
 ibiblio site :) So I returned back to specifying jaxb plug in in
 pom.xml. What I am currently confused with is how to connect the plug
 in into specific execution phase. Let say I want to run jaxb
 generation in generate-sources phase. And I am

Re: Generate sources example [was: Re: Maven2 and jaxp plugin]

2005-07-06 Thread Vitaliy Geraymovych
Thanks Jason,

I tried your example but without much success. It seems overall my
problem is that m2 is not downloading any plugins that I specify. The
only ones I have in my local repository under org/apache/maven are
maven-archetype, maven-archetype-core, -artifact, -model, plugin-api,
-project, and plugins and under plugins: maven-archetype-plugin,
-clean-, -compiler-, -idea-, -install-, -jar-, -plugin-, -resources-,
-source-, -surefire-

m2 also doesn't show any attempt to download the plugins that I
specify (i.e. maven-antlr-plugin)

Vitaliy

On 7/5/05, Jason van Zyl [EMAIL PROTECTED] wrote:
 On Tue, 2005-07-05 at 21:20 -0400, Vitaliy Geraymovych wrote:
  Thanks, I will definitely post in into the group once I can make it run :)
 
  But right now no matter what I set in execution and goal m2 always
  does nothing in resources phase.
 
  Here is my latest
 
  execution
phasegenerate-sources/phase
goals
goalresources/goal
/goals
  /execution
 
  m2 shows:
 
  clean:clean
  resources:resources
  compiler:compile
 
 Let me run though a short example to try and help. To generate sources
 you must first have a plugin that participates in the generate-sources
 phase like the Antlr plugin:
 
 http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-
 plugins/maven-antlr-
 plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java?
 rev=209381view=markup
 
 Notice the annotations:
 
 /**
  * @goal generate
  * @phase generate-sources
  * @requiresDependencyResolution compile
  * @description Antlr plugin
  */
 
 The first two lines say I want to be fit into the generate-sources
 phase and my 'handle' is generate.
 
 So this is all fine and dandy, we have a plugin that wants to generate
 some sources from a Antlr grammar but how do we use it. You need to
 specify that you want to use it in your POM:
 
 project
   ...
   build
 plugins
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antlr-plugin/artifactId
 version1.0-SNAPSHOT/version
 configuration
   grammarsjava.g/grammars
 /configuration
 executions
   execution
 goals
   goalgenerate/goal
 /goals
   /execution
 /executions
   /plugin
 /plugins
   /build
   ...
 /project
 
 If you then type m2 compile m2 will walk through the lifecycle
 (http://maven.apache.org/maven2/lifecycle.html) and will eventually hit
 the generate-sources phase and see you have a plugin configured that
 wants to participate in that phase and the antlr plugin is executed with
 your given configuration.
 
 I just checked in the Antlr plugin and deployed so you can try this out
 by downloading the little example I created to answer your question:
 
 http://www.codehaus.org/~jvanzyl/generate-sources-example.zip
 
 (ps you might have to wait for the antlr plugin to sync to ibiblio)
 
  Thanks again,
  Vitaliy
 
 
 
  On 7/5/05, Jason van Zyl [EMAIL PROTECTED] wrote:
   On Tue, 2005-07-05 at 20:51 -0400, Vitaliy Geraymovych wrote:
The second I sent email I realized that after following link to
ibiblio site :) So I returned back to specifying jaxb plug in in
pom.xml. What I am currently confused with is how to connect the plug
in into specific execution phase. Let say I want to run jaxb
generation in generate-sources phase. And I am not sure if I want to
execute separately what my command line will look like: m2
generate-sources:?
  
   That would do but you would probably just do:
  
   m2 install
  
   And m2 would walk through all the phases. If you have JAXP in your
   plugins section it will be added to the generate-sources phase because
   part of creating a plugin like a JAXP plugin is creating some metadata
   that tells m2 what phase the plugin should be executed in.
  
   Hope that helps. You can post to the user list. I will answer there as
   well :-)
  
Thanks for your help.
   
Vitaliy
   
On 7/5/05, Jason van Zyl [EMAIL PROTECTED] wrote:
 On Tue, 2005-07-05 at 20:37 -0400, Vitaliy Geraymovych wrote:
  I added executions block but didn't have much luck. I went another
  rout and removed plugins sections completely. I tried to run m2
  jaxb:generate which seems trying to get latest jaxb plug in but 
  fails
  with errors:
 
  Unable to find release for artifact: ... 
  http://repo1.maven.org/maven2/plugins
 
  FileNotFoundException:
  http://www.ibiblio.org/maven2/plugins/org/apache/maven/plugins/maven-jaxb-plugin/maven-jaxb-plugin-RELEASE.version.txt
 
  It seems that I am doing something conceptually wrong.
 
  I would appreciate any pointers.

 We don't actually have a JAXB plugin :-)

 We have an example in a presentation of a JAXB plugin but I don't
 believe we actually have one in m2! Sorry about the confusion.

  Thanks,
  Vitaliy

Re: Generate sources example [was: Re: Maven2 and jaxp plugin]

2005-07-06 Thread Vitaliy Geraymovych
Ok, I resolved the issue that I was having. My plugins section was
outside of the build section

build
/build
plugins
 
/plugins

As soon as I moved plugins inside build m2 started downloading
plugins.However, m2 could only download plugins defined in
org/apache/maven/plugins (i.e. maven-antlr-plugin) but m2 could no get
plugins that are stored in maven-plugins
i.e.groupIdmaven-plugins/groupId
artifactIdmaven-jaxb-plugin/artifactId
version1.0/version

Is there a setting in m2 to point it into maven-plugins?

Thanks,
Vitaliy


On 7/6/05, Vitaliy Geraymovych [EMAIL PROTECTED] wrote:
 Thanks Jason,
 
 I tried your example but without much success. It seems overall my
 problem is that m2 is not downloading any plugins that I specify. The
 only ones I have in my local repository under org/apache/maven are
 maven-archetype, maven-archetype-core, -artifact, -model, plugin-api,
 -project, and plugins and under plugins: maven-archetype-plugin,
 -clean-, -compiler-, -idea-, -install-, -jar-, -plugin-, -resources-,
 -source-, -surefire-
 
 m2 also doesn't show any attempt to download the plugins that I
 specify (i.e. maven-antlr-plugin)
 
 Vitaliy
 
 On 7/5/05, Jason van Zyl [EMAIL PROTECTED] wrote:
  On Tue, 2005-07-05 at 21:20 -0400, Vitaliy Geraymovych wrote:
   Thanks, I will definitely post in into the group once I can make it run :)
  
   But right now no matter what I set in execution and goal m2 always
   does nothing in resources phase.
  
   Here is my latest
  
   execution
 phasegenerate-sources/phase
 goals
 goalresources/goal
 /goals
   /execution
  
   m2 shows:
  
   clean:clean
   resources:resources
   compiler:compile
 
  Let me run though a short example to try and help. To generate sources
  you must first have a plugin that participates in the generate-sources
  phase like the Antlr plugin:
 
  http://svn.apache.org/viewcvs.cgi/maven/components/trunk/maven-
  plugins/maven-antlr-
  plugin/src/main/java/org/apache/maven/plugin/antlr/AntlrPlugin.java?
  rev=209381view=markup
 
  Notice the annotations:
 
  /**
   * @goal generate
   * @phase generate-sources
   * @requiresDependencyResolution compile
   * @description Antlr plugin
   */
 
  The first two lines say I want to be fit into the generate-sources
  phase and my 'handle' is generate.
 
  So this is all fine and dandy, we have a plugin that wants to generate
  some sources from a Antlr grammar but how do we use it. You need to
  specify that you want to use it in your POM:
 
  project
...
build
  plugins
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-antlr-plugin/artifactId
  version1.0-SNAPSHOT/version
  configuration
grammarsjava.g/grammars
  /configuration
  executions
execution
  goals
goalgenerate/goal
  /goals
/execution
  /executions
/plugin
  /plugins
/build
...
  /project
 
  If you then type m2 compile m2 will walk through the lifecycle
  (http://maven.apache.org/maven2/lifecycle.html) and will eventually hit
  the generate-sources phase and see you have a plugin configured that
  wants to participate in that phase and the antlr plugin is executed with
  your given configuration.
 
  I just checked in the Antlr plugin and deployed so you can try this out
  by downloading the little example I created to answer your question:
 
  http://www.codehaus.org/~jvanzyl/generate-sources-example.zip
 
  (ps you might have to wait for the antlr plugin to sync to ibiblio)
 
   Thanks again,
   Vitaliy
  
  
  
   On 7/5/05, Jason van Zyl [EMAIL PROTECTED] wrote:
On Tue, 2005-07-05 at 20:51 -0400, Vitaliy Geraymovych wrote:
 The second I sent email I realized that after following link to
 ibiblio site :) So I returned back to specifying jaxb plug in in
 pom.xml. What I am currently confused with is how to connect the plug
 in into specific execution phase. Let say I want to run jaxb
 generation in generate-sources phase. And I am not sure if I want to
 execute separately what my command line will look like: m2
 generate-sources:?
   
That would do but you would probably just do:
   
m2 install
   
And m2 would walk through all the phases. If you have JAXP in your
plugins section it will be added to the generate-sources phase because
part of creating a plugin like a JAXP plugin is creating some metadata
that tells m2 what phase the plugin should be executed in.
   
Hope that helps. You can post to the user list. I will answer there as
well :-)
   
 Thanks for your help.

 Vitaliy

 On 7/5/05, Jason van Zyl [EMAIL PROTECTED] wrote:
  On Tue, 2005-07-05 at 20:37 -0400, Vitaliy Geraymovych wrote:
   I added executions block but didn't have much luck. I went 
   another

Maven2 and jaxb plug in

2005-07-05 Thread Vitaliy Geraymovych
Hi All,

Sorry for the beginners question but I was unable to find answer
anywhere else. I am currently playing with Maven 2 with the goal of
replacing our ant build script. I got stuck trying to add jaxb
generation to the project. I added maven-jaxb-plugin plug in to the
plugins section but can't to make it run.

I am executing maven with this command: m2 clean:clean package

m2 always does [clean:clean], [resources:resources], [compiler:compile].

Here is the section of pom.xml that defines plug in:

plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jaxb-plugin/artifactId
version1.0/version
goals
goal
idgenerate-sources/id
/goal
/goals
/plugin
/plugins

I would appreciate any help,

Thanks,
Vitaliy

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