Use groupId and artifactId from the dspace-api POM in Util.java
---------------------------------------------------------------

                 Key: DS-676
                 URL: http://jira.dspace.org/jira/browse/DS-676
             Project: DSpace 1.x
          Issue Type: Improvement
          Components: DSpace API
    Affects Versions: 1.6.2, 1.6.1, 1.6.0
            Reporter: Graham Triggs
            Assignee: Graham Triggs
            Priority: Minor


Util.java has a hardcoded reference to the groupId and artifactId that is 
designated in the dspace-api POM file.

This makes it unnecessarily awkward to change the group or artifact name if you 
are doing local customized builds.

The problem can be simply avoided by making Maven filter the Java sources 
before compiling, and reference the Maven variables from the source.

Util.java:

                InputStream cis = Util.class.getResourceAsStream
                    
("/META-INF/maven/${pom.groupId}/${pom.artifactId}/pom.properties");

pom.xml:


    <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <filtering>true</filtering>
                <targetPath>../filtered-sources/java</targetPath>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <sourceDirectory>target/filtered-sources/java</sourceDirectory>
    </build>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to