Hi,

wrong mailing list. This is the list for the developers of Maven / Maven Plugins and NOT for user question.

This means your question belong to the users mailing list.

Kind regards
Karl Heinz Marbaise

On 10/8/14 3:54 PM, sven.kos...@googlemail.com wrote:
Hello !


I have designed a maven project, that have the feature to create a jar
file, if I use the maven command *mvn clean install* in my local
repository. After executing that maven command I have an artefact in the
target folder and in an additional outputfolder. The file are named
*"myGeratedOutputfile.jar".* This name is declared in my pom.xml by myself
(tag "finalName"). If I look into the manifest file of this JAR file, I
found a versionnumber the postfix *"SNAPSHOT"*. At this moment everything
is fine and looks good.


Now I use the maven release plugin in combination with the Jenkins CI
Server (I have nothing declared in my pom.xml file for this specific
plugin). In addition after execution the maven release plugin, I get a
cryptnamed file (for example *"0-0-2.myProjectName.jar"*), which is loacted
in the release repository, which I have declared in the tags
"distributionManagement" and "repository" of my pom.xml file. If I looked
inside the Manifestfile of this JAR file, the postfix "*SNAPSHOT"* inside
the versionnumber is not available. That looks good too.


But if I looked inside the SVN Tags, which was produced by the maven
release plugin, no artefact file / JAR file was placed here.


Is there a way of solution, to adapt the maven release plugin in that way,
that my artefact file is placed in the produced svn tags too? And how can I
make sure, that the released JAR file is named "myGeratedOutputfile.jar"
too?



*Here are some important Jenkins configuration values:*


  Release goals and options: -Dresume=false release:prepare release:perform

DryRun goals and options: -Dresume=false -DdryRun=true release:prepare

Number of successful release builds to keep: 1

Default versioning mode: None

Goals and Options: clean install



*Here are some important snippets from my pom.xml file:*


  <distributionManagement>

     <repository>

         <id>Release</id>

         <name>Release Repository</name>

         <url>http://myDomain:8081/otherPath/libs-release-local</url>

     </repository>

     <site>

         <id>projectsites.myDomain.com</id>

         <url>


scp://myDomain/srv/www/htdocs/projectsites/${project.groupId}/${project.artifactId}/${project.version}/

         </url>

     </site>

</distributionManagement>



<build>



     <finalName>myGeratedOutputfile</finalName>



     <plugins>



         <plugin>

             <groupId>org.apache.maven.plugins</groupId>

             <artifactId>maven-assembly-plugin</artifactId>

             <configuration>

                 <descriptorRefs>

                     <descriptorRef>

                         jar-with-dependencies

                     </descriptorRef>

                 </descriptorRefs>

                 <archive>

                   <addMavenDescriptor>false</addMavenDescriptor>


                     <manifest>


<addDefaultImplementationEntries>true</addDefaultImplementationEntries>


<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>

                         <mainClass>myMainClass</mainClass>

                     </manifest>

                 </archive>

                 <appendAssemblyId>false</appendAssemblyId>

                 <classifier>jar-with-dependencies</classifier>

                 <outputDirectory>myOnw Outputfolder</outputDirectory>

             </configuration>

             <executions>

                 <execution>

                     <id>assembly-jar-Id</id>

                     <phase>package</phase>

                     <goals>

                         <goal>single</goal>

                     </goals>

                 </execution>

             </executions>

         </plugin>



      <plugins>



  </build>



I hope you can help me to solve my problem and to customized this Maven
Plugin.



Many thanks for helping me!

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to