12 Replies Latest reply on Jun 27, 2007 5:58 AM by marklittle

    Packaging .esb with Maven2

      How do I package .esb files with Maven2?
      Maven´s defaults are jar, war, ear ...
      Thanks

        • 1. Re: Packaging .esb with Maven2
          marklittle

          We won't be looking at maven support until after the 4.2 release is done.

          • 2. Re: Packaging .esb with Maven2
            system.out

             

            "claudio_br" wrote:
            How do I package .esb files with Maven2?
            Maven´s defaults are jar, war, ear ...
            Thanks

            You build it as a jar and do the following trick using "ear" packaging:
            <jarModule>
             <groupId>${project.groupId}</groupId>
             <artifactId>$yourArtifactId</artifactId>
             <bundleFileName>$yourEsb.esb</bundleFileName>
             <includeInApplicationXml>true</includeInApplicationXml>
            </jarModule>

            Let me know, if you need more info.
            Mike

            • 3. Re: Packaging .esb with Maven2

              Thanks Mike

              I did work out.
              Is there a way to packaging esb with only one module?
              In your example, I need create 2 modules (esb and ear).

              • 4. Re: Packaging .esb with Maven2
                system.out

                Yes, you need 2 modules (esb & ear).
                If you want to have only one, you can do the renaming withing esb:

                <build>
                 <plugins>
                 <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>jboss-maven-plugin</artifactId>
                 <configuration>
                 <fileName>${project.build.directory}/${project.build.finalName}.esb</fileName>
                 </configuration>
                 </plugin>
                 </plugins>
                </build>
                



                • 5. Re: Packaging .esb with Maven2

                  Hi Mike,

                  This configuration will deploy the *.esb in jboss. But how do I create the file .esb with one module? With this configuration I must have created the file .esb.

                  Thanks

                  • 6. Re: Packaging .esb with Maven2
                    system.out

                    This builds the jar and then renames it to .esb

                    • 7. Re: Packaging .esb with Maven2

                      Hi Mike,

                      I am using this 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/maven-v4_0_0.xsd">
                       <modelVersion>4.0.0</modelVersion>
                       <groupId>com</groupId>
                       <artifactId>testesb</artifactId>
                       <packaging>jar</packaging>
                       <version>1.0-SNAPSHOT</version>
                       <name>testesb</name>
                       <url>http://maven.apache.org</url>
                       <dependencies>
                       <dependency>
                       <groupId>junit</groupId>
                       <artifactId>junit</artifactId>
                       <version>3.8.1</version>
                       <scope>test</scope>
                       </dependency>
                       </dependencies>
                       <build>
                       <plugins>
                       <plugin>
                       <groupId>org.codehaus.mojo</groupId>
                       <artifactId>jboss-maven-plugin</artifactId>
                       <configuration>
                       <fileName>${project.build.directory}/${project.build.finalName}.esb</fileName>
                       </configuration>
                       </plugin>
                       </plugins>
                       </build>
                      </project>


                      And I run:

                      mvn clean package


                      But I got testesb-1.0-SNAPSHOT.jar and not testesb-1.0-SNAPSHOT.esb

                      What am I doing wrong?
                      Thanks


                      • 8. Re: Packaging .esb with Maven2
                        system.out

                        Look at your target dir. You should have both jar and esb !!
                        If not, use maven with -X to find what jboss-maven-plugin is doing with new configuration.

                        • 9. Re: Packaging .esb with Maven2

                          Hi Mike

                          I have tried again, but only jar was build.
                          The log is:

                          + Error stacktraces are turned on.
                          Maven version: 2.0.6
                          [DEBUG] Building Maven user-level plugin registry from: 'C:\Documents and Settings\claudior\.m2\plugin-registry.xml'
                          [DEBUG] Building Maven global-level plugin registry from: 'C:\maven-2.0.6\bin\..\conf\plugin-registry.xml'
                          [INFO] Scanning for projects...
                          [INFO] ----------------------------------------------------------------------------
                          [INFO] Building testesb
                          [INFO] task-segment: [clean, package]
                          [INFO] ----------------------------------------------------------------------------
                          [DEBUG] maven-clean-plugin: resolved to version 2.1.1 from repository central
                          [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::3 for project: null:maven-clean-plugin:maven-plugin:2.1.1 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for project: org.apache.maven.plugins:maven-plugins:pom:3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:4 from the repository.
                          [DEBUG] jboss-maven-plugin: resolved to version 1.3.1 from repository central
                          [DEBUG] Retrieving parent-POM: org.codehaus.mojo:mojo::6 for project: null:jboss-maven-plugin:maven-plugin:1.3.1 from the repository.
                          [DEBUG] org.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.1.1:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: null:plexus-utils:jar:1.1 from the repository.
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-plugin-api:jar:2.0 from the repository.
                          [DEBUG] Adding managed depedendencies for org.apache.maven:maven-plugin-api
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven.shared:shared-components-parent::1 for project: null:file-management:jar:1.0 from the repository.
                          [DEBUG] Adding managed depedendencies for unknown:file-management
                          [DEBUG] org.apache.maven:maven-model:jar:2.0
                          [DEBUG] org.apache.maven:maven-project:jar:2.0
                          [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
                          [DEBUG] org.apache.maven.shared:file-management:jar:1.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-clean-plugin:2.1.1:clean' -->
                          [DEBUG] (f) directory = C:\maven\testesb\target
                          [DEBUG] (f) followSymLinks = false
                          [DEBUG] (f) outputDirectory = C:\maven\testesb\target\classes
                          [DEBUG] (f) reportDirectory = C:\maven\testesb\target\site
                          [DEBUG] (f) testOutputDirectory = C:\maven\testesb\target\test-classes
                          [DEBUG] (f) verbose = false
                          [DEBUG] -- end configuration --
                          [INFO] [clean:clean]
                          [INFO] Deleting directory C:\maven\testesb\target
                          [DEBUG] Originally marked for delete: [test-classes, classes\com, surefire-reports, classes, test-classes\com, ]
                          [DEBUG] Marked for preserve (with followSymlinks == false): []
                          [DEBUG] Symlinks marked for deletion (originally mismarked): []
                          [DEBUG] Originally marked for delete: [testesb-1.0-SNAPSHOT.jar, test-classes, classes\com, surefire-reports\TEST-com.AppTest.xml, classes\com\App.class, surefire-reports, surefire-reports\com.AppTest.txt, classes, test-classes\com, test-classes\com\AppTest.class, ]
                          [DEBUG] Marked for preserve (with followSymlinks == false): []
                          [DEBUG] Symlinks marked for deletion (originally mismarked): []
                          [DEBUG] Found deletable paths: [testesb-1.0-SNAPSHOT.jar
                           test-classes
                           classes\com
                           surefire-reports\TEST-com.AppTest.xml
                           classes\com\App.class
                           surefire-reports
                           surefire-reports\com.AppTest.txt
                           classes
                           test-classes\com
                           test-classes\com\AppTest.class
                           ]
                          [DEBUG] Checking for symlink:
                          Parent file's canonical path: C:\maven\testesb\target
                          My canonical path: C:\maven\testesb\target\test-classes
                          [DEBUG] Checking for symlink:
                          Parent file's canonical path: C:\maven\testesb\target\test-classes
                          My canonical path: C:\maven\testesb\target\test-classes\com
                          [DEBUG] Checking for symlink:
                          Parent file's canonical path: C:\maven\testesb\target\classes
                          My canonical path: C:\maven\testesb\target\classes\com
                          [DEBUG] Checking for symlink:
                          Parent file's canonical path: C:\maven\testesb\target
                          My canonical path: C:\maven\testesb\target\surefire-reports
                          [DEBUG] Checking for symlink:
                          Parent file's canonical path: C:\maven\testesb\target
                          My canonical path: C:\maven\testesb\target\classes
                          [DEBUG] Checking for symlink:
                          Parent file's canonical path: C:\maven\testesb
                          My canonical path: C:\maven\testesb\target
                          [INFO] Deleting directory C:\maven\testesb\target\classes
                          [DEBUG] Found deletable paths: []
                          [INFO] Deleting directory C:\maven\testesb\target\test-classes
                          [DEBUG] Found deletable paths: []
                          [INFO] Deleting directory C:\maven\testesb\target\site
                          [DEBUG] Found deletable paths: []
                          [DEBUG] maven-resources-plugin: resolved to version 2.2 from repository central
                          [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::1 for project: null:maven-resources-plugin:maven-plugin:2.2 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for project: org.apache.maven.plugins:maven-plugins:pom:1 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project: org.apache.maven:maven-parent:pom:1 from the repository.
                          [DEBUG] maven-compiler-plugin: resolved to version 2.0.2 from repository central
                          [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::8 for project: null:maven-compiler-plugin:maven-plugin:2.0.2 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: org.apache.maven.plugins:maven-plugins:pom:8 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:5 from the repository.
                          [DEBUG] maven-surefire-plugin: resolved to version 2.3 from repository central
                          [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3 for project: org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: org.apache.maven.surefire:surefire:pom:2.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:5 from the repository.
                          [DEBUG] maven-jar-plugin: resolved to version 2.1 from repository central
                          [DEBUG] Retrieving parent-POM: org.apache.maven.plugins:maven-plugins::3 for project: null:maven-jar-plugin:maven-plugin:2.1 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for project: org.apache.maven.plugins:maven-plugins:pom:3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:4 from the repository.
                          [DEBUG] org.apache.maven.plugins:maven-resources-plugin:maven-plugin:2.2:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-model:jar:2.0 from the repository.
                          [DEBUG] Adding managed depedendencies for org.apache.maven:maven-model
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-project:jar:2.0 from the repository.
                          [DEBUG] Adding managed depedendencies for unknown:maven-project
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:maven-profile:jar:2.0 from the repository.
                          [DEBUG] Adding managed depedendencies for unknown:maven-profile
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
                          [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact-manager:jar:2.0 from the repository.
                          [DEBUG] Adding managed depedendencies for org.apache.maven:maven-artifact-manager
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-repository-metadata:jar:2.0 from the repository.
                          [DEBUG] Adding managed depedendencies for org.apache.maven:maven-repository-metadata
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0 for project: org.apache.maven:maven-artifact:jar:2.0 from the repository.
                          [DEBUG] Adding managed depedendencies for org.apache.maven:maven-artifact
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5
                          [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
                          [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
                          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' -->
                          [DEBUG] (f) filters = []
                          [DEBUG] (f) outputDirectory = C:\maven\testesb\target\classes
                          [DEBUG] (f) project = org.apache.maven.project.MavenProject@6593c4e
                          [DEBUG] (f) resources = [org.apache.maven.model.Resource@198a455]
                          [DEBUG] -- end configuration --
                          [INFO] [resources:resources]
                          [INFO] Using default encoding to copy filtered resources.
                          [DEBUG] com:testesb:jar:1.0-SNAPSHOT (selected for null)
                          [DEBUG] junit:junit:jar:3.8.1:test (selected for test)
                          [DEBUG] org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.0.2:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compiler::1.5.3 for project: null:plexus-compiler-manager:jar:1.5.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.6 for project: null:plexus-compiler:pom:1.5.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for project: org.codehaus.plexus:plexus-components:pom:1.1.6 from the repository.
                          [DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:1.5.3:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
                          [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
                          [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compiler::1.5.3 for project: null:plexus-compiler-api:jar:1.5.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.6 for project: null:plexus-compiler:pom:1.5.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for project: org.codehaus.plexus:plexus-components:pom:1.1.6 from the repository.
                          [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.3:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.5.3:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (removed - nearer found: 1.0.4)
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compilers::1.5.3 for project: null:plexus-compiler-javac:jar:1.5.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-compiler::1.5.3 for project: org.codehaus.plexus:plexus-compilers:pom:1.5.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.6 for project: null:plexus-compiler:pom:1.5.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for project: org.codehaus.plexus:plexus-components:pom:1.1.6 from the repository.
                          [DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:1.5.3:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: null:plexus-utils:jar:1.0.5 from the repository.
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.5:runtime (removed - nearer found: 1.0.4)
                          [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
                          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile' -->
                          [DEBUG] (f) basedir = C:\maven\testesb
                          [DEBUG] (f) buildDirectory = C:\maven\testesb\target
                          [DEBUG] (f) classpathElements = [C:\maven\testesb\target\classes]
                          [DEBUG] (f) compileSourceRoots = [C:\maven\testesb\src\main\java]
                          [DEBUG] (f) compilerId = javac
                          [DEBUG] (f) debug = true
                          [DEBUG] (f) failOnError = true
                          [DEBUG] (f) fork = false
                          [DEBUG] (f) optimize = false
                          [DEBUG] (f) outputDirectory = C:\maven\testesb\target\classes
                          [DEBUG] (f) outputFileName = testesb-1.0-SNAPSHOT
                          [DEBUG] (f) projectArtifact = com:testesb:jar:1.0-SNAPSHOT
                          [DEBUG] (f) showDeprecation = false
                          [DEBUG] (f) showWarnings = false
                          [DEBUG] (f) staleMillis = 0
                          [DEBUG] (f) verbose = false
                          [DEBUG] -- end configuration --
                          [INFO] [compiler:compile]
                          [DEBUG] Using compiler 'javac'.
                          [DEBUG] Source directories: [C:\maven\testesb\src\main\java]
                          [DEBUG] Classpath: [C:\maven\testesb\target\classes]
                          [DEBUG] Output directory: C:\maven\testesb\target\classes
                          [DEBUG] Classpath:
                          [DEBUG] C:\maven\testesb\target\classes
                          [DEBUG] Source roots:
                          [DEBUG] C:\maven\testesb\src\main\java
                          [INFO] Compiling 1 source file to C:\maven\testesb\target\classes
                          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:testResources' -->
                          [DEBUG] (f) filters = []
                          [DEBUG] (f) outputDirectory = C:\maven\testesb\target\test-classes
                          [DEBUG] (f) project = org.apache.maven.project.MavenProject@6593c4e
                          [DEBUG] (f) resources = [org.apache.maven.model.Resource@7109c4]
                          [DEBUG] -- end configuration --
                          [INFO] [resources:testResources]
                          [INFO] Using default encoding to copy filtered resources.
                          [DEBUG] com:testesb:jar:1.0-SNAPSHOT (selected for null)
                          [DEBUG] junit:junit:jar:3.8.1:test (selected for test)
                          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile' -->
                          [DEBUG] (f) basedir = C:\maven\testesb
                          [DEBUG] (f) buildDirectory = C:\maven\testesb\target
                          [DEBUG] (f) classpathElements = [C:\maven\testesb\target\classes, C:\maven\testesb\target\test-classes, C:\RepositorioMaven\junit\junit\3.8.1\junit-3.8.1.jar]
                          [DEBUG] (f) compileSourceRoots = [C:\maven\testesb\src\test\java]
                          [DEBUG] (f) compilerId = javac
                          [DEBUG] (f) debug = true
                          [DEBUG] (f) failOnError = true
                          [DEBUG] (f) fork = false
                          [DEBUG] (f) optimize = false
                          [DEBUG] (f) outputDirectory = C:\maven\testesb\target\test-classes
                          [DEBUG] (f) outputFileName = testesb-1.0-SNAPSHOT
                          [DEBUG] (f) showDeprecation = false
                          [DEBUG] (f) showWarnings = false
                          [DEBUG] (f) staleMillis = 0
                          [DEBUG] (f) verbose = false
                          [DEBUG] -- end configuration --
                          [INFO] [compiler:testCompile]
                          [DEBUG] Using compiler 'javac'.
                          [DEBUG] Source directories: [C:\maven\testesb\src\test\java]
                          [DEBUG] Classpath: [C:\maven\testesb\target\classes
                           C:\maven\testesb\target\test-classes
                           C:\RepositorioMaven\junit\junit\3.8.1\junit-3.8.1.jar]
                          [DEBUG] Output directory: C:\maven\testesb\target\test-classes
                          [DEBUG] Classpath:
                          [DEBUG] C:\maven\testesb\target\classes
                          [DEBUG] C:\maven\testesb\target\test-classes
                          [DEBUG] C:\RepositorioMaven\junit\junit\3.8.1\junit-3.8.1.jar
                          [DEBUG] Source roots:
                          [DEBUG] C:\maven\testesb\src\test\java
                          [INFO] Compiling 1 source file to C:\maven\testesb\target\test-classes
                          [DEBUG] com:testesb:jar:1.0-SNAPSHOT (selected for null)
                          [DEBUG] junit:junit:jar:3.8.1:test (selected for test)
                          [DEBUG] org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.3:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3 for project: null:surefire-booter:jar:2.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: org.apache.maven.surefire:surefire:pom:2.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:5 from the repository.
                          [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.3:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3 for project: null:surefire-api:jar:2.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: org.apache.maven.surefire:surefire:pom:2.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:5 from the repository.
                          [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.3:runtime (selected for runtime)
                          [DEBUG] commons-lang:commons-lang:jar:2.1:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus-components::1.1.6 for project: null:plexus-archiver:jar:1.0-alpha-7 from the repository.
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.8 for project: org.codehaus.plexus:plexus-components:pom:1.1.6 from the repository.
                          [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
                          [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.5 for project: null:plexus-utils:jar:1.2 from the repository.
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed - nearer found: 1.1)
                          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-surefire-plugin:2.3:test' -->
                          [DEBUG] (f) basedir = C:\maven\testesb
                          [DEBUG] (f) childDelegation = false
                          [DEBUG] (f) classesDirectory = C:\maven\testesb\target\classes
                          [DEBUG] (f) classpathElements = [C:\maven\testesb\target\classes, C:\maven\testesb\target\test-classes, C:\RepositorioMaven\junit\junit\3.8.1\junit-3.8.1.jar]
                          [DEBUG] (f) disableXmlReport = false
                          [DEBUG] (f) forkMode = once
                          [DEBUG] (f) localRepository = [local] -> file://C:/RepositorioMaven
                          [DEBUG] (f) parallel = false
                          [DEBUG] (f) pluginArtifactMap = {org.codehaus.plexus:plexus-utils=org.codehaus.plexus:plexus-utils:jar:1.1:runtime, org.apache.maven.surefire:surefire-api=org.apache.maven.surefire:surefire-api:jar:2.3:runtime, org.codehaus.plexus:plexus-archiver=org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime, org.apache.maven:maven-artifact=org.apache.maven:maven-artifact:jar:2.0:runtime, org.apache.maven:maven-plugin-api=org.apache.maven:maven-plugin-api:jar:2.0:runtime, org.apache.maven.surefire:surefire-booter=org.apache.maven.surefire:surefire-booter:jar:2.3:runtime, commons-lang:commons-lang=commons-lang:commons-lang:jar:2.1:runtime}
                          [DEBUG] (f) printSummary = true
                          [DEBUG] (f) projectArtifactMap = {junit:junit=junit:junit:jar:3.8.1:test}
                          [DEBUG] (f) redirectTestOutputToFile = false
                          [DEBUG] (f) remoteRepositories = [[central] -> http://repo1.maven.org/maven2]
                          [DEBUG] (f) reportFormat = brief
                          [DEBUG] (f) reportsDirectory = C:\maven\testesb\target\surefire-reports
                          [DEBUG] (f) testClassesDirectory = C:\maven\testesb\target\test-classes
                          [DEBUG] (f) testSourceDirectory = C:\maven\testesb\src\test\java
                          [DEBUG] (f) threadCount = 5
                          [DEBUG] (f) trimStackTrace = true
                          [DEBUG] (f) useFile = true
                          [DEBUG] (f) useSystemClassLoader = false
                          [DEBUG] -- end configuration --
                          [INFO] [surefire:test]
                          [DEBUG] dummy:dummy:jar:1.0 (selected for null)
                          [DEBUG] org.apache.maven.surefire:surefire-booter:jar:2.3:runtime (selected for runtime)
                          [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.3:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
                          [DEBUG] commons-lang:commons-lang:jar:2.1:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
                          [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed - nearer found: 1.1)
                          [DEBUG] Adding to surefire booter test classpath: C:\RepositorioMaven\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar
                          [DEBUG] Adding to surefire booter test classpath: C:\RepositorioMaven\junit\junit\3.8.1\junit-3.8.1.jar
                          [DEBUG] Adding to surefire booter test classpath: C:\RepositorioMaven\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar
                          [DEBUG] Adding to surefire booter test classpath: C:\RepositorioMaven\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar
                          [DEBUG] Adding to surefire booter test classpath: C:\RepositorioMaven\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar
                          [DEBUG] Adding to surefire booter test classpath: C:\RepositorioMaven\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
                          [DEBUG] Adding to surefire booter test classpath: C:\RepositorioMaven\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
                          [DEBUG] Adding to surefire booter test classpath: C:\RepositorioMaven\org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar
                          [DEBUG] dummy:dummy:jar:1.0 (selected for null)
                          [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire-providers::2.3 for project: null:surefire-junit:jar:2.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven.surefire:surefire::2.3 for project: null:surefire-providers:pom:null from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: org.apache.maven.surefire:surefire:pom:2.3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:5 from the repository.
                          [DEBUG] org.apache.maven.surefire:surefire-junit:jar:2.3 (selected for null)
                          [DEBUG] org.apache.maven.surefire:surefire-api:jar:2.3:compile (selected for compile)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:compile (selected for compile)
                          [DEBUG] commons-lang:commons-lang:jar:2.1:compile (selected for compile)
                          [DEBUG] junit:junit:jar:3.8.1:compile (selected for compile)
                          [DEBUG] Adding to surefire test classpath: C:\RepositorioMaven\junit\junit\3.8.1\junit-3.8.1.jar
                          [DEBUG] Adding to surefire test classpath: C:\RepositorioMaven\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar
                          [DEBUG] Adding to surefire test classpath: C:\RepositorioMaven\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar
                          [DEBUG] Adding to surefire test classpath: C:\RepositorioMaven\commons-lang\commons-lang\2.1\commons-lang-2.1.jar
                          [DEBUG] Adding to surefire test classpath: C:\RepositorioMaven\org\apache\maven\surefire\surefire-junit\2.3\surefire-junit-2.3.jar
                          [DEBUG] Test Classpath :
                          [DEBUG] C:\maven\testesb\target\classes
                          [DEBUG] C:\maven\testesb\target\test-classes
                          [DEBUG] C:\RepositorioMaven\junit\junit\3.8.1\junit-3.8.1.jar
                          [DEBUG] Setting system property [localRepository]=[C:/RepositorioMaven]
                          [DEBUG] Setting system property [basedir]=[C:\maven\testesb]
                          [DEBUG] Using JVM: C:\Java\jdk1.5.0_06\jre\bin\java
                          [INFO] Surefire report directory: C:\maven\testesb\target\surefire-reports
                          Forking command line: C:\Java\jdk1.5.0_06\jre\bin\java -classpath C:\RepositorioMaven\org\codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar;C:\RepositorioMaven\junit\junit\3.8.1\junit-3.8.1.jar;C:\RepositorioMaven\org\apache\maven\surefire\surefire-api\2.3\surefire-api-2.3.jar;C:\RepositorioMaven\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar;C:\RepositorioMaven\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar;C:\RepositorioMaven\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar;C:\RepositorioMaven\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;C:\RepositorioMaven\org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar org.apache.maven.surefire.booter.SurefireBooter C:\DOCUME~1\claudior\CONFIG~1\Temp\surefire181tmp C:\DOCUME~1\claudior\CONFIG~1\Temp\surefire182tmp
                          
                          -------------------------------------------------------
                           T E S T S
                          -------------------------------------------------------
                          Running com.AppTest
                          Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
                          
                          Results :
                          
                          Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
                          
                          [DEBUG] org.apache.maven.plugins:maven-jar-plugin:maven-plugin:2.1:runtime (selected for runtime)
                          [DEBUG] Retrieving parent-POM: org.apache.maven.shared:maven-shared-components::3 for project: org.apache.maven:maven-archiver:jar:2.2 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::4 for project: org.apache.maven.shared:maven-shared-components:pom:3 from the repository.
                          [DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: org.apache.maven:maven-parent:pom:4 from the repository.
                          [DEBUG] org.apache.maven:maven-archiver:jar:2.2:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
                          [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
                          [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
                          [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
                          [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-7:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.2:runtime (removed - nearer found: 1.0.4)
                          [DEBUG] org.apache.maven:maven-artifact:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-project:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-profile:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
                          [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-model:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime (selected for runtime)
                          [DEBUG] org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - nearer found: 1.1)
                          [DEBUG] junit:junit:jar:3.8.1:runtime (selected for runtime)
                          [DEBUG] classworlds:classworlds:jar:1.1-alpha-2:runtime (selected for runtime)
                          [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0:runtime (selected for runtime)
                          [DEBUG] commons-lang:commons-lang:jar:2.1:runtime (selected for runtime)
                          [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar' -->
                          [DEBUG] (f) classesDirectory = C:\maven\testesb\target\classes
                          [DEBUG] (f) finalName = testesb-1.0-SNAPSHOT
                          [DEBUG] (f) forceCreation = false
                          [DEBUG] (f) outputDirectory = C:\maven\testesb\target
                          [DEBUG] (f) project = org.apache.maven.project.MavenProject@6593c4e
                          [DEBUG] -- end configuration --
                          [INFO] [jar:jar]
                          [DEBUG] isUp2date: false (Destination C:\maven\testesb\target\testesb-1.0-SNAPSHOT.jar not found.)
                          [INFO] Building jar: C:\maven\testesb\target\testesb-1.0-SNAPSHOT.jar
                          [DEBUG] adding directory META-INF/
                          [DEBUG] adding entry META-INF/MANIFEST.MF
                          [DEBUG] adding directory com/
                          [DEBUG] adding entry com/App.class
                          [DEBUG] adding directory META-INF/maven/
                          [DEBUG] adding directory META-INF/maven/com/
                          [DEBUG] adding directory META-INF/maven/com/testesb/
                          [DEBUG] adding entry META-INF/maven/com/testesb/pom.xml
                          [DEBUG] adding entry META-INF/maven/com/testesb/pom.properties
                          [INFO] ------------------------------------------------------------------------
                          [INFO] BUILD SUCCESSFUL
                          [INFO] ------------------------------------------------------------------------
                          [INFO] Total time: 4 seconds
                          [INFO] Finished at: Thu Jun 21 09:45:42 BRT 2007
                          [INFO] Final Memory: 5M/12M
                          [INFO] ------------------------------------------------------------------------


                          I am using maven 2.0.6, the packaging of module is jar and the command is mvn -X clean package

                          What am I doing wrong?
                          Thanks

                          • 10. Re: Packaging .esb with Maven2
                            system.out

                            Hi Claudio,
                            Here is a simple solution to address your problem using ant plugin:
                            1) create a build.xml file

                            <project name="test" default="createEsb">
                             <!-- =================================
                             target: createEsb
                             ================================= -->
                             <target name="createEsb" description="--> description">
                             <copy tofile="${project.build.directory}/${project.build.finalName}.esb">
                             <fileset dir="${project.build.directory}">
                             <include name="*.jar" />
                             </fileset>
                             </copy>
                             </target>
                            </project>


                            2) add ant plugin to your maven pom:
                            <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-antrun-plugin</artifactId>
                             <executions>
                             <execution>
                             <phase>install</phase>
                             <configuration>
                             <tasks>
                             <ant>
                             <property name="project.build.directory" value="${project.build.directory}" />
                             <property name="project.build.finalName" value="${project.build.finalName}" />
                             <target name="createEsb" />
                             </ant>
                             </tasks>
                             </configuration>
                             <goals>
                             <goal>run</goal>
                             </goals>
                             </execution>
                             </executions>
                             </plugin>


                            I tested this approach and it works!
                            The previous approach needs some more customization to jboss plugin.



                            • 11. Re: Packaging .esb with Maven2

                              Ok Mike.

                              Thanks!

                              • 12. Re: Packaging .esb with Maven2
                                marklittle

                                For those still interested in maven support, check this out.