You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by MPF <ma...@procon.co.at> on 2007/06/14 16:16:25 UTC

Compile dont work

Hi!
I get following error if i try to compile my project:
C:\work\projects\GATHER~1>mvn clean compile
[INFO] Scanning for projects...
[INFO]
-------------------------------------------------------------------------
---
[INFO] Building A custom project using myfaces
[INFO]    task-segment: [clean, compile]
[INFO]
-------------------------------------------------------------------------
---
[INFO] [clean:clean]
[INFO] Deleting directory C:\work\projects\GATHER~1\target
[INFO] Deleting directory C:\work\projects\GATHER~1\target\classes
[INFO] Deleting directory C:\work\projects\GATHER~1\target\test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 29 source files to C:\work\projects\GATHER~1\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\DataList.java:[26,21] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public class DataList<T> implements Serializable {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\DataContext.java:[26,15] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
    private Map<String, HashMap<Long, Object>> data = new HashMap<String,
HashMa
p<Long, Object>>();

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\MappedDataList.java:[24,36] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public abstract class MappedDataList<T, F> extends DataList<T> {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\MappedDataList.java:[88,24] for-each loops are not supported in
-source 1.
3
(try -source 1.5 to enable for-each loops)
            for (T item : items) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\DataPage.java:[24,25] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public interface DataPage<T> {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\PlaceD
etailController.java:[48,20] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        private List<SelectItem> dropDownPossibles;

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\PlaceD
etailController.java:[135,36] for-each loops are not supported in -source
1.3
(try -source 1.5 to enable for-each loops)
                for (String element : tmpList) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\persistence\db\E3
0151DB.java:[45,31] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        public static ArrayList<E30151Model> readAllData() {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\persistence\db\VS
tandortPortalDB.java:[54,31] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        public static ArrayList<VStandortPortalModel> loadLocation(final
String
dbk) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\persistence\db\VS
tandortPortalDB.java:[97,50] for-each loops are not supported in -source 1.3
(try -source 1.5 to enable for-each loops)
                for (VStandortPortalModel element : values) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
r\jsf\SortedDataList.java:[16,36] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
public abstract class SortedDataList<T> extends DataList<T> {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\helper
\ComponentSupport.java:[117,24] variable-arity methods are not supported in
-sou
rce 1.3
(try -source 1.5 to enable variable-arity methods)
            final String... values) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\helper
\ComponentSupport.java:[123,30] for-each loops are not supported in -source
1.3
(try -source 1.5 to enable for-each loops)
            for (String value : values) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\model\
PlaceDetailModel.java:[42,24] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        private DataList<CaseData> caseData;

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\model\
PlaceDetailModel.java:[87,39] for-each loops are not supported in -source
1.3
(try -source 1.5 to enable for-each loops)
                for (E30151Model model : data) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Google
MapController.java:[72,25] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        private ArrayList<MapData> points;

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utilitiy\string\S
tringUtility.java:[73,26] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        public static List<String> getNumbersFromString(final String s) {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utilitiy\string\S
tringUtility.java:[170,30] ';' expected


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Jun 14 16:13:02 CEST 2007
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------

C:\work\projects\GATHER~1>
C:\work\projects\GATHER~1>

someone know why?
on eclipse i show that me project i see on properties-java compiler -->
compiler compliance level: 5.0


best regards
-- 
View this message in context: http://www.nabble.com/Compile-dont-work-tf3922045s177.html#a11121144
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Compile dont work

Posted by Antonio Petrelli <an...@gmail.com>.
2007/6/18, MPF <ma...@procon.co.at>:
>
> i have javax.servlet.jar only as external jar at the project :( someone know
> a maven repository to getting them (and how i must call the javax
> dependency)?
> im really new to this :(

Sorry to say this, but RTFM:
http://maven.apache.org/guides/getting-started/index.html
Go to "How do I use external dependencies?"
BTW, since you are using Eclipse, you can give a look to Maven 2 Eclipse plugin:
http://m2eclipse.codehaus.org/

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Compile dont work

Posted by MPF <ma...@procon.co.at>.
i have javax.servlet.jar only as external jar at the project :( someone know
a maven repository to getting them (and how i must call the javax
dependency)?
im really new to this :(
-- 
View this message in context: http://www.nabble.com/Compile-dont-work-tf3922045s177.html#a11170819
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Compile dont work

Posted by Antonio Petrelli <an...@gmail.com>.
2007/6/18, MPF <ma...@procon.co.at>:
>
> package javax.servlet does not exist

Err... Did you notice that you lack a dependency?
For example the Servlet specifications?

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Compile dont work

Posted by MPF <ma...@procon.co.at>.
Now i added your suggestion and now i get following error:

---
[INFO] Building A custom project using myfaces
[INFO]    task-segment: [clean, compile]
[INFO]
------------------------------------------------------------------------
---
[INFO] [clean:clean]
[INFO] Deleting directory C:\work\projects\GATHER~1\target
[INFO] Deleting directory C:\work\projects\GATHER~1\target\classes
[INFO] Deleting directory C:\work\projects\GATHER~1\target\test-classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 29 source files to C:\work\projects\GATHER~1\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[16,21] package javax.servlet does not exist

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[17,21] package javax.servlet does not exist

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[18,21] package javax.servlet does not exist

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[19,21] package javax.servlet does not exist

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[20,21] package javax.servlet does not exist

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[21,21] package javax.servlet does not exist

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[22,26] package javax.servlet.http does not exist

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[30,40] cannot find symbol
symbol: class Filter
public class FrontDoorFilter implements Filter {

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[49,35] cannot find symbol
symbol  : class ServletRequest
location: class at.pcd.wam.technologie.controller.FrontDoorFilter

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[49,61] cannot find symbol
symbol  : class ServletResponse
location: class at.pcd.wam.technologie.controller.FrontDoorFilter

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[49,88] cannot find symbol
symbol  : class FilterChain
location: class at.pcd.wam.technologie.controller.FrontDoorFilter

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[50,36] cannot find symbol
symbol  : class ServletException
location: class at.pcd.wam.technologie.controller.FrontDoorFilter

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[74,31] cannot find symbol
symbol  : class FilterConfig
location: class at.pcd.wam.technologie.controller.FrontDoorFilter

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[74,57] cannot find symbol
symbol  : class ServletException
location: class at.pcd.wam.technologie.controller.FrontDoorFilter

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Googl
MapController.java:[20,36] package org.richfaces.component.html does not
exist

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Googl
MapController.java:[37,16] cannot find symbol
symbol  : class HtmlGmap
location: class at.pcd.wam.technologie.controller.GoogleMapController

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Googl
MapController.java:[184,15] cannot find symbol
symbol  : class HtmlGmap
location: class at.pcd.wam.technologie.controller.GoogleMapController

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Googl
MapController.java:[208,33] cannot find symbol
symbol  : class HtmlGmap
location: class at.pcd.wam.technologie.controller.GoogleMapController

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[58,24] cannot find symbol
symbol  : class HttpServletRequest
location: class at.pcd.wam.technologie.controller.FrontDoorFilter

C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\controller\Front
oorFilter.java:[58,54] cannot find symbol
symbol  : class HttpServletRequest
location: class at.pcd.wam.technologie.controller.FrontDoorFilter


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Mon Jun 18 08:24:57 CEST 2007
[INFO] Final Memory: 4M/16M
[INFO]
------------------------------------------------------------------------

C:\work\projects\GATHER~1>


can it be that the archetype which i chose to create the project was created
for java 1.3 ?
where can i get actual archetypes for myfaces project?

best regards
-- 
View this message in context: http://www.nabble.com/Compile-dont-work-tf3922045s177.html#a11170539
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Excluding target folder in Eclipse

Posted by "Nunn, Gerald" <Ge...@CIBC.com>.
I am using Eclipse 3.2 and was wondering if there was any way to exclude the target folder that is generated with a Maven build from the Eclipse project. The problem with the target folder is that some projects will generate an artifact that one of the Eclipse validators will consider an error, at that point I'm stuck with cleaning the project to keep working.

Thanks,

Gerald

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Compile dont work

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/14/07, MPF <ma...@procon.co.at> wrote:

> I get following error if i try to compile my project:
> C:\work\projects\GATHER~1>mvn clean compile
...
> [INFO] Compilation failure
>
> C:\work\projects\GATHER~1\src\main\java\at\pcd\wam\technologie\utility\dataholde
> r\jsf\DataList.java:[26,21] generics are not supported in -source 1.3
> (try -source 1.5 to enable generics)
> public class DataList<T> implements Serializable {
...
> someone know why?
> on eclipse i show that me project i see on properties-java compiler -->
> compiler compliance level: 5.0

http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org