You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Thomas Diesler (JIRA)" <ji...@apache.org> on 2010/02/15 12:39:27 UTC

[jira] Created: (ARIES-161) Aries bundles do not have associated sources

Aries bundles do not have associated sources
--------------------------------------------

                 Key: ARIES-161
                 URL: https://issues.apache.org/jira/browse/ARIES-161
             Project: Aries
          Issue Type: Bug
            Reporter: Thomas Diesler


Perhaps you could add this to the default parent pom.xml

            <plugin>
              <artifactId>maven-source-plugin</artifactId>
                <executions>
                  <execution>
                    <id>attach-sources</id>
                      <goals>
                        <goal>jar</goal>
                      </goals>
                  </execution>
                </executions>
              <inherited>true</inherited>
            </plugin>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-161) Aries bundles do not have associated sources

Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833781#action_12833781 ] 

Thomas Diesler commented on ARIES-161:
--------------------------------------

It seems that for org.apache.aries.jmx the -Pdeploy profile must be activated explicitly

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <artifactSet>
                                <includes>
                                    <include>org.apache.aries.jmx:org.apache.aries.jmx.api</include>
                                    <include>org.apache.aries.jmx:org.apache.aries.jmx.core</include>
                                </includes>
                            </artifactSet>
                            <createSourcesJar>${createSourcesJar}</createSourcesJar>
                            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
                            <createDependencyReducedPom>true</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>


        <profile>
            <id>deploy</id>
            <properties>
                <createSourcesJar>true</createSourcesJar>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>unpack-sources</id>
                                <phase>generate-sources</phase>
                                <goals>
                                    <goal>unpack</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>org.apache.aries.jmx</groupId>
                                            <artifactId>org.apache.aries.jmx.api</artifactId>
                                            <classifier>sources</classifier>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>org.apache.aries.jmx</groupId>
                                            <artifactId>org.apache.aries.jmx.core</artifactId>
                                            <classifier>sources</classifier>
                                        </artifactItem>
                                    </artifactItems>
                                    <outputDirectory>${project.build.directory}/sources</outputDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <phase>process-classes</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>package</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <minmemory>128m</minmemory>
                            <maxmemory>512m</maxmemory>
                            <sourcepath>${project.build.directory}/sources</sourcepath>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>


> Aries bundles do not have associated sources
> --------------------------------------------
>
>                 Key: ARIES-161
>                 URL: https://issues.apache.org/jira/browse/ARIES-161
>             Project: Aries
>          Issue Type: Bug
>            Reporter: Thomas Diesler
>
> Aggregated bundles (i.e. that contain API and Impl) do not have associated source artefacts in mvn repository.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ARIES-161) Aries bundles do not have associated sources

Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler updated ARIES-161:
---------------------------------

    Description: 
Aggregated bundles (i.e. that contain API and Impl) do not have associated source artefacts in mvn repository.


  was:
Perhaps you could add this to the default parent pom.xml

            <plugin>
              <artifactId>maven-source-plugin</artifactId>
                <executions>
                  <execution>
                    <id>attach-sources</id>
                      <goals>
                        <goal>jar</goal>
                      </goals>
                  </execution>
                </executions>
              <inherited>true</inherited>
            </plugin>



> Aries bundles do not have associated sources
> --------------------------------------------
>
>                 Key: ARIES-161
>                 URL: https://issues.apache.org/jira/browse/ARIES-161
>             Project: Aries
>          Issue Type: Bug
>            Reporter: Thomas Diesler
>
> Aggregated bundles (i.e. that contain API and Impl) do not have associated source artefacts in mvn repository.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-161) Aries bundles do not have associated sources

Posted by "Jeremy Hughes (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834267#action_12834267 ] 

Jeremy Hughes commented on ARIES-161:
-------------------------------------

Hi Thomas, I can see you've cloned this off ARIES-126, where David Jencks suggested updating to the Apache 7 pom and using profiles to achieve the source output using:

mvn clean deploy -Papache-release

Does that not work for JMX? Is the above needed as well / instead?

> Aries bundles do not have associated sources
> --------------------------------------------
>
>                 Key: ARIES-161
>                 URL: https://issues.apache.org/jira/browse/ARIES-161
>             Project: Aries
>          Issue Type: Bug
>            Reporter: Thomas Diesler
>
> Aggregated bundles (i.e. that contain API and Impl) do not have associated source artefacts in mvn repository.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ARIES-161) Aries bundles do not have associated sources

Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835025#action_12835025 ] 

Thomas Diesler commented on ARIES-161:
--------------------------------------

This works for me

mvn clean deploy -Papache-release -Pdeploy

For JMX the javadocs and sources are merged into the bundle by the 'deploy' profile. Not sure whether this is generally true for all Aries bundles. Some common switch that works for all bundles would be good.

> Aries bundles do not have associated sources
> --------------------------------------------
>
>                 Key: ARIES-161
>                 URL: https://issues.apache.org/jira/browse/ARIES-161
>             Project: Aries
>          Issue Type: Bug
>            Reporter: Thomas Diesler
>
> Aggregated bundles (i.e. that contain API and Impl) do not have associated source artefacts in mvn repository.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.