Re: Error of after running 'mvn package' command

2014-04-22 Thread snallami
I faced exact same issue , replying to this mail chain so that other can
benefit.

It looks like Hudson project is moved to eclipse.org hence in plugin pom.xml
we need to changed parent declaration as below 

org.eclipse.hudson.plugins
hudson-plugin-parent
3.0.0



BTW in your machine if you first build the project for Jenkins and then
Hudson you won't encounter this issue. This happens only when you are
building Hudson plugin freshly where Jenkins dependent jars does not exist.







--
View this message in context: 
http://maven.40175.n5.nabble.com/Error-of-after-running-mvn-package-command-tp5762649p5791803.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: Error of after running 'mvn package' command

2013-07-23 Thread Ron Wheeler

Did you put a setting.xml file there?
Just put one there based on what is written 
http://maven.apache.org/settings.html


Ron

On 23/07/2013 7:10 AM, 邹志勇 wrote:

Can you guys help me resolve it , my own project totally block by this problem.


Thanks.



At 2013-07-23 09:18:50,"邹志勇"  wrote:

Thanks,

when i invoke the command  ' ls -al /home/zouzy/.m2 ' , it is the directory of 
repository, not have the file of setting.xml .




















--
Ron Wheeler
President
Artifact Software Inc
email: rwhee...@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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



Re: Error of after running 'mvn package' command

2013-07-21 Thread Russell Gold
Well this is rather strange. What happens when you invoke:

ls -al /home/zouzy/.m2


On Jul 19, 2013, at 11:13 PM, 邹志勇  wrote:

> I think the POM and setting are used during execute process, you can check 
> all the debug information in the attachment.
> 
> For the debug , it seems a meta file cannot find.
> 
> By the way, i always cannot see the locale setting.xml in the directory, even 
> through the file is showed in debug process.
> 
> 
> Thanks

-
Come read my webnovel, Take a Lemon , 
and listen to the Misfile radio play 
!






Re: Error of after running 'mvn package' command

2013-07-12 Thread Russell Gold
Are those the actual pom and settings.xml files you are using? They look like 
unedited samples.

On Jul 12, 2013, at 12:01 AM, 邹志勇  wrote:

> From my observation, in POM file and settings.xml don't do any config about 
> repository, the following are two files content :
> In the end, i pastes the more detail debug infor of running 'mvn '.
> 1.Project POM file content :
> http://maven.apache.org/POM/4.0.0"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd";>
> 
>4.0.0
> 
>
>org.jvnet.hudson.plugins
>hudson-plugin-parent
>2.1.2
>
> 
>org.sample.hudson
>javaone-sample
>1.0-SNAPSHOT
> 
>hpi
> 
>My New Plugin
> 2. Global settings.xml content :
> 
> 
> 
> 
> 
> http://maven.apache.org/SETTINGS/1.0.0";
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 
> http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>  
> 
>  
> 
>  
> 
>  
>  
>
>org.jvnet.hudson.tools
>  
> 
>  
>  
>
>  
> 
>  
>  
>
> 
>
>  
> 
>  
>  
>
>  
> 
>  
>  
>
> 
>
>  
> 
>  
> 
> 3.Debug infor of 'mvn package' command
> [ERROR] Failed to execute goal 
> org.kohsuke:access-modifier-checker:1.4:enforce (default-enforce) on project 
> javaone-sample: Execution default-enforce of goal 
> org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin 
> org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could not 
> be resolved: Failed to collect dependencies for 
> org.kohsuke:access-modifier-checker:jar:1.4 (): Failed to read artifact 
> descriptor for org.jenkins-ci:annotation-indexer:jar:1.4: Could not transfer 
> artifact org.jenkins-ci:annotation-indexer:pom:1.4 from/to m.g.o-public 
> (http://maven.glassfish.org/content/groups/public/): hostname in certificate 
> didn't match:  !=  OR  
> -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.kohsuke:access-modifier-checker:1.4:enforce (default-enforce) on 
> project javaone-sample: Execution default-enforce of goal 
> org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin 
> org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could not 
> be resolved: Failed to collect dependencies for 
> org.kohsuke:access-modifier-checker:jar:1.4 ()
>at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
> default-enforce of goal org.kohsuke:access-modifier-checker:1.4:enforce 
> failed: Plugin org.kohsuke:access-modifier-checker:1.4 or one of its 
> dependencies could not be resolved: Failed to collect dependencies for 
> org.kohsuke:access-modifier-checker:jar:1.4 ()
>at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:82)
>at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>... 19 more
> Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin 
> org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could not 
> be resolved: Faile

Re: Error of after running 'mvn package' command

2013-07-11 Thread Stephen Connolly
Is the parent pom being resolved?

One of the legacies of the maven repo that sun set up is that you can have
a few hoops to jump through.

I'd ask the Hudson project (is it anyone besides Winston these days? -
asked from somebody very firmly on the Jenkins side of the split)

On Friday, 12 July 2013, 邹志勇 wrote:

> From my observation, in POM file and settings.xml don't do any config
> about repository, the following are two files content :
> In the end, i pastes the more detail debug infor of running 'mvn '.
> 1.Project POM file content :
> http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
> http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
> ">
>
> 4.0.0
>
> 
> org.jvnet.hudson.plugins
> hudson-plugin-parent
> 2.1.2
> 
>
> org.sample.hudson
> javaone-sample
> 1.0-SNAPSHOT
>
> hpi
>
> My New Plugin
> 2. Global settings.xml content :
> 
>
> 
>
> 
> http://maven.apache.org/SETTINGS/1.0.0";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
> http://maven.apache.org/xsd/settings-1.0.0.xsd";>
>   
>
>   
>
>   
>
>   
>   
> 
> org.jvnet.hudson.tools
>   
>
>   
>   
> 
>   
>
>   
>   
> 
>
> 
>   
>
>   
>   
> 
>   
>
>   
>   
> 
>
> 
>   
>
>   
> 
> 3.Debug infor of 'mvn package' command
> [ERROR] Failed to execute goal
> org.kohsuke:access-modifier-checker:1.4:enforce (default-enforce) on
> project javaone-sample: Execution default-enforce of goal
> org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin
> org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could
> not be resolved: Failed to collect dependencies for
> org.kohsuke:access-modifier-checker:jar:1.4 (): Failed to read artifact
> descriptor for org.jenkins-ci:annotation-indexer:jar:1.4: Could not
> transfer artifact org.jenkins-ci:annotation-indexer:pom:1.4 from/to
> m.g.o-public (http://maven.glassfish.org/content/groups/public/):
> hostname in certificate didn't match:  != <
> maven.java.net> OR  -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.kohsuke:access-modifier-checker:1.4:enforce (default-enforce) on
> project javaone-sample: Execution default-enforce of goal
> org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin
> org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could
> not be resolved: Failed to collect dependencies for
> org.kohsuke:access-modifier-checker:jar:1.4 ()
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModule
>
> At 2013-07-11 18:04:03,"邹志勇" >
> wrote:
>
> I don't config repository and where can i see the repository configured?
>
> Thanks.
>
>
> At 2013-07-11 09:46:57,"邹志勇" >
> wrote:
>
> Hi,
> After i run the command 'mvn package', then i get the following error
> message :
>  Failed to execute goal org.kohsuke:access-modifier-checker:1.4:enforce
> (default-enforce) on project javaone-sample: Execution default-enforce of
> goal org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin
> org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could
> not be resolved: Failed to collect dependencies at
> org.kohsuke:access-modifier-checker:jar:1.4 ->
> org.kohsuke:access-modifier-annotation:jar:1.4 ->
> org.jenkins-ci:annotation-indexer:jar:1.4: Failed to read artifact
> descriptor for org.jenkins-ci:annotation-indexer:jar:1.4: Could not
> transfer artifact org.jenkins-ci:annotation-indexer:pom:1.4 from/to
> m.g.o-public (http://maven.glassfish.org/content/groups/public/):
> hostname in certificate didn't match:  != <
> maven.java.net> OR  -> [Help 1]
> So, why, am i need to config in somewhere?
>
> Thanks.
>
>
>
>
>
>
>

-- 
Sent from my phone


Re: Error of after running 'mvn package' command

2013-07-11 Thread Russell Gold
It could be configured either in your POM or your settings.xml.

On Jul 11, 2013, at 6:04 AM, 邹志勇  wrote:

> I don't config repository and where can i see the repository configured?
> 
> Thanks.
> 
> 
> At 2013-07-11 09:46:57,"邹志勇"  wrote:
> 
> Hi,
> After i run the command 'mvn package', then i get the following error message 
> :
> Failed to execute goal org.kohsuke:access-modifier-checker:1.4:enforce 
> (default-enforce) on project javaone-sample: Execution default-enforce of 
> goal org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin 
> org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could not 
> be resolved: Failed to collect dependencies at 
> org.kohsuke:access-modifier-checker:jar:1.4 -> 
> org.kohsuke:access-modifier-annotation:jar:1.4 -> 
> org.jenkins-ci:annotation-indexer:jar:1.4: Failed to read artifact descriptor 
> for org.jenkins-ci:annotation-indexer:jar:1.4: Could not transfer artifact 
> org.jenkins-ci:annotation-indexer:pom:1.4 from/to m.g.o-public 
> (http://maven.glassfish.org/content/groups/public/): hostname in certificate 
> didn't match:  !=  OR  
> -> [Help 1]
> So, why, am i need to config in somewhere?
> 
> Thanks.
> 
> 
> 

-
Come read my webnovel, Take a Lemon , 
and listen to the Misfile radio play 
!






Re: Error of after running 'mvn package' command

2013-07-10 Thread Russell Gold
Hi,

Do you have a repository configured? You're trying to read artifacts from 
maven.glassfish.org, which is generally intended for glassfish development. You 
should be able to get most of what you want from maven central.

- Russ

On Jul 10, 2013, at 9:46 PM, 邹志勇  wrote:

> Hi,
> After i run the command 'mvn package', then i get the following error message 
> :
> Failed to execute goal org.kohsuke:access-modifier-checker:1.4:enforce 
> (default-enforce) on project javaone-sample: Execution default-enforce of 
> goal org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin 
> org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could not 
> be resolved: Failed to collect dependencies at 
> org.kohsuke:access-modifier-checker:jar:1.4 -> 
> org.kohsuke:access-modifier-annotation:jar:1.4 -> 
> org.jenkins-ci:annotation-indexer:jar:1.4: Failed to read artifact descriptor 
> for org.jenkins-ci:annotation-indexer:jar:1.4: Could not transfer artifact 
> org.jenkins-ci:annotation-indexer:pom:1.4 from/to m.g.o-public 
> (http://maven.glassfish.org/content/groups/public/): hostname in certificate 
> didn't match:  !=  OR  
> -> [Help 1]
> So, why, am i need to config in somewhere?
> 
> Thanks.

-
Come read my webnovel, Take a Lemon , 
and listen to the Misfile radio play 
!






Error of after running 'mvn package' command

2013-07-10 Thread 邹志勇
Hi,
After i run the command 'mvn package', then i get the following error message :
 Failed to execute goal org.kohsuke:access-modifier-checker:1.4:enforce 
(default-enforce) on project javaone-sample: Execution default-enforce of goal 
org.kohsuke:access-modifier-checker:1.4:enforce failed: Plugin 
org.kohsuke:access-modifier-checker:1.4 or one of its dependencies could not be 
resolved: Failed to collect dependencies at 
org.kohsuke:access-modifier-checker:jar:1.4 -> 
org.kohsuke:access-modifier-annotation:jar:1.4 -> 
org.jenkins-ci:annotation-indexer:jar:1.4: Failed to read artifact descriptor 
for org.jenkins-ci:annotation-indexer:jar:1.4: Could not transfer artifact 
org.jenkins-ci:annotation-indexer:pom:1.4 from/to m.g.o-public 
(http://maven.glassfish.org/content/groups/public/): hostname in certificate 
didn't match:  !=  OR  -> 
[Help 1]
So, why, am i need to config in somewhere?

Thanks.