Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2013
    Posts
    1
    Rep Power
    0

    Question Maven Deloy Issue

    Hi,
    Am generating jar using plugin
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <version>2.4</version>
    <executions>

    <execution>
    <id>package-sso-jar</id>
    <phase>package</phase>
    <goals>
    <goal>jar</goal>
    </goals>
    <configuration>
    <classesDirectory>${project.build.directory}/classes</classesDirectory>
    <classifier>sso</classifier>
    <includes>
    <include>**/sso/**</include>
    <include>**/sso/**</include>
    </includes>
    </configuration>
    </execution>
    </executions>
    same jar am uloading in to my custom repository
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-deploy-plugin</artifactId>
    <version>2.8</version>
    <execution>
    <id>deploy-file-sso</id>
    <phase>deploy</phase>
    <goals>
    <goal>deploy-file</goal>
    </goals>
    <configuration>
    <packaging>jar</packaging>
    <generatePom>true</generatePom>
    <url>${project.distributionManagement.snapshotRepo sitory.url}</url>
    <artifactId>sso</artifactId>
    <groupId>com.xxx.paynet.ir</groupId>
    <version>1.0-SNAPSHOT</version>
    <file>${project.build.directory}/Services-sso.jar</file>
    <repositoryId>snapshots</repositoryId>
    </configuration>
    </execution>

    its uploading fine, but it is also deloying in to project artifact.
    EX:
    In my pom.xml details

    <modelVersion>4.0.0</modelVersion>
    <groupId>PayNet</groupId>
    <artifactId>IR_Services</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>war</packaging>

    sso jar is uploading in to com/xxx/paynet/ir path, simultaniously it is creating
    path with PayNet/IR_Services/1.0-SNAPSHOT in my custom repository and deploying snapshot
    version of sso.
    i dint understand why it is deploying in to "PayNet/IR_Services/1.0-SNAPSHOT" this path, i dont want to do this

    can any one help me to resolve this issue.

  2. #2
    gvs048 is offline Member
    Join Date
    Apr 2013
    Posts
    16
    Rep Power
    0

    Default Re: Maven Deloy Issue

    I hope it is creating as a module, in a project. That's why it is taking path like "PayNet/IR_Services/1.0-SNAPSHOT". If you try to avoid the module, your problem will solve.
    see this for more info.. Maven Video .

    Thanks.

Similar Threads

  1. Replies: 0
    Last Post: 12-17-2012, 02:32 PM
  2. jsf and maven
    By j2me64 in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 02-10-2012, 12:17 PM
  3. Regular Expression issue and setName() method issue
    By geforce in forum New To Java
    Replies: 2
    Last Post: 01-30-2012, 04:33 AM
  4. Replies: 0
    Last Post: 04-20-2009, 07:26 PM
  5. Maven or ANT
    By goldhouse in forum Reviews / Advertising
    Replies: 0
    Last Post: 08-09-2007, 09:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •