반응형

Error

------------------------------------------------------------------------
Building Primeface_server 1.0-SNAPSHOT
------------------------------------------------------------------------

[dependency:copy]

[resources:resources]
[debug] execute contextualize
Using 'UTF-8' encoding to copy filtered resources.
Copying 1 resource

[compiler:compile]
Compiling 12 source files to C:\Documents and Settings\user\My Documents\NetBeansProjects\Primeface_server\target\classes
-------------------------------------------------------------
COMPILATION WARNING :
-------------------------------------------------------------
util/cmd.java:[8,54] Base64 is internal proprietary API and may be removed in a future release
util/cmd.java:[22,15] BASE64Decoder is internal proprietary API and may be removed in a future release
util/cmd.java:[64,26] Base64 is internal proprietary API and may be removed in a future release
util/cmd.java:[180,24] BASE64Decoder is internal proprietary API and may be removed in a future release
4 warnings
-------------------------------------------------------------
-------------------------------------------------------------
COMPILATION ERROR :
-------------------------------------------------------------
AndroidCar/AndroidCar.java:[7,47] error: package com.sun.xml.internal.messaging.saaj.util does not exist
AndroidCar/AndroidCar.java:[68,8] error: cannot find symbol
AndroidCar/AndroidCar.java:[68,33] error: cannot find symbol
AndroidCar/AndroidCar.java:[178,8] error: cannot find symbol
AndroidCar/AndroidCar.java:[178,33] error: cannot find symbol
5 errors
-------------------------------------------------------------
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 1.859s
Finished at: Wed Feb 20 16:30:23 KST 2013
Final Memory: 10M/26M
------------------------------------------------------------------------
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project Primeface_server: Compilation failure: Compilation failure:
\Documents and Settings\user\My Documents\NetBeansProjects\Primeface_server\src\main\java\AndroidCar\AndroidCar.java:[7,47] error: package com.sun.xml.internal.messaging.saaj.util does not exist
\Documents and Settings\user\My Documents\NetBeansProjects\Primeface_server\src\main\java\AndroidCar\AndroidCar.java:[68,8] error: cannot find symbol
\Documents and Settings\user\My Documents\NetBeansProjects\Primeface_server\src\main\java\AndroidCar\AndroidCar.java:[68,33] error: cannot find symbol
\Documents and Settings\user\My Documents\NetBeansProjects\Primeface_server\src\main\java\AndroidCar\AndroidCar.java:[178,8] error: cannot find symbol
\Documents and Settings\user\My Documents\NetBeansProjects\Primeface_server\src\main\java\AndroidCar\AndroidCar.java:[178,33] error: cannot find symbol
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 

 

Solution

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <compilerArguments>
                        <endorseddirs>${endorsed.dir}</endorseddirs>
                    </compilerArguments>
                </configuration>
            </plugin>

 

반응형