Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes are not reflected in compiled app if building without clean #11

Closed
galvanopus opened this issue Jan 25, 2016 · 2 comments
Closed

Comments

@galvanopus
Copy link

Create sample maven project:

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=com.example.excelsior -DartifactId=sample-application

Add main class reference and excelsior-jet to pom.xml:

<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>com.example.excelsior</groupId>
    <artifactId>sample-application</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>
    <name>sample-application</name>
    <url>http://maven.apache.org</url>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.6</version>
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>com.example.excelsior.App</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.excelsiorjet</groupId>
                <artifactId>excelsior-jet-maven-plugin</artifactId>
                <version>0.3.0</version>
                <configuration>
                    <mainClass>com.example.excelsior.App</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Build and launch:

mvn jet:build
...
>java -jar target\sample-application-1.0-SNAPSHOT.jar & target\jet\app\App.exe
Hello World!
Hello World!

Change Hello World! => Hello World!!!, build without clean and launch:

mvn jet:build
...
>java -jar target\sample-application-1.0-SNAPSHOT.jar & target\jet\app\App.exe
Hello World!!!
Hello World!

JAR is updated, but App.exe not.

pjBooms pushed a commit that referenced this issue Jan 29, 2016
@pjBooms
Copy link
Contributor

pjBooms commented Feb 2, 2016

Fixed in 0.3.2 release. Please confirm

@pjBooms pjBooms closed this as completed Feb 2, 2016
@galvanopus
Copy link
Author

Confirmed! Thank you.

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

No branches or pull requests

2 participants