7 Replies Latest reply on Oct 11, 2011 3:06 AM by bussien

    false reference JBoss AS 7 mvn

    bussien

      hi all

      when I enter mvn jboss:start

      I get a reference to

      C:\jboss-as-web-7.0.2.Final\bin\run.bat

      instead

      C:\jboss-as-web-7.0.2.Final\bin\standalone.bat

      Any suggestions?

      thanks in advance

        • 1. Re: false reference JBoss AS 7 mvn
          jaikiran

          Which Maven plugin are you using to start the server? Can you post the relevant portion from your pom.xml?

          • 2. Re: false reference JBoss AS 7 mvn
            bussien

            I am wondering where it gets the server from

            path is: ;%JBOSS_HOME%\bin

            calsspath: ;%JBOSS_HOME%\bin

            thats the pom:

            <?xml version="1.0" encoding="UTF-8"?>

            <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"

                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

              <modelVersion>4.0.0</modelVersion>

              <groupId>org.StayAt</groupId>

              <artifactId>AAA</artifactId>

              <version>1.0.0-SNAPSHOT</version>

              <packaging>ear</packaging>

              <dependencies>

                <dependency>

                  <groupId>org.jboss.spec</groupId>

                  <artifactId>jboss-javaee-6.0</artifactId>

                  <version>1.0.0.CR1</version>

                  <type>pom</type>

                  <scope>provided</scope>

                </dependency>

              </dependencies>

              <dependency>

                 <groupId>org.jboss.seam.solder</groupId>

                 <artifactId>seam-solder</artifactId>

                 <version>${seam.solder.version}</version>

              </dependency>

              <repositories>

                <repository>

                  <id>JBOSS_NEXUS</id>

                  <url>http://repository.jboss.org/nexus/content/groups/public</url>

                </repository>

              </repositories>

              <build>

                <plugins>

                  <plugin>

                    <artifactId>maven-compiler-plugin</artifactId>

                    <configuration>

                      <source>1.6</source>

                      <target>1.6</target>

                    </configuration>

                  </plugin>

                </plugins>

              </build>

            </project>

             

            Thanks for your answer

            • 3. Re: false reference JBoss AS 7 mvn
              peterj

              Your pom,xml is not defining the JBoss Maven plugin you are using. Is this the one:

              http://mojo.codehaus.org/jboss-maven-plugin/

               

              If so, that plugin prabably has not been updated for AS 7 (expscially considering that the example uses AS 4.2.3).

              • 4. Re: false reference JBoss AS 7 mvn
                bussien

                well - I could include the following into the pom:

                 

                <plugin>

                        <groupId>org.codehaus.mojo</groupId>

                        <artifactId>jboss-maven-plugin</artifactId>

                        <version>1.5.0</version>

                        <configuration>

                          <jbossHome>C://jboss-as-web-7.0.2.Final</jbossHome>

                          <serverName>standalone//deployments</serverName>

                          <fileName>target/aaa-1.0.0-SNAPSHOT.war</fileName>

                        </configuration>

                </plugin>

                 

                it brings me a connot find error:

                Final\server\standalone\deployments\deploy\aaa-1.0.0-SNAPSHOT.war

                 

                isn't here an alternative I can use in the mvn settings.xml ?

                 

                thanks again for youtr answer

                • 5. Re: false reference JBoss AS 7 mvn
                  bussien

                  finally I did copy

                   

                           <plugin>

                              <groupId>org.jboss.as.plugins</groupId>

                              <artifactId>jboss-as-maven-plugin</artifactId>

                              <version>7.0.0.Final</version>

                           </plugin>

                   

                  into the plugins section of the pom and it works:

                  I am just wondering whats that's that discussion good for, if you have to answer your questions by yourself :-)

                  1 of 1 people found this helpful
                  • 6. Re: false reference JBoss AS 7 mvn
                    jaikiran
                    1 of 1 people found this helpful
                    • 7. Re: false reference JBoss AS 7 mvn
                      bussien

                      yes that helps - thanks a lot