Re: git scm

2011-08-12 Thread demian0311
Baptiste,

Yeah, the working copy is a git repository.

kabar.local:~/code/tw/video-services>git tag myTag
kabar.local:~/code/tw/video-services>cat .git/refs/tags/myTag 
9f637e641283205e01391b99ec2c6ea7a0bdd124

--
View this message in context: 
http://maven.40175.n5.nabble.com/git-scm-tp4686535p4694614.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Release plugin information required

2011-08-12 Thread Baptiste MATHUS
Well, you are, actually. Running something from Jenkins is most often very
close to doing it on command-line.

So, as Olivier said, just add -B to your Maven build and you're done. The
Maven release plugin will automatically choose new versions.

Cheers
Ps: thanking people on ml is often considered a good thing...
Le 10 août 2011 11:44, "anamika gupta"  a écrit :
> Hi,
>
> I am not running the maven command from command prompt. We have hudson and
> Maven integration. So, Hudson triggers the maven to make the build. I need
> an option in the pom.xml, so that release plugin run with the default
> values.
>
> Can you please suggest me any configuration for this plugin, so that it
> doesnot prompt for the release verions.
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/Release-plugin-information-required-tp4685181p4685247.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


Re: git scm

2011-08-12 Thread Baptiste MATHUS
Hi,
Is your working copy really a git repository?

What does a simple "git tag myTag" return?

Cheers
Le 10 août 2011 18:53, "demian0311"  a écrit :
> I'm trying to use the release plugin with git. The git scm plugin seems to
> get hung up when applying the tag.
>
> If you look at the "Working directory" messages below, when it tries to
> apply the tag it goes up 1 directory such that the command executes
outside
> of my git repository.
>
> Is there something I need to define differently for the tag to work?
>
> 
> [INFO] Executing: /bin/sh -c cd
> /Users/demianneidetcher/code/tw/video-services && git commit --verbose -F
>
/var/folders/gt/gtxEeKivHniLmkebNhA1Ak+++TI/-Tmp-/maven-scm-1819129561.commit
> service/pom.xml webservice/pom.xml pom.xml
> *[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services
> *[INFO] Executing: /bin/sh -c cd
> /Users/demianneidetcher/code/tw/video-services && git symbolic-ref HEAD
> *[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services
> *[INFO] Executing: /bin/sh -c cd
> /Users/demianneidetcher/code/tw/video-services && git push
> ssh://gito...@code.webapps.rr.com/video-services.git master:master
> *[INFO] Working directory: /Users/demianneidetcher/code/tw/video-services
> *[INFO] Tagging release with the label video-parent-pom-3.0.5...
> [DEBUG] ScmTagPhase :: scmTagParameters remotingTag true
> [DEBUG] ScmTagPhase :: scmTagParameters scmRevision null
> [INFO] Executing: /bin/sh -c cd /Users/demianneidetcher/code/tw && git tag
> -F
>
/var/folders/gt/gtxEeKivHniLmkebNhA1Ak+++TI/-Tmp-/maven-scm-150875144.commit
> video-parent-pom-3.0.5
> *[INFO] Working directory: /Users/demianneidetcher/code/tw
> *
> ...
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on
> project video-parent-pom: Unable to tag SCM
> [ERROR] Provider message:
> [ERROR] The git-tag command failed.
> [ERROR] Command output:
> *[ERROR] fatal: Not a git repository (or any of the parent directories):
> .git
> *[ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare
(default-cli)
> on project video-parent-pom: Unable to tag SCM
> Provider message:
> The git-tag command failed.
> Command output:
> fatal: Not a git repository (or any of the parent directories): .git
>
> --
> View this message in context:
http://maven.40175.n5.nabble.com/git-scm-tp4686535p4686535.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>


Re: runtime dependency scope

2011-08-12 Thread heng su
Hi All,

Sorry, wrong post. It is not caused by the pom whic caused by my code issue.

Regards,
Su Heng

On 13 August 2011 00:59, heng su  wrote:

> Hi All,
>
>   Recently, I plan to use mave to manage a swt project. However, swt have
> multiple jars for different platforms and same package structure. So I just
> install those jars to my local repository.
> And write a POM with fragment:
>
> 
> org.eclipse
> swt-gtk-linux-x86
> 3.7
> compile
> 
> 
> org.eclipse
> swt-gtk-linux-x86_64
> 3.7
> runtime
> 
> 
> org.eclipse
> swt-win32-windows-x86
> 3.7
> runtime
> 
> 
> org.eclipse
> swt-win32-windows-x86_64
> 3.7
> runtime
> 
>
> I hope maven will use the jar which dependency scope is "compile" to
> compile my source code.
> However, It won't and give me error. If I remove those "runtime" scope
> dependencies. It works properly.
>
>
> Can anybody give me a hint?
>
>
> Thanks & Best Regards,
> Su Heng
>
>


-- 
Thanks & Best Regards,
Su Heng


runtime dependency scope

2011-08-12 Thread heng su
Hi All,

  Recently, I plan to use mave to manage a swt project. However, swt have
multiple jars for different platforms and same package structure. So I just
install those jars to my local repository.
And write a POM with fragment:


org.eclipse
swt-gtk-linux-x86
3.7
compile


org.eclipse
swt-gtk-linux-x86_64
3.7
runtime


org.eclipse
swt-win32-windows-x86
3.7
runtime


org.eclipse
swt-win32-windows-x86_64
3.7
runtime


I hope maven will use the jar which dependency scope is "compile" to compile
my source code.
However, It won't and give me error. If I remove those "runtime" scope
dependencies. It works properly.


Can anybody give me a hint?


Thanks & Best Regards,
Su Heng


Re: Reactor:resume goal

2011-08-12 Thread Marc Rohlfs

Hi Todd,

with the 'resume' goal You can define a module in Your build reactor 
(meaning the complete hierarchy with all sub modules), from where the 
build should be resumed. You use this e.g. when the build failed in a 
module, You fixed the problem in that module and then You don't like to 
run the hole build again.

Since Maven 2.1.0 there are command line options for that. Call:
  mvn clean install --resume-from [groupId:artifactId]
or
  mvn clean install --resume-from path/to/module

If I understood Your Your question right, You just want to build all sub 
modules of 'level2Project', right? Then You might just call:

  mvn clean install -f level2Project/pom.xml

Kind regards

   Marc

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven deployment failure

2011-08-12 Thread manukm07
Hi Karl,

The changes plugin is configured properly.  Could you plz tell how to check
if the issue tracking system is not representing a release or not?  I have
updated the changes.xml properly with appropriate pom version.

--
Manu

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-deployment-failure-tp4692892p4693168.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven deployment failure

2011-08-12 Thread Karl Heinz Marbaise
Hi, it looks like you haven't correctly configured the 
http://maven.apache.org/plugins/maven-changes-plugin/announcement-generate-mojo.html
or in your issue tracking system is not representing a release...

Kind regards
Karl Heinz Marbaise

-
Kind regards
Karl Heinz Marbaise

http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-deployment-failure-tp4692892p4692917.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Maven deployment failure

2011-08-12 Thread manukm07
Hi,

When I do a "mvn clean deploy" getting the following error.  But the
artifacts are getting copied to local repository as well as central
repository.  Could anyone provide some input ?


[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] No releases found in any of the configured issue management systems.
[INFO]

[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: No releases found in
any of the configured issue management systems.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: No releases found
in any of the configured issue management systems
.
at
org.apache.maven.plugin.announcement.AnnouncementMojo.execute(AnnouncementMojo.java:489)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more


--
Manu

--
View this message in context: 
http://maven.40175.n5.nabble.com/Maven-deployment-failure-tp4692892p4692892.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Parallel download dependencies in same group

2011-08-12 Thread Mark Struberg
Hi!

Of course, any help is welcome. But mind the problems which may arise:
You can only download in parallel after all poms got fully parsed 

Imo all the archive resolver stuff must first downloading all the poms and 
parse them. This must not be done in parallel because you don't know yet if 
there are things which could be done in parallel.
But of course, downloading the jars and other types might well be done with 
parallel requests.

LieGrue,
strub
 

--- On Fri, 8/12/11, Gaurav Arora  wrote:

> From: Gaurav Arora 
> Subject: RE: Parallel download dependencies in same group
> To: "Maven Users List" 
> Date: Friday, August 12, 2011, 7:01 AM
> I have noticed that if I download two
> separate builds from Nexus, they
> both download at the same speed. It's almost as if parallel
> downloads
> (upto a certain point) are faster on nexus hence the
> request.
> 
> Would it be okay if I worked on this and submitted a patch
> to download
> dependencies in parallel? I'm not sure how patch
> submissions work in the
> maven ecosystem so any links would be most helpful.
> 
> Thanks,
> Gaurav
> 
> -Original Message-
> From: Wayne Fay [mailto:wayne...@gmail.com]
> Sent: Thursday, August 11, 2011 9:08 PM
> To: Maven Users List
> Subject: Re: Parallel download dependencies in same group
> 
> > That was my initial idea too. But the problem is that
> these are trunk
> builds
> > with deep dependencies so they change very frequently.
> Most likely if I
> > rerun my tests 30 minutes later then I will recieve a
> new build because
> one
> > of the many in-house libraries has changed. We also
> work within a large
> team
> > where developers are frequently changing code so the
> version keeps
> updating.
> 
> Eventually you're going to have to pay the price for
> having
> development and builds happen in one area of the world and
> testing
> happen in another with a too-small Internet pipe connecting
> them.
> 
> Sounds like you need a local CI server + local Nexus slave
> + "mvn
> verify" job that runs every 10 or 15 minutes. The downloads
> will
> merely consume CPU time on your CI server rather than
> wasting your
> time.
> 
> Wayne
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Sql Loader Info Required

2011-08-12 Thread Anders Hammar
Or you write your own Maven plugin to give you a better Maven
experience. It's not hard!

/Anders

On Fri, Aug 12, 2011 at 10:59, Karl Heinz Marbaise  wrote:
> hi,
>
> you can't directly use a plugin cause it doesn't exist
>
> But you could either use the maven-exec-plugin to call sqlloader or use the
> http://mojo.codehaus.org/sql-maven-plugin/ maven-sql-plugin  which can
> execute SQL scripts but than you can't use the csv files.
>
> Kind regards
> Karl Heinz Marbaise
>
> -
> Kind regards
> Karl Heinz Marbaise
> 
> http://www.soebes.de
> http://www.skmwiki.de
> http://supose.org/wiki/supose
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/Sql-Loader-Info-Required-tp4692361p4692558.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Sql Loader Info Required

2011-08-12 Thread Karl Heinz Marbaise
hi,

you can't directly use a plugin cause it doesn't exist

But you could either use the maven-exec-plugin to call sqlloader or use the 
http://mojo.codehaus.org/sql-maven-plugin/ maven-sql-plugin  which can
execute SQL scripts but than you can't use the csv files.

Kind regards
Karl Heinz Marbaise 

-
Kind regards
Karl Heinz Marbaise

http://www.soebes.de
http://www.skmwiki.de
http://supose.org/wiki/supose
--
View this message in context: 
http://maven.40175.n5.nabble.com/Sql-Loader-Info-Required-tp4692361p4692558.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Sql Loader Info Required

2011-08-12 Thread anamika gupta
Hi,

   I have to load the data from .csv file to oracle using maven. usually we
do it by using sqlloader. can you please suggest me a plugin that will do
the same.

Any help is appreciated.

--
View this message in context: 
http://maven.40175.n5.nabble.com/Sql-Loader-Info-Required-tp4692361p4692361.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Parallel download dependencies in same group

2011-08-12 Thread Gaurav Arora
I have noticed that if I download two separate builds from Nexus, they
both download at the same speed. It's almost as if parallel downloads
(upto a certain point) are faster on nexus hence the request.

Would it be okay if I worked on this and submitted a patch to download
dependencies in parallel? I'm not sure how patch submissions work in the
maven ecosystem so any links would be most helpful.

Thanks,
Gaurav

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com]
Sent: Thursday, August 11, 2011 9:08 PM
To: Maven Users List
Subject: Re: Parallel download dependencies in same group

> That was my initial idea too. But the problem is that these are trunk
builds
> with deep dependencies so they change very frequently. Most likely if I
> rerun my tests 30 minutes later then I will recieve a new build because
one
> of the many in-house libraries has changed. We also work within a large
team
> where developers are frequently changing code so the version keeps
updating.

Eventually you're going to have to pay the price for having
development and builds happen in one area of the world and testing
happen in another with a too-small Internet pipe connecting them.

Sounds like you need a local CI server + local Nexus slave + "mvn
verify" job that runs every 10 or 15 minutes. The downloads will
merely consume CPU time on your CI server rather than wasting your
time.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org