Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Eclipse Committer does not give me advantage
  • From: Ming Cheng <chengm349@xxxxxxxxxxx>
  • Date: Mon, 23 Dec 2019 07:28:29 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=12Xh52LRIcXHiP9ubS+z8eq0jblS7t2xxg2sC08C6LI=; b=fkPEwKmdI8IevFSMWifB2fgjJzpnba+maiF1Dc2tQfu2nVGyOCmlx+fbvxyAdQWERlSS0Ba0kvEaEXlUuBPmVW32RHaAXBBio+aZxoBKwsIHLoekrTjOv9BIj6DriJLNekuhwTNnAUge/8AcGt2ASEKd1TyeHQmWGfuOyxLmolLAlR9WVkNKCix6vldSkrQsn3jDXSZWTW+X7iSA3ew35pv9h/sjRC7xnpbNjhcFYazf9p1Ok7WEMa+NM3FenAOhm4YEnMWeTu82J6FAF2L3o+VSQqxubRSCvLlnypmerf+tdL72eS493Jbh7BfoDwc5A1eeYRK5dpretpFBVxpjjA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YpFLVPf2Gh7/kBC/nlTjSqnXCRRlet6fJtJUIS2caovHbJEhcws/USQOrL8oYfbnS2fXxWyEAhbqfxc6F6/BU5OZ1M29ol3eA6diuosgEVy+RVzIJVFSZLSHGexOsHFGsYofeZaMQ9MFJm9xR0I6bopikIPkcGMzBxhQkf8awqBrOQ7MOGZAUg/kw31N8OoJOpDz7WWA3DQ3Ncey0gd4aZ3d/eWm21gg3hL5DeZXtbOYLCgyUkJPqmJMTy3sUnDZ2EUf7jBEfu3K++Yv8sjw0pGfQ6FOgv8g7byHyPFFVTuMbQpL8/fz5LtnL6iQgwa+EzA9jXBfSbJonqAoTPyW/w==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHVuWAlUwb9hhsmAUagX2qdxDUqLg==
  • Thread-topic: Eclipse Committer does not give me advantage

Hi CDT and Eclipse guys

 

Today I tried to used Eclipse Committer for everything I want to do including generating UMLet Eclipse plugin. Within UMLet package, there is a module called umlet-elements. Originally it does not need to access CDT function. Attached pom.xml is from UMLet GitHub site.

 

Now I need to change umlet-element to access CDT function(s).

Although I have all CDT code within the Committer, but maybe bcos I did not set correctly, now the compilation complains:

 

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project umlet-elements: Compilation failure: Compilation failure:

[ERROR] C:\Users\mcheng\FlexTrade\autoplugin\qfixsoden_old\umlet-elements\src\main\java\com\baselet\element\interfaces\GridElement.java:[15,36] package org.eclipse.cdt.core.dom.ast does not exist

[ERROR] C:\Users\mcheng\FlexTrade\autoplugin\qfixsoden_old\umlet-elements\src\main\java\com\baselet\element\interfaces\GridElement.java:[88,9] cannot find symbol

[ERROR]   symbol:   class IASTNode

[ERROR]   location: interface com.baselet.element.interfaces.GridElement

 

If I used my ugly way to modify pom.xml to be pom.CDT.xml, and at the same time by adding the need jar file into my local maven repository, then the Committer is happy.

 

Please guide how to make the whole thing elegant.

 

Thanks.

 

Sent from Mail for Windows 10

 

<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>

	<parent>
		<groupId>com.umlet</groupId>
		<artifactId>umlet-parent</artifactId>
		<version>14.4.0-SNAPSHOT</version>
	</parent>

	<artifactId>umlet-elements</artifactId>
        
	<properties>
		<javacc.gen.dir>${project.build.directory}/generated-sources/annotations</javacc.gen.dir> <!-- reuse the annotation-processing gendir to avoid too many separate src folders for eclipse plugin; perhaps it would be more correct to create a separate javacc subdir -->
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
		</dependency>
		<!-- during tests log with log4j -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<!-- generate javacc classes (it would be preferable to generate them into a separate target/generated-sources subdir, but this currently doesn't work with the way how source folders are linked in the umlet-eclipse-plugin project) -->
			<plugin>
				<groupId>com.helger.maven</groupId>
				<artifactId>ph-javacc-maven-plugin</artifactId>
				<version>2.8.0</version>
				<executions>
					<execution>
						<id>javacc</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>javacc</goal>
							<!-- <goal>jjdoc</goal> -->
						</goals>
						<configuration>
							<javadocFriendlyComments>true</javadocFriendlyComments>
							<sourceDirectory>src/main/javacc</sourceDirectory>
							<outputDirectory>${javacc.gen.dir}</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- add the generated sources to the build path -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<execution>
						<id>add-source</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>${javacc.gen.dir}</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</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>

	<parent>
		<groupId>com.umlet</groupId>
		<artifactId>umlet-parent</artifactId>
		<version>14.4.0-SNAPSHOT</version>
	</parent>

	<artifactId>umlet-elements</artifactId>
        
	<properties>
		<javacc.gen.dir>${project.build.directory}/generated-sources/annotations</javacc.gen.dir> <!-- reuse the annotation-processing gendir to avoid too many separate src folders for eclipse plugin; perhaps it would be more correct to create a separate javacc subdir -->
	</properties>

	<dependencies>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
		</dependency>
		<!-- during tests log with log4j -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<scope>test</scope>
		</dependency>
                <dependency>
			<groupId>org.eclipse.cdt</groupId>
			<artifactId>core</artifactId>
			<version>6.8.0</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<!-- generate javacc classes (it would be preferable to generate them into a separate target/generated-sources subdir, but this currently doesn't work with the way how source folders are linked in the umlet-eclipse-plugin project) -->
			<plugin>
				<groupId>com.helger.maven</groupId>
				<artifactId>ph-javacc-maven-plugin</artifactId>
				<version>2.8.0</version>
				<executions>
					<execution>
						<id>javacc</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>javacc</goal>
							<!-- <goal>jjdoc</goal> -->
						</goals>
						<configuration>
							<javadocFriendlyComments>true</javadocFriendlyComments>
							<sourceDirectory>src/main/javacc</sourceDirectory>
							<outputDirectory>${javacc.gen.dir}</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- add the generated sources to the build path -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.7</version>
				<executions>
					<execution>
						<id>add-source</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>add-source</goal>
						</goals>
						<configuration>
							<sources>
								<source>${javacc.gen.dir}</source>
							</sources>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>

Back to the top