|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
AW: NPE with maven-changelog-plugin and gitHi Imran! Having only looked over your log quickly, it seems to me that this is not a git-scm problem: > java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.Commandline.createArg()Lorg/codehaus/plexus/util/cli/Arg; > org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.getBaseGitCommandLine(GitCommandLineUtils.java:82) Looks like this function is not in the plexus-utils-1.1 the changelog uses in your setup? > [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile (removed - nearer found: 1.1) hmm, why does it take the 1.1 instead of the 1.5.6? Idea, anyone? LieGrue, strub --- Imran M Yousuf <imyousuf@...> schrieb am Mo, 30.3.2009: > Von: Imran M Yousuf <imyousuf@...> > Betreff: NPE with maven-changelog-plugin and git > An: scm-dev@... > Datum: Montag, 30. März 2009, 4:55 > Hi, > > I am getting NPE when I issue the following > configuration and > command 'mvn changelog:changelog' in scm version 1.1. When > I use scm > verison 1.2 I get No Such Method Error. I am pretty sure I > am doing > something wrong but I am unable to determine it. Please > help! I have > attached the relevant outputs as attachment - > git-log.out - Output of the git log command issued to build > the log > maven-changelog-npe.out - Output including debug info for > the NPE > maven-scm-error-1.2.out - No such method error with 1.2. > > I am compressing them to reduce the size of the attachment. > I would be > deeply grateful if you would be kind enough to point me in > right > direction. > > > <scm> > > <connection>scm:git:git://repo.or.cz/smart-dao.git</connection> > > <developerConnection>scm:git:ssh://imyousuf@.../srv/git/smart-dao.git</developerConnection> > </scm> > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-scm-plugin</artifactId> > > <version>${scm.version}</version> > </plugin> > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-changelog-plugin</artifactId> > > <version>2.1</version> > > <dependencies> > > <dependency> > > > <groupId>org.apache.maven.scm</groupId> > > > <artifactId>maven-scm-provider-gitexe</artifactId> > > > <version>${scm.version}</version> > > </dependency> > > </dependencies> > </plugin> > <properties> > > <commons-lang.version>2.3</commons-lang.version> > > <smart-util.version>0.2-SNAPSHOT</smart-util.version> > > <jgit.version>0.4-SNAPSHOT</jgit.version> > > <scm.version>1.1</scm.version> > </properties> > > Thank you, > > -- > Imran M Yousuf > Entrepreneur & Software Engineer > Smart IT Engineering > Dhaka, Bangladesh > Email: imran@... > Blog: http://imyousuf-tech.blogs.smartitengineering.com/ > Mobile: +880-1711402557 > |
|
|
Re: AW: NPE with maven-changelog-plugin and gitWhat version of Maven? I think prior to Maven 2.0.7 it was hardcoded
to p-u 1.1. - Brett On 30/03/2009, at 10:23 PM, Mark Struberg wrote: > > Hi Imran! > > Having only looked over your log quickly, it seems to me that this > is not a git-scm problem: > >> java.lang.NoSuchMethodError: >> org.codehaus.plexus.util.cli.Commandline.createArg()Lorg/codehaus/ >> plexus/util/cli/Arg; >> org >> .apache >> .maven >> .scm >> .provider >> .git >> .gitexe >> .command >> .GitCommandLineUtils.getBaseGitCommandLine(GitCommandLineUtils.java: >> 82) > > Looks like this function is not in the plexus-utils-1.1 the > changelog uses in your setup? >> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile >> (removed - nearer found: 1.1) > hmm, why does it take the 1.1 instead of the 1.5.6? Idea, anyone? > > > LieGrue, > strub > > > > --- Imran M Yousuf <imyousuf@...> schrieb am Mo, 30.3.2009: > >> Von: Imran M Yousuf <imyousuf@...> >> Betreff: NPE with maven-changelog-plugin and git >> An: scm-dev@... >> Datum: Montag, 30. März 2009, 4:55 >> Hi, >> >> I am getting NPE when I issue the following >> configuration and >> command 'mvn changelog:changelog' in scm version 1.1. When >> I use scm >> verison 1.2 I get No Such Method Error. I am pretty sure I >> am doing >> something wrong but I am unable to determine it. Please >> help! I have >> attached the relevant outputs as attachment - >> git-log.out - Output of the git log command issued to build >> the log >> maven-changelog-npe.out - Output including debug info for >> the NPE >> maven-scm-error-1.2.out - No such method error with 1.2. >> >> I am compressing them to reduce the size of the attachment. >> I would be >> deeply grateful if you would be kind enough to point me in >> right >> direction. >> >> >> <scm> >> >> <connection>scm:git:git://repo.or.cz/smart-dao.git</connection> >> >> <developerConnection>scm:git:ssh://imyousuf@.../srv/git/smart-dao.git >> </developerConnection> >> </scm> >> >> <plugin> >> >> <groupId>org.apache.maven.plugins</groupId> >> >> <artifactId>maven-scm-plugin</artifactId> >> >> <version>${scm.version}</version> >> </plugin> >> <plugin> >> >> <groupId>org.apache.maven.plugins</groupId> >> >> <artifactId>maven-changelog-plugin</artifactId> >> >> <version>2.1</version> >> >> <dependencies> >> >> <dependency> >> >> >> <groupId>org.apache.maven.scm</groupId> >> >> >> <artifactId>maven-scm-provider-gitexe</artifactId> >> >> >> <version>${scm.version}</version> >> >> </dependency> >> >> </dependencies> >> </plugin> >> <properties> >> >> <commons-lang.version>2.3</commons-lang.version> >> >> <smart-util.version>0.2-SNAPSHOT</smart-util.version> >> >> <jgit.version>0.4-SNAPSHOT</jgit.version> >> >> <scm.version>1.1</scm.version> >> </properties> >> >> Thank you, >> >> -- >> Imran M Yousuf >> Entrepreneur & Software Engineer >> Smart IT Engineering >> Dhaka, Bangladesh >> Email: imran@... >> Blog: http://imyousuf-tech.blogs.smartitengineering.com/ >> Mobile: +880-1711402557 >> > > > |
|
|
|
|
|
Re: AW: NPE with maven-changelog-plugin and gitMark Struberg wrote:
>> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile (removed - nearer found: 1.1) > hmm, why does it take the 1.1 instead of the 1.5.6? Idea, anyone? Looks like http://jira.codehaus.org/browse/MCHANGELOG-89. The plugin POM is missing plexus-utils as a direct dependency which triggers a backward-compat mode in Maven 2.x that adds plexus-utils:1.1 to the plugin dependencies. This injected direct dependency on plexus-utils:1.1 wins over the plexus-utils used by the SCM stuff due to the nearest conflict resolution. Benjamin |
|
|
Re: AW: NPE with maven-changelog-plugin and gitHi,
Can you try with last maven-changelog-plugin 2.2-SNAPSHOT version ? I have just deployed a SNAPSHOT which use scm 1.2 released version. Thanks, -- Olivier 2009/3/30 Benjamin Bentmann <benjamin.bentmann@...>: > Mark Struberg wrote: > >>> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile (removed - >>> nearer found: 1.1) >> >> hmm, why does it take the 1.1 instead of the 1.5.6? Idea, anyone? > > Looks like http://jira.codehaus.org/browse/MCHANGELOG-89. The plugin POM is > missing plexus-utils as a direct dependency which triggers a backward-compat > mode in Maven 2.x that adds plexus-utils:1.1 to the plugin dependencies. > This injected direct dependency on plexus-utils:1.1 wins over the > plexus-utils used by the SCM stuff due to the nearest conflict resolution. > > > Benjamin > |
|
|
Re: AW: NPE with maven-changelog-plugin and gitOn Mon, Mar 30, 2009 at 6:27 PM, Brett Porter <brett@...> wrote:
> What version of Maven? I think prior to Maven 2.0.7 it was hardcoded to p-u > 1.1. > $ mvn -version Apache Maven 2.1.0 (r755702; 2009-03-19 01:10:27+0600) Java version: 1.6.0_01 Java home: /opt/jdk1.6.0_01/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.24-23-generic" arch: "i386" Family: "unix" Thank you, Imran > - Brett > > On 30/03/2009, at 10:23 PM, Mark Struberg wrote: > >> >> Hi Imran! >> >> Having only looked over your log quickly, it seems to me that this is not >> a git-scm problem: >> >>> java.lang.NoSuchMethodError: >>> org.codehaus.plexus.util.cli.Commandline.createArg()Lorg/codehaus/plexus/util/cli/Arg; >>> >>> org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.getBaseGitCommandLine(GitCommandLineUtils.java:82) >> >> Looks like this function is not in the plexus-utils-1.1 the changelog uses >> in your setup? >>> >>> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile (removed - >>> nearer found: 1.1) >> >> hmm, why does it take the 1.1 instead of the 1.5.6? Idea, anyone? >> >> >> LieGrue, >> strub >> >> >> >> --- Imran M Yousuf <imyousuf@...> schrieb am Mo, 30.3.2009: >> >>> Von: Imran M Yousuf <imyousuf@...> >>> Betreff: NPE with maven-changelog-plugin and git >>> An: scm-dev@... >>> Datum: Montag, 30. März 2009, 4:55 >>> Hi, >>> >>> I am getting NPE when I issue the following >>> configuration and >>> command 'mvn changelog:changelog' in scm version 1.1. When >>> I use scm >>> verison 1.2 I get No Such Method Error. I am pretty sure I >>> am doing >>> something wrong but I am unable to determine it. Please >>> help! I have >>> attached the relevant outputs as attachment - >>> git-log.out - Output of the git log command issued to build >>> the log >>> maven-changelog-npe.out - Output including debug info for >>> the NPE >>> maven-scm-error-1.2.out - No such method error with 1.2. >>> >>> I am compressing them to reduce the size of the attachment. >>> I would be >>> deeply grateful if you would be kind enough to point me in >>> right >>> direction. >>> >>> >>> <scm> >>> >>> <connection>scm:git:git://repo.or.cz/smart-dao.git</connection> >>> >>> >>> <developerConnection>scm:git:ssh://imyousuf@.../srv/git/smart-dao.git</developerConnection> >>> </scm> >>> >>> <plugin> >>> >>> <groupId>org.apache.maven.plugins</groupId> >>> >>> <artifactId>maven-scm-plugin</artifactId> >>> >>> <version>${scm.version}</version> >>> </plugin> >>> <plugin> >>> >>> <groupId>org.apache.maven.plugins</groupId> >>> >>> <artifactId>maven-changelog-plugin</artifactId> >>> >>> <version>2.1</version> >>> >>> <dependencies> >>> >>> <dependency> >>> >>> >>> <groupId>org.apache.maven.scm</groupId> >>> >>> >>> <artifactId>maven-scm-provider-gitexe</artifactId> >>> >>> >>> <version>${scm.version}</version> >>> >>> </dependency> >>> >>> </dependencies> >>> </plugin> >>> <properties> >>> >>> <commons-lang.version>2.3</commons-lang.version> >>> >>> <smart-util.version>0.2-SNAPSHOT</smart-util.version> >>> >>> <jgit.version>0.4-SNAPSHOT</jgit.version> >>> >>> <scm.version>1.1</scm.version> >>> </properties> >>> >>> Thank you, >>> >>> -- >>> Imran M Yousuf >>> Entrepreneur & Software Engineer >>> Smart IT Engineering >>> Dhaka, Bangladesh >>> Email: imran@... >>> Blog: http://imyousuf-tech.blogs.smartitengineering.com/ >>> Mobile: +880-1711402557 >>> >> >> >> > > -- Imran M Yousuf Entrepreneur & Software Engineer Smart IT Engineering Dhaka, Bangladesh Email: imran@... Blog: http://imyousuf-tech.blogs.smartitengineering.com/ Mobile: +880-1711402557 |
|
|
Re: AW: NPE with maven-changelog-plugin and gitOn Tue, Mar 31, 2009 at 12:01 AM, Olivier Lamy <olamy@...> wrote:
> Hi, > Can you try with last maven-changelog-plugin 2.2-SNAPSHOT version ? > I have just deployed a SNAPSHOT which use scm 1.2 released version. > Changing the version straight forward did not work :(, but after I checked out the code of changelog and 'mvn install' it, the stuffs worked perfectly :). Thanks, Imran > Thanks, > -- > Olivier > > 2009/3/30 Benjamin Bentmann <benjamin.bentmann@...>: >> Mark Struberg wrote: >> >>>> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile (removed - >>>> nearer found: 1.1) >>> >>> hmm, why does it take the 1.1 instead of the 1.5.6? Idea, anyone? >> >> Looks like http://jira.codehaus.org/browse/MCHANGELOG-89. The plugin POM is >> missing plexus-utils as a direct dependency which triggers a backward-compat >> mode in Maven 2.x that adds plexus-utils:1.1 to the plugin dependencies. >> This injected direct dependency on plexus-utils:1.1 wins over the >> plexus-utils used by the SCM stuff due to the nearest conflict resolution. >> >> >> Benjamin >> > -- Imran M Yousuf Entrepreneur & Software Engineer Smart IT Engineering Dhaka, Bangladesh Email: imran@... Blog: http://imyousuf-tech.blogs.smartitengineering.com/ Mobile: +880-1711402557 |
|
|
Re: NPE with maven-changelog-plugin and gitOn Mon, Mar 30, 2009 at 5:23 PM, Mark Struberg <struberg@...> wrote:
> > Hi Imran! > > Having only looked over your log quickly, it seems to me that this is not a git-scm problem: > >> java.lang.NoSuchMethodError: org.codehaus.plexus.util.cli.Commandline.createArg()Lorg/codehaus/plexus/util/cli/Arg; >> org.apache.maven.scm.provider.git.gitexe.command.GitCommandLineUtils.getBaseGitCommandLine(GitCommandLineUtils.java:82) > > Looks like this function is not in the plexus-utils-1.1 the changelog uses in your setup? >> [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.6:compile (removed - nearer found: 1.1) > hmm, why does it take the 1.1 instead of the 1.5.6? Idea, anyone? > Hi Mark! If I add the following to the plugin - <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> <version>${plexus-utils.version}</version> </dependency> Where verison is 1.5.6 it works fine with both 2.1 and the 2.2-SNAPSHOT and I can exclude the gitexe as dependency from the plugin. Thanks, Imran > > LieGrue, > strub > > > > --- Imran M Yousuf <imyousuf@...> schrieb am Mo, 30.3.2009: > >> Von: Imran M Yousuf <imyousuf@...> >> Betreff: NPE with maven-changelog-plugin and git >> An: scm-dev@... >> Datum: Montag, 30. März 2009, 4:55 >> Hi, >> >> I am getting NPE when I issue the following >> configuration and >> command 'mvn changelog:changelog' in scm version 1.1. When >> I use scm >> verison 1.2 I get No Such Method Error. I am pretty sure I >> am doing >> something wrong but I am unable to determine it. Please >> help! I have >> attached the relevant outputs as attachment - >> git-log.out - Output of the git log command issued to build >> the log >> maven-changelog-npe.out - Output including debug info for >> the NPE >> maven-scm-error-1.2.out - No such method error with 1.2. >> >> I am compressing them to reduce the size of the attachment. >> I would be >> deeply grateful if you would be kind enough to point me in >> right >> direction. >> >> >> <scm> >> >> <connection>scm:git:git://repo.or.cz/smart-dao.git</connection> >> >> <developerConnection>scm:git:ssh://imyousuf@.../srv/git/smart-dao.git</developerConnection> >> </scm> >> >> <plugin> >> >> <groupId>org.apache.maven.plugins</groupId> >> >> <artifactId>maven-scm-plugin</artifactId> >> >> <version>${scm.version}</version> >> </plugin> >> <plugin> >> >> <groupId>org.apache.maven.plugins</groupId> >> >> <artifactId>maven-changelog-plugin</artifactId> >> >> <version>2.1</version> >> >> <dependencies> >> >> <dependency> >> >> >> <groupId>org.apache.maven.scm</groupId> >> >> >> <artifactId>maven-scm-provider-gitexe</artifactId> >> >> >> <version>${scm.version}</version> >> >> </dependency> >> >> </dependencies> >> </plugin> >> <properties> >> >> <commons-lang.version>2.3</commons-lang.version> >> >> <smart-util.version>0.2-SNAPSHOT</smart-util.version> >> >> <jgit.version>0.4-SNAPSHOT</jgit.version> >> >> <scm.version>1.1</scm.version> >> </properties> >> >> Thank you, >> >> -- >> Imran M Yousuf >> Entrepreneur & Software Engineer >> Smart IT Engineering >> Dhaka, Bangladesh >> Email: imran@... >> Blog: http://imyousuf-tech.blogs.smartitengineering.com/ >> Mobile: +880-1711402557 >> > > > > -- Imran M Yousuf Entrepreneur & Software Engineer Smart IT Engineering Dhaka, Bangladesh Email: imran@... Blog: http://imyousuf-tech.blogs.smartitengineering.com/ Mobile: +880-1711402557 |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |