[
https://issues.apache.org/jira/browse/OPENJPA-796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Dick resolved OPENJPA-796.
----------------------------------
Resolution: Fixed
We currently publish sources if the release profile is active, so any official
release will have sources uploaded to the maven repository. If you want source
& javadoc published for a local build you can do so by running the release
profile :
$ mvn -Prelease ${goals}
If you'd like these plugins enabled by default or enabled in a better way
please reopen the issue.
> publish sources along with jar files
> ------------------------------------
>
> Key: OPENJPA-796
> URL: https://issues.apache.org/jira/browse/OPENJPA-796
> Project: OpenJPA
> Issue Type: Improvement
> Components: build / infrastructure
> Affects Versions: 2.0.0
> Reporter: Fernando
>
> very simple, just need to add this to the pom.xml file at the top level, then
> all builds will publish sources too. Very useful!
> Index: pom.xml
> ===================================================================
> --- pom.xml (revision 721538)
> +++ pom.xml (working copy)
> @@ -481,6 +481,27 @@
> <targetPath>META-INF</targetPath>
> </resource>
> </resources>
> + <plugins>
> + <plugin>
> + <groupId>org.apache.maven.plugins</groupId>
> + <artifactId>maven-compiler-plugin</artifactId>
> + <configuration>
> + <source>1.5</source>
> + <target>1.5</target>
> + </configuration>
> + </plugin>
> + <plugin>
> + <groupId>org.apache.maven.plugins</groupId>
> + <artifactId>maven-source-plugin</artifactId>
> + <executions>
> + <execution>
> + <goals>
> + <goal>jar</goal>
> + </goals>
> + </execution>
> + </executions>
> + </plugin>
> + </plugins>
> <pluginManagement>
> <plugins>
> <plugin>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.