java - project compiles in eclipse but maven instal gives errors -
welcome, have 2 projects, project library (maven project) main project. eclipse able compile , run main project maven complains when try clean install. have tried everything: clean install on , clean install in combinations, changing default maven compiler eclipse compiler, still have compile errors on main project. pom project:
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>self.project</groupid> <artifactid>a</artifactid> <version>7.3.002.001</version> <properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <!-- <vaadin.version>7.1.8</vaadin.version> --> <vaadin.version>7.3.0</vaadin.version> </properties> <build> <finalname>a</finalname> <plugins> <plugin> <artifactid>maven-compiler-plugin</artifactid> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-source-plugin</artifactid> <version>2.2.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupid>javax</groupid> <artifactid>javaee-api</artifactid> <version>6.0</version> <scope>provided</scope> </dependency> <dependency> <groupid>com.vaadin</groupid> <artifactid>vaadin-archetype-application</artifactid> <version>${vaadin.version}</version> </dependency> <dependency> <groupid>com.vaadin</groupid> <artifactid>vaadin-push</artifactid> <version>${vaadin.version}</version> </dependency> <dependency> <groupid>com.vaadin</groupid> <artifactid>vaadin-client</artifactid> <version>${vaadin.version}</version> </dependency> <dependency> <groupid>com.vaadin</groupid> <artifactid>vaadin-client-compiled</artifactid> <version>${vaadin.version}</version> </dependency> <dependency> <groupid>com.vaadin</groupid> <artifactid>vaadin-client-compiler</artifactid> <version>${vaadin.version}</version> <exclusions> <exclusion> <artifactid>commons-codec</artifactid> <groupid>commons-codec</groupid> </exclusion> </exclusions> </dependency> <dependency> <groupid>com.vaadin</groupid> <artifactid>vaadin-themes</artifactid> <version>${vaadin.version}</version> </dependency> <dependency> <groupid>org.eclipse.persistence</groupid> <artifactid>eclipselink</artifactid> <version>2.5.0</version> </dependency> <dependency> <groupid>org.eclipse.persistence</groupid> <artifactid>javax.persistence</artifactid> <version>2.0.3</version> </dependency> <dependency> <groupid>org.apache.poi</groupid> <artifactid>poi</artifactid> <version>3.9</version> </dependency> <dependency> <groupid>org.apache.poi</groupid> <artifactid>poi-ooxml</artifactid> <version>3.9</version> </dependency> <dependency> <groupid>org.quartz-scheduler</groupid> <artifactid>quartz</artifactid> <version>2.1.6</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>multibutton</artifactid> <version>3.0</version> </dependency> <dependency> <groupid>net.sourceforge.jtds</groupid> <artifactid>jtds</artifactid> <version>1.3.1</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>contextmenu</artifactid> <version>4.2.1</version> </dependency> <dependency> <groupid>de.steinwedel.vaadin.addon</groupid> <artifactid>messagebox</artifactid> <version>2.0.6</version> </dependency> <dependency> <groupid>org.slf4j</groupid> <artifactid>slf4j-api</artifactid> <version>1.6.1</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>wizards-for-vaadin</artifactid> <version>1.0.0-beta1</version> </dependency> <dependency> <groupid>joda-time</groupid> <artifactid>joda-time</artifactid> <version>2.1</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>dragdroplayouts</artifactid> <version>1.0</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>popupbutton</artifactid> <version>2.3.0</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>listbuilder</artifactid> <version>0.7.3.v7</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>tableexport</artifactid> <version>1.4.0</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>stepper</artifactid> <version>2.1.2</version> </dependency> <dependency> <groupid>com.itextpdf</groupid> <artifactid>itextpdf</artifactid> <version>5.3.4</version> </dependency> <dependency> <groupid>net.java.dev.stax-utils</groupid> <artifactid>stax-utils</artifactid> <version>20070216</version> <exclusions> <exclusion> <groupid>com.bea.xml</groupid> <artifactid>jsr173-ri</artifactid> </exclusion> </exclusions> </dependency> <dependency> <groupid>commons-collections</groupid> <artifactid>commons-collections</artifactid> <version>3.2.1</version> </dependency> <dependency> <groupid>xml-apis</groupid> <artifactid>xml-apis</artifactid> <version>1.4.01</version> </dependency> <dependency> <groupid>junit</groupid> <artifactid>junit</artifactid> <version>4.11</version> <scope>test</scope> </dependency> </dependencies>
main pom:
<project xmlns="http://maven.apache.org/pom/4.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelversion>4.0.0</modelversion> <groupid>self.project</groupid> <artifactid>main</artifactid> <version>7.3.119</version> <packaging>war</packaging> <properties> <project.build.sourceencoding>utf-8</project.build.sourceencoding> <vaadin.version>7.3.0</vaadin.version> <spring.version>3.1.2.release</spring.version> </properties> <build> <sourcedirectory>src</sourcedirectory> <resources> <resource> <directory>src</directory> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources> <plugins> <plugin> <artifactid>maven-compiler-plugin</artifactid> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> <plugin> <artifactid>maven-war-plugin</artifactid> <version>2.3</version> <configuration> <outputdirectory>${project.build.directory}/deploy</outputdirectory> <warname>${project.artifactid}opensource</warname> <warsourcedirectory>webcontent</warsourcedirectory> <failonmissingwebxml>false</failonmissingwebxml> <packagingexcludes>web-inf/lib/commons-codec-1.3.jar</packagingexcludes> </configuration> </plugin> </plugins> </build> <dependencies> <! here reference project > <dependency> <groupid>self.project</groupid> <artifactid>a</artifactid> <version>7.3.002.001</version> </dependency> <dependency> <groupid>com.vaadin</groupid> <artifactid>vaadin-client-compiler</artifactid> <version>${vaadin.version}</version> <scope>provided</scope> <exclusions> <exclusion> <artifactid>commons-codec</artifactid> <groupid>commons-codec</groupid> </exclusion> </exclusions> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>animator</artifactid> <version>1.7.3</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>dcharts-widget</artifactid> <version>1.7.0</version> </dependency> <dependency> <groupid>org.vaadin.addons</groupid> <artifactid>timefield</artifactid> <version>0.9</version> </dependency> <dependency> <groupid>ru.xpoft.vaadin</groupid> <artifactid>spring-vaadin-integration</artifactid> <version>2.0.2</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-web</artifactid> <version>${spring.version}</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-core</artifactid> <version>${spring.version}</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupid>javax.mail</groupid> <artifactid>mail</artifactid> <version>1.4.3</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-beans</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>org.springframework</groupid> <artifactid>spring-context-support</artifactid> <version>${spring.version}</version> </dependency> <dependency> <groupid>com.vaadin.addon</groupid> <artifactid>vaadin-charts</artifactid> <version>1.1.6</version> </dependency> <dependency> <groupid>batik</groupid> <artifactid>batik-transcoder</artifactid> <version>1.6-1</version> <scope>compile</scope> <exclusions> <exclusion> <artifactid>fop</artifactid> <groupid>fop</groupid> </exclusion> </exclusions> </dependency> <dependency> <groupid>com.lowagie</groupid> <artifactid>itext</artifactid> <version>4.2.1</version> </dependency> <dependency> <groupid>net.sf.jasperreports</groupid> <artifactid>jasperreports</artifactid> <version>5.2.0</version> </dependency> <dependency> <groupid>net.sourceforge.dynamicreports</groupid> <artifactid>dynamicreports-core</artifactid> <version>3.1.4</version> </dependency> <dependency> <groupid>net.sourceforge.dynamicreports</groupid> <artifactid>dynamicreports-adhoc</artifactid> <version>3.1.4</version> </dependency> <dependency> <groupid>net.sourceforge.dynamicreports</groupid> <artifactid>dynamicreports-googlecharts</artifactid> <version>3.1.4</version> </dependency> </dependencies>
errors:
[error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[69,17] cyclic inheritance involving self.project.main.ui.views.standard.tabstractreportview [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[72,35] modifier private,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[73,38] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[73,53] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[74,25] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[74,46] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[74,65] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[75,25] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[75,45] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[75,69] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[76,25] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[76,41] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[77,25] modifier protected,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[78,36] modifier public,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[79,25] modifier public,static not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[80,23] modifier private not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[81,29] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[82,27] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[83,23] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[84,21] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[85,37] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[86,26] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[87,38] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[88,38] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[89,24] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[90,28] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[90,42] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tabstractreportview.java:[91,23] modifier protected not allowed here [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/chart/tvaadinchartpanel.java:[74,19] cannot find symbol symbol: class ichartrefreshlistener location: class self.project.main.ui.chart.tvaadinchartpanel [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/chart/tvaadinchartpanel.java:[101,16] cannot find symbol symbol: class ichartrefreshlistener location: class self.project.main.ui.chart.tvaadinchartpanel [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/chart/tvaadinchartpanel.java:[105,40] cannot find symbol symbol: class ichartrefreshlistener location: class self.project.main.ui.chart.tvaadinchartpanel /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/margin/tviewmarginreportgroupparent.java:[185,47] cannot find symbol [error] symbol: class backgroundprocessdata [error] location: class self.project.main.ui.views.margin.tviewmarginreportgroupparent [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/valo/tdwchartpanel.java:[65,25] cannot find symbol [error] symbol: class itablevisibilitychangelistener [error] location: class self.project.main.ui.valo.tdwchartpanel [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/valo/tdwchartpanel.java:[66,25] cannot find symbol [error] symbol: class ichartrefreshlistener [error] location: class self.project.main.ui.valo.tdwchartpanel [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/freesql/tfreesqlchartpanel.java:[14,75] cannot find symbol [error] symbol: class itablevisibilitychangelistener [error] location: class self.project.main.ui.views.freesql.tfreesqlchartpanel [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/freesql/tfreesqlchartpanel.java:[21,75] cannot find symbol [error] symbol: class itablevisibilitychangelistener [error] location: class self.project.main.ui.views.freesql.tfreesqlchartpanel [error] /c:/users/projects/workspace/main/src/main/java/self/project/main/ui/views/standard/tviewzbzestsp.java:[32,36] cannot find symbol [error] symbol: class tabstractviewmodule
please me, have wasted more 8 hours this.
Comments
Post a Comment