Skip to content

Starting a blank project with Eclipse plugin #19

Description

@travelbasys

Hello.
I am using Eclipse Neon with Java SDK 1.8.0_111 and added the latest Maven (m2e 1.8.1) and JSweet (0.9.5) plugins just a few days ago.
With these, jsweet-quickstart from GitHub works allright, has proper code completion and builds automatically. Fine.

My POM ends up looking like this:

<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>jsweet-tutorial</groupId>
	<artifactId>jsweet-tutorial</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<!-- repositories -->
	<repositories>
		<repository>
			<id>jsweet-central</id>
			<name>libs-release</name>
			<url>http://repository.jsweet.org/artifactory/libs-release-local</url>
		</repository>
		<repository>
			<snapshots />
			<id>jsweet-snapshots</id>
			<name>libs-snapshot</name>
			<url>http://repository.jsweet.org/artifactory/libs-snapshot-local</url>
		</repository>
	</repositories>
	<!-- end repositories -->
	<build>
		<sourceDirectory>src</sourceDirectory>
		<plugins>
			<plugin>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.6.1</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<!-- dependencies -->
	<dependencies>
		<!-- JSweet core API -->
		<dependency>
			<groupId>org.jsweet.candies</groupId>
			<artifactId>jsweet-core</artifactId>
			<version>5-SNAPSHOT</version>
		</dependency>
	</dependencies>
	<!-- end dependencies -->
</project>

When I store it (and refresh the project) Eclipse does not add "Maven Dependencies" to the project.

I also created class helloworld.HelloWorld.java as the tutorial says.
But naturally, code completion after entering "al" does not suggest alert and jsweet.dom.Globals is not found.

What could be wrong?
I have the strong feeling that my POM cannot be right because jsweet-quickstart as loaded from GitHub works allright and that one has quite a different POM.

Thanks for advice.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions