Using 7zip to open the resteasy-jaxrs-2.2.1.GA.jar file failed, it says
something like "file cannot open as archive".  When I used wordpad to take a
look at the file, it appears as an html file.  So probably the surmise that
the file failed to download from repository is correct.  How do I correct
this problem?

For now, I found the resteasy-jaxrs-2.2.1.GA.jar file locally within the
C:\resteasy-jaxrs-2.2.1 folder, so I just copy the file to C:\Users\Kaze
Kun.m2\repository\org\jboss\resteasy\resteasy-jaxr
> s\2.2.1.GA\ and the aforementioned error message seems to have gone away. 
> But now I encounter another error message (package javax.ws.rs.core does
> not exist).  See below for log messages.  I googled and found a forum
> discussion that suggests to add the following to pom.  Since I only have
> the jsr250-api.jar file locally, I changed the artifactId jsr311-api to
> jsr250-api.jar.  But the error message "package javax.ws.rs.core does not
> exist" still persists.

  <dependency>
    <groupId>javax.ws.rs</groupId>
    <artifactId>jsr311-api</artifactId>
    <version>1.0</version>
</dependency>
<dependency>
    <groupId>javax.xml.bind</groupId>
    <artifactId>jaxb-api</artifactId>
    <version>2.1</version>
    <scope>provided</scope>
</dependency>

=================================================

Relevant log messages from maven:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1\src\main\java\com\restfully\shop\services\ShoppingApplication.java:[3,23]
package javax.ws.rs.core does not exist

C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1\src\main\java\com\restfully\shop\services\ShoppingApplication.java:[7,41]
cannot find symbol
symbol: class Application
public class ShoppingApplication extends Application {

C:\resteasy-jaxrs-2.2.1.GA\examples\oreilly-workbook\ex03_1\src\main\java\com\restfully\shop\services\CustomerResource.java:[8,18]
package javax.ws.rs does not exist
.
.
.
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: Compilation failure
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:580)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
        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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation
failure
        at
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
        at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
        ... 16 more

--
View this message in context: 
http://maven.40175.n5.nabble.com/mvn-install-Failure-executing-javac-but-could-not-parse-error-tp4568321p4569755.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to