maven-source-plugin

How to continuously build and deploy feature branches with Maven?

自作多情 提交于 2019-12-18 10:39:13
问题 My team is using feature branches to implement new features and continuously deploys snapshot builds into a remote repo for our users to use. Thus 'deploy' really only means 'distributing to a remote Maven repository'. We're currently only running continuous integration builds for the master branch and not the feature branches for the following reason: we're using Maven to build our projects and distribute the JavaDoc and sources alongside the JAR. My plan was now to add a classifier to each

Maven deploy + source classifiers

纵饮孤独 提交于 2019-12-04 03:42:50
问题 I'm trying to deploy a Maven artifact with a classifier. Since I need both the sources and the JAR (I'm using it from GWT), I would like to get artifact-version-classifier.jar and artifact-version-classifier-sources.jar . However, it works fine with the compiled JAR, but fails with the sources (the output sources JAR has a wrong name). This is the configuration that I have so far: <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <classifier>prod</classifier> </configuration>

Maven deploy + source classifiers

纵饮孤独 提交于 2019-12-01 20:51:17
I'm trying to deploy a Maven artifact with a classifier. Since I need both the sources and the JAR (I'm using it from GWT), I would like to get artifact-version-classifier.jar and artifact-version-classifier-sources.jar . However, it works fine with the compiled JAR, but fails with the sources (the output sources JAR has a wrong name). This is the configuration that I have so far: <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <classifier>prod</classifier> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin<