Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Build Failure

Thanks Matthias for the info and link.

I have rebuilt with the -X option. Please the following stacktrace:

[ERROR] Failed to execute goal on project jetty-servlet: Could not resolve dependencies for project
org.eclipse.jetty:jetty-servlet:jar:9.4.0-SNAPSHOT: Could not find artifact org.eclipse.jetty:jetty-
http:jar:tests:9.4.0-SNAPSHOT -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project jetty-serv
let: Could not resolve dependencies for project org.eclipse.jetty:jetty-servlet:jar:9.4.0-SNAPSHOT:
Could not find artifact org.eclipse.jetty:jetty-http:jar:tests:9.4.0-SNAPSHOT
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(Lifecycle
DependencyResolver.java:221)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencie
s(LifecycleDependencyResolver.java:127)
        at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecut
or.java:257)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
        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(LifecycleModuleBu
ilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu
ilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(Si
ngleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies fo
r project org.eclipse.jetty:jetty-servlet:jar:9.4.0-SNAPSHOT: Could not find artifact org.eclipse.je
tty:jetty-http:jar:tests:9.4.0-SNAPSHOT
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDepende
nciesResolver.java:211)
        at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(Lifecycle
DependencyResolver.java:195)
        ... 23 more
Caused by: org.eclipse.aether.resolution.DependencyResolutionException: Could not find artifact org.
eclipse.jetty:jetty-http:jar:tests:9.4.0-SNAPSHOT
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepos
itorySystem.java:384)
        at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDepende
nciesResolver.java:205)
        ... 24 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact org.ec
lipse.jetty:jetty-http:jar:tests:9.4.0-SNAPSHOT
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.
java:444)
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifact
Resolver.java:246)
        at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepos
itorySystem.java:367)
        ... 25 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.eclips
e.jetty:jetty-http:jar:tests:9.4.0-SNAPSHOT
        at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.
java:434)
        ... 27 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following arti
cles:
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jetty-servlet

Seems like dependency issues?



On Sat, Mar 12, 2016 at 5:34 PM, Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
AFAIK on WIndows normal users don't have the permission to create symlinks by default.

The failing maven build should have more details about what's failing. You may try the -e option
to get stacktraces and -X for debug log

-Matthias

On Sat, Mar 12, 2016 at 1:27 AM, Fuxiang Chen <cfuxiang@xxxxxxxxx> wrote:
Thanks Greg.

I have re-cloned the repository and re-build it.

Environment: Java 1.8; Windows 7; set maven to skip tests (e.g. mvn clean install -Dmaven.test.skip=true)

The following is the error:

Failed tests:
  FileSystemResourceTest.testSymlink:595 alias
Expected: getAlias should return <file:/D:/1_subjects/jetty.project/jetty-util/target/tests/testSyml
in...rce.FileResource%5D/foo>
     but: was null

Tests run: 860, Failures: 1, Errors: 0, Skipped: 62

It seems like the tests are are not skipped when using "install".

I then change to mvn clean compile -Dmaven.test.skip=true

The following is the error:

[ERROR] Failed to execute goal on project jetty-servlet: Could not resolve dependencies for project org.eclipse.jetty:jetty-servlet:jar:9.4.0-SNAPSHOT: Could not find artifact org.eclipse.jetty:jetty-http:jar:tests:9.4.0-SNAPSHOT -> [Help 1]

It seems like maven failed to download/resolve the dependencies?

Please kindly advise.

Thanks.


On Sat, Mar 12, 2016 at 1:59 PM, Greg Wilkins <gregw@xxxxxxxxxxx> wrote:

We currently have a few intermittent test failures and are actively chasing them down to get a 100% reliable build.    Typically they are failing 1 in 4 builds for me, but we have already substantially improved them recently.

The test failures you list are not any that I have seen and we certainly don't have any compile problems?!?!?

So your results are not normal.  More info please!




On 12 March 2016 at 16:07, Fuxiang Chen <cfuxiang@xxxxxxxxx> wrote:
Hi,

I have several build failure when I run "mvn clean install" from the root directory as indicated in the readme.txt file.

Please see the following bundles that are having errors (I added the -fn to maven to check which bundles are having issues). Most of them are able to compile except for the following 7:

[INFO] Jetty :: Asynchronous HTTP Client .................. FAILURE [04:33 min]
[INFO] Test :: Jetty Proxy Webapp ......................... FAILURE [  0.867 s]
[INFO] Example Async Rest :: Webapp ....................... FAILURE [  0.288 s]
[INFO] Jetty :: Distribution Assemblies ................... FAILURE [  3.787 s]
[INFO] Jetty Tests :: Integrations ........................ FAILURE [  1.878 s]
[INFO] Jetty Tests :: JMX :: WebApp Integration Tests ..... FAILURE [  0.888 s]
[INFO] Jetty :: OSGi :: Test .............................. FAILURE [01:08 min]

Is it normal? I tried in both Windows and Linux environment. May I know how can I resolve these errors?

Thanks.

--
Warmest Regards,
    Fuxiang

_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev



--

_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev



--
Warmest Regards,
    Fuxiang

_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev


_______________________________________________
jetty-dev mailing list
jetty-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-dev



--
Warmest Regards,
    Fuxiang

Back to the top