0 Replies Latest reply on Jul 9, 2014 9:41 AM by Anibal Martins

    automatically publish problem

    Anibal Martins Newbie

      Hi,

      when I change a .java file, the server state changes (from synchronized to republish) and the .class file is not published to server.

       

      The Server connector is configured to publish automatically.

       

      Is a Maven Project. The structure is below:

           Parent Project

           |

           |_____ Jar Project

           |

           |_____ War Project

       

      Workspace's log:

      !ENTRY org.eclipse.m2e.logback.appender 2 0 2014-07-09 10:32:49.694

      !MESSAGE Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!

       

      The environment is:

      Eclipse Kepler

      JBoss Tools

      Jboss 5.1.0 GA

      OS 10.9.3

      JDK 1.7.0_60

       

      The projects are very simple.

      Jar Project has 1 java file that is used in War Project.

      War Project has 1 java file (servlet) that uses the java file that is stored in Jar Project.

       

      The pom's have the basic (below)

       

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

        <groupId>br.com.martins</groupId>

        <artifactId>TesteMaven2Jar</artifactId>

        <version>1.0</version>

        <packaging>jar</packaging>

        <name>TesteMaven2Jar</name>

       

        <parent>

        <groupId>br.com.martins</groupId>

        <artifactId>TesteMaven2Parent</artifactId>

        <version>1.0</version>

        </parent>

      </project>


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

        <groupId>br.com.martins</groupId>

        <artifactId>TesteMaven2Jar</artifactId>

        <version>1.0</version>

        <packaging>jar</packaging>

        <name>TesteMaven2Jar</name>

       

        <parent>

        <groupId>br.com.martins</groupId>

        <artifactId>TesteMaven2Parent</artifactId>

        <version>1.0</version>

        </parent>

      </project>


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

        <groupId>br.com.martins</groupId>

        <artifactId>TesteMaven2War</artifactId>

        <version>1.0</version>

        <packaging>war</packaging>

        <name>TesteMaven2War</name>

       

        <parent>

        <groupId>br.com.martins</groupId>

        <artifactId>TesteMaven2Parent</artifactId>

        <version>1.0</version>

        </parent>

       

        <dependencies>

        <dependency>

        <groupId>br.com.martins</groupId>

        <artifactId>TesteMaven2Jar</artifactId>

        <version>1.0</version>

        </dependency>

        <dependency>

        <groupId>javax.servlet</groupId>

        <artifactId>servlet-api</artifactId>

        <version>${servlet.version}</version>

        <type>jar</type>

        <scope>provided</scope>

        </dependency>

        </dependencies>

      </project>