Skip to main content

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

Something strange going on, we don't have these issues building on Windows, not sure what to say...do other mvn builds work at all for you?

On Mar 13, 2016 10:33 PM, "Fuxiang Chen" <cfuxiang@xxxxxxxxx> wrote:
Hi Jesse,

Thanks for the info.

I have switched to this command: "mvn clean install -fn" instead. 

I am listing the stacktrace and also which bundles could not be built (success bundles are not shown). As can be seen, it starts to fail in the Utilities when trying to "install":

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Jetty :: Utilities ................................. FAILURE [01:20 min]
[INFO] Jetty :: IO Utility ................................ FAILURE [ 54.541 s]
[INFO] Jetty :: Server Core ............................... FAILURE [08:17 min]
[INFO] Jetty :: Ant Plugin ................................ FAILURE [  0.359 s]
[INFO] Jetty :: Asynchronous HTTP Client .................. FAILURE [04:53 min]
[INFO] Jetty :: Proxy ..................................... FAILURE [01:47 min]
[INFO] Jetty :: Websocket :: Server ....................... FAILURE [01:21 min]
[INFO] Jetty :: Websocket :: javax.websocket.server :: Server Implementation FAILURE [01:39 min]
[INFO] Jetty :: Start ..................................... FAILURE [  9.543 s]
[INFO] Test :: Jetty Test Webapp .......................... FAILURE [  7.227 s]
[INFO] Test :: Jetty Proxy Webapp ......................... FAILURE [  0.954 s]
[INFO] Jetty Tests :: WebApp :: RFC2616 ................... FAILURE [  0.172 s]
[INFO] Jetty Tests :: Webapps :: Spec Webapp .............. FAILURE [  6.399 s]
[INFO] Jetty Tests :: Sessions :: JDBC .................... FAILURE [01:45 min]
[INFO] Example Async Rest :: Webapp ....................... FAILURE [  0.218 s]
[INFO] Jetty :: Distribution Assemblies ................... FAILURE [  3.292 s]
[INFO] Jetty Tests :: Integrations ........................ FAILURE [  1.624 s]
[INFO] Test :: Jetty Quick Start .......................... FAILURE [  0.343 s]
[INFO] Jetty Tests :: JMX :: WebApp ....................... FAILURE [  0.172 s]
[INFO] Jetty Tests :: JMX :: WebApp Integration Tests ..... FAILURE [  0.967 s]
[INFO] Jetty :: Runner .................................... FAILURE [  1.606 s]
[INFO] Jetty :: OSGi :: Test .............................. FAILURE [01:08 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47:27 min
[INFO] Finished at: 2016-03-14T10:01:43+08:00
[INFO] Final Memory: 254M/1918M
[INFO] ------------------------------------------------------------------------

...

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.2:copy-dependencie
s (copy-lib-deps) on project jetty-ant: Error copying artifact from D:\1_subjects\jetty.project\jett
y-server\target\classes to D:\1_subjects\jetty.project\jetty-ant\target\test-lib\jetty-server-9.4.0-
SNAPSHOT.jar: D:\1_subjects\jetty.project\jetty-server\target\classes (Access is denied) -> [Help 2]

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4:shade (default) on pr
oject jetty-start: Error creating shaded jar: Failed to analyze class dependencies: D:\1_subjects\je
tty.project\jetty-util\target\classes (Access is denied) -> [Help 2]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on
project test-jetty-webapp: Failed to copy file for artifact [org.eclipse.jetty:jetty-util:jar:9.4.0-
SNAPSHOT:compile]: D:\1_subjects\jetty.project\jetty-util\target\classes (Access is denied) -> [Help
 2]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on
project test-proxy-webapp: Failed to copy file for artifact [org.eclipse.jetty:jetty-proxy:jar:9.4.0
-SNAPSHOT:compile]: D:\1_subjects\jetty.project\jetty-proxy\target\classes (Access is denied) -> [He
lp 2]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on
project test-webapp-rfc2616: Failed to copy file for artifact [org.eclipse.jetty:jetty-util:jar:9.4.
0-SNAPSHOT:compile]: D:\1_subjects\jetty.project\jetty-util\target\classes (Access is denied) -> [He
lp 2]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on
project test-spec-webapp: Failed to copy file for artifact [org.eclipse.jetty:jetty-util:jar:9.4.0-S
NAPSHOT:compile]: D:\1_subjects\jetty.project\jetty-util\target\classes (Access is denied) -> [Help
2]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-tes
t) on project test-jdbc-sessions: There are test failures.
[ERROR]
[ERROR] Please refer to D:\1_subjects\jetty.project\tests\test-sessions\test-jdbc-sessions\target\su
refire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on
project example-async-rest-webapp: Failed to copy file for artifact [org.eclipse.jetty:jetty-client:
jar:9.4.0-SNAPSHOT:compile]: D:\1_subjects\jetty.project\jetty-client\target\classes (Access is deni
ed) -> [Help 2]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.2:copy (copy) on p
roject jetty-distribution: Error copying artifact from D:\1_subjects\jetty.project\tests\test-webapp
s\test-jetty-webapp\target\classes to D:\1_subjects\jetty.project\jetty-distribution\target\distribu
tion\demo-base\webapps\test.war: D:\1_subjects\jetty.project\tests\test-webapps\test-jetty-webapp\ta
rget\classes (Access is denied) -> [Help 2]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.2:copy-dependencie
s (copy-wars-for-testing) on project test-integration: Error copying artifact from D:\1_subjects\jet
ty.project\tests\test-webapps\test-jetty-webapp\target\classes to D:\1_subjects\jetty.project\tests\
test-integration\target\webapps\test-jetty-webapp.war: D:\1_subjects\jetty.project\tests\test-webapp
s\test-jetty-webapp\target\classes (Access is denied) -> [Help 2]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.2:copy (copy) on p
roject test-quickstart: Error copying artifact from D:\1_subjects\jetty.project\tests\test-webapps\t
est-servlet-spec\test-spec-webapp\target\classes to D:\1_subjects\jetty.project\tests\test-quickstar
t\target\test-spec.war: D:\1_subjects\jetty.project\tests\test-webapps\test-servlet-spec\test-spec-w
ebapp\target\classes (Access is denied) -> [Help 2]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on
project jmx-webapp: Failed to copy file for artifact [org.eclipse.jetty:jetty-util:jar:9.4.0-SNAPSHO
T:compile]: D:\1_subjects\jetty.project\jetty-util\target\classes (Access is denied) -> [Help 2]
[ERROR] Failed to execute goal on project jmx-webapp-it: Could not resolve dependencies for project
org.eclipse.jetty.tests:jmx-webapp-it:jar:9.4.0-SNAPSHOT: Could not find artifact org.eclipse.jetty:
jetty-distribution:zip:9.4.0-SNAPSHOT -> [Help 3]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.2:unpack-dependenc
ies (unpack-dependencies) on project jetty-runner: Error unpacking file: D:\1_subjects\jetty.project
\jetty-server\target\classes to: D:\1_subjects\jetty.project\jetty-runner\target\classes
[ERROR] org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory.
[ERROR] -> [Help 2]


I'm actually using an account that belongs to the administrator group, and those messages "Access is denied" is puzzling and misleading. It seems to be that the compilation can't complete successfully due to dependencies issues, and the first error points to "jetty-server-9.4.0-SNAPSHOT.jar". However, the above maven command that I have executed should install the submodule jar (assuming it can compile)? 



On Mon, Mar 14, 2016 at 12:53 AM, Jesse McConnell <jesse.mcconnell@xxxxxxxxx> wrote:
Windows is a 'special' OS.

You will have to build with tests through the jetty-http module at least so the proper test classifier artifacts are produced.

Better then -Dmaven.test.skip would be

> mvn -Dtest=Foo clean install

that will end up skipping all the tests but still generate the required test artifacts.

cheers,
Jesse

--
jesse mcconnell
jesse.mcconnell@xxxxxxxxx

On Sun, Mar 13, 2016 at 6:05 AM, Fuxiang Chen <cfuxiang@xxxxxxxxx> wrote:
Thanks Simone.

The exact Maven command line is : mvn clean compile -Dmaven.test.skip=true -X

Environment: Java 1.8, Maven 3.3.3, Win 7 64 bit

I purposely skip the tests as I understand that not all the tests will pass.

Is there any specific Maven command or process to build jetty.project under Windows?

Thanks.


On Sun, Mar 13, 2016 at 5:58 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Sun, Mar 13, 2016 at 5:11 AM, Fuxiang Chen <cfuxiang@xxxxxxxxx> wrote:
> 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]

The module jetty-http is built before jetty-servlet.
The artifact jetty-http with classifier "tests" is missing so you must
build the jetty-http module making sure you build the tests part too.

What is the exact Maven command line ?

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
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

_______________________________________________
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

Back to the top