After some testing, I managed to get further.
Now the only module I cannot compile is the "OAuth::Examples::Desktop
Consumer" (Provider and Consumer webapp are okay, I could compile both
without problem).
I got "Unknown repository layout 'default'". For a complete exception
please see below.
Thanks,
Lofi.
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
------------------------------------------------------------------------
[INFO] OAuth::Parent POM ..................................... SUCCESS
[2.360s]
[INFO] OAuth Core: Parent POM ................................ SUCCESS
[0.265s]
[INFO] OAuth Core ............................................ SUCCESS
[2.219s]
[INFO] OAuth Core: Consumer .................................. SUCCESS
[0.656s]
[INFO] OAuth Core: HttpClient3 ............................... SUCCESS
[0.672s]
[INFO] OAuth Core: Provider .................................. SUCCESS
[0.594s]
[INFO] OAuth Core: HttpClient4 ............................... SUCCESS
[3.234s]
[INFO] OAuth Core: Test ...................................... SUCCESS
[8.110s]
[INFO] OAuth::Core ........................................... SUCCESS
[0.562s]
[INFO] OAuth::Examples::Parent POM ........................... SUCCESS
[0.234s]
[INFO] OAuth::Examples::Desktop Consumer ..................... FAILED
[4.766s]
[INFO] OAuth::Examples::Provider webapp ...................... NOT
BUILT
[INFO] OAuth::Examples::Consumer webapp ...................... NOT
BUILT
[INFO]
------------------------------------------------------------------------
[ERROR]
Mojo:
org.codehaus.mojo:appassembler-maven-plugin:1.0-beta-2:assemble
FAILED for project:
net.oauth.example:oauth-example-desktop:jar:20090105
Reason:
Unknown repository layout 'default'.
Error stacktrace:
org.apache.maven.ProjectBuildFailureException: Build for project:
net.oauth.example:oauth-example-desktop:jar:20090105 failed during
execution of mojo: org.codehaus.mojo:appassembler-maven-plugin:1.0-
beta-2:assemble
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject
(DefaultLifecycleExecutor.java:293)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
(DefaultLifecycleExecutor.java:191)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
(DefaultLifecycleExecutor.java:149)
at org.apache.maven.DefaultMaven.execute_aroundBody0
(DefaultMaven.java:223)
at org.apache.maven.DefaultMaven.execute_aroundBody1$advice
(DefaultMaven.java:304)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody2
(MavenEmbedder.java:904)
at org.apache.maven.embedder.MavenEmbedder.execute_aroundBody3$advice
(MavenEmbedder.java:304)
at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:
1)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:176)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:63)
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:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch
(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode
(Launcher.java:408)
at org.codehaus.plexus.classworlds.launcher.Launcher.main
(Launcher.java:351)
at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
Caused by: org.apache.maven.plugin.MojoFailureException: Unknown
repository layout 'default'.
at org.codehaus.mojo.appassembler.AssembleMojo.execute
(AssembleMojo.java:249)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo
(DefaultPluginManager.java:579)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:498)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject
(DefaultLifecycleExecutor.java:265)
... 19 more
On 4 Jul., 00:27, "Dr. Jawa" <[email protected]> wrote:
> Hi All
>
> I'm doing some research on OAuth lib for Java and tried to compile /
> code/java with Maven2 but I got an exception (please see the result
> below).
>
> Is there anything special I have to do before I can compile the whole
> tree of /code/java with Maven2? Where can I get the missing JAR file?
>
> Thanks!
> Lofi.
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> ------------------------------------------------------------------------
> [INFO] OAuth::Parent POM ..................................... SUCCESS
> [2.359s]
> [INFO] OAuth Core: Parent POM ................................ SUCCESS
> [0.266s]
> [INFO] OAuth Core ............................................ SUCCESS
> [2.875s]
> [INFO] OAuth Core: Consumer .................................. SUCCESS
> [1.265s]
> [INFO] OAuth Core: HttpClient3 ............................... SUCCESS
> [1.235s]
> [INFO] OAuth Core: Provider .................................. SUCCESS
> [1.109s]
> [INFO] OAuth Core: HttpClient4 ............................... FAILED
> [4.156s]
> [INFO] OAuth Core: Test ...................................... NOT
> BUILT
> [INFO] OAuth::Core ........................................... NOT
> BUILT
> [INFO] OAuth::Examples::Parent POM ........................... NOT
> BUILT
> [INFO] OAuth::Examples::Desktop Consumer ..................... NOT
> BUILT
> [INFO] OAuth::Examples::Provider webapp ...................... NOT
> BUILT
> [INFO] OAuth::Examples::Consumer webapp ...................... NOT
> BUILT
> [INFO]
> ------------------------------------------------------------------------
> [ERROR]
>
> Transitive dependency resolution for scope: compile has failed for
> your project.
>
> Error message: Missing:
> ----------
> 1) org.apache.httpcomponents:httpclient:jar:4.0-beta2
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
> mvn install:install-file -DgroupId=org.apache.httpcomponents -
> DartifactId=httpclient -Dversion=4.0-beta2 -Dpackaging=jar -Dfile=/
> path/to/file
>
> Alternatively, if you host your own repository you can deploy the
> file there:
> mvn deploy:deploy-file -DgroupId=org.apache.httpcomponents -
> DartifactId=httpclient -Dversion=4.0-beta2 -Dpackaging=jar -Dfile=/
> path/to/file -Durl=[url] -DrepositoryId=[id]
>
> Path to dependency:
> 1) net.oauth.core:oauth-httpclient4:jar:20090531
> 2) org.apache.httpcomponents:httpclient:jar:4.0-beta2
>
> ----------
> 1 required artifact is missing.
>
> for artifact:
> net.oauth.core:oauth-httpclient4:jar:20090531
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OAuth" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/oauth?hl=en
-~----------~----~----~----~------~----~------~--~---