Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPG error on mvn clean install #23

Closed
btudor opened this issue Nov 10, 2014 · 9 comments
Closed

GPG error on mvn clean install #23

btudor opened this issue Nov 10, 2014 · 9 comments

Comments

@btudor
Copy link

btudor commented Nov 10, 2014

Keep getting a MojoExecutionException error due to Maven not being able to grab dependency: org.apache.maven.plugins:maven-gpg-plugin

@ryaneberly
Copy link
Contributor

Sorry about that. We have that plugin for signing the jar for maven. We're still figuring out how to make local builds not require that.

For now, if you comment the maven-gpg-plugin plugin (lines 213-226) in the pom.xml. It should complete the clean install successfully.

@ryaneberly
Copy link
Contributor

@btudor
Copy link
Author

btudor commented Nov 11, 2014

Ryan,

Many thanks for your reply – I got round the problem by installing GPG4Win, putting it on the path and creating an initial Cert. Your excellent CFLint went ahead using that fine.

(but it would be nice if we could optionally skip the pgp part altogether perhaps).

So after that I got CFLint working by running: java –jar apart from log4j which I assume I will also have to install and configure correctly?

I am curious – is there a way to set a default ouput file instead of outputting to console by default when output is set in the UI to Text?

I am happy to update Docs for you to help anyone else when trying out CFLint for first time.

Thanks for a great tool.

Regards,

Bill

From: ryaneberly [mailto:[email protected]]
Sent: 11 November 2014 12:27
To: cflint/CFLint
Cc: Bill Tudor
Subject: Re: [CFLint] GPG error on mvn clean install (#23)

I think we need to do something like this:
http://stackoverflow.com/questions/14825039/suppressing-gpg-signing-for-maven-based-continous-integration-builds-travis-ci


Reply to this email directly or view it on GitHub #23 (comment) .Description: Image removed by sender.

@ryaneberly
Copy link
Contributor

I am curious – is there a way to set a default ouput file instead of outputting to console by default when
output is set in the UI to Text? I am happy to update Docs for you to help anyone else when trying out
CFLint for first time.

if you are using the cflint-ui.bat (or unix cflint-ui),
cflint-ui.bat -textfile
example:
cflint-ui.bat -textfile c:\temp\out.txt

It will open automatically (at least in windows) when it is finished.

By all means start a wiki page,
(https://github.com/cflint/CFLint/wiki)
You input is welcome!

@jjames967
Copy link
Collaborator

I've uploaded a new pom with all the jar/javadoc stuff commented out for now. Hopefully there won't be further issues with it.

I also started a wiki page a while ago. I just haven't been actively updating it. The more people contributing, the better!

@btudor
Copy link
Author

btudor commented Nov 13, 2014

Ryan/James,

I have updated Wiki (a small contribution, but it’s a start). Thanks for your help.

Bill Tudor

From: ryaneberly [mailto:[email protected]]
Sent: 12 November 2014 03:26
To: cflint/CFLint
Cc: Bill Tudor
Subject: Re: [CFLint] GPG error on mvn clean install (#23)

I am curious – is there a way to set a default ouput file instead of outputting to console by default when
output is set in the UI to Text? I am happy to update Docs for you to help anyone else when trying out
CFLint for first time.

if you are using the cflint-ui.bat (or unix cflint-ui),
cflint-ui.bat -textfile
example:
cflint-ui.bat -textfile c:\temp\out.txt

It will open automatically (at least in windows) when it is finished.

By all means start a wiki page,
(https://github.com/cflint/CFLint/wiki)
You input is welcome!


Reply to this email directly or view it on GitHub #23 (comment) .Description: Image removed by sender.

@ryaneberly
Copy link
Contributor

Bill,
I invited you to the contributor group on CFLint, that will allow you to
commit to the git repo.

If you are interested it contributing a bit further, take a look at Issue
#25

On Thu, Nov 13, 2014 at 6:03 AM, Bill Tudor [email protected]
wrote:

Ryan/James,

I have updated Wiki (a small contribution, but it’s a start). Thanks for
your help.

Bill Tudor

From: ryaneberly [mailto:[email protected]]
Sent: 12 November 2014 03:26
To: cflint/CFLint
Cc: Bill Tudor
Subject: Re: [CFLint] GPG error on mvn clean install (#23)

I am curious – is there a way to set a default ouput file instead of
outputting to console by default when
output is set in the UI to Text? I am happy to update Docs for you to help
anyone else when trying out
CFLint for first time.

if you are using the cflint-ui.bat (or unix cflint-ui),
cflint-ui.bat -textfile
example:
cflint-ui.bat -textfile c:\temp\out.txt

It will open automatically (at least in windows) when it is finished.

By all means start a wiki page,
(https://github.com/cflint/CFLint/wiki)
You input is welcome!


Reply to this email directly or view it on GitHub <
https://github.com/cflint/CFLint/issues/23#issuecomment-62664735>
.Description: Image removed by sender.


Reply to this email directly or view it on GitHub
#23 (comment).

@jjames967
Copy link
Collaborator

I've looked into this... it's set up as:

        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
                <execution>
                    <id>sign-artifacts</id>
                    <phase>verify</phase>
                    <goals>
                        <goal>sign</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

When I execute "mvn clean install" it doesn't generate signed files. It only runs when I do "mvn verify". So I'm wondering why it's asking people who don't have gpg installed for it to be installed.

@jjames967
Copy link
Collaborator

My plan is to redo how the build is deployed. Hopefully it will remove any further issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants