[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Compiling Java code -- Nothing to compile - all classes are up to date



Hello,

I'm using OpenShift Enterprise 1.2 and I try to get maven compilation
working for my EAP applications.

I start with the default template and when I download

	https://github.com/kwart/spnego-demo/tree/demo-for-adelton

compile that one .java manually and commit the src/ content including
the manually-built .class to my git repository and push, things
works. However, when I remove the .class and just want OpenShift to
take care of the compilation, nothing happens:

	remote: [INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ eap17542 ---
	remote: [INFO] Nothing to compile - all classes are up to date

I've also tried to manually add the maven-compiler-plugin
specification via

diff --git a/pom.xml b/pom.xml
index e8b8d1c..b59468c 100755
--- a/pom.xml
+++ b/pom.xml
@@ -74,6 +74,15 @@ jboss-eap-*-maven-repository/org/jboss/spec/jboss-javaee-6.0
                        <build>
                                <finalName>eap17542</finalName>
                                <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-compiler-plugin</artifactId>
+                               <version>2.0.2</version>
+                               <configuration>
+                                       <source>1.6</source>
+                                       <target>1.6</target>
+                               </configuration>
+                       </plugin>
                                        <plugin>
                                                <artifactId>maven-war-plugin</artifactId>
                                                <version>2.1.1</version>


but with no effect.

The documentation at

	http://openshift.github.io/documentation/oo_cartridge_guide.html#layout-and-deployment-options-2

is not very clear about the necessary changes to the vanilla git
repo (and pom.xml) that a user gets with rhc app create.

What is the mechanism which makes the maven-compiler-plugin run the
search for .java bits and how should I tell it that there is a

	src/main/webapp/WEB-INF/classes/org/jboss/AddRoleLoginModule.java

which I'd like compiled into .class and added to ROOT.war?

Thank you,

-- 
Jan Pazdziora | adelton at #ipa*, #brno
Principal Software Engineer, Identity Management Engineering, Red Hat


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]