Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Exclude cache from widgetset compilation in Jar #32

Closed
sebastianfilke opened this issue Feb 24, 2017 · 3 comments
Closed

Exclude cache from widgetset compilation in Jar #32

sebastianfilke opened this issue Feb 24, 2017 · 3 comments

Comments

@sebastianfilke
Copy link

I get an exception with jrebel with this addon:

[2017-02-24 10:33:56] Invalid rebel.xml: Invalid 'dir' defined in class path of rebel.xml Directory 'C:/bpPrograms/Java/workspace/workspace_mars2/vaadin-combobox-multiselect-root/vaadin-combobox-multiselect/target/classes' does not exist

Searching in this repository let me find this file:

https://raw.githubusercontent.com/bonprix/vaadin-combobox-multiselect/e82e8d7618243587ea090824cbaf8b54e2f94317/vaadin-combobox-multiselect-demo/src/main/webapp/VAADIN/themes/demo/styles.scss.cache

In the first line there ist the string from above. Try to exclude this cache file in compilation.
This is from the single-application-archetype from vaadin:

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> <!-- Exclude an unnecessary file generated by the GWT compiler. --> <packagingExcludes>WEB-INF/classes/VAADIN/widgetsets/WEB-INF/**</packagingExcludes> </configuration> </plugin>

Mybe this helps

@sebastianfilke
Copy link
Author

sebastianfilke commented Mar 27, 2017

The configuration seems okay. The file above "styles.scss.cache" should be deleted and added to .gitignore

@tvonhacht
Copy link

@sebastianfilke did you fix this as well already?

@sebastianfilke
Copy link
Author

This bug seems fixed but the version which is uploaded to vaadin repository has a rebel.xml included which results in this exception. Do you build the application on your machine?

This is the exception: [2017-04-18 08:44:18] Invalid rebel.xml: Invalid 'dir' defined in class path of rebel.xml (jar:file:/C:/Oracle/glassfish4.1.1/glassfish/domains/qkiss/eclipseApps/alegria-qkiss-webportal-ear/alegria-qkiss-webportal-ui-1.3.0-SNAPSHOT_war/WEB-INF/lib/vaadin-combobox-multiselect-2.0.1.jar!/rebel.xml): Directory 'C:/bpPrograms/Java/workspace/workspace_mars2/vaadin-combobox-multiselect-root/vaadin-combobox-multiselect/target/classes' does not exist

image

This is the content of the file which produces the error:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">

	<classpath>
		<dir name="C:/bpPrograms/Java/workspace/workspace_mars2/vaadin-combobox-multiselect-root/vaadin-combobox-multiselect/target/classes">
		</dir>
	</classpath>

</application>

I will open a new bug.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants